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

html {
    scroll-behavior: smooth;
}

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

body.dark {
    background: #121212;
    color: #e0e0e0;
}

body.dark .card,
body.dark .glass {
    background: rgba(30, 30, 40, 0.85);
    border-color: #333;
}

body.dark .btn {
    background: #FF6B35;
    color: #fff;
}

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

/* 毛玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Hero 区域 */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

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

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

body.dark .section-title p {
    color: #aaa;
}

/* Banner 轮播 */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 400px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.banner-slide.active {
    opacity: 1;
}

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

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

.banner-dots span.active {
    background: #FF6B35;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #FF6B35;
}

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

.nav-menu a:hover:after {
    width: 100%;
}

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

/* 响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.96);
        padding: 20px;
        border-radius: 0 0 20px 20px;
        gap: 12px;
    }

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

    .mobile-toggle {
        display: block;
    }

    .banner-carousel {
        height: 280px;
    }

    .section {
        padding: 50px 0;
    }
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: #666;
    background: transparent;
}

.breadcrumb a {
    color: #FF6B35;
    text-decoration: none;
}

.breadcrumb span {
    color: #999;
}

body.dark .breadcrumb {
    color: #aaa;
}

/* FAQ 样式 */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 18px 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
}

.faq-question:hover {
    color: #FF6B35;
}

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

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

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 15px;
}

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

.icon {
    transition: transform 0.3s;
}

/* HowTo 步骤 */
.howto-step {
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #FF6B35;
    background: rgba(255, 107, 53, 0.04);
    border-radius: 0 12px 12px 0;
}

.howto-step h4 {
    color: #FF6B35;
    margin-bottom: 8px;
}

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

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

/* 数字增长动画 */
.count-up {
    font-size: 2.4rem;
    font-weight: 700;
    color: #FF6B35;
}

/* 头像占位 */
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eee;
    display: inline-block;
    overflow: hidden;
    flex-shrink: 0;
}

body.dark .avatar {
    background: #333;
}

/* Footer 链接 */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF6B35;
}

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

.back-top.show {
    display: flex;
}

.back-top:hover {
    transform: scale(1.1);
}

/* 暗黑模式切换按钮 */
.dark-toggle {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 998;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.dark-toggle:hover {
    background: #FF6B35;
}

body.dark .dark-toggle {
    background: #FF6B35;
    color: #fff;
}

/* 搜索框 */
.search-box {
    display: flex;
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

body.dark .search-box {
    background: #2a2a3a;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: inherit;
}

.search-box button {
    padding: 12px 24px;
    background: #FF6B35;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

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

/* 文章卡片阅读更多 */
.article-card .read-more {
    color: #FF6B35;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.article-card .read-more:hover {
    text-decoration: underline;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* 评价卡片 */
.testimonial-card {
    text-align: center;
    padding: 30px 20px;
}

.testimonial-card .avatar {
    margin: 0 auto 15px;
}

.testimonial-card blockquote {
    font-style: italic;
    color: #555;
    margin: 15px 0;
}

body.dark .testimonial-card blockquote {
    color: #bbb;
}

/* 合作伙伴链接 */
.partner-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

.partner-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(255, 107, 53, 0.06);
    transition: background 0.3s, color 0.3s;
}

.partner-links a:hover {
    background: #FF6B35;
    color: #fff;
}

body.dark .partner-links a {
    color: #aaa;
    background: rgba(255, 107, 53, 0.1);
}

/* SVG 占位 */
.svg-placeholder {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.svg-placeholder svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.svg-placeholder span {
    position: relative;
    z-index: 1;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.article-card .svg-placeholder {
    height: 180px;
}

/* Hero SVG 装饰 */
.hero-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}