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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3436;
    background: #f4f6fb;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

/* 链接 */
a {
    color: #0984e3;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #6c5ce7;
}

/* 导航栏 */
#top-nav {
    background: rgba(26, 58, 92, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: background 0.3s, box-shadow 0.3s;
}

#top-nav.sticky {
    background: rgba(26, 58, 92, 0.95);
    box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.03);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fdcb6e;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

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

.nav-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.nav-actions button {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    backdrop-filter: blur(4px);
}

.nav-actions button:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

#search-box {
    width: 100%;
    max-width: 1200px;
    margin: 0.8rem auto 0;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    display: flex;
    gap: 0.5rem;
    transition: all 0.3s;
}

#search-box input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.85);
    font-size: 1rem;
    outline: none;
    transition: background 0.3s;
}

#search-box input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(253, 203, 110, 0.4);
}

#search-box button {
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

#search-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 112, 85, 0.4);
}

/* 面包屑 */
nav[aria-label="面包屑导航"] {
    max-width: 1200px;
    margin: 0.5rem auto;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    color: #636e72;
}

nav[aria-label="面包屑导航"] ol {
    list-style: none;
    display: flex;
    gap: 0.5rem;
}

nav[aria-label="面包屑导航"] a {
    color: #0984e3;
}

/* Banner 轮播 */
#banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0c2461, #1e3799, #0a3d62);
    color: #fff;
    text-align: center;
    padding: 5rem 1.5rem;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.banner-slide {
    display: none;
    animation: fadeSlide 0.8s ease;
}

.banner-slide.active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-slide h1 {
    font-size: 2.8rem;
    margin: 0 0 0.8rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #fdcb6e, #e17055, #fdcb6e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-slide p {
    font-size: 1.3rem;
    margin: 0 0 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(225, 112, 85, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(225, 112, 85, 0.5);
    color: #fff;
}

.banner-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
}

.banner-controls button {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 30px;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.2s;
}

.banner-controls button:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.08);
}

.banner-dots {
    display: flex;
    gap: 0.4rem;
}

.banner-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.banner-dots span.active {
    background: #fdcb6e;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(253, 203, 110, 0.6);
}

/* 通用section */
section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: sectionFade 0.6s ease;
}

@keyframes sectionFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a5c;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(135deg, #1a3a5c, #0984e3) 1;
    padding-bottom: 0.7rem;
    margin: 2.5rem 0 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    border-radius: 4px;
}

h3 {
    margin: 1.5rem 0 0.8rem;
    color: #1a3a5c;
    font-weight: 600;
    font-size: 1.3rem;
}

/* 卡片风格 (用于多个section内的div) */
section > div {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.8rem 2rem;
    margin: 1.2rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.3);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

section > div:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.85);
}

/* 列表样式 */
ul {
    padding-left: 1.5rem;
    list-style: none;
}

ul li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.5rem;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #0984e3;
    font-weight: bold;
}

/* blockquote */
blockquote {
    border-left: 5px solid #0984e3;
    padding: 1rem 1.5rem;
    margin: 1.2rem 0;
    background: rgba(9, 132, 227, 0.06);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    transition: background 0.3s;
}

blockquote:hover {
    background: rgba(9, 132, 227, 0.1);
}

/* FAQ */
#faq h3 {
    cursor: pointer;
    background: rgba(9, 132, 227, 0.06);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    transition: background 0.3s, padding-left 0.3s;
    position: relative;
}

#faq h3:hover {
    background: rgba(9, 132, 227, 0.12);
    padding-left: 1.6rem;
}

#faq div[itemprop="acceptedAnswer"] {
    display: none;
    padding: 0.8rem 1.2rem 1.2rem;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
    border-radius: 0 0 12px 12px;
    margin-top: -0.3rem;
    border-left: 3px solid #0984e3;
}

/* 新闻文章 */
article {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}

article h3 {
    margin-top: 0;
    color: #1a3a5c;
}

article time {
    display: block;
    font-size: 0.85rem;
    color: #636e72;
    margin-bottom: 0.5rem;
}

article a {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #0984e3;
    transition: color 0.2s;
}

article a:hover {
    color: #6c5ce7;
}

