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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

body.dark-mode {
    background: #0d0d1a;
    color: #e0e0e0;
}

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

img, svg {
    max-width: 100%;
    display: block;
}

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

/* 头部 */
header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

nav a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff6b35;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero 区域 */
.hero {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
}

.hero .btn {
    background: white;
    color: #ff6b35;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.hero .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Banner 轮播 */
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

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

.banner-slide svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

.banner-dots span.active {
    background: white;
    transform: scale(1.2);
}

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

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

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

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

/* 卡片 (毛玻璃效果) */
.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .card {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.dark-mode .card p {
    color: #aaa;
}

/* 统计数字区域 */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    padding: 60px 20px;
    border-radius: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b35;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 5px;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.3s;
}

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

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

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

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

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

/* 教程步骤 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark-mode .howto-step {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.howto-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: #ff6b35;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* 文章列表 */
.article-list article {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark-mode .article-list article {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-list article:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-list h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.article-list .date {
    color: #999;
    font-size: 0.9rem;
}

.article-list .btn-read {
    display: inline-block;
    margin-top: 10px;
    background: #ff6b35;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.3s;
}

.article-list .btn-read:hover {
    background: #e55a2b;
    transform: scale(1.05);
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 30px;
}

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

footer h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 10px;
}

footer a {
    color: #ccc;
    transition: color 0.3s;
}

footer a:hover {
    color: #ff6b35;
}

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

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff6b35;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 99;
}

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

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

/* 暗黑模式切换按钮 */
.dark-mode-toggle {
    background: none;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.dark-mode-toggle:hover {
    background: #ff6b35;
    color: white;
    transform: scale(1.05);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

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

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

/* 产品优势列表 */
#products ul li {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark-mode #products ul li {
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#products ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 联系区域二维码 */
#contact .grid + div svg {
    transition: transform 0.3s;
}

#contact .grid + div svg:hover {
    transform: scale(1.05);
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    nav ul {
        display: none;
        flex-direction: column;
        background: #1a1a2e;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    nav ul.open {
        display: flex;
    }

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

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

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

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

    .banner-slider {
        height: 250px;
    }

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

    .card {
        padding: 20px;
    }

    .howto-step {
        flex-direction: column;
        align-items: stretch;
    }

    .howto-step::before {
        margin-bottom: 10px;
    }

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

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

    .search-box {
        flex-direction: column;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

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

    .container {
        padding: 0 15px;
    }

    section {
        padding: 50px 0;
    }

    .grid {
        gap: 20px;
    }
}

/* 暗黑模式下的微调 */
.dark-mode .banner-slide svg rect[fill="#ff6b35"] {
    fill: #cc5529;
}

.dark-mode .banner-slide svg rect[fill="#1a1a2e"] {
    fill: #0d0d1a;
}

.dark-mode .banner-slide svg rect[fill="#16213e"] {
    fill: #0f1a2e;
}

.dark-mode input {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #333;
}

.dark-mode input:focus {
    border-color: #ff6b35;
}