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

:root {
    --primary: #0a0a2e;
    --secondary: #1a1a4e;
    --accent: #ffd700;
    --accent2: #ff6b35;
    --text: #e0e0e0;
    --text-dark: #1a1a2e;
    --bg: #0a0a2e;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.light-mode {
    --primary: #f0f4ff;
    --secondary: #e8edf8;
    --text: #1a1a2e;
    --text-dark: #0a0a2e;
    --bg: #f0f4ff;
    --bg-card: rgba(10, 10, 46, 0.04);
    --bg-glass: rgba(10, 10, 46, 0.06);
    --border-glass: rgba(10, 10, 46, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent2);
}

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

/* 容器与布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.8;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

/* 毛玻璃效果 */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 网格布局 */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

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

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

/* 导航栏 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s;
    background: transparent;
}

.nav.scrolled {
    background: rgba(10, 10, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 0;
}

.light-mode .nav.scrolled {
    background: rgba(240, 244, 255, 0.95);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo svg {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

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

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

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--primary);
    z-index: 999;
    padding: 80px 32px;
    transition: right 0.4s;
    border-left: 1px solid var(--border-glass);
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: var(--text);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-glass);
}

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(255, 107, 53, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 12s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-40px) scale(1.5);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-badges span {
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    font-size: 0.85rem;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}

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

.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Banner 轮播 */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-top: 40px;
}

.banner-slide {
    display: none;
    padding: 40px;
    min-height: 300px;
    align-items: center;
}

.banner-slide.active {
    display: flex;
}

.banner-slide .glass {
    width: 100%;
    padding: 40px;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-glass);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* 关于我们卡片 */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

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

.about-card svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--primary);
}

.timeline-year {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.2rem;
}

/* 产品中心 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    padding: 32px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card svg {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

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

.product-card .price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    margin: 12px 0;
}

/* 平台优势 */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.advantage-card {
    padding: 28px;
    text-align: center;
}

.advantage-card svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
}

/* 合作伙伴 */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
    margin-top: 32px;
}

.partner-logo {
    padding: 16px 24px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.8;
}

/* 客户评价 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
}

.testimonial-card .stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

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

.testimonial-card .author {
    font-weight: 700;
}

/* 新闻中心 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.news-card {
    padding: 24px;
}

.news-card .date {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 8px;
}

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

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 0;
}

.faq-question svg {
    transition: transform 0.3s;
    width: 20px;
    height: 20px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

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

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

/* 使用指南步骤 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-glass);
}

.howto-step::before {
    counter-increment: step;
    content: counter(step);
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-card {
    padding: 24px;
    text-align: center;
}

.contact-card svg {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
}

/* 页脚 */
.footer {
    padding: 48px 0 24px;
    border-top: 1px solid var(--border-glass);
    margin-top: 40px;
}

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

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent);
}

.footer a {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    z-index: 100;
    transition: all 0.3s;
}

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

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

/* 暗色模式切换 */
.dark-toggle {
    background: none;
    border: 2px solid var(--border-glass);
    border-radius: 50px;
    padding: 6px 14px;
    color: var(--text);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.dark-toggle:hover {
    border-color: var(--accent);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    width: 180px;
}

.search-box input::placeholder {
    color: var(--text);
    opacity: 0.5;
}

.search-box button {
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    background: var(--accent);
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 48px 0;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-box input {
        width: 120px;
    }
}

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

    .container {
        padding: 0 16px;
    }

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

/* 辅助类 */
.lazy-bg {
    background-image: none;
}

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

/* 服务体系 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.service-item {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

/* 解决方案 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.solution-card {
    padding: 32px;
}

.solution-card h3 {
    margin-bottom: 12px;
}

/* 行业应用 */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.industry-item {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}