/* ==================== 服务器列表页专用样式 - server.css ==================== */

/* ==================== 内容包装器 ==================== */
.content-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 30px 30px 0 0;
    margin-top: -20px;
    padding: 20px 0 0;
    position: relative;
    z-index: 10;
    min-height: 600px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.section-card,
.pricing-table-wrapper,
.expert-content,
.faq-container,
.region-tabs-container,
.rec-grid {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== 内容区通用样式（营销+专家） ==================== */

/* H2 标题 - 居中无装饰 */
.marketing-content h2,
.expert-content h2 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.marketing-content h2:first-child,
.expert-content h2:first-child {
    margin-top: 0;
}


/* H3/H4 标题 */
.marketing-content h3,
.marketing-content h4,
.expert-content h3,
.expert-content h4 {
    color: #1e293b;
    text-align: center;
    margin: 1rem 0 0.7rem;
}

.marketing-content h3:first-child,
.marketing-content h4:first-child,
.expert-content h3:first-child,
.expert-content h4:first-child {
    margin-top: 0;
}

/* 段落样式 */
.marketing-content p,
.expert-content p {
    color: var(--text-secondary);
    line-height: 1.85;
    text-indent: 2em;
}

/* 链接样式 - 突出显示 */
.marketing-content a,
.expert-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--accent-color);
    transition: all 0.2s ease;
}

.marketing-content a:hover,
.expert-content a:hover {
    color: #0891b2;
    border-bottom-style: solid;
    background: rgba(6, 182, 212, 0.08);
    padding: 0 2px;
    margin: 0 -2px;
    border-radius: 2px;
}

/* 列表样式 */
.marketing-content ul,
.marketing-content ol,
.expert-content ul,
.expert-content ol {
    padding-left: 1rem;
    margin: 1rem 0;
}

.marketing-content li,
.expert-content li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== 营销内容区 ==================== */
.marketing-section {
    padding: 0px 40px;
}

.section-card {
    background: white;
    border-radius: 18px;
    padding: 1.5rem 2.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    opacity: 0.7;
}

.section-icon {
    font-size: 1.35rem;
}

.marketing-content {
    color: #475569;
    line-height: 1.85;
    font-size: 0.95rem;
}

/* ==================== 专家见解区域 ==================== */
.expert-section {
    padding: 10px 40px;
}

.expert-content {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    color: #475569;
    line-height: 1.85;
    font-size: 0.92rem;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

/* ==================== 价格表区域 ==================== */
.pricing-section {
    padding: 10px 40px;
}

.region-tabs-container {
    position: sticky;
    top: 80px;
    z-index: 100;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.region-tabs-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #06b6d4 #f1f5f9;
}

.region-tabs-wrapper::-webkit-scrollbar {
    height: 4px;
}

.region-tabs-wrapper::-webkit-scrollbar-thumb {
    background: #06b6d4;
    border-radius: 2px;
}

.region-tabs {
    display: flex;
    padding: 0.85rem 1rem;
    gap: 0.6rem;
    min-width: max-content;
}

.region-tab-item {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    text-decoration: none;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
    cursor: pointer;
}

.region-tab-item:hover,
.region-tab-item.active {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.tab-count {
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-size: 0.75rem;
}

.region-tabs-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.3s;
}

.region-tabs-scroll:hover {
    background: #06b6d4;
    color: white;
    border-color: transparent;
}

.region-tabs-prev { left: 8px; }
.region-tabs-next { right: 8px; }
.region-tabs-scroll.hidden { opacity: 0; pointer-events: none; }

.region-config-section {
    margin-bottom: 1.5rem;
    scroll-margin-top: 170px;
}

.pricing-table-wrapper {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.06);
    background: white;
    border: 1px solid #e2e8f0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.region-caption {
    display: table-caption;
    caption-side: top;
    padding: 1rem 1.75rem;
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.region-caption strong {
    margin-right: 12px;
}

.region-caption h3 {
    display: inline;
    margin: 0.5 0.85rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

.region-caption .config-count {
    display: inline-block;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(6, 182, 212, 0.2);
    white-space: nowrap;
}

.line-info {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    font-weight: 400;
    margin-left: 0.4rem;
}

.pricing-table th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    color: #1e293b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pricing-table th:first-child {
    padding-left: 1.75rem;
}

.pricing-table td {
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}

.pricing-table td:first-child {
    padding-left: 1.75rem;
}

.pricing-table tbody tr {
    background: #ffffff;
    transition: all 0.2s;
}

.pricing-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.04) 0%, rgba(6, 182, 212, 0.02) 100%);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.line-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #666;
}

