/* ==================== 全局重置与基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #f9fafb 0%, #eef2f7 100%);
    min-height: 100vh;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: #1a3a5c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e67e22;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==================== 导航吸顶 ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 58, 92, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.4s ease;
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #f0c040;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar .nav-links a {
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 0.95em;
    position: relative;
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #f0c040;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.navbar .nav-links a:hover::after {
    width: 70%;
}

.navbar .search-box {
    display: flex;
    gap: 5px;
}

.navbar .search-box input {
    padding: 6px 14px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    outline: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    width: 160px;
}

.navbar .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar .search-box input:focus {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(240, 192, 64, 0.4);
}

.navbar .search-box button {
    padding: 6px 16px;
    background: linear-gradient(135deg, #e67e22, #f0c040);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.navbar .search-box button:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.navbar .mobile-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.navbar .mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-toggle {
    cursor: pointer;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f0c040, #e67e22);
    color: #1a3a5c;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1em;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    margin-left: 8px;
}

.dark-toggle:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.4);
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        background: rgba(26, 58, 92, 0.96);
        backdrop-filter: blur(12px);
        border-radius: 12px;
        padding: 12px 0;
    }
    .navbar .nav-links.active {
        display: flex;
    }
    .navbar .nav-links a {
        padding: 10px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .navbar .nav-links a:last-child {
        border-bottom: none;
    }
    .navbar .search-box {
        width: 100%;
        margin-top: 10px;
    }
    .navbar .search-box input {
        width: 100%;
    }
    .navbar .mobile-toggle {
        display: block;
    }
    .navbar .logo {
        font-size: 1.2em;
    }
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1a3a5c, #2a5a8c);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0.8;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 28px rgba(26, 58, 92, 0.4);
}

/* ==================== Banner轮播 ==================== */
.banner {
    position: relative;
    overflow: hidden;
    height: 420px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.banner .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

.banner .slide.active {
    opacity: 1;
    transform: scale(1);
}

.banner .slide:nth-child(1) {
    background: linear-gradient(135deg, #0f1f33 0%, #1a3a5c 40%, #2a5a8c 100%);
}

.banner .slide:nth-child(2) {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 50%, #3a7aac 100%);
}

.banner .slide:nth-child(3) {
    background: linear-gradient(135deg, #2a5a8c 0%, #3a7aac 50%, #5a9acf 100%);
}

.banner .slide .text {
    text-align: center;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 80%;
}

.banner .slide .text small {
    display: block;
    font-size: 0.45em;
    font-weight: normal;
    margin-top: 12px;
    opacity: 0.9;
    letter-spacing: 2px;
}

.banner .controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.banner .controls span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.banner .controls span.active {
    background: #f0c040;
    border-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(240, 192, 64, 0.6);
}

.banner .controls span:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .banner {
        height: 280px;
        border-radius: 0 0 16px 16px;
    }
    .banner .slide {
        font-size: 1.4em;
    }
    .banner .slide .text {
        padding: 20px;
        max-width: 90%;
    }
}

/* ==================== 通用模块 ==================== */
.section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.section h2 {
    font-size: 1.8em;
    color: #1a3a5c;
    border-left: 6px solid #e67e22;
    padding-left: 18px;
    margin-bottom: 22px;
    position: relative;
    transition: color 0.4s ease;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #f0c040, #e67e22);
    border-radius: 2px;
}

.section h3 {
    font-size: 1.4em;
    color: #2a5a8c;
    margin-top: 24px;
    margin-bottom: 12px;
    transition: color 0.4s ease;
}

.section h4 {
    font-size: 1.2em;
    color: #3a5a7c;
    margin-top: 16px;
    margin-bottom: 8px;
    transition: color 0.4s ease;
}

.section p {
    margin-bottom: 16px;
    text-align: justify;
    line-height: 1.9;
}

.section ul,
.section ol {
    margin-left: 22px;
    margin-bottom: 16px;
}

.section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.grid-2,
.grid-3 {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .section {
        padding: 20px;
        border-radius: 14px;
    }
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .section h2 {
        font-size: 1.4em;
    }
}

/* ==================== 卡片 ==================== */
.card {
    background: rgba(240, 244, 248, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: default;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26, 58, 92, 0.12);
    border-color: rgba(230, 126, 34, 0.2);
}

.card svg {
    width: 48px;
    height: 48px;
    fill: #1a3a5c;
    margin-bottom: 14px;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.card:hover svg {
    fill: #e67e22;
    transform: scale(1.08);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.15em;
}

.card p {
    font-size: 0.95em;
    color: #555;
    transition: color 0.4s ease;
}

/* ==================== FAQ ==================== */
.faq-item {
    border-bottom: 1px solid rgba(224, 230, 237, 0.7);
    padding: 16px 0;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

.faq-item:hover {
    background: rgba(240, 244, 248, 0.4);
}

.faq-item .question {
    font-weight: bold;
    color: #1a3a5c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05em;
    transition: color 0.3s ease;
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    margin-top: 0;
    color: #555;
    line-height: 1.8;
    padding: 0 8px;
}

.faq-item.active .answer {
    max-height: 600px;
    margin-top: 14px;
    padding: 8px 8px 4px;
}

.faq-item .toggle {
    font-size: 1.6em;
    font-weight: 300;
    color: #e67e22;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .toggle {
    transform: rotate(45deg);
}

/* ==================== 数字动画 ==================== */
.stat-number {
    font-size: 2.4em;
    font-weight: bold;
    color: #e67e22;
    display: inline-block;
    min-width: 80px;
    text-shadow: 0 2px 8px rgba(230, 126, 34, 0.15);
}

/* ==================== 暗黑模式 ==================== */
body.dark-mode {
    background: linear-gradient(135deg, #0d1117 0%, #121826 100%);
    color: #e0e0e0;
}

body.dark-mode .section {
    background: rgba(30, 30, 38, 0.88);
    backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .navbar {
    background: rgba(10, 20, 30, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

body.dark-mode .card {
    background: rgba(42, 42, 50, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .card p {
    color: #bbb;
}

body.dark-mode .faq-item {
    border-color: rgba(51, 51, 60, 0.8);
}

body.dark-mode .faq-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .faq-item .answer {
    color: #aaa;
}

body.dark-mode .back-to-top {
    background: linear-gradient(135deg, #e67e22, #f0c040);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .section h2,
body.dark-mode .section h3,
body.dark-mode .section h4 {
    color: #c8d6e5;
}

body.dark-mode .stat-number {
    color: #f0c040;
}

body.dark-mode .banner .slide .text {
    background: rgba(0, 0, 0, 0.35);
}

/* ==================== 滚动动画 ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== 文章列表 ==================== */
.article-item {
    padding: 18px 0;
    border-bottom: 1px dashed rgba(221, 221, 221, 0.6);
    transition: padding-left 0.3s ease;
}

.article-item:last-child {
    border: none;
}

.article-item:hover {
    padding-left: 8px;
}

.article-item .date {
    color: #888;
    font-size: 0.9em;
    display: block;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.article-item h4 {
    margin: 6px 0;
    font-size: 1.1em;
}

.article-item h4 a {
    color: #1a3a5c;
    transition: color 0.3s ease;
}

.article-item h4 a:hover {
    color: #e67e22;
}

.article-item p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

/* ==================== 合作伙伴logo ==================== */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 16px 0;
}

.partner-logos svg {
    width: 80px;
    height: 40px;
    fill: #aaa;
    transition: fill 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.partner-logos svg:hover {
    fill: #e67e22;
    transform: scale(1.06);
}

/* ==================== 页脚 ==================== */
footer {
    background: linear-gradient(135deg, #0f1f33 0%, #1a3a5c 100%);
    color: #ccc;
    padding: 40px 20px 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: #f0c040;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

footer .footer-grid h4 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 8px;
}

footer .footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #f0c040;
    border-radius: 2px;
}

footer .footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .footer-grid li {
    margin-bottom: 8px;
}

footer .footer-grid p {
    margin-bottom: 6px;
    font-size: 0.95em;
}

footer .copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(42, 90, 140, 0.5);
    margin-top: 30px;
    font-size: 0.9em;
    color: #999;
}

footer .copyright p {
    margin-bottom: 4px;
}

/* ==================== 响应式微调 ==================== */
@media (max-width: 576px) {
    .container {
        padding: 12px;
    }
    .banner .slide {
        font-size: 1.1em;
    }
    .banner .slide .text {
        padding: 14px 18px;
    }
    .back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1.4em;
        bottom: 20px;
        right: 20px;
    }
    footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* ==================== 选择文本样式 ==================== */
::selection {
    background: rgba(230, 126, 34, 0.3);
    color: #1a3a5c;
}

/* ==================== 滚动条美化 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a3a5c, #2a5a8c);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2a5a8c, #3a7aac);
}