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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f8f9fc;
    color: #1e293b;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

body.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== 头部 ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark header {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
    position: relative;
}

body.dark .nav-links a {
    color: #94a3b8;
}

.nav-links a:hover,
.nav-links a.active {
    color: #6366f1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6366f1;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #1e293b;
    border-radius: 2px;
    transition: all 0.3s;
}

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

body.dark .mobile-menu {
    background: rgba(15, 23, 42, 0.98);
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

body.dark .mobile-menu a {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu.open {
    display: block;
}

/* ===== Hero 区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    padding: 120px 24px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 span {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 60px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

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

.hero-stat .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    display: block;
}

.hero-stat .label {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 4px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark .section-title h2 {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

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

/* ===== 品牌介绍 ===== */
.brand-section {
    background: #fff;
}

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

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.brand-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.brand-text p {
    color: #475569;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

body.dark .brand-text p {
    color: #cbd5e1;
}

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

.brand-image svg {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ===== 产品中心 ===== */
.products-section {
    background: #f1f5f9;
}

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: center;
}

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

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

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

.product-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

/* ===== 案例展示 ===== */
.cases-section {
    background: #fff;
}

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

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.case-card {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark .case-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.05);
}

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

.case-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-card .meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

body.dark .case-card .meta {
    color: #94a3b8;
}

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

body.dark .case-card p {
    color: #cbd5e1;
}

/* ===== 新闻资讯 ===== */
.news-section {
    background: #f1f5f9;
}

body.dark .news-section {
    background: #0f172a;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.news-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

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

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

.news-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

body.dark .news-card p {
    color: #cbd5e1;
}

.news-card .read-more {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

/* ===== 常见问题 ===== */
.faq-section {
    background: #fff;
}

body.dark .faq-section {
    background: #1e293b;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark .faq-item {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    background: #f1f5f9;
}

body.dark .faq-item:hover {
    background: #1e293b;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-question .arrow {
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.faq-item.open .faq-question .arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s;
    opacity: 0;
    padding-top: 0;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 16px;
}

.faq-answer p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

body.dark .faq-answer p {
    color: #cbd5e1;
}

/* ===== 使用指南 ===== */
.howto-section {
    background: #f1f5f9;
}

body.dark .howto-section {
    background: #0f172a;
}

.howto-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.howto-step .step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.howto-step .step-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.howto-step .step-text p {
    color: #475569;
    font-size: 0.95rem;
}

body.dark .howto-step .step-text p {
    color: #cbd5e1;
}

/* ===== 联系我们 ===== */
.contact-section {
    background: #fff;
}

body.dark .contact-section {
    background: #1e293b;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact-info p {
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.dark .contact-info p {
    color: #cbd5e1;
}

.contact-form {
    background: #f8f9fc;
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

body.dark .contact-form {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.05);
}

.contact-form h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    transition: border 0.3s;
    outline: none;
}

body.dark .form-group input,
body.dark .form-group textarea {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #6366f1;
}

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

.form-submit {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

/* ===== 企业优势 ===== */
.trust-section {
    background: #f1f5f9;
    padding: 80px 0;
}

body.dark .trust-section {
    background: #0f172a;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.trust-item .trust-icon {
    margin-bottom: 16px;
}

.trust-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.trust-item p {
    color: #64748b;
    font-size: 0.9rem;
}

body.dark .trust-item p {
    color: #94a3b8;
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 360px;
}

.footer-col h5 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #6366f1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #94a3b8;
    margin-left: 16px;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #6366f1;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5);
}

/* ===== 暗黑模式切换 ===== */
.dark-toggle {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1e293b;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.dark-toggle:hover {
    transform: scale(1.1);
}

/* ===== 面包屑 ===== */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
    padding: 16px 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #6366f1;
}

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

.breadcrumb span {
    color: #94a3b8;
}

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

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

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

    .section-title h2 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat .number {
        font-size: 2rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-bottom a {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 14px 28px;
        font-size: 1rem;
    }
}