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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #1a5276;
}

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

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

/* 导航吸顶 - 毛玻璃效果 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.3s;
}

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

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ecf0f1;
}

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

.navbar .nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.navbar .nav-links a {
    color: #ecf0f1;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.navbar .nav-links a:hover {
    background: #34495e;
    text-decoration: none;
}

.navbar .search-box {
    display: flex;
    align-items: center;
    background: rgba(52, 73, 94, 0.7);
    border-radius: 6px;
    padding: 4px 10px;
    backdrop-filter: blur(4px);
}

.navbar .search-box input {
    border: none;
    background: transparent;
    color: #ecf0f1;
    padding: 6px 8px;
    outline: none;
    width: 160px;
    font-size: 0.9rem;
}

.navbar .search-box input::placeholder {
    color: #95a5a6;
}

.navbar .search-box button {
    background: #f1c40f;
    border: none;
    color: #2c3e50;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.navbar .search-box button:hover {
    background: #d4ac0d;
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.8rem;
    cursor: pointer;
}

/* 返回顶部 - 毛玻璃+渐变 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(44, 62, 80, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #34495e;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Banner轮播 - 渐变背景 */
.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
    color: #fff;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.banner-slides {
    display: flex;
    transition: transform 0.6s ease;
}

.banner-slide {
    min-width: 100%;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.banner-slide .text {
    flex: 1;
    min-width: 280px;
}

.banner-slide h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #f1c40f;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-slide p {
    font-size: 1.1rem;
    max-width: 500px;
    color: #bdc3c7;
}

.banner-slide .svg-box {
    flex: 0 0 200px;
    height: 200px;
}

.banner .dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner .dots span {
    width: 12px;
    height: 12px;
    background: #7f8c8d;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.banner .dots span.active {
    background: #f1c40f;
    transform: scale(1.2);
}

.banner .prev, .banner .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.banner .prev:hover, .banner .next:hover {
    background: rgba(0,0,0,0.6);
    transform: translateY(-50%) scale(1.1);
}

.banner .prev { left: 12px; }
.banner .next { right: 12px; }

/* 通用模块 */
.section {
    padding: 40px 0;
    border-bottom: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
    border-left: 6px solid #f1c40f;
    padding-left: 16px;
    transition: color 0.3s;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-top: -20px;
    margin-bottom: 30px;
}

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

/* 卡片 - 毛玻璃+圆角+悬停动画 */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.9);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #2c3e50;
}

.card p {
    color: #555;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 4px 4px 4px 0;
    transition: background 0.2s;
}

.tag:hover {
    background: #f1c40f;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #2c3e50;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(241, 196, 15, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #d4ac0d, #e67e22);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #f1c40f;
    color: #f1c40f;
    box-shadow: none;
}

.btn-outline:hover {
    background: #f1c40f;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(241, 196, 15, 0.3);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid #e9ecef;
    padding: 16px 0;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(241, 196, 15, 0.05);
}

.faq-question {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
    transition: color 0.2s;
}

.faq-question::after {
    content: "+";
    font-size: 1.6rem;
    color: #f1c40f;
    transition: transform 0.3s, color 0.2s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding-top: 0;
    color: #555;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding-top: 16px;
}

/* 文章列表 */
.article-item {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.article-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    transition: color 0.2s;
}

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

.article-item .meta {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.article-item p {
    color: #555;
}

/* 数字动画 */
.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f1c40f;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #2c3e50, #1a252f);
    color: #bdc3c7;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer a {
    color: #ecf0f1;
    transition: color 0.2s;
}

.footer a:hover {
    color: #f1c40f;
}

.footer .grid-4 {
    color: #bdc3c7;
}

.footer h4 {
    color: #ecf0f1;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* 暗黑模式 */
body.dark {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark .card {
    background: rgba(22, 33, 62, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #e0e0e0;
    border-color: rgba(255,255,255,0.1);
}

body.dark .card p {
    color: #b0b0b0;
}

body.dark .section-title {
    color: #e0e0e0;
    border-left-color: #f1c40f;
}

body.dark .navbar {
    background: rgba(15, 52, 96, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

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

body.dark .faq-item {
    border-bottom-color: #2c3e50;
}

body.dark .faq-item:hover {
    background: rgba(241, 196, 15, 0.08);
}

body.dark .banner {
    background: linear-gradient(135deg, #0f3460, #1a1a2e, #16213e);
}

body.dark .breadcrumb {
    background: #2c3e50;
    color: #bdc3c7;
}

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

body.dark .breadcrumb span {
    color: #95a5a6;
}

body.dark .section {
    border-bottom-color: #2c3e50;
}

body.dark .tag {
    background: #34495e;
    color: #ecf0f1;
}

body.dark .tag:hover {
    background: #f1c40f;
    color: #2c3e50;
}

body.dark .article-item {
    border-bottom-color: #2c3e50;
}

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

body.dark .article-item .meta {
    color: #7f8c8d;
}

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

.dark-toggle {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: 12px;
    transition: transform 0.2s;
}

.dark-toggle:hover {
    transform: rotate(20deg);
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* 面包屑 */
.breadcrumb {
    background: #ecf0f1;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.breadcrumb a {
    color: #2980b9;
}

.breadcrumb span {
    color: #7f8c8d;
}

/* 联系信息 */
.contact-info p {
    margin-bottom: 6px;
}

/* 图片占位 */
.svg-placeholder {
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: #95a5a6;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
        gap: 8px;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    .navbar .search-box {
        width: 100%;
        margin-top: 10px;
    }

    .navbar .search-box input {
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .banner-slide {
        padding: 40px 20px;
        flex-direction: column;
        text-align: center;
    }

    .banner-slide h2 {
        font-size: 1.5rem;
    }

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

    .banner-slide .svg-box {
        margin-top: 20px;
        flex: 0 0 150px;
        height: 150px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 16px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .footer .grid-4 {
        gap: 20px;
    }

    .breadcrumb {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .banner-slide {
        padding: 30px 16px;
    }

    .banner-slide h2 {
        font-size: 1.3rem;
    }

    .banner .prev, .banner .next {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .navbar .logo {
        font-size: 1.2rem;
    }

    .navbar .search-box input {
        width: 120px;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

body.dark ::-webkit-scrollbar-track {
    background: #2c3e50;
}

body.dark ::-webkit-scrollbar-thumb {
    background: #555;
}

body.dark ::-webkit-scrollbar-thumb:hover {
    background: #777;
}