/* === 全局重置与基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f9fc;
    color: #1a1d2e;
    transition: background 0.3s, color 0.3s;
}
body.dark {
    background: #0b0e1a;
    color: #e8ecf1;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}

/* === 容器与工具类 === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .glass {
    background: rgba(11, 14, 26, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0b0e1a;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(251, 191, 36, 0.45);
}
.btn-outline {
    background: transparent;
    border: 2px solid #fbbf24;
    color: #fbbf24;
}
.btn-outline:hover {
    background: #fbbf24;
    color: #0b0e1a;
}
.section {
    padding: 80px 0;
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}
.section-sub {
    text-align: center;
    color: #6b7280;
    margin-bottom: 48px;
    font-size: 16px;
}
.dark .section-sub {
    color: #9ca3af;
}
.card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}
.dark .card {
    background: #111827;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}
.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
}
.text-center {
    text-align: center;
}
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.badge {
    display: inline-block;
    background: #fbbf24;
    color: #0b0e1a;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.dark .badge {
    background: #fbbf24;
    color: #0b0e1a;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    transition: all 0.3s;
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.dark .header.scrolled {
    background: rgba(11, 14, 26, 0.85);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #fbbf24;
}
.logo svg {
    width: 36px;
    height: 36px;
}
.nav {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}
.nav a {
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s;
}
.nav a:hover,
.nav a.active {
    color: #fbbf24;
}
.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.theme-toggle {
    background: transparent;
    border: none;
    color: #1a1d2e;
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
}
.dark .theme-toggle {
    color: #e8ecf1;
}
.theme-toggle:hover {
    background: rgba(251, 191, 36, 0.15);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
}
.hamburger span {
    width: 26px;
    height: 2.5px;
    background: #1a1d2e;
    border-radius: 4px;
    transition: all 0.3s;
}
.dark .hamburger span {
    background: #e8ecf1;
}
@media (max-width: 900px) {
    .nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px 32px;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    .dark .nav {
        background: rgba(11, 14, 26, 0.96);
    }
    .nav.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b0e1a 0%, #1a1f35 50%, #0b0e1a 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
}
.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 80px;
}
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
}
.hero-content h1 span {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 18px;
    color: #b0b7c9;
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}
.hero-content .btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 480px;
}
.hero-card .stat {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-card .stat:last-child {
    border: none;
}
.hero-card .stat-label {
    color: #9ca3af;
    font-size: 14px;
}
.hero-card .stat-value {
    color: #fbbf24;
    font-weight: 700;
    font-size: 18px;
}

/* === About === */
.about {
    background: #fff;
}
.dark .about {
    background: #111827;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}
.about-text p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 16px;
}
.dark .about-text p {
    color: #9ca3af;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}
.about-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fc;
    border-radius: 16px;
}
.dark .about-stat {
    background: #1f2937;
}
.about-stat .number {
    font-size: 36px;
    font-weight: 800;
    color: #fbbf24;
}
.about-stat .label {
    color: #6b7280;
    font-size: 14px;
    margin-top: 4px;
}
.dark .about-stat .label {
    color: #9ca3af;
}
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.02));
    border-radius: 32px;
    padding: 40px;
    min-height: 320px;
}

/* === Products === */
.products {
    background: #f8f9fc;
}
.dark .products {
    background: #0b0e1a;
}
.product-card {
    text-align: center;
    padding: 32px 20px;
}
.product-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.product-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}
.dark .product-card p {
    color: #9ca3af;
}

/* === Features === */
.features {
    background: #fff;
}
.dark .features {
    background: #111827;
}
.feature-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.feature-card .icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(251, 191, 36, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-card h4 {
    font-weight: 600;
    margin-bottom: 6px;
}
.feature-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}
.dark .feature-card p {
    color: #9ca3af;
}

/* === Solutions === */
.solutions {
    background: #f8f9fc;
}
.dark .solutions {
    background: #0b0e1a;
}
.solution-card {
    padding: 32px;
    text-align: center;
    border-left: 4px solid #fbbf24;
}
.solution-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}
.solution-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}
.dark .solution-card p {
    color: #9ca3af;
}

