/* 基础重置与变量 - 为兼容IE11使用具体颜色值而不是变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0f4f8; /* 原var(--text-light) */
    background-color: #0f1a2a; /* 原var(--bg-dark) */
    overflow-x: hidden;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* IE11特定样式 */
.ie11 body {
    font-family: Tahoma, Geneva, Verdana, sans-serif;
    color: #f0f4f8;
    background-color: #0f1a2a;
}

ul, li, dl, dd {
    margin: 0px;
    padding: 0px;
    list-style-type: none;
}

a {
    color: #cbd5e1; /* 原var(--text-gray) */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1bba9a; /* 原var(--primary-color) */
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.jcn-d-none {
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

.bg-black {
    background-color: #000;
}

.font-weight-bold {
    font-weight: 600;
}

.fontsize-14 {
    font-size: 14px;
}

.fontsize-16 {
    font-size: 16px;
}

.fontsize-18 {
    font-size: 18px;
}

.fontsize-20 {
    font-size: 20px;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.popup-mask {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 100;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.load-state {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 200;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
}

.load-state div {
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 14px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.7);
}

.toast-view {
    position: fixed;
    z-index: 1100;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: center;
    align-items: start;
}

.toast-view div {
    display: none;
    margin-top: 150px;
    padding: 8px 15px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.6);
}

section {
    padding: 2rem 0;
    padding-bottom: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-block;
    color: #f0f4f8; /* 原var(--text-light) */
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, transparent, #1bba9a, transparent);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    background-color: #169c80; /* 原var(--primary-color) */
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(27, 186, 154, 0.2);
}

.btn:hover {
    background-color: #169c80; /* 原var(--primary-dark) */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(27, 186, 154, 0.3);
    color: white;
}

/* 导航栏 */
.navbar {
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    height: 81px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1bba9a;
    letter-spacing: 0.5px;
}

.logo i {
    margin-right: 5px;
    font-size: 1.8rem;
    vertical-align: -5%;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: #cbd5e1; /* 原var(--text-gray) */
}

.nav-links a:hover {
    color: #1bba9a; /* 原var(--primary-color) */
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #f0f4f8; /* 原var(--text-light) */
    font-size: 1.5rem;
    cursor: pointer;
}

/* 页脚 */
.footer {
    padding: 30px 0px;
    line-height: 40px;
    font-size: 0.95rem;
    background-color: #0a121f;
    color: #b0b7c3;
}

.footer a {
    color: #b0b7c3;
}

.footer a:hover {
    color: #1bba9a;
}

.footer-column {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column i {
    margin-right: 10px;
    color: #1bba9a;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-qr li {
    width: 105px;
}

.footer-qr img {
    width: 105px;
}

.footer-onclick {
    cursor: pointer;
    color: #b0b7c3;
}

.footer-onclick:hover {
    color: #1bba9a;
}

.footer-links {
    margin-top: 20px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px dotted #333333;
}

.footer-links ul li {
    line-height: 30px;
}

.footer-copyright {
    background-color: #0a121f;
    color: #b0b7c3;
    font-size: 14px;
    text-align: center;

}

.footer-copyright-div {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #233142;
}

.footer-copyright-div ul {
    padding: 20px 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-copyright-div ul li {
    margin: 0 5px;
}

.footer-copyright a {
    color: #b0b7c3;
    font-size: 14px;
}

.footer-copyright a:hover {
    color: #1bba9a;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #0f1a2a; /* 原var(--bg-dark) */
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-top: 1px solid #2d3748; /* 原var(--border-color) */
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-links li {
        margin: 0 0 1.5rem 0;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        text-align: center;
    }

    .nav-links.active {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-column ul {
        min-width: 50%;
    }
}

/* IE11 特定兼容性样式 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE11特定的全局修复 */
    body {
        color: #f0f4f8;
        background-color: #0f1a2a;
    }

    /* 修复按钮悬停效果 */
    .btn:hover {
        background-color: #169c80;
        margin-top: -3px;
        margin-bottom: 3px;
    }
}