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

body {
    font-family: 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

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

ul {
    list-style: none;
}

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

/* Header - 毛玻璃效果 + 渐变 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.3s, border-color 0.3s;
}

body.dark header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #0b1a2e;
}

body.dark .logo {
    color: #f0c040;
}

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

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: #f0c040;
    border-bottom-color: #f0c040;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: #1e293b;
    border-radius: 2px;
    transition: 0.3s;
}

body.dark .nav-toggle span {
    background: #e2e8f0;
}

.dark-toggle {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    color: #1e293b;
}

body.dark .dark-toggle {
    border-color: #475569;
    color: #e2e8f0;
}

/* Hero - 渐变Banner */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0b1a2e 0%, #1e3a5f 50%, #2a4a7f 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #f0c040;
}

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

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

.btn-primary {
    background: #f0c040;
    color: #0b1a2e;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e0b030;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 192, 64, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: #f0c040;
    color: #f0c040;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.hero-image svg {
    width: 100%;
    max-width: 480px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-sub {
    text-align: center;
    font-size: 17px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 50px;
}

body.dark .section-sub {
    color: #94a3b8;
}

/* 圆角卡片 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark .card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.04);
}

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

.card-icon {
    margin-bottom: 16px;
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 15px;
    color: #475569;
}

body.dark .card p {
    color: #94a3b8;
}

.badge {
    display: inline-block;
    background: rgba(240, 192, 64, 0.12);
    color: #f0c040;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Brand story */
.brand-story {
    background: #fff;
}

body.dark .brand-story {
    background: #1e293b;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.story-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.story-text p {
    margin-bottom: 16px;
    color: #475569;
}

body.dark .story-text p {
    color: #94a3b8;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

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

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #f0c040;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e2e8f0;
}

body.dark .timeline::before {
    background: #334155;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #f0c040;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #f0c040;
}

body.dark .timeline-item::before {
    border-color: #1e293b;
}

.timeline-year {
    font-weight: 700;
    color: #f0c040;
    font-size: 18px;
}

.timeline-desc {
    color: #475569;
}

body.dark .timeline-desc {
    color: #94a3b8;
}

/* Products */
.products {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

body.dark .products {
    background: #0f172a;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-item {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

body.dark .feature-item {
    background: #1e293b;
    border-color: #334155;
}

.feature-item:hover {
    border-color: #f0c040;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

/* Cases */
.cases {
    background: #fff;
}

body.dark .cases {
    background: #1e293b;
}

.case-card {
    display: flex;
    flex-direction: column;
}

.case-card svg {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #e2e8f0;
}

body.dark .case-card svg {
    background: #334155;
}

/* Testimonials */
.testimonials {
    background: #f1f5f9;
}

body.dark .testimonials {
    background: #1e293b;
}

.testimonial-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.dark .testimonial-card {
    background: #0f172a;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-weight: 600;
}

/* News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.news-item {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

body.dark .news-item {
    background: #1e293b;
    border-color: #334155;
}

.news-item:hover {
    border-color: #f0c040;
}

.news-date {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.news-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-item p {
    font-size: 14px;
    color: #64748b;
}

.news-link {
    color: #f0c040;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: 0.3s;
}

body.dark .faq-item {
    background: #1e293b;
    border-color: #334155;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.faq-question::after {
    content: '+';
    font-size: 22px;
    transition: 0.3s;
}

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

.faq-answer {
    padding: 0 24px 18px;
    font-size: 15px;
    color: #475569;
    display: none;
}

body.dark .faq-answer {
    color: #94a3b8;
}

.faq-item.open .faq-answer {
    display: block;
}

/* HowTo */
.howto-steps {
    max-width: 800px;
    margin: 0 auto;
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

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

.howto-step h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.howto-step p {
    color: #475569;
    font-size: 15px;
}

body.dark .howto-step p {
    color: #94a3b8;
}

/* Contact */
.contact {
    background: #0b1a2e;
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form button {
    background: #f0c040;
    color: #0b1a2e;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #e0b030;
}

/* Footer */
footer {
    background: #0b1a2e;
    color: #94a3b8;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

footer h4 {
    color: #fff;
    margin-bottom: 16px;
    font-size: 16px;
}

footer a {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.2s;
}

footer a:hover {
    color: #f0c040;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 30px;
    font-size: 13px;
}

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

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #f0c040;
    color: #0b1a2e;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(240, 192, 64, 0.3);
    transition: 0.3s;
    z-index: 999;
}

.back-top.show {
    display: flex;
}

.back-top:hover {
    transform: translateY(-3px);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto 40px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 15px;
}

body.dark .search-box input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.search-box button {
    background: #f0c040;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #e0b030;
}

/* 轮播点 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dot.active {
    background: #f0c040;
    width: 30px;
    border-radius: 5px;
}

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

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

.team-card svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px;
    background: #e2e8f0;
}

body.dark .team-card svg {
    background: #334155;
}

.team-card h4 {
    font-size: 18px;
}

.team-card p {
    font-size: 14px;
    color: #64748b;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero p {
        margin: 0 auto 30px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .story-content {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    footer .container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 20px 20px;
    }
    body.dark .nav {
        background: #1e293b;
    }
    .nav.open {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 32px;
    }
    .section-title {
        font-size: 28px;
    }
    .story-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    footer .container {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 110px 0 50px;
    }
    .hero h1 {
        font-size: 26px;
    }
    .btn-primary,
    .btn-outline {
        padding: 12px 24px;
        font-size: 14px;
    }
    .card {
        padding: 20px;
    }
}