/* ===== 云服务器页面 - 全新设计 ===== */

/* Hero 区域 */
.cs-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a365d 100%);
    padding: 80px 0 100px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cs-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .12) 0%, transparent 70%);
    animation: csPulse 6s ease-in-out infinite;
}

.cs-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .08) 0%, transparent 70%);
    animation: csPulse 8s ease-in-out infinite reverse;
}

@keyframes csPulse {

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

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

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

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

.cs-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;
}

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

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

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

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

.cs-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;
}

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

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

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

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

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

.cs-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;
}

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

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

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

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

.cs-section-header {
    text-align: center;
    margin-bottom: 44px;
}

.cs-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--xw-gray-800);
    margin-bottom: 8px;
}

.cs-section-header p {
    font-size: 15px;
    color: var(--xw-gray-500);
}

/* 产品卡片 */
.cs-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.cs-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 20px;
    padding: 0;
    position: relative;
    transition: all .35s cubic-bezier(.25, 1, .5, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.cs-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, .12), 0 6px 16px rgba(0, 0, 0, .06);
    border-color: rgba(37, 99, 235, .2);
}

.cs-card.recommended {
    border-color: #2563eb;
    box-shadow: 0 4px 24px rgba(37, 99, 235, .1);
}

.cs-recommended-badge {
    position: absolute;
    top: 14px;
    right: -28px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 36px;
    transform: rotate(45deg);
    z-index: 10;
    letter-spacing: .5px;
}

/* 卡片头部 */
.cs-card-header {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    padding: 24px 24px 20px;
}

.cs-card.recommended .cs-card-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.cs-card-type {
    font-size: 11px;
    font-weight: 700;
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.cs-card-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.cs-card-subtitle {
    font-size: 12px;
    opacity: .8;
    color: #fff;
    margin-top: 2px;
}

/* 价格区 */
.cs-price-area {
    padding: 24px 24px 16px;
    text-align: center;
}

.cs-price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.cs-price-symbol {
    font-size: 20px;
    font-weight: 700;
    color: var(--xw-primary);
}

.cs-price-num {
    font-size: 40px;
    font-weight: 900;
    color: var(--xw-primary);
    line-height: 1;
}

.cs-price-unit {
    font-size: 13px;
    color: #94a3b8;
    margin-left: 2px;
}

.cs-price-old {
    font-size: 13px;
    color: #cbd5e1;
    text-decoration: line-through;
    margin-left: 8px;
}

/* 配置参数 */
.cs-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 24px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.cs-specs-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    padding: 10px 10px;
    border-radius: 6px;
    transition: all .2s ease;
}

.cs-specs-list li:hover {
    background: #f8fafc;
    color: var(--xw-primary);
}

.cs-specs-list li i {
    width: 16px;
    text-align: center;
    color: #93c5fd;
    font-size: 12px;
}

.cs-specs-list li:hover i {
    color: var(--xw-primary);
}

.cs-specs-desc {
    font-size: 13px;
    color: var(--xw-gray-500);
    line-height: 1.6;
    padding: 0 24px;
    margin-bottom: 16px;
}

/* 购买按钮 */
.cs-buy-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 0 auto 20px;
    padding: 13px 0;
    text-align: center;
    background: var(--xw-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease;
}

.cs-buy-btn:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .3);
}

.cs-buy-btn i {
    margin-right: 6px;
}

/* ===== 核心优势 - 左右布局 ===== */
.cs-features-section {
    padding: 80px 0;
    background: #f8fafc;
}

.cs-features-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--xw-gray-800);
    margin-bottom: 8px;
}

.cs-features-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--xw-gray-500);
    margin-bottom: 48px;
}

.cs-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cs-feature-card {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 24px 20px;
    transition: all .3s ease;
    cursor: pointer;
}

.cs-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .06);
    border-color: rgba(37, 99, 235, .15);
}

.cs-feature-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.cs-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--xw-primary);
    flex-shrink: 0;
    transition: all .25s ease;
}

.cs-feature-card:hover .cs-feature-icon {
    background: var(--xw-primary);
    color: #fff;
}

.cs-feature-top h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--xw-gray-800);
    margin: 0;
}

.cs-feature-card p {
    font-size: 13px;
    color: var(--xw-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ===== 适用场景 ===== */
.cs-scenarios-section {
    padding: 80px 0;
    background: #fff;
}

.cs-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-scenario-card {
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 1px solid #e8ecf1;
    border-radius: 20px;
    padding: 28px;
    transition: all .3s ease;
    cursor: pointer;
}

.cs-scenario-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, .08);
    border-color: rgba(37, 99, 235, .15);
}

.cs-scenario-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.cs-scenario-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cs-scenario-top h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--xw-gray-800);
    margin: 0;
}

.cs-scenario-card p {
    font-size: 13px;
    color: var(--xw-gray-500);
    line-height: 1.7;
    margin: 0;
}

.cs-scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.cs-scenario-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

/* 场景图标语义化颜色 */
.cs-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.cs-icon-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.cs-icon-green {
    background: #ecfdf5;
    color: #059669;
}

.cs-icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.cs-icon-red {
    background: #fef2f2;
    color: #dc2626;
}

.cs-icon-teal {
    background: #f0fdfa;
    color: #0d9488;
}

/* ===== CTA ===== */
.cs-cta-section {
    padding: 80px 0;
    text-align: center;
}

.cs-cta-box {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    border-radius: 24px;
    padding: 60px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cs-cta-box::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .15) 0%, transparent 70%);
}

.cs-cta-box h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cs-cta-box p {
    font-size: 16px;
    opacity: .7;
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cs-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cs-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease;
}

.cs-cta-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, .4);
}

.cs-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease;
}

.cs-cta-btn-outline:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    border-color: rgba(255, 255, 255, .4);
}

/* ===== 骨架屏（云服务器卡片） ===== */
.cs-skeleton-block {
    padding: 24px;
}

.cs-skeleton-type {
    height: 14px;
    margin-bottom: 12px;
}

.cs-skeleton-name {
    height: 24px;
    margin-bottom: 8px;
}

.cs-skeleton-sub {
    height: 14px;
}

.cs-skeleton-price {
    height: 42px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cs-skeleton-spec {
    height: 16px;
    margin-bottom: 10px;
}

.cs-skeleton-spec-last {
    height: 16px;
    margin-bottom: 24px;
}

.cs-skeleton-buy {
    height: 48px;
    border-radius: 50px;
}

/* ===== 通用状态类（从内联样式提取） ===== */

/* 错误状态 */
.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);
    text-align: center;
    padding: 40px 0;
}

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

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

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

    .cs-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

    .cs-card-grid {
        grid-template-columns: 1fr;
    }

    .cs-features-grid {
        grid-template-columns: 1fr;
    }

    .cs-scenarios-grid {
        grid-template-columns: 1fr;
    }

    .cs-cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .cs-specs-list {
        grid-template-columns: 1fr;
    }
}
