/* ===== 虚拟主机页面 - Hero 区域 ===== */
.ch-hero {
    background: linear-gradient(135deg, #0f172a 0%, #172554 50%, #1e293b 100%);
    padding: 80px 0 100px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ch-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, .1) 0%, transparent 70%);
    animation: chPulse 7s ease-in-out infinite;
}

.ch-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .08) 0%, transparent 70%);
    animation: chPulse 9s ease-in-out infinite reverse;
}

@keyframes chPulse {

    0%,
    100% {
        opacity: .5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.ch-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
}

.ch-hero-content {
    flex: 1;
}

.ch-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, .15);
    border: 1px solid rgba(59, 130, 246, .25);
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 13px;
    color: #93c5fd;
    margin-bottom: 20px;
}

.ch-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.ch-hero h1 span {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ch-hero-desc {
    font-size: 16px;
    opacity: .7;
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 36px;
}

.ch-hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ch-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease;
}

.ch-hero-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, .35);
}

.ch-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, .45);
    color: #fff;
    text-decoration: none;
}

.ch-hero-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
}

.ch-hero-btn-outline:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, .35);
}

/* Hero 右侧数据指标 */
.ch-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex-shrink: 0;
}

.ch-stat-card {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 22px 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all .3s ease;
}

.ch-stat-card:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(59, 130, 246, .3);
}

.ch-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.ch-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    margin-top: 4px;
}

/* 产品区域 */
.ch-products-section {
    padding: 64px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

/* ===== 通用工具类（从内联样式提取） ===== */

/* x-cloak 防闪烁：Alpine 初始化前隐藏 */
[x-cloak] {
    display: none !important;
}

/* 骨架屏卡片容器 */
.xw-skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 骨架屏按钮占位 */
.xw-skeleton-btn {
    height: 40px;
    border-radius: 12px;
    margin-top: auto;
}

/* 错误状态 */
.xw-error-state {
    text-align: center;
    padding: 60px 0;
    color: #94a3b8;
}

.xw-error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.xw-retry-btn {
    margin-top: 12px;
    padding: 8px 24px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.xw-retry-btn:hover {
    background: #f8fafc;
}

/* 空状态 */
.xw-empty-state {
    color: var(--xw-gray-400);
    padding: 40px 0;
    text-align: center;
}

/* 数据库区块间距 */
.ch-db-section {
    margin-top: 64px;
}

/* 响应式 */
@media (max-width: 992px) {
    .ch-hero-inner {
        flex-direction: column;
        gap: 36px;
    }

    .ch-hero h1 {
        font-size: 30px;
    }

    .ch-hero-stats {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .ch-hero {
        padding: 60px 0 80px;
    }

    .ch-hero h1 {
        font-size: 24px;
    }

    .ch-hero-stats {
        grid-template-columns: 1fr 1fr;
    }

    .ch-hero-btns {
        flex-direction: column;
    }
}
