/* =============================================
   USA VPS Landing Page — 美化样式
   ============================================= */

/* =============================================
   1. Hero Banner
   ============================================= */
.page-banner {
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
}
.page-banner h1 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}
.page-banner .lead {
    max-width: 800px;
    margin: 12px auto 0;
    font-size: 18px;
    opacity: 0.9;
    /* line-height: 1.8; */
}
.page-banner .lead a {
    color: #fff;
    text-decoration: underline;
}
.banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B, #ff4757);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,71,87,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255,71,87,0); }
}

/* =============================================
   2. 全局 Section 标题美化
   ============================================= */
.page-header-line-title {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    padding-bottom: 14px;
    margin-bottom: 24px;
    text-align: center;
}
.page-header-line-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2196F3, #4CAF50);
    border-radius: 2px;
}
.plan-top .page-header-line-title::after {
    background: linear-gradient(90deg, #FF9800, #E91E63);
}

/* Section 间距 */
.container.page-header-line {
    padding-top: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}
.container.page-header-line:last-of-type {
    border-bottom: none;
}

/* =============================================
   3. 价格卡片美化（pricing-package）
   ============================================= */
/* 卡片整体 */
.pricing-package {
    padding: 0 10px;
    margin-bottom: 24px;
}
.pricing-package-inner {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
}
.pricing-package-inner:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.14);
}

