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

html {
    scroll-behavior: smooth;
}

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

/* 明亮模式 */
body:not(.dark-mode) {
    background: #f5f5fa;
    color: #1a1a2e;
}

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

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

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

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ffd700;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 毛玻璃卡片 */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

body:not(.dark-mode) .glass {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(26, 26, 46, 0.1);
}

/* 主按钮 */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.btn-link {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #ffaa00;
}

/* ===== 头部导航 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: background 0.3s;
}

body:not(.dark-mode) header {
    background: rgba(245, 245, 250, 0.9);
    border-color: rgba(26, 26, 46, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.nav-logo svg {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 10px 18px;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

body:not(.dark-mode) .nav-menu li a {
    color: #1a1a2e;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

/* 移动端菜单按钮 */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffd700;
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 50%, #1a2a2e 100%);
}

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

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 轮播控制 */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 2px solid #ffd700;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

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

.slider-dots span.active {
    background: #ffd700;
    transform: scale(1.3);
}

/* ===== 品牌介绍 ===== */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.brand-card {
    text-align: center;
}

.brand-card svg {
    margin-bottom: 20px;
}

.brand-card h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.brand-card p {
    color: #bbb;
    font-size: 0.95rem;
}

body:not(.dark-mode) .brand-card p {
    color: #555;
}

.brand-story h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.brand-story p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 1rem;
}

body:not(.dark-mode) .brand-story p {
    color: #444;
}

/* ===== 产品中心 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    text-align: center;
    padding: 40px 30px;
}

.product-card svg {
    margin-bottom: 20px;
}

.product-card h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.product-card p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

body:not(.dark-mode) .product-card p {
    color: #555;
}

.product-advantages h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.product-advantages ul {
    list-style: none;
    padding: 0;
}

.product-advantages ul li {
    color: #ccc;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    font-size: 1rem;
}

body:not(.dark-mode) .product-advantages ul li {
    color: #444;
    border-color: rgba(26, 26, 46, 0.1);
}

/* ===== 服务支持 ===== */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
}

.support-card h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* FAQ 手风琴 */
.faq-list .faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

body:not(.dark-mode) .faq-list .faq-item {
    border-color: rgba(26, 26, 46, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

body:not(.dark-mode) .faq-question {
    color: #1a1a2e;
}

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

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

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

.faq-answer p {
    color: #bbb;
    font-size: 0.95rem;
}

body:not(.dark-mode) .faq-answer p {
    color: #555;
}

/* 操作指南 */
.howto-content h4 {
    color: #ffd700;
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

.howto-content p,
.howto-content li {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.8;
}

body:not(.dark-mode) .howto-content p,
body:not(.dark-mode) .howto-content li {
    color: #555;
}

.howto-content ol {
    padding-left: 20px;
}

/* ===== 新闻资讯 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    overflow: hidden;
}

.news-card svg {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    padding: 20px 0;
}

.news-content time {
    color: #ffd700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.news-content p {
    color: #bbb;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

body:not(.dark-mode) .news-content p {
    color: #555;
}

.related-articles {
    margin-top: 30px;
}

.related-articles h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles ul li {
    margin-bottom: 10px;
}

.related-articles ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

body:not(.dark-mode) .related-articles ul li a {
    color: #1a1a2e;
}

.related-articles ul li a:hover {
    color: #ffd700;
}

/* ===== 案例展示 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.case-card {
    text-align: center;
}

.case-card svg {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.case-card h3 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.case-card p {
    color: #bbb;
    font-size: 0.95rem;
}

body:not(.dark-mode) .case-card p {
    color: #555;
}

.testimonials blockquote {
    margin: 20px 0;
    padding: 20px;
    border-left: 4px solid #ffd700;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
}

.testimonials blockquote p {
    color: #ccc;
    font-style: italic;
    font-size: 1rem;
}

body:not(.dark-mode) .testimonials blockquote p {
    color: #444;
}

.testimonials blockquote cite {
    display: block;
    margin-top: 10px;
    color: #ffd700;
    font-style: normal;
    font-weight: 500;
}

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    color: #ffd700;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.contact-info p {
    color: #bbb;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

body:not(.dark-mode) .contact-info p {
    color: #555;
}

.contact-form h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.contact-form label {
    display: block;
    color: #e0e0e0;
    margin-bottom: 5px;
    font-weight: 500;
}

body:not(.dark-mode) .contact-form label {
    color: #1a1a2e;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 1rem;
    transition: border-color 0.3s;
}

body:not(.dark-mode) .contact-form input,
body:not(.dark-mode) .contact-form textarea {
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a2e;
    border-color: rgba(26, 26, 46, 0.2);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ffd700;
}

.contact-form button {
    width: 100%;
}

/* ===== 页脚 ===== */
footer {
    background: rgba(15, 15, 35, 0.95);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 60px 0 30px;
    margin-top: 80px;
}

body:not(.dark-mode) footer {
    background: rgba(245, 245, 250, 0.95);
    border-color: rgba(26, 26, 46, 0.1);
}

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

.footer-col h4 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

body:not(.dark-mode) .footer-col ul li a {
    color: #555;
}

.footer-col ul li a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding-top: 30px;
}

.footer-bottom p {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

body:not(.dark-mode) .footer-bottom p {
    color: #666;
}

/* ===== 返回顶部 ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: scale(1.1);
}

/* ===== 响应式设计 ===== */

/* 平板及以下 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s, opacity 0.4s;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    }

    body:not(.dark-mode) .nav-menu {
        background: rgba(245, 245, 250, 0.98);
        border-color: rgba(26, 26, 46, 0.1);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-menu li a {
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 215, 0, 0.05);
    }

    .nav-toggle {
        display: flex;
    }

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

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

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

    .section {
        padding: 60px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 手机 */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

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

    .container {
        padding: 0 15px;
    }
}

/* ===== 滚动动画 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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