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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fc;
    color: #1a1a2e;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

/* 暗色模式 */
body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

body.dark header {
    background: rgba(15, 15, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.dark .header-inner nav a {
    color: #ccc;
}

body.dark .header-inner nav a:hover,
body.dark .header-inner nav a.active {
    color: #f0c040;
}

body.dark .hero {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
}

body.dark .btn-primary {
    background: #f0c040;
    color: #1a1a2e;
}

body.dark .btn-primary:hover {
    background: #e6a800;
}

body.dark .btn-secondary {
    border-color: #f0c040;
    color: #f0c040;
}

body.dark .btn-secondary:hover {
    background: rgba(240, 192, 64, 0.1);
}

body.dark section:not(.hero) {
    background: rgba(20, 20, 35, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
}

body.dark .card,
body.dark .team-card,
body.dark .stat {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
}

body.dark footer {
    background: #0a0a12;
    border-top: 1px solid rgba(255,255,255,0.05);
}

body.dark .back-to-top {
    background: rgba(240, 192, 64, 0.2);
    color: #f0c040;
}

body.dark .back-to-top:hover {
    background: rgba(240, 192, 64, 0.4);
}

body.dark .faq-question {
    background: rgba(30, 30, 50, 0.6);
    color: #e0e0e0;
}

body.dark .faq-answer {
    background: rgba(20, 20, 35, 0.5);
}

body.dark input,
body.dark textarea {
    background: rgba(30, 30, 50, 0.6);
    border-color: rgba(255,255,255,0.1);
    color: #e0e0e0;
}

body.dark input:focus,
body.dark textarea:focus {
    border-color: #f0c040;
}

/* 渐变Banner / 通用渐变 */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
}

/* 圆角卡片通用 */
.card, .team-card, .stat, .faq-item, .contact form, .news article {
    border-radius: 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.card:hover, .team-card:hover, .stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

/* 毛玻璃效果通用 */
.glass {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
}

/* 响应式容器 */
.header-inner, main, .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 70px;
}

.logo {
    flex-shrink: 0;
}

.logo svg {
    height: 45px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 8px;
}

nav a {
    display: block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ddd;
    transition: all 0.25s;
    position: relative;
}

nav a:hover, nav a.active {
    color: #f0c040;
    background: rgba(240, 192, 64, 0.08);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #f0c040;
    border-radius: 4px;
}

.menu-toggle, .dark-toggle {
    display: none;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.menu-toggle:hover, .dark-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* 英雄区 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f0c040, #ffd966);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: #f0c040;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #e6a800;
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.3);
}

.btn-secondary {
    border-color: #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.03);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.hero-visual svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(240,192,64,0.15));
}

/* 通用区块 */
section {
    padding: 80px 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 32px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.3s, border 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }

section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #f0c040, #e6a800);
    border-radius: 4px;
    margin-top: 8px;
}

section p {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 20px;
}

/* 品牌统计 */
.brand-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 28px 16px;
}

.stat .num {
    font-size: 2.6rem;
    font-weight: 800;
    color: #f0c040;
    display: block;
}

.stat p {
    font-size: 0.95rem;
    margin: 8px 0 0;
    opacity: 0.8;
}

/* 发展历程 */
.history ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.history li {
    background: rgba(240,192,64,0.08);
    padding: 16px 20px;
    border-radius: 16px;
    border-left: 4px solid #f0c040;
    transition: transform 0.2s;
}

.history li:hover {
    transform: translateX(6px);
}

.history li strong {
    color: #f0c040;
    margin-right: 8px;
}

/* 团队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.team-card {
    text-align: center;
    padding: 30px 16px;
}

.team-card svg {
    margin: 0 auto 16px;
    width: 100px;
    height: 100px;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.team-card p {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* 产品卡片 */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.card {
    text-align: center;
    padding: 32px 16px;
}

.card svg {
    margin: 0 auto 16px;
    width: 70px;
    height: 70px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* 客户反馈 */
.testimonials blockquote {
    background: rgba(240,192,64,0.06);
    padding: 24px 28px;
    border-radius: 20px;
    border-left: 6px solid #f0c040;
    margin-bottom: 16px;
    font-style: italic;
    font-size: 1.05rem;
    position: relative;
}

.testimonials blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #f0c040;
    position: absolute;
    left: 12px;
    top: -8px;
    opacity: 0.3;
}

/* 新闻 */
.news article {
    padding: 24px 28px;
    margin-bottom: 20px;
}

.news article h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.news time {
    font-size: 0.85rem;
    opacity: 0.6;
    display: block;
    margin-bottom: 12px;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: #f0c040;
    font-weight: 600;
    transition: color 0.2s;
}

.read-more:hover {
    color: #e6a800;
}

/* FAQ */
.faq-item {
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    background: rgba(240,192,64,0.04);
    border-radius: 16px;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.6rem;
    transition: transform 0.3s;
    color: #f0c040;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-question:hover {
    background: rgba(240,192,64,0.08);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    background: rgba(255,255,255,0.3);
    border-radius: 0 0 16px 16px;
}

.faq-answer p {
    padding: 16px 0;
    margin: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 16px;
}

/* HowTo */
.howto ol {
    list-style: decimal;
    padding-left: 24px;
    margin: 16px 0;
}

.howto ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 联系表单 */
.contact form {
    display: grid;
    gap: 16px;
    max-width: 500px;
    padding: 32px;
    margin-top: 20px;
}

.contact label {
    font-weight: 600;
    font-size: 0.95rem;
}

.contact input, .contact textarea {
    padding: 14px 18px;
    border-radius: 16px;
    border: 2px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.5);
    font-size: 1rem;
    transition: border 0.2s, background 0.2s;
    outline: none;
}

.contact input:focus, .contact textarea:focus {
    border-color: #f0c040;
    background: #fff;
}

.contact button {
    padding: 14px 28px;
    border-radius: 50px;
    background: #f0c040;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
}

.contact button:hover {
    background: #e6a800;
    transform: scale(1.02);
}

/* 页脚 */
footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-inner a {
    color: #f0c040;
    transition: color 0.2s;
}

.footer-inner a:hover {
    color: #ffd966;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(240, 192, 64, 0.15);
    color: #f0c040;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

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

.back-to-top:hover {
    background: rgba(240, 192, 64, 0.3);
    transform: translateY(-4px);
}

/* 滚动动画（通用入场） */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-content p {
        max-width: 100%;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 40px;
    }
    .hero-visual svg {
        max-width: 300px;
    }
    section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
        padding: 8px 16px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(26,26,46,0.96);
        backdrop-filter: blur(12px);
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    nav.open ul {
        display: flex;
    }
    nav a {
        padding: 12px 20px;
    }
    .menu-toggle {
        display: block;
    }
    .dark-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .btn-primary, .btn-secondary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    section {
        padding: 50px 16px;
        margin: 12px auto;
    }
    .brand-stats {
        gap: 12px;
    }
    .stat {
        min-width: 80px;
        padding: 20px 12px;
    }
    .stat .num {
        font-size: 2rem;
    }
    .team-grid, .product-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    .history ul {
        grid-template-columns: 1fr;
    }
    .contact form {
        padding: 20px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    section h2 {
        font-size: 1.5rem;
    }
    .hero-visual svg {
        max-width: 220px;
    }
    .stat {
        min-width: 70px;
        padding: 16px 8px;
    }
    .stat .num {
        font-size: 1.6rem;
    }
    .team-card, .card {
        padding: 20px 12px;
    }
}