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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    color: #2c3e50;
    line-height: 1.8;
    scroll-behavior: smooth;
    min-height: 100vh;
}

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

a:hover {
    color: #f0c040;
}

/* 暗色模式 */
.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

.dark-mode a {
    color: #a8d8ea;
}

.dark-mode a:hover {
    color: #f0c040;
}

.dark-mode header {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark-mode .card {
    background: rgba(42, 42, 62, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark-mode footer {
    background: #0f0f1a;
}

.dark-mode .section-title {
    color: #a8d8ea;
}

.dark-mode .section-title::after {
    background: #f0c040;
}

.dark-mode .faq-question {
    background: rgba(42, 42, 62, 0.6);
    color: #e0e0e0;
}

.dark-mode .faq-item.open .faq-answer {
    background: rgba(42, 42, 62, 0.8);
}

.dark-mode .newsletter {
    background: rgba(42, 42, 62, 0.85);
}

.dark-mode .friend-links a {
    border-color: #444;
    color: #a8d8ea;
}

.dark-mode .breadcrumb {
    background: rgba(42, 42, 62, 0.5);
}

.dark-mode .breadcrumb a {
    color: #a8d8ea;
}

.dark-mode .breadcrumb span {
    color: #aaa;
}

.dark-mode .search-box input {
    background: rgba(42, 42, 62, 0.6);
    border-color: #555;
    color: #e0e0e0;
}

.dark-mode .search-box input:focus {
    border-color: #a8d8ea;
}

.dark-mode .search-box button {
    background: #2d6a9f;
}

.dark-mode .search-box button:hover {
    background: #3a7ab5;
}

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

/* 头部 */
header {
    background: rgba(26, 58, 92, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header:hover {
    background: rgba(26, 58, 92, 0.98);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, #f0c040 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    color: #f0c040;
    -webkit-text-fill-color: #f0c040;
}

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

.nav a {
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #f0c040;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.5rem;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 50%, #1a3a5c 100%);
    color: #fff;
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(240, 192, 64, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(45, 106, 159, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .cta {
    display: inline-block;
    background: linear-gradient(135deg, #f0c040 0%, #e0a800 100%);
    color: #1a3a5c;
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    box-shadow: 0 4px 15px rgba(240, 192, 64, 0.4);
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero .cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(240, 192, 64, 0.6);
    background: linear-gradient(135deg, #f5c842 0%, #e8b000 100%);
}

.banner-carousel {
    position: relative;
    min-height: 300px;
}

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

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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

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

.dot.active {
    background: #f0c040;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(240, 192, 64, 0.5);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

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

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

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    background: rgba(241, 243, 245, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.breadcrumb a {
    color: #1a3a5c;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #f0c040;
}

.breadcrumb span {
    color: #666;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #1a3a5c;
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f0c040, #e0a800);
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(240, 192, 64, 0.3);
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* 卡片 */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a3a5c, #f0c040);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    color: #1a3a5c;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

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

.icon-svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    fill: #1a3a5c;
    transition: transform 0.3s;
}

.card:hover .icon-svg {
    transform: scale(1.1) rotate(-5deg);
}

/* 文字工具 */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* FAQ */
.faq-item {
    border: 1px solid rgba(224, 224, 224, 0.5);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    background: rgba(247, 249, 252, 0.8);
    padding: 18px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(238, 242, 247, 0.9);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: #1a3a5c;
    transition: transform 0.3s;
    font-weight: 300;
}

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

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s;
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 18px 25px 25px;
    background: rgba(255, 255, 255, 0.9);
}

/* HowTo步骤 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s;
}

.howto-step:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.howto-step h3 {
    color: #1a3a5c;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.howto-step p {
    color: #555;
    line-height: 1.7;
}

/* 文章列表 */
.article-list article {
    border-bottom: 1px solid rgba(232, 232, 232, 0.6);
    padding: 25px 0;
    transition: all 0.3s;
}

.article-list article:last-child {
    border-bottom: none;
}

.article-list article:hover {
    padding-left: 10px;
}

.article-list h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1a3a5c;
    transition: color 0.3s;
}

.article-list article:hover h3 {
    color: #f0c040;
}

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

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

.read-more {
    color: #1a3a5c;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
    transition: all 0.3s;
}

.read-more:hover {
    color: #f0c040;
    transform: translateX(5px);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, transform 0.3s;
    border: none;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.4);
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(26, 58, 92, 0.5);
}

/* 暗色模式切换 */
.dark-toggle {
    position: fixed;
    bottom: 100px;
    right: 40px;
    background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    z-index: 999;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.4);
}

.dark-toggle:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(26, 58, 92, 0.5);
    background: linear-gradient(135deg, #2d6a9f, #3a7ab5);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(221, 221, 221, 0.6);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-box input:focus {
    border-color: #1a3a5c;
    box-shadow: 0 0 0 4px rgba(26, 58, 92, 0.1);
}

.search-box button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.search-box button:hover {
    background: linear-gradient(135deg, #2d6a9f, #3a7ab5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 92, 0.4);
}

/* 数字动画 */
.number-animate {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f0c040;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(240, 192, 64, 0.3);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #1a3a5c, #0f1f33);
    color: rgba(204, 204, 204, 0.9);
    padding: 50px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f0c040, transparent);
}

.footer a {
    color: #a8d8ea;
    transition: color 0.3s;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

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

/* 友情链接 */
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.friend-links a {
    color: #1a3a5c;
    padding: 6px 16px;
    border: 1px solid rgba(221, 221, 221, 0.6);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.friend-links a:hover {
    background: #1a3a5c;
    color: #fff;
    border-color: #1a3a5c;
    transform: translateY(-2px);
}

/* 新闻简报 */
.newsletter {
    background: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero {
        padding: 60px 20px 80px;
    }

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

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 15px;
        gap: 10px;
        background: rgba(26, 58, 92, 0.98);
        padding: 15px;
        border-radius: 12px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .nav.show {
        display: flex;
    }

    .nav a {
        padding: 12px 16px;
        border-radius: 8px;
    }

    .menu-toggle {
        display: block;
    }

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

    .section {
        padding: 50px 0;
    }

    .back-to-top,
    .dark-toggle {
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .dark-toggle {
        bottom: 80px;
    }

    .card {
        padding: 25px 20px;
    }

    .howto-step {
        flex-direction: column;
        padding: 15px;
    }

    .howto-step::before {
        margin-bottom: 10px;
    }

    .search-box {
        flex-direction: column;
    }

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

    .search-box button {
        width: 100%;
    }

    .footer-grid > div {
        text-align: center;
    }

    .friend-links {
        gap: 10px;
    }

    .friend-links a {
        font-size: 0.85rem;
        padding: 4px 12px;
    }

    .banner-carousel {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero .cta {
        padding: 12px 30px;
        font-size: 1rem;
    }

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

    .grid-2,
    .grid-3,
    .grid-4 {
        gap: 20px;
    }

    .card {
        padding: 20px 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .back-to-top,
    .dark-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        right: 15px;
    }

    .dark-toggle {
        bottom: 65px;
    }
}

/* 小动画补充 */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero .cta:active {
    animation: pulse 0.3s ease;
}

/* 选中样式 */
::selection {
    background: #f0c040;
    color: #1a3a5c;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1a3a5c, #2d6a9f);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2d6a9f, #3a7ab5);
}

.dark-mode ::-webkit-scrollbar-track {
    background: #2a2a3e;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3a5a7c, #4a7a9f);
}