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

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

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

/* ===== 头部 ===== */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6600, #ffaa00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

nav 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: 8px 12px;
    border: none;
    border-radius: 20px;
    outline: none;
    width: 160px;
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.search-box input::placeholder {
    color: #ccc;
}

.search-box button {
    background: #ff6600;
    border: none;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.dark-toggle {
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.dark .breadcrumb {
    background: #1a1a2e;
    border-color: #333;
}

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

.breadcrumb span {
    color: #666;
}

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

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

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,102,0,0.1) 0%, transparent 70%);
    animation: heroGlow 6s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

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

.hero .btn {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(255,102,0,0.4);
    position: relative;
    z-index: 1;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,102,0,0.6);
}

.hero .carousel {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.hero .carousel-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    width: 200px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s;
}

.hero .carousel-item:hover {
    transform: scale(1.05);
}

.hero .carousel-item svg {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.hero .carousel-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.hero .carousel-item p {
    font-size: 0.85rem;
    opacity: 0.8;
}

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

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

.section-title h2 {
    font-size: 2rem;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

.dark .section-title h2 {
    color: #e0e0e0;
}

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

/* ===== 卡片 ===== */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.dark .card {
    background: #1a1a2e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

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

/* ===== 网格布局 ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

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

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

/* ===== 图片占位 ===== */
.img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ff6600, #ffaa00);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.img-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.7;
}

/* ===== FAQ ===== */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    cursor: pointer;
}

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

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

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

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

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

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

/* ===== HowTo 步骤 ===== */
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.howto-step-num {
    background: #ff6600;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== 评价 ===== */
.testimonial {
    text-align: center;
    padding: 30px;
}

.testimonial svg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial p {
    font-style: italic;
}

.testimonial .name {
    font-weight: 600;
    margin-top: 10px;
}

/* ===== 新闻卡片 ===== */
.news-card {
    padding: 20px;
}

.news-card .date {
    color: #999;
    font-size: 0.85rem;
}

.dark .news-card .date {
    color: #777;
}

.news-card .btn {
    display: inline-block;
    margin-top: 10px;
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
}

/* ===== 页脚 ===== */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 40px 0 20px;
}

footer a {
    color: #ff6600;
    text-decoration: none;
}

footer .grid-4 {
    gap: 30px;
}

footer h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

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

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff6600;
    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;
    transition: opacity 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(255,102,0,0.4);
    z-index: 999;
}

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

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

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

/* ===== 数字计数 ===== */
.number-count {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6600;
}

.dark .number-count {
    color: #ffaa00;
}

/* ===== 暗色模式额外 ===== */
.dark .card,
.dark .breadcrumb {
    background: #1a1a2e;
}

.dark .hero {
    background: linear-gradient(135deg, #0a0a15 0%, #12122a 100%);
}

.dark footer {
    background: #0a0a15;
}

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

.dark .img-placeholder {
    background: linear-gradient(135deg, #3a2a1a, #5a3a1a);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a1a2e;
        padding: 20px;
        position: absolute;
        top: 70px;
        left: 0;
    }

    nav ul.open {
        display: flex;
    }

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

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

    .hero .carousel {
        flex-direction: column;
        align-items: center;
    }

    .hero .carousel-item {
        width: 80%;
    }

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

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

    .container {
        padding: 0 10px;
    }
}