/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edf5 100%);
    color: #1a2636;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
body.dark {
    background: linear-gradient(135deg, #0b1a2e 0%, #11233a 100%);
    color: #e0e7ef;
}
a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    text-decoration: underline;
    color: #f0c040;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(90deg, #f0c040, #f5d67a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}
h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f0c040, #e2a820);
    border-radius: 2px;
}
h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* 头部导航 */
.header {
    background: rgba(11, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s, background 0.3s;
}
.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: rgba(11, 26, 46, 0.98);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0c040;
    cursor: pointer;
    transition: transform 0.3s;
}
.logo:hover {
    transform: scale(1.05);
}
.logo span {
    color: #fff;
}
.nav {
    display: flex;
    gap: 24px;
    list-style: none;
}
.nav a {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s, transform 0.2s;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f0c040;
    transition: width 0.3s;
}
.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}
.nav a:hover,
.nav a.active {
    color: #f0c040;
    transform: translateY(-1px);
}
.menu-toggle {
    display: none;
    background: none;
    border: 0;
    color: #f0c040;
    font-size: 1.6rem;
    cursor: pointer;
    transition: transform 0.3s;
}
.menu-toggle:hover {
    transform: rotate(90deg);
}
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        background: rgba(11, 26, 46, 0.98);
        backdrop-filter: blur(12px);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 16px;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    .nav.open {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .menu-toggle {
        display: block;
    }
}

/* 英雄区渐变Banner */
.hero {
    background: linear-gradient(135deg, #0b1a2e 0%, #1a365d 40%, #2a4a7f 100%);
    color: #fff;
    padding: 80px 0 70px;
    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%);
    animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}
.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}
.hero p {
    font-size: 1.2rem;
    max-width: 720px;
    margin: 0 auto 30px;
    color: #cbd5e1;
    animation: fadeInUp 1s ease;
}
.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, #f0c040, #e2a820);
    color: #0b1a2e;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}
.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.hero .btn:hover::before {
    left: 100%;
}
.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 192, 64, 0.4);
}

/* 通用区域 */
.section {
    padding: 70px 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }
.section:nth-child(8) { animation-delay: 0.7s; }
.section:nth-child(9) { animation-delay: 0.8s; }
.section:nth-child(10) { animation-delay: 0.9s; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-alt {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.dark .section-alt {
    background: rgba(17, 35, 58, 0.8);
    backdrop-filter: blur(10px);
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* 卡片样式 - 毛玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px 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);
}
.dark .card {
    background: rgba(26, 45, 70, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}
.dark .card:hover {
    background: rgba(26, 45, 70, 0.95);
}
.card h3 {
    color: #0b1a2e;
}
.dark .card h3 {
    color: #f0c040;
}

/* 徽章 */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #eef2f7, #dce3ec);
    color: #1a365d;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    transition: transform 0.3s;
}
.badge:hover {
    transform: scale(1.05);
}
.dark .badge {
    background: linear-gradient(135deg, #2a3f5a, #1e3450);
    color: #cbd5e1;
}

/* 统计数字 */
.stat-number {
    font-size: 2.4rem;
    font-weight: 700;
    color: #f0c040;
    line-height: 1.2;
    transition: transform 0.3s;
}
.card:hover .stat-number {
    transform: scale(1.1);
}
.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}
.dark .stat-label {
    color: #94a3b8;
}

/* 用户反馈 */
.testimonial {
    background: rgba(248, 250, 255, 0.8);
    backdrop-filter: blur(8px);
    border-left: 4px solid #f0c040;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.dark .testimonial {
    background: rgba(26, 45, 70, 0.8);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 16px 0;
    cursor: pointer;
    transition: background 0.3s, padding-left 0.3s;
}
.faq-item:hover {
    background: rgba(240, 192, 64, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}
.dark .faq-item {
    border-color: rgba(42, 63, 90, 0.6);
}
.faq-question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.faq-item:hover .faq-question {
    color: #f0c040;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: #475569;
}
.dark .faq-answer {
    color: #cbd5e1;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}
.faq-toggle {
    font-size: 1.4rem;
    transition: transform 0.3s;
    display: inline-block;
}
.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

/* 操作指南步骤 */
.howto-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
    transition: transform 0.3s;
}
.howto-step:hover {
    transform: translateX(10px);
}
.howto-step .step-num {
    background: linear-gradient(135deg, #f0c040, #e2a820);
    color: #0b1a2e;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(240, 192, 64, 0.3);
}

/* 文章卡片 */
.article-card {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 20px 0;
    transition: padding-left 0.3s, background 0.3s;
}
.article-card:hover {
    padding-left: 15px;
    background: rgba(240, 192, 64, 0.03);
    border-radius: 8px;
}
.dark .article-card {
    border-color: rgba(42, 63, 90, 0.6);
}
.article-card:last-child {
    border-bottom: 0;
}
.article-card .date {
    font-size: 0.85rem;
    color: #64748b;
}
.article-card h3 a {
    transition: color 0.3s;
}
.article-card:hover h3 a {
    color: #f0c040;
}

/* 联系信息 */
.contact-info p {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: transform 0.3s;
}
.contact-info p:hover {
    transform: translateX(5px);
}
.contact-info svg {
    flex-shrink: 0;
    transition: color 0.3s;
}
.contact-info p:hover svg {
    color: #f0c040;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #0b1a2e 0%, #11233a 100%);
    color: #94a3b8;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}
.footer a {
    color: #cbd5e1;
    transition: color 0.3s, padding-left 0.3s;
}
.footer a:hover {
    color: #f0c040;
    padding-left: 5px;
}
.footer .grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 768px) {
    .footer .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}
.footer-bottom {
    border-top: 1px solid #1e3a5f;
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #f0c040, #e2a820);
    color: #0b1a2e;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99;
}
.back-to-top.show {
    display: flex;
    animation: bounceIn 0.5s ease;
}
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 20px rgba(240, 192, 64, 0.4);
}

/* Banner轮播 */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, #0b1a2e, #1a365d);
    color: #fff;
    padding: 40px 30px;
    min-height: 200px;
}
.banner-slide {
    display: none;
    animation: fade 0.6s;
}
.banner-slide.active {
    display: block;
}
@keyframes fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.banner-dots {
    text-align: center;
    margin-top: 20px;
}
.banner-dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}
.banner-dots span:hover {
    transform: scale(1.3);
}
.banner-dots span.active {
    background: #f0c040;
    transform: scale(1.2);
}

/* 滚动高亮 */
.scroll-highlight {
    transition: background 0.3s;
    padding: 4px 8px;
    border-radius: 8px;
}
.scroll-highlight.active {
    background: rgba(240, 192, 64, 0.15);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 20px auto;
}
.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    font-size: 0.95rem;
    outline: 0;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: rgba(255, 255, 255, 0.8);
}
.search-box input:focus {
    border-color: #f0c040;
    box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.2);
}
.dark .search-box input {
    background: rgba(26, 45, 70, 0.8);
    border-color: #2a3f5a;
    color: #e0e7ef;
}
.search-box button {
    background: linear-gradient(135deg, #f0c040, #e2a820);
    border: 0;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    color: #0b1a2e;
    transition: transform 0.2s, box-shadow 0.2s;
}
.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 192, 64, 0.3);
}

/* 辅助 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 暗黑模式跟随系统 */
@media (prefers-color-scheme: dark) {
    body:not(.light) {
        background: linear-gradient(135deg, #0b1a2e 0%, #11233a 100%);
        color: #e0e7ef;
    }
    .section-alt {
        background: rgba(17, 35, 58, 0.8);
        backdrop-filter: blur(10px);
    }
    .card {
        background: rgba(26, 45, 70, 0.8);
        backdrop-filter: blur(16px);
    }
    .testimonial {
        background: rgba(26, 45, 70, 0.8);
    }
    .search-box input {
        background: rgba(26, 45, 70, 0.8);
        border-color: #2a3f5a;
        color: #e0e7ef;
    }
}