/* Ribbon 角标 */
.pricing-package-inner .ribbon-recommend {
    position: absolute;
    top: 14px;
    right: -32px;
    width: 120px;
    background: linear-gradient(135deg, #FF6B6B, #ee5a24);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
    transform: rotate(45deg);
    z-index: 5;
    box-shadow: 0 2px 6px rgba(238,90,36,0.3);
    letter-spacing: 1px;
}

/* 头部渐变 */
.package-header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 14px;
    text-align: left;
    position: relative;
}
.package-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.3;
    flex: 1;
}
.package-header h3 a { color: #fff; text-decoration: none; }
.package-header h3 a:hover { text-decoration: underline; }

/* Logo方块 */
.provider-logo {
    flex-shrink: 0;
}
.provider-logo .logo-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* 头部底色 class：在 plan-top 上添加 header-xxx 即可切换 */
.plan-top.header-dark .package-header     { background: linear-gradient(135deg, #37474F, #455A64); }
.plan-top.header-dark .package-header.package-header-blue { background: linear-gradient(135deg, #263238, #37474F); }
.plan-top.header-blue  .package-header     { background: linear-gradient(135deg, #1565C0, #1E88E5); }
.plan-top.header-blue  .package-header.package-header-blue { background: linear-gradient(135deg, #0D47A1, #1976D2); }
.plan-top.header-green .package-header     { background: linear-gradient(135deg, #2E7D32, #43A047); }
.plan-top.header-green .package-header.package-header-blue { background: linear-gradient(135deg, #1B5E20, #388E3C); }
.plan-top.header-purple .package-header    { background: linear-gradient(135deg, #6A1B9A, #8E24AA); }
.plan-top.header-purple .package-header.package-header-blue { background: linear-gradient(135deg, #4A148C, #7B1FA2); }
/* 默认兜底 */
.package-header { background: linear-gradient(135deg, #37474F, #455A64); }

/* 价格/官网行 */
.package-price {
    padding: 12px 14px 6px;
    text-align: center;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    min-height: auto;
    height: auto;
}
.package-price .package-month {
    font-size: 14px;
    font-weight: 400;
    color: #555;
}
.package-price a {
    color: #1976D2;
    font-weight: 600;
}

/* 特性列表 */
.package-top-features {
    list-style: none;
    padding: 8px 14px;
    margin: 0;
    overflow: visible;
}
.package-top-features li {
    padding: 5px 0 5px 12px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    border-bottom: 1px dashed #eee;
    position: relative;
}
.package-top-features li:last-child {
    border-bottom: none;
}
.package-top-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1976D2;
}
.feature-item {
    font-size: 14px;
    display: inline;
}
.feature-item .fa-check {
    display: none;
}
.feature-item-long {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}
/* 卡片内的链接颜色 */
.package-top-features a {
    color: #1976D2;
    font-weight: 600;
}
.package-top-features a:hover {
    color: #0D47A1;
}
.package-content a.link-blue {
    color: #1976D2;
    font-weight: 600;
}

/* 购买按钮 */
.package-buy {
    padding: 8px 16px 14px;
    text-align: center;
    height: auto;
    border-bottom: none;
}
.package-buy .btn-red {
    display: inline-block;
    padding: 8px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(229,57,53,0.3);
}
.package-buy .btn-red:hover {
    background: linear-gradient(135deg, #ef5350, #d32f2f);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(229,57,53,0.45);
    color: #fff;
    text-decoration: none;
}
.package-buy .red {
    display: block;
    margin-top: 6px;
    font-size: 12px;
}

/* plan-top 内部间距 */
.plan-top {
    padding-top: 36px;
    padding-bottom: 10px;
}
.plan-top .bodying {
    margin-bottom: 10px;
}

/* =============================================
   4. 售卖点卡片美化
   ============================================= */
.selling-point-card {
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 240px;
}
.selling-point-card:hover {
    border-color: transparent;
}
.selling-point-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin-bottom: 16px;
    font-size: 0;
}
.selling-point-icon .fa {
    font-size: 32px;
    color: #fff;
}
/* 6个不同渐变 */
.selling-point-card:nth-child(1) .selling-point-icon {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}
.selling-point-card:nth-child(2) .selling-point-icon {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}
.selling-point-card:nth-child(3) .selling-point-icon {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}
.selling-point-card:nth-child(4) .selling-point-icon {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
}
.selling-point-card:nth-child(5) .selling-point-icon {
    background: linear-gradient(135deg, #E91E63, #C2185B);
}
.selling-point-card:nth-child(6) .selling-point-icon {
    background: linear-gradient(135deg, #00BCD4, #0097A7);
}

/* =============================================
   5. 线路类型卡片美化
   ============================================= */
.line-type-card {
    border-left-width: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-left-width 0.25s;
    padding: 22px 20px;
}
.line-type-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.line-type-card .line-badge {
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 1px;
}
.line-stars {
    display: inline-flex;
    gap: 2px;
    margin-left: 8px;
    font-size: 14px;
}
.line-stars .fa-star { color: #FFB300; }
.line-stars .fa-star-o { color: #ccc; }

/* 线路配色增强 */
.line-type-cn2 { background: linear-gradient(135deg, #f0f7ff 0%, #e3f0fc 100%); }
.line-type-cuii { background: linear-gradient(135deg, #f0fdf4 0%, #e3fae8 100%); }
.line-type-cmin2 { background: linear-gradient(135deg, #fffaf0 0%, #fff3e0 100%); }
.line-type-as4837 { background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%); }

/* =============================================
   6. 机房对比表格美化
   ============================================= */
.compare-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.compare-table th {
    background: linear-gradient(135deg, #37474F, #455A64);
    color: #fff;
    font-size: 14px;
    padding: 12px 8px;
    border: none;
}
.compare-table td {
    vertical-align: middle;
    padding: 10px 8px;
    font-size: 14px;
}
.compare-table tr:hover {
    background: #f5f9ff;
}
.compare-table .td-key {
    font-weight: 700;
}
/* 机房对比表格 — 全宽左对齐 */
.compare-table-wrap {
    max-width: none;
}
/* 延迟颜色编码 */
.latency-good {
    color: #2E7D32;
    font-weight: 700;
}
.latency-medium {
    color: #E65100;
    font-weight: 700;
}

/* =============================================
   7. 选购指南卡片美化
   ============================================= */
.selection-guide-card {
    border-top: 3px solid #3498db;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.selection-guide-card:hover {
    border-color: #2980b9;
    transform: translateY(-3px);
}
.selection-guide-card .guide-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e3f2fd;
    font-size: 0;
}
.selection-guide-card .guide-icon .fa {
    font-size: 20px;
    color: #1976D2;
}
/* 各场景配色 */
.selection-guide-card:nth-child(1) { border-top-color: #2196F3; }
.selection-guide-card:nth-child(1) .guide-icon { background: #e3f2fd; }
.selection-guide-card:nth-child(1) .guide-icon .fa { color: #1976D2; }
.selection-guide-card:nth-child(2) { border-top-color: #FF9800; }
.selection-guide-card:nth-child(2) .guide-icon { background: #fff3e0; }
.selection-guide-card:nth-child(2) .guide-icon .fa { color: #F57C00; }
.selection-guide-card:nth-child(3) { border-top-color: #4CAF50; }
.selection-guide-card:nth-child(3) .guide-icon { background: #e8f5e9; }
.selection-guide-card:nth-child(3) .guide-icon .fa { color: #388E3C; }
.selection-guide-card:nth-child(4) { border-top-color: #9C27B0; }
.selection-guide-card:nth-child(4) .guide-icon { background: #f3e5f5; }
.selection-guide-card:nth-child(4) .guide-icon .fa { color: #7B1FA2; }
.selection-guide-card:nth-child(5) { border-top-color: #E91E63; }
.selection-guide-card:nth-child(5) .guide-icon { background: #fce4ec; }
.selection-guide-card:nth-child(5) .guide-icon .fa { color: #C2185B; }
.selection-guide-card:nth-child(6) { border-top-color: #00BCD4; }
.selection-guide-card:nth-child(6) .guide-icon { background: #e0f7fa; }
.selection-guide-card:nth-child(6) .guide-icon .fa { color: #0097A7; }

/* =============================================
   8. FAQ 美化
   ============================================= */
.faq-title {
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.faq-title:hover {
    color: #1976D2;
    border-left-color: #1976D2;
    padding-left: 12px;
}
.faq-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-content {
    transition: all 0.3s ease;
    border-left: 2px solid #e0e0e0;
    margin-left: 12px;
}

/* =============================================
   9. CTA 总结区美化
   ============================================= */
.cta-recommend {
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}
.cta-recommend p {
    text-indent: 0;
}
.coupon-well {
    border-radius: 10px;
    border: 2px dashed #FF9800;
    background: #fffdf5;
}

/* =============================================
   10. 顶部精选摘要美化
   ============================================= */
.ali-youhui {
    line-height: 2;
}
.ali-youhui a.link-blue:hover {
    text-decoration: underline;
}

/* =============================================
   11. 右侧导航美化
   ============================================= */
#side-nav {
    width: 240px;
    background: #fff;
    border: 1px solid #e0e0e0;
    -webkit-font-smoothing: subpixel-antialiased;
}
@media (max-width: 1200px) {
    #side-nav {
        width: 220px;
    }
}
.nav-title {
    font-weight: 700;
    letter-spacing: 1px;
}

/* =============================================
   12. 响应式微调
   ============================================= */
@media (max-width: 991px) {
    .page-header-line-title {
        font-size: 21px;
    }
    .pricing-package-inner:hover {
        transform: translateY(-3px);
    }
    .selling-point-card {
        min-height: auto;
    }
}
/* 选购指南网格 — 清除浮动，防止错行 */
.selection-guide-grid .col-md-4:nth-child(3n+1) {
    clear: both;
}
/* plan-top 定价卡片，3列布局清除浮动 */
.main-box-body .col-md-4:nth-child(3n+1) {
    clear: both;
}
@media (min-width: 768px) and (max-width: 991px) {
    .selection-guide-grid .col-sm-6:nth-child(2n+1) {
        clear: both;
    }
    .main-box-body .col-sm-6:nth-child(2n+1) {
        clear: both;
    }
}

@media (max-width: 767px) {
    .page-header-line-title {
        font-size: 19px;
    }
    .page-banner h1 {
        font-size: 22px;
    }
    .package-month {
        font-size: 18px;
    }
    .package-buy .btn-red {
        padding: 8px 28px;
        font-size: 14px;
    }
    .faq-title {
        font-size: 15px;
    }
}

/* =============================================
   Trust Strip
   ============================================= */
.trust-strip {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    color: #555;
}
.trust-strip span {
    margin: 0 20px;
}
.trust-strip i {
    color: #28a745;
    margin-right: 4px;
}
@media (max-width: 767px) {
    .trust-strip span {
        display: block;
        margin: 4px 0;
    }
}

/* =============================================
   Package Quick-Buy Strips
   ============================================= */
.package-quick-buy {
    margin-top: 8px;
}
.quick-buy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: #f9f9f9;
    border-radius: 3px;
    font-size: 13px;
}
.quick-buy-item:last-child {
    margin-bottom: 0;
}
.quick-buy-label {
    font-weight: bold;
    color: #555;
    min-width: 36px;
}
.quick-buy-spec {
    color: #333;
    flex: 1;
    padding: 0 6px;
}
.quick-buy-price {
    color: #E65100;
    font-weight: bold;
    min-width: 70px;
    text-align: right;
    padding-right: 8px;
}
.quick-buy-item .btn-xs {
    padding: 2px 10px;
    font-size: 12px;
}
.quick-buy-recommend {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
}

/* =============================================
   Mobile Sticky CTA
   ============================================= */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a237e;
    color: #fff;
    padding: 10px 15px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.mobile-sticky-cta .sticky-text {
    font-size: 14px;
}
.mobile-sticky-cta .sticky-text strong {
    color: #FFD54F;
}

/* =============================================
   搬瓦工套餐卡片 — plan-top 卡片专用
   ============================================= */
.plan-top .package-header.package-header-blue {
    background: linear-gradient(135deg, #1a73e8, #1557b0);
}
.plan-top .package-header.package-header-white {
    background: #fff;
    border: 1px solid #ccc;
}
.plan-top .package-header.package-header-white h3 a {
    color: #333 !important;
}
.plan-top .package-header.package-header-white h3 {
    font-size: 20px !important;
    line-height: 1;
}
.plan-top .package-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}
.plan-top .package-header h3 a {
    color: #fff !important;
    text-decoration: none;
}
.plan-top .provider-logo {
    flex-shrink: 0;
}
.plan-top .provider-logo .logo-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.plan-top .package-content {
    padding: 16px;
}
.plan-top .package-price {
    font-size: 14px !important;
    color: #555;
    margin-bottom: 6px;
    padding: 0 !important;
    height: auto !important;
    min-height: auto;
    line-height: 1.5;
}
.plan-top .package-price .package-month {
    font-size: 14px;
}
.plan-top .package-top-features {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 10px 0 !important;
    overflow: visible !important;
}
.plan-top .package-top-features li {
    position: relative;
    padding: 7px 0 7px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    border-bottom: 1px dashed #eee;
    overflow: visible;
}
.plan-top .package-top-features li::after {
    content: '';
    display: table;
    clear: both;
}
.plan-top .package-top-features li:last-child {
    border-bottom: none;
}
.plan-top .package-top-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0073aa;
}
.plan-top .package-top-features .feature-item {
    font-size: 14px;
}
.plan-top .package-top-features .feature-item-long {
    display: block;
    float: none;
    height: auto;
    overflow: visible;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}
.plan-top .package-top-features a {
    color: #0073aa;
}
.plan-top .package-buy {
    text-align: center;
    margin: 8px 0 0 0;
    height: auto !important;
    border-bottom: none;
    padding-top: 0;
}
.plan-top .package-buy .btn {
    display: inline-block;
    padding: 8px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}
.plan-top .package-buy .btn-red {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
}
.plan-top .package-buy .btn-red:hover {
    background: linear-gradient(135deg, #ef5350, #d32f2f);
    box-shadow: 0 3px 10px rgba(229,57,53,0.4);
}
.plan-top .package-buy .red {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
@media (max-width: 768px) {
    .plan-top .package-header {
        padding: 12px 14px;
    }
    .plan-top .package-header h3 {
        font-size: 13px !important;
    }
    .plan-top .package-content {
        padding: 14px;
    }
    .plan-top .package-top-features li {
        font-size: 12px;
    }
}

/* =============================================
   11. Related Regions Pills
   ============================================= */
.related-regions {
    padding: 30px 0;
}
.related-regions .region-link {
    display: inline-block;
    padding: 10px 22px;
    margin: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    transition: all .2s;
}
.related-regions .region-link:hover {
    background: #1a237e;
    color: #fff;
    border-color: #1a237e;
    text-decoration: none;
}

/* =============================================
   12. Summary Recommend Table
   ============================================= */
.summary-recommend thead th {
    background: linear-gradient(135deg, #1a3c5e 0%, #255d8a 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 10px;
    border: 1px solid #1e4976;
    vertical-align: middle;
    white-space: nowrap;
}
.summary-recommend tbody td {
    padding: 10px 10px;
    font-size: 13px;
    line-height: 1.6;
    vertical-align: middle;
    border-color: #dce0e6;
    color: #3d4249;
}
.summary-recommend tbody tr:hover {
    background-color: #eef3f9;
}
.summary-recommend tbody td:first-child {
    font-weight: 600;
    color: #1a3c5e;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .summary-recommend thead th,
    .summary-recommend tbody td {
        font-size: 11px;
        padding: 8px 6px;
    }
}

/* =============================================
   13. Provider Link in Quick Compare Tables
   ============================================= */
.provider-link {
    color: #2c3e50;
    border-bottom: 1px dashed #bbb;
    text-decoration: none;
}
.provider-link:hover {
    color: #337ab7;
    border-bottom-color: #337ab7;
    text-decoration: none;
}

/* =============================================
   14. Quick Compare Table
   ============================================= */
.quick-compare-table {
    font-size: 14px;
}
.quick-compare-table > tbody > tr > td {
    text-align: left;
    padding: 10px 12px;
}

/* =============================================
   15. 日韩对比表
   ============================================= */
.compare-table td:first-child {
    font-weight: 700;
    background: #f8fafc;
    white-space: nowrap;
}
.compare-table .td-japan {
    color: #1565C0;
    font-weight: 600;
}
.compare-table .td-korea {
    color: #E65100;
    font-weight: 600;
}
.quick-compare td {
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1.7;
}
.quick-compare td:first-child {
    font-weight: 700;
    background: #f0f4f8;
    width: 20%;
}
