/* 页面标题区域 */
.page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
    background-color: #0f1a2a;
    background-image: linear-gradient(to top, #0f1a2a 0%, transparent 100%),
    url('../../images/banner/banner-background2.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    background-attachment: unset;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 26, 42, 0);
    z-index: 1;
}

.ie11 .page-header::before {
    background-color: rgba(15, 26, 42, 0);
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 2rem;
    margin-bottom: 1rem;
    color: #f0f4f8;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 0.5rem 2rem;
    border-radius: 50px;
}

.btn-secondary {
    padding: 6px 0 !important;
    font-size: 1rem;
    background-color: transparent;
    border: 2px solid #1bba9a; /* 原var(--primary-color) */
    color: #1bba9a; /* 原var(--primary-color) */
}

.order-btn {
    padding: 6px 0 !important;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(27, 186, 154, 0.1);
}

/* 价格区域 */
.pricing-section {
    background-color: rgba(15, 26, 42, 0.7);
}

/* IE11修复：使用不透明背景 */
.ie11 .pricing-section {
    background-color: #0c1522;
}

.pricing-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1; /* 原var(--text-gray) */
    font-size: 1.1rem;
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem -1rem 0;
}

.pricing-card {
    background: #16253d; /* 原var(--bg-card) */
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #2d3748; /* 原var(--border-color) */
    transition: all 0.4s ease;
    width: calc(33.333% - 2rem);
    margin: 0 1rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 修复价格卡片的悬停效果 */
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: #1bba9a; /* 原var(--primary-color) */
}

.pricing-card.popular {
    border: 2px solid #1bba9a; /* 原var(--primary-color) */
    position: relative;
}

.pricing-card.popular::before {
    content: '最受欢迎';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1bba9a; /* 原var(--primary-color) */
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid #2d3748; /* 原var(--border-color) */
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f4f8; /* 原var(--text-light) */
    margin-bottom: 0.5rem;
}

.pricing-desc {
    font-size: 0.95rem;
    color: #cbd5e1; /* 原var(--text-gray) */
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
}

.monthly-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1bba9a; /* 原var(--primary-color) */
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: #cbd5e1; /* 原var(--text-gray) */
    margin-top: 0.3rem;
}

/* 价格显示控制样式 */
.yearly-price,
.yearly-save {
    display: none;
}

.yearly-view .monthly-price,
.yearly-view .yearly-note {
    display: none;
}

.yearly-view .yearly-price,
.yearly-view .yearly-save {
    display: block;
}

.yearly-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1bba9a;
    line-height: 1;
}

.yearly-save {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.yearly-save span {
    color: #1bba9a;
    font-weight: 600;
}

.yearly-note {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.yearly-note span {
    color: #1bba9a;
    font-weight: 600;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    padding: 0.7rem 0;
    color: #cbd5e1; /* 原var(--text-gray) */
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: #1bba9a; /* 原var(--primary-color) */
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.pricing-actions {
    text-align: center;
    margin-top: auto;
}

.pricing-buttons {
    display: flex;
    margin-bottom: 1rem;
    /* 修复按钮间距 */
    gap: 1rem;
    justify-content: space-between;
}

/* 修复IE11中的按钮间距 */
.ie11 .pricing-buttons .btn {
    margin-right: 1rem;
}

.ie11 .pricing-buttons .btn:last-child {
    margin-right: 0;
}

.pricing-buttons .btn {
    flex: 1;
    padding: 0.75rem 1rem;
}

.pricing-note {
    font-size: 0.85rem;
    color: #cbd5e1; /* 原var(--text-gray) */
    margin-top: 0.5rem;
}

/* 价格切换控件 */
.pricing-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.view-toggle {
    display: flex;
    align-items: center;
    background-color: rgba(22, 37, 61, 0.6);
    border-radius: 50px;
    padding: 0.3rem;
    border: 1px solid #2d3748; /* 原var(--border-color) */
}

.view-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: none;
    border: none;
    color: #cbd5e1; /* 原var(--text-gray) */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.view-btn i {
    margin-right: 0.5rem;
}


.view-btn.active {
    background-color: #1bba9a; /* 原var(--primary-color) */
    color: white;
}

/* FAQ区域美化 */
.faq-section {
    background: linear-gradient(to bottom, #0a1522 0%, #0f1a2a 100%);
    padding: 5rem 0;
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27, 186, 154, 0.5), transparent);
}

.faq-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1; /* 原var(--text-gray) */
    font-size: 1.1rem;
    line-height: 1.7;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(145deg, rgba(22, 37, 61, 0.8), rgba(15, 26, 42, 0.8));
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45, 55, 72, 0.3); /* 原var(--border-color) */
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.faq-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(27, 186, 154, 0.3);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #f0f4f8; /* 原var(--text-light) */
    font-weight: 600;
    display: flex;
    align-items: center;
}

.faq-question h3 i {
    color: #1bba9a; /* 原var(--primary-color) */
    margin-right: 1rem;
    font-size: 1.1rem;
}

.faq-toggle {
    color: #1bba9a; /* 原var(--primary-color) */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: rgba(27, 186, 154, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: rgba(27, 186, 154, 0.2);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

.faq-answer p {
    color: #cbd5e1; /* 原var(--text-gray) */
    line-height: 1.6;
    margin: 1rem 0;
}

.faq-answer ul {
    list-style: none;
    margin-bottom: 1rem;
}

.faq-answer ul li {
    color: #cbd5e1; /* 原var(--text-gray) */
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.faq-answer ul li:before {
    content: "✓";
    color: #1bba9a; /* 原var(--primary-color) */
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 992px) {
    .page-header h1 {
        font-size: 2.2rem;
    }

    .pricing-card {
        width: calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding-top: 8rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .pricing-card {
        width: 100%;
        margin: 0 0 2rem 0;
    }

    .pricing-container {
        margin: 0;
    }

    .pricing-card:hover,
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

    /* 移动端价格按钮间距修复 */
    .pricing-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ie11 .pricing-buttons .btn {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }

    .ie11 .pricing-buttons .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .pricing-card {
        padding: 1.5rem;
        padding-top: 2rem;
    }
}

/* IE11 特定兼容性样式 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .banner::before {
        background-color: #0f1a2a;
        opacity: 0.95;
    }

    .pricing-section,
    .faq-section {
        background-color: #0c1522;
    }

    /* 修复卡片背景和文字颜色 */
    .pricing-card,
    .faq-item {
        background-color: #16253d;
        color: #cbd5e1;
    }

    .pricing-name,
    .faq-question h3 {
        color: #f0f4f8;
    }

    .pricing-desc,
    .faq-answer p {
        color: #cbd5e1;
    }

    /* 修复价格卡片悬停效果 */
    .pricing-card:hover {
        border-color: #1bba9a;
        margin-top: -10px;
        margin-bottom: 30px;
    }

    .pricing-card.popular:hover {
        border-color: #1bba9a;
        margin-top: -10px;
        margin-bottom: 30px;
    }

    /* 修复按钮间距 */
    .pricing-buttons .btn {
        margin-right: 1rem;
    }

    .pricing-buttons .btn:last-child {
        margin-right: 0;
    }

    /* 修复Flexbox布局 */
    .pricing-container {
        display: -ms-flexbox;
        -ms-flex-wrap: wrap;
    }

    /* 修复FAQ展开效果 */
    .faq-answer {
        display: none;
    }

    .faq-item.active .faq-answer {
        display: block;
    }
}