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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a2e;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

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

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

.dark a {
    color: #4fc3f7;
}

/* 顶部导航栏 */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 46, 0.95);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu li a {
    color: #fff;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    background: #fff;
    color: #1a1a2e;
    width: 150px;
    transition: width 0.3s, border-color 0.3s;
}

.search-box input:focus {
    width: 200px;
    border-color: #f0c27f;
}

.search-box button {
    background: #f0c27f;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

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

/* 暗黑模式切换按钮 */
.dark-toggle {
    background: none;
    border: 2px solid #f0c27f;
    color: #f0c27f;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.dark-toggle:hover {
    background: #f0c27f;
    color: #1a1a2e;
}

/* 面包屑导航 */
.breadcrumb {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 0;
    font-size: 0.95rem;
    color: #aaa;
}

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

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

.breadcrumb span {
    color: #fff;
}

.dark .breadcrumb {
    background: rgba(255, 255, 255, 0.03);
}

/* Hero 横幅 - 渐变 + 毛玻璃效果 */
.hero {
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 194, 127, 0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero .btn {
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 30px rgba(240, 194, 127, 0.3);
    position: relative;
    z-index: 1;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(240, 194, 127, 0.5);
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f0c27f, #fc5c7d);
    margin: 15px auto 0;
    border-radius: 4px;
}

.dark .section-title {
    color: #f0c27f;
}

/* 网格布局 */
.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: 25px;
}

/* 卡片 - 圆角 + 毛玻璃 + hover动画 */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s, box-shadow 0.4s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .card {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.02);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.card p {
    color: #555;
    transition: color 0.3s;
}

.dark .card p {
    color: #bbb;
}

/* 徽章 */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    color: #1a1a2e;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* FAQ 手风琴 */
.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
    cursor: pointer;
    transition: border-color 0.3s;
}

.dark .faq-item {
    border-color: #333;
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-item:hover .faq-question {
    color: #f0c27f;
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 12px;
}

/* 操作指南步骤 */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.howto-step .step-num {
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    color: #1a1a2e;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 50px 0 30px;
}

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

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

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

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    color: #1a1a2e;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(240, 194, 127, 0.3);
    border: none;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(240, 194, 127, 0.5);
}

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

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

/* 数字增长 */
.count-up {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f0c27f, #fc5c7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 轮播 */
.carousel {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    padding: 0 15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(4px);
    transition: background 0.3s, transform 0.2s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

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

.partner-links a {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #aaa;
    transition: background 0.3s, color 0.3s;
}

.partner-links a:hover {
    background: #f0c27f;
    color: #1a1a2e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26, 26, 46, 0.98);
        position: absolute;
        top: 60px;
        left: 0;
        padding: 20px;
        gap: 10px;
        z-index: 999;
    }

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

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .search-box input:focus {
        width: 140px;
    }

    .carousel-btn {
        font-size: 1.5rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

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

/* 额外的 hover 和过渡效果 */
.nav-menu li a,
.search-box button,
.dark-toggle,
.hero .btn,
.card,
.card img,
.breadcrumb a,
.footer a,
.partner-links a,
.carousel-btn,
.back-to-top {
    will-change: transform, opacity, box-shadow;
}

/* 阅读更多链接 */
.read-more {
    display: inline-block;
    margin-top: 10px;
    transition: color 0.3s, transform 0.2s;
}

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