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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf8 100%);
    color: #1a1a2e;
    line-height: 1.7;
    min-height: 100vh;
    transition: background 0.4s ease, color 0.4s ease;
}

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

a:hover {
    color: #f7c948;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 导航吸顶 ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(247, 201, 72, 0.15);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.navbar .logo span {
    color: #f7c948;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s;
}

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

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

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

.search-box {
    display: flex;
    gap: 6px;
    align-items: center;
}

.search-box input {
    padding: 8px 16px;
    border: 1px solid rgba(247, 201, 72, 0.3);
    border-radius: 24px;
    background: rgba(42, 42, 74, 0.8);
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    width: 180px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input::placeholder {
    color: #aaa;
}

.search-box input:focus {
    border-color: #f7c948;
    box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.15);
}

.search-box button {
    padding: 8px 18px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #f7c948, #f5a623);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(247, 201, 72, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #f7c948;
    color: #f7c948;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: rgba(247, 201, 72, 0.1);
}

.dark-toggle {
    background: none;
    border: 1px solid #f7c948;
    color: #f7c948;
    padding: 6px 14px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.dark-toggle:hover {
    background: rgba(247, 201, 72, 0.15);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        gap: 12px;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(12px);
        border-radius: 12px;
        padding: 16px;
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .search-box {
        width: 100%;
        margin-top: 10px;
    }
    .search-box input {
        flex: 1;
        width: auto;
    }
    .navbar .container {
        gap: 6px;
    }
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: rgba(234, 234, 242, 0.8);
    backdrop-filter: blur(8px);
    padding: 12px 0;
    font-size: 0.9rem;
    color: #555;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.breadcrumb a {
    color: #1a1a2e;
    font-weight: 500;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* ===== Banner 渐变轮播 ===== */
.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(247, 201, 72, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
    animation: bannerGlow 12s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.05); }
}

.banner-slides {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    position: relative;
    z-index: 1;
}

.banner-slide {
    min-width: 100%;
    padding: 70px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.banner-slide h1 {
    font-size: 2.6rem;
    margin-bottom: 18px;
    color: #f7c948;
    text-shadow: 0 4px 20px rgba(247, 201, 72, 0.3);
    letter-spacing: 2px;
    animation: fadeUp 0.8s ease;
}

.banner-slide p {
    font-size: 1.15rem;
    max-width: 700px;
    margin-bottom: 20px;
    color: #ddd;
    animation: fadeUp 0.8s ease 0.1s both;
}

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

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

.banner-dots button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #f7c948;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.banner-dots button.active {
    background: #f7c948;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(247, 201, 72, 0.5);
}

/* ===== 通用区块 ===== */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 36px;
    color: #1a1a2e;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #f7c948, #f5a623);
    margin: 12px auto 0;
    border-radius: 4px;
}

/* ===== 网格布局 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== 卡片 - 毛玻璃圆角 ===== */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, background 0.3s;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.85);
}

.card h3 {
    color: #1a1a2e;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.card p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.card ul, .card ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.card li {
    margin-bottom: 6px;
    color: #444;
    font-size: 0.95rem;
}

/* ===== SVG 占位 ===== */
.svg-placeholder {
    background: linear-gradient(135deg, #e8ecf8, #dde2f0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 16px;
    transition: transform 0.3s;
}

.card:hover .svg-placeholder {
    transform: scale(1.02);
}

/* ===== 统计数字 ===== */
.stats {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}

.stats .grid-3 {
    color: #fff;
}

.stat-item {
    font-size: 2.2rem;
    font-weight: 800;
    color: #f7c948;
    text-shadow: 0 2px 12px rgba(247, 201, 72, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    margin-top: 8px;
    font-weight: 500;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 16px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1a1a2e;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 0;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #f7c948;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #f7c948;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.open .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease;
    padding: 0 0 0 12px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 12px 0 12px 12px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #f7c948;
    border: 2px solid #f7c948;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #f7c948;
    color: #1a1a2e;
    transform: scale(1.1);
}

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

body.dark .navbar {
    background: rgba(13, 13, 26, 0.9);
    border-bottom-color: rgba(247, 201, 72, 0.1);
}

body.dark .breadcrumb {
    background: rgba(30, 30, 40, 0.8);
    color: #bbb;
}

body.dark .breadcrumb a {
    color: #f7c948;
}

body.dark .card {
    background: rgba(30, 30, 40, 0.7);
    backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}

body.dark .card:hover {
    background: rgba(40, 40, 55, 0.85);
}

body.dark .card h3 {
    color: #f7c948;
}

body.dark .card p,
body.dark .card li {
    color: #ccc;
}

body.dark .section-title {
    color: #f7c948;
}

body.dark .faq-question {
    color: #f7c948;
}

body.dark .faq-answer {
    color: #bbb;
}

body.dark .faq-item {
    border-color: rgba(255,255,255,0.08);
}

body.dark .banner {
    background: linear-gradient(135deg, #0a0a1a, #10102a, #0a0a1a);
}

body.dark .svg-placeholder {
    background: linear-gradient(135deg, #1e1e30, #2a2a40);
    color: #aaa;
}

body.dark .article-item {
    border-color: rgba(255,255,255,0.08);
}

body.dark .article-item h4 {
    color: #f7c948;
}

body.dark .article-item p {
    color: #bbb;
}

body.dark .contact-info strong {
    color: #f7c948;
}

body.dark .stats {
    background: linear-gradient(135deg, #0a0a1a, #141430);
}

/* ===== 滚动动画 ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

.article-item h4 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 6px;
    font-weight: 600;
}

.article-item h4 a {
    color: inherit;
}

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

.article-item .meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.article-item p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== 联系方式 ===== */
.contact-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-info strong {
    color: #1a1a2e;
    font-weight: 600;
}

/* ===== 页脚 ===== */
footer {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1f);
    color: #ccc;
    padding: 48px 0 24px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
    margin-bottom: 32px;
}

.footer-grid h4 {
    color: #f7c948;
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 700;
}

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

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

.footer-grid a {
    color: #ccc;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-grid a:hover {
    color: #f7c948;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #f7c948;
}

/* ===== 友情链接 ===== */
#links a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(247, 201, 72, 0.1);
    transition: background 0.3s, transform 0.2s;
}

#links a:hover {
    background: rgba(247, 201, 72, 0.25);
    transform: translateY(-2px);
}

body.dark #links a {
    color: #f7c948;
    background: rgba(247, 201, 72, 0.08);
}

body.dark #links a:hover {
    background: rgba(247, 201, 72, 0.2);
}

/* ===== 网站地图 ===== */
#sitemap ul {
    list-style: none;
}

#sitemap ul li {
    margin-bottom: 8px;
}

#sitemap ul li a {
    font-size: 0.95rem;
    padding: 4px 0;
    display: inline-block;
    position: relative;
}

#sitemap ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #f7c948;
    transition: width 0.3s;
}

#sitemap ul li a:hover::after {
    width: 100%;
}

/* ===== 响应式微调 ===== */
@media (max-width: 480px) {
    .banner-slide h1 {
        font-size: 1.8rem;
    }
    .banner-slide p {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .card {
        padding: 20px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ===== 其他辅助 ===== */
::selection {
    background: rgba(247, 201, 72, 0.3);
    color: #1a1a2e;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}