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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f0f23;
    color: #e0e0e0;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

body.light {
    background: #f5f5fa;
    color: #1a1a2e;
}

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

/* === 头部导航 === */
header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

body.light header {
    background: rgba(245, 245, 250, 0.9);
    border-color: rgba(255, 107, 53, 0.2);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b35;
    text-decoration: none;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    color: #fff;
}

body.light .logo span {
    color: #1a1a2e;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s, transform 0.2s;
    position: relative;
}

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

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: #ff6b35;
    transform: translateY(-1px);
}

body.light nav a {
    color: #333;
}

.dark-toggle {
    background: none;
    border: 1px solid #ff6b35;
    color: #ff6b35;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dark-toggle:hover {
    background: #ff6b35;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === Hero 区域 (渐变Banner) === */
.hero {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    height: 600px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

body.light .hero {
    background: linear-gradient(135deg, #e0e0f0 0%, #c0c0e0 50%, #a0a0d0 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease, transform 0.8s ease;
    transform: scale(0.98);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    text-align: center;
    padding: 40px;
    animation: fadeUp 1s ease forwards;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.light .hero-content h1 {
    color: #1a1a2e;
    text-shadow: none;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #ccc;
}

body.light .hero-content p {
    color: #333;
}

.hero-content .btn {
    display: inline-block;
    padding: 15px 40px;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.hero-content .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

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

.hero-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dots span.active {
    background: #ff6b35;
    transform: scale(1.2);
    box-shadow: 0 0 8px #ff6b35;
}

/* === 通用 section === */
section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #ff6b35;
    margin: 10px auto 0;
    border-radius: 2px;
}

body.light .section-title {
    color: #d45a2a;
}

body.light .section-title::after {
    background: #d45a2a;
}

/* === 卡片网格 (圆角卡片 + 毛玻璃) === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: default;
}

body.light .card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.3);
}

.card h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: #bbb;
}

body.light .card p {
    color: #444;
}

/* === 统计数字 === */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b35;
    transition: transform 0.3s;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    color: #aaa;
    margin-top: 5px;
}

body.light .stat-label {
    color: #555;
}

/* === FAQ 手风琴 === */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 107, 53, 0.5);
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s;
    font-weight: 500;
}

.faq-question:hover {
    background: rgba(255, 107, 53, 0.1);
}

.faq-question .arrow {
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.02);
    color: #ccc;
}

body.light .faq-answer {
    color: #333;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 15px 20px;
}

/* === 页脚 === */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

body.light .footer {
    background: rgba(0, 0, 0, 0.05);
}

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

.footer h4 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s, padding-left 0.3s;
}

.footer a:hover {
    color: #ff6b35;
    padding-left: 5px;
}

body.light .footer a {
    color: #555;
}

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

body.light .footer-bottom {
    border-color: rgba(0, 0, 0, 0.1);
    color: #666;
}

/* === 返回顶部按钮 === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.back-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

/* === 搜索框 === */
.search-box {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 30px 0 0 30px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.search-box input:focus {
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.1);
}

body.light .search-box input {
    background: #fff;
    color: #1a1a2e;
    border-color: #ccc;
}

body.light .search-box input:focus {
    border-color: #ff6b35;
    background: #fff;
}

.search-box button {
    padding: 12px 25px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #e55a2b;
}

.search-results {
    margin-top: 20px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-results div {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: background 0.2s;
}

.search-results div:hover {
    background: rgba(255, 107, 53, 0.05);
}

/* === 面包屑 === */
.breadcrumb {
    padding: 10px 0;
    color: #888;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb span {
    margin: 0 5px;
}

/* === 懒加载 & 滚动动画 === */
.lazy {
    opacity: 0;
    transition: opacity 0.5s;
}

.lazy.loaded {
    opacity: 1;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === 响应式设计 === */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .logo {
        font-size: 1.4rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    }

    body.light nav ul {
        background: rgba(245, 245, 250, 0.95);
    }

    nav ul.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        height: 450px;
    }

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

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

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

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

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

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

@media (max-width: 480px) {
    .hero {
        height: 380px;
    }

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

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

    .container {
        padding: 0 15px;
    }

    .card {
        padding: 20px;
    }
}

/* === 辅助工具类 === */
.text-center {
    text-align: center;
}

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

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

/* 卡片内链接样式 */
.card a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.card a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

/* 高亮背景区域 */
section[style*="background"] {
    border-radius: 0;
    padding: 80px 0;
}

/* 确保所有按钮和可交互元素有良好的点击反馈 */
button, a.btn, .faq-question, .hero-dots span {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}