/* 商品页面样式 */

body {
    background: #f5f7fa;
}

/* 主内容区 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 88px 40px 40px;
}

/* 区域标题 */
.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: #64748b;
}

/* 区域选择 */
.section-region {
    margin-bottom: 48px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.region-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.region-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.region-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.region-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.region-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.region-latency {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.region-card.active .region-latency {
    color: rgba(255, 255, 255, 0.85);
}

.region-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    font-size: 12px;
    padding: 4px 8px;
    background: #f1f5f9;
    border-radius: 4px;
    color: #475569;
}

.region-card.active .feature-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* KVM套餐 */
.section-packages {
    margin-bottom: 48px;
}

/* 套餐类型标签 */
.package-type-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.tab-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 套餐网格 */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 套餐卡片 */
.package-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.package-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: #10b981;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.package-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.package-stock {
    font-size: 13px;
    color: #ef4444;
    margin-bottom: 16px;
}

.package-price {
    margin-bottom: 20px;
}

.price-original {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
}

.price-unit {
    font-size: 14px;
    color: #64748b;
    margin-left: 4px;
}

.package-specs {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 14px;
    color: #64748b;
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.btn-buy {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 高主频游戏云服 */
.section-gaming,
.section-bare-metal {
    margin-bottom: 48px;
}

.gaming-card,
.bare-metal-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    position: relative;
}

.gaming-badge,
.bare-metal-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 16px;
    background: #ef4444;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.gaming-title,
.bare-metal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.gaming-desc,
.bare-metal-desc {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
}

.gaming-specs,
.bare-metal-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.spec-item {
    text-align: center;
}

.spec-item .spec-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.spec-item .spec-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.spec-highlight {
    color: #ef4444;
}

.btn-order {
    display: inline-block;
    padding: 14px 48px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-order:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

/* 操作系统 */
.section-os {
    margin-bottom: 48px;
}

.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.os-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.os-card:hover {
    border-color: #667eea;
}

.os-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.os-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.os-versions {
    font-size: 14px;
    color: #64748b;
}

.os-card.active .os-versions {
    color: rgba(255, 255, 255, 0.85);
}

.os-popular {
    display: inline-block;
    padding: 2px 8px;
    background: #10b981;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 应用镜像 */
.section-apps {
    margin-bottom: 48px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.app-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.app-desc {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 服务特性 */
.section-features {
    margin-bottom: 48px;
    text-align: center;
}

.features-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.features-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* 温馨提示 */
.section-notices {
    margin-bottom: 48px;
}

.notice-list {
    background: #f0f9ff;
    border-left: 4px solid #667eea;
    padding: 20px 24px;
    border-radius: 8px;
}

.notice-item {
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.6;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-item::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-content {
        padding: 88px 20px 40px;
    }

    .gaming-specs,
    .bare-metal-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 100px 16px 40px;
    }

    .section-title {
        font-size: 24px;
    }

    .region-grid,
    .packages-grid {
        grid-template-columns: 1fr;
    }

    .package-type-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 140px;
    }

    .gaming-specs,
    .bare-metal-specs {
        grid-template-columns: 1fr;
    }
}