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

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

body.dark-mode {
    background: #1a1a2e;
    color: #e0e0e0;
}

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

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

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

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

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

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

nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover,
nav a.active {
    background: #ffd700;
    color: #1a1a2e;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-actions button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px;
}

.search-box {
    width: 100%;
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: none;
}

.search-box button {
    padding: 8px 15px;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* 面包屑 */
.breadcrumb {
    padding: 10px 20px;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    border-radius: 5px;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Banner */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 500px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
}

.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;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 40px;
}

.hero-content h1,
.hero-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ffd700;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
}

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

.dot {
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #ffd700;
}

/* 通用区块 */
.section {
    padding: 60px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #1a1a2e;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ffd700;
    margin-top: 10px;
}

body.dark-mode .section h2 {
    color: #ffd700;
}

.section p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.section ul,
.section ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.section li {
    margin-bottom: 10px;
}

.read-more {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}

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

/* 品牌统计 */
.brand-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

body.dark-mode .stat {
    background: #2a2a4e;
}

.stat .num {
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
}

.stat p {
    margin-top: 10px;
    font-size: 1em;
}

/* 团队 */
.team-members {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.member {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 200px;
    transition: transform 0.3s;
}

body.dark-mode .member {
    background: #2a2a4e;
}

.member:hover {
    transform: translateY(-10px);
}

.member svg {
    margin-bottom: 10px;
}

/* 产品卡片 */
.product-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark-mode .card {
    background: #2a2a4e;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card svg {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

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

.faq-question {
    padding: 15px;
    background: #fff;
    cursor: pointer;
    font-size: 1.1em;
    position: relative;
}

body.dark-mode .faq-question {
    background: #2a2a4e;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s, padding 0.4s;
    background: #f1f1f1;
}

body.dark-mode .faq-answer {
    background: #333;
}

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

/* 评价轮播 */
.testimonial-slider {
    position: relative;
    height: 100px;
}

.testimonial {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s;
    text-align: center;
    font-style: italic;
}

.testimonial.active {
    opacity: 1;
}

/* 二维码 */
.qr-codes {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.qr {
    text-align: center;
}

.qr svg {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

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

footer a:hover {
    text-decoration: underline;
}

/* 返回顶部 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    z-index: 999;
}

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

/* SVG 加载 */
svg {
    transition: opacity 0.5s;
}

.loaded {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #1a1a2e;
        padding: 10px;
    }

    nav ul.open {
        display: flex;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 1.8em;
    }

    .section {
        padding: 40px 0;
    }

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

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

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

@media (max-width: 480px) {
    .hero-content h1,
    .hero-content h2 {
        font-size: 1.4em;
    }

    .container {
        padding: 10px;
    }

    .btn {
        padding: 10px 20px;
    }
}