/* 联系我们 */
#contact p {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(6px);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    margin: 0.6rem 0;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
}

#contact p:hover {
    background: rgba(255,255,255,0.7);
}

/* 网站地图 & 友情链接 */
#sitemap ul, #links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    padding: 0;
}

#sitemap ul li, #links ul li {
    padding: 0;
}

#sitemap ul li::before, #links ul li::before {
    content: none;
}

#sitemap a, #links a {
    padding: 0.3rem 0.8rem;
    background: rgba(9, 132, 227, 0.06);
    border-radius: 20px;
    transition: background 0.3s, color 0.3s;
}

#sitemap a:hover, #links a:hover {
    background: rgba(9, 132, 227, 0.15);
    color: #0984e3;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a3a5c, #0c2461);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 40px 40px 0 0;
    margin-top: 3rem;
}

footer a {
    color: #fdcb6e;
    transition: color 0.2s;
}

footer a:hover {
    color: #e17055;
}

footer p {
    margin: 0.4rem 0;
}

/* 返回顶部 */
#back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background: linear-gradient(135deg, #1a3a5c, #0984e3);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    z-index: 999;
    display: none;
}

#back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #0984e3, #6c5ce7);
}

/* 暗黑模式 */
body.dark-mode {
    background: #0f0f1a;
    color: #e0e0e0;
}

body.dark-mode #top-nav {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(12px);
}

body.dark-mode #top-nav.sticky {
    background: rgba(15, 15, 26, 0.95);
}

body.dark-mode section > div {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border-color: rgba(255,255,255,0.08);
}

body.dark-mode section > div:hover {
    background: rgba(255,255,255,0.1);
}

body.dark-mode h2 {
    color: #fdcb6e;
    border-image: linear-gradient(135deg, #fdcb6e, #e17055) 1;
}

body.dark-mode h3 {
    color: #fdcb6e;
}

body.dark-mode blockquote {
    background: rgba(253, 203, 110, 0.06);
    border-left-color: #fdcb6e;
}

body.dark-mode #faq h3 {
    background: rgba(253, 203, 110, 0.06);
}

body.dark-mode #faq h3:hover {
    background: rgba(253, 203, 110, 0.12);
}

body.dark-mode #faq div[itemprop="acceptedAnswer"] {
    background: rgba(255,255,255,0.04);
    border-left-color: #fdcb6e;
}

body.dark-mode article {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

body.dark-mode article h3 {
    color: #fdcb6e;
}

body.dark-mode #contact p {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

body.dark-mode footer {
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
}

body.dark-mode #sitemap a, body.dark-mode #links a {
    background: rgba(253, 203, 110, 0.06);
    color: #fdcb6e;
}

body.dark-mode #sitemap a:hover, body.dark-mode #links a:hover {
    background: rgba(253, 203, 110, 0.15);
}

body.dark-mode .nav-links a {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .banner-dots span.active {
    background: #e17055;
    box-shadow: 0 0 12px rgba(225, 112, 85, 0.6);
}

/* 移动菜单 */
#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    #menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26, 58, 92, 0.9);
        backdrop-filter: blur(12px);
        padding: 1rem 0;
        border-radius: 16px;
        margin-top: 0.8rem;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 0.6rem 0;
    }

    .nav-links a {
        padding: 0.4rem 0;
        display: block;
    }

    .banner-slide h1 {
        font-size: 1.8rem;
    }

    .banner-slide p {
        font-size: 1rem;
    }

    #banner {
        padding: 3rem 1rem;
        min-height: 280px;
        border-radius: 0 0 24px 24px;
    }

    section {
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    section > div {
        padding: 1.2rem 1.2rem;
    }

    #back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.6rem 0.9rem;
        font-size: 1.2rem;
    }

    footer {
        padding: 1.5rem 1rem;
        border-radius: 24px 24px 0 0;
    }

    #sitemap ul, #links ul {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 769px) {
    #menu-toggle {
        display: none;
    }
}

/* 滚动动画支持 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 通用hover效果 */
button, .btn, a {
    cursor: pointer;
}

/* 选择文本样式 */
::selection {
    background: #fdcb6e;
    color: #1a3a5c;
}

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

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a3a5c, #0984e3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0984e3, #6c5ce7);
}