/* === Cases === */
.cases {
    background: #fff;
}
.dark .cases {
    background: #111827;
}
.case-card {
    overflow: hidden;
}
.case-card .case-img {
    height: 180px;
    background: linear-gradient(135deg, #1e3a5f, #0b1a2e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.case-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.case-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}
.dark .case-card p {
    color: #9ca3af;
}
.case-card .tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 8px;
}

/* === Testimonials === */
.testimonials {
    background: #f8f9fc;
}
.dark .testimonials {
    background: #0b0e1a;
}
.testimonial-card {
    padding: 32px;
    position: relative;
}
.testimonial-card .quote {
    font-size: 42px;
    color: #fbbf24;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -16px;
}
.testimonial-card p {
    color: #6b7280;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 16px;
}
.dark .testimonial-card p {
    color: #9ca3af;
}
.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-card .author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b0e1a;
}
.testimonial-card .author .name {
    font-weight: 600;
    font-size: 14px;
}
.testimonial-card .author .role {
    font-size: 12px;
    color: #6b7280;
}
.dark .testimonial-card .author .role {
    color: #9ca3af;
}

/* === News === */
.news {
    background: #fff;
}
.dark .news {
    background: #111827;
}
.news-card {
    padding: 24px;
}
.news-card .date {
    color: #9ca3af;
    font-size: 13px;
    margin-bottom: 8px;
}
.news-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}
.news-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.dark .news-card p {
    color: #9ca3af;
}
.news-card .read-more {
    color: #fbbf24;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* === FAQ === */
.faq {
    background: #f8f9fc;
}
.dark .faq {
    background: #0b0e1a;
}
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    cursor: pointer;
}
.dark .faq-item {
    border-color: #1f2937;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}
.faq-question .icon {
    transition: transform 0.3s;
    font-size: 20px;
}
.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s;
    opacity: 0;
    color: #6b7280;
    line-height: 1.7;
    font-size: 14px;
    padding-top: 4px;
}
.dark .faq-answer {
    color: #9ca3af;
}
.faq-item.open .faq-answer {
    max-height: 400px;
    opacity: 1;
    padding-top: 16px;
}

/* === HowTo === */
.howto {
    background: #fff;
}
.dark .howto {
    background: #111827;
}
.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}
.howto-step .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fbbf24;
    color: #0b0e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.howto-step .step-content h4 {
    font-weight: 600;
    margin-bottom: 6px;
}
.howto-step .step-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}
.dark .howto-step .step-content p {
    color: #9ca3af;
}

/* === Contact === */
.contact {
    background: #f8f9fc;
}
.dark .contact {
    background: #0b0e1a;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.contact-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}
.contact-info p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 8px;
}
.dark .contact-info p {
    color: #9ca3af;
}
.contact-info .item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.contact-info .item .icon {
    width: 40px;
    height: 40px;
    background: rgba(251, 191, 36, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-form {
    background: #fff;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.dark .contact-form {
    background: #111827;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    background: #f8f9fc;
    margin-bottom: 16px;
    transition: border 0.2s;
    font-family: inherit;
}
.dark .contact-form input,
.dark .contact-form textarea {
    background: #1f2937;
    border-color: #374151;
    color: #e8ecf1;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #fbbf24;
}
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.contact-form button {
    width: 100%;
}

/* === Footer === */
.footer {
    background: #0b0e1a;
    color: #9ca3af;
    padding: 48px 0 24px;
}
.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer .container {
        grid-template-columns: 1fr;
    }
}
.footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer a {
    color: #9ca3af;
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.2s;
}
.footer a:hover {
    color: #fbbf24;
}
.footer .copyright {
    grid-column: 1 / -1;
    border-top: 1px solid #1f2937;
    padding-top: 24px;
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
}
.footer .brand-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.footer .social {
    display: flex;
    gap: 12px;
}
.footer .social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.footer .social a:hover {
    background: #fbbf24;
    color: #0b0e1a;
}

/* === Scroll Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fbbf24;
    color: #0b0e1a;
    border: none;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

/* === Breadcrumb === */
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    padding: 12px 0;
}
.breadcrumb a {
    color: #6b7280;
}
.breadcrumb a:hover {
    color: #fbbf24;
}
.dark .breadcrumb,
.dark .breadcrumb a {
    color: #9ca3af;
}

/* === Search Modal === */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.search-modal.open {
    display: flex;
}
.search-modal .modal-content {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.dark .search-modal .modal-content {
    background: #111827;
}
.search-modal input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px;
    background: #f8f9fc;
    transition: border 0.2s;
}
.dark .search-modal input {
    background: #1f2937;
    border-color: #374151;
    color: #e8ecf1;
}
.search-modal input:focus {
    outline: none;
    border-color: #fbbf24;
}
.search-modal .close {
    float: right;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}
.dark .search-modal .close {
    color: #9ca3af;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .section {
        padding: 56px 0;
    }
    .section-title {
        font-size: 26px;
    }
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-content .btn-group {
        flex-direction: column;
    }
    .container {
        padding: 0 16px;
    }
}