.line-badge.merged {
    background: #e8f4fd;
    color: #1a73e8;
    font-weight: 500;
}

.price-cell {
    font-weight: bold;
}

.order-btn {
    display: inline-block;
    padding: 0.5rem 1.15rem;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    text-decoration: none;
    border-radius: 22px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 0.2px;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.no-data {
    text-align: center;
    padding: 3rem;
    background: #f8fafc;
    border-radius: 14px;
}

.no-data p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.no-data small {
    color: #64748b;
    font-size: 0.875rem;
}

/* ==================== 推荐卡片 ==================== */
.rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.rec-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    border-left-width: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.rec-card:hover {
    background: #f1f5f9;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #94a3b8;
}

.rec-child { border-left-color: #06b6d4; }
.rec-child:hover { border-left-color: #0891b2; }
.rec-related { border-left-color: #7dd3fc; }
.rec-related:hover { border-left-color: #38bdf8; }

.rec-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a73e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.rec-card:hover .rec-title {
    color: #0891b2;
}

.rec-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* ==================== 打印样式 ==================== */
@media print {
    .hero,
    .marketing-section,
    .expert-section,
    .faq-section,
    .rec-grid,
    .region-tabs-container,
    .order-btn,
    header,
    footer {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        font-size: 12pt;
        color: #000;
    }
    
    .content-wrapper {
        margin: 0;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
        background: #fff !important;
    }
    
    .pricing-section {
        padding: 0;
    }
    
    .pricing-table-wrapper {
        box-shadow: none;
        border: 1px solid #333;
        border-radius: 0;
        overflow: visible;
    }
    
    .pricing-table {
        min-width: auto;
    }
    
    .region-caption {
        background: #f5f5f5 !important;
        border-bottom: 2px solid #333;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .pricing-table th {
        background: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .pricing-table td {
        border-bottom: 1px solid #ddd;
    }
    
    .price-display,
    .price-current {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
}

/* ==================== 移动端响应式 ==================== */
@media (max-width: 768px) {
    /* 内容区域 */
    .content-wrapper {
        border-radius: 10px 20px 0 0;
        padding: 16px 0;
        margin-top: -15px;
        min-height: auto;
    }
    
    /* 内容区通用样式 - 移动端 */
    .marketing-content h2,
    .expert-content h2 {
        font-size: 1.05rem;
        margin: 1.25rem 0 0.5rem;
    }
    
    .marketing-content p,
    .expert-content p {
        font-size: 0.8rem;
        line-height: 1.7;
        text-indent: 2em;
        margin-bottom: 0.75rem;
    }
    
    .marketing-content a,
    .expert-content a {
        font-weight: 600;
    }
    
    .marketing-content h3,
    .marketing-content h4,
    .expert-content h3,
    .expert-content h4 {
        font-size: 0.9rem;
        margin: 0.75rem 0 0.5rem;
    }
    
    .marketing-content ul,
    .marketing-content ol,
    .expert-content ul,
    .expert-content ol {
        padding-left: 0.75rem;
        margin: 0.5rem 0;
    }
    
    .marketing-content li,
    .expert-content li {
        margin-bottom: 0.4rem;
        font-size: 0.8rem;
    }
    
    /* 营销内容区 */
    .marketing-section {
        padding: 8px 12px;
    }
    
    .section-card {
        padding: 0.875rem 1rem;
        border-radius: 10px;
    }
    
    .section-card::before {
        height: 3px;
    }
    
    .section-icon {
        font-size: 1rem;
    }
    
    .marketing-content {
        font-size: 0.8rem;
        line-height: 1.7;
    }
    
    /* 专家见解区域 */
    .expert-section {
        padding: 8px 12px;
    }
    
    .expert-content {
        padding: 1rem 1.25rem;
        border-radius: 10px;
        font-size: 0.8rem;
        line-height: 1.7;
    }
    
    /* 价格表区域 */
    .pricing-section {
        padding: 8px 12px;
    }
    
    /* 地区TAB */
    .region-tabs-container {
        top: 60px;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .region-tabs {
        padding: 0.6rem 0.75rem;
        gap: 0.4rem;
    }
    
    .region-tab-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 18px;
    }
    
    .tab-count {
        margin-left: 0.35rem;
        padding: 0.1rem 0.35rem;
        font-size: 0.65rem;
    }
    
    .region-tabs-scroll {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .region-tabs-prev { left: 4px; }
    .region-tabs-next { right: 4px; }
    
    .region-config-section {
        margin-bottom: 1rem;
        scroll-margin-top: 140px;
    }
    
    /* 价格表卡片化布局 */
    .pricing-table-wrapper {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .region-caption {
        padding: 0.75rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .region-caption h3 {
        font-size: 0.9rem;
        margin: 0;
        white-space: nowrap;
    }

    .region-caption .config-count {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .line-info {
        font-size: 0.6rem;
        padding: 0.1rem 0.35rem;
        margin-left: 0.25rem;
    }
    
    .pricing-table {
        display: block;
        min-width: auto;
    }
    
    .pricing-table thead {
        display: none;
    }
    
    .pricing-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .pricing-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        background: #f8fafc;
        border-radius: 10px;
        padding: 0.75rem;
        gap: 0.4rem;
        align-items: center;
        border: 1px solid #e2e8f0;
        position: relative;
    }
    
    .pricing-table tbody tr:hover {
        background: #f1f5f9;
        border-color: rgba(6, 182, 212, 0.3);
    }
    
    .pricing-table td {
        display: inline-flex;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        background: white;
        border: 1px solid #e2e8f0;
        font-size: 0.7rem;
        font-weight: 500;
        color: var(--text-primary);
        min-width: auto;
        line-height: 1.3;
    }
    
    .pricing-table td:empty {
        display: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }
    
    .pricing-table td:first-child {
        padding-left: 0.5rem;
    }
    
    .pricing-table td[data-label="线路"] {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: white;
        border-color: transparent;
    }
    
    .pricing-table td[data-label="线路"] .line-badge {
        background: transparent !important;
        color: white !important;
        padding: 0;
        font-size: 0.7rem;
        display: inline;
    }
    
    .pricing-table td[data-label="线路"] .line-badge.merged {
        background: transparent !important;
        color: white !important;
        padding: 0;
        font-size: 0.7rem;
    }
    
    .pricing-table td[data-label="DDoS"] {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: white;
        border-color: transparent;
    }
    
    .pricing-table tbody tr::after {
        content: '';
        order: 10;
        flex-basis: 100%;
        height: 1px;
        background: #e2e8f0;
        margin-top: 0.4rem;
    }
    
    .pricing-table td.price-cell,
    .pricing-table td[data-label="价格"] {
        order: 11;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 0.5rem;
        flex: none;
    }
    
    .price-current {
        font-size: 1rem;
        color: #ea580c;
    }
    
    .pricing-table td.action-cell,
    .pricing-table td[data-label="操作"] {
        order: 12;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-left: auto;
        margin-top: 0.5rem;
    }
    
    .order-btn {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    
    .no-data {
        padding: 2rem 1rem;
        border-radius: 10px;
    }
    
    .no-data p { font-size: 0.875rem; }
    .no-data small { font-size: 0.75rem; }
    
    /* 推荐卡片 */
    .rec-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }
    
    .rec-card {
        padding: 10px 12px;
        gap: 4px;
        border-radius: 6px;
        border-left-width: 3px;
    }
    
    .rec-card:hover { transform: none; }
    .rec-title { font-size: 13px; }
    .rec-desc { font-size: 11px; -webkit-line-clamp: 1; }
    
    /* 禁用手机端hover动画 */
    .region-tab-item:hover,
    .order-btn:hover,
    .rec-card:hover {
        transform: none;
    }
}
