/* ========== 基础变量 ========== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1528;
    --bg-card: #111827;
    --bg-card-hover: #162032;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #00d4ff;
    --accent-rgb: 0, 212, 255;
    --accent2: #7c3aed;
    --accent2-rgb: 124, 58, 237;
    --gradient: linear-gradient(135deg, #00d4ff, #7c3aed);
    --border: rgba(0, 212, 255, 0.12);
    --border-hover: rgba(0, 212, 255, 0.3);
    --glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --glow-strong: 0 0 40px rgba(0, 212, 255, 0.25);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== 粒子画布 ========== */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ========== 容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: var(--gradient);
    border-radius: 10px;
    font-size: 1rem;
    color: #fff;
}
.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-menu {
    display: flex;
    gap: 8px;
}
.nav-link {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-content { flex: 1; max-width: 600px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.title-line { display: block; }
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.45);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* 统计数字 */
.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}
.stat-item { text-align: center; }
.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}
.stat-suffix {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 轨道动画 */
.hero-visual {
    position: relative;
    width: 360px; height: 360px;
    flex-shrink: 0;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.orbit-ring {
    position: absolute;
    border: 1px solid var(--border);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.ring-1 { width: 200px; height: 200px; animation: spin 20s linear infinite; }
.ring-2 { width: 280px; height: 280px; border-style: dashed; animation: spin 30s linear infinite reverse; }
.ring-3 { width: 360px; height: 360px; animation: spin 40s linear infinite; }
.orbit-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: var(--glow-strong);
}
.orbit-dot {
    position: absolute;
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--accent);
    box-shadow: var(--glow);
}
.dot-1 { top: 20px; right: 60px; animation: float 3s ease-in-out infinite; }
.dot-2 { bottom: 40px; left: 20px; animation: float 3s ease-in-out infinite 1s; }
.dot-3 { top: 50%; right: 10px; animation: float 3s ease-in-out infinite 2s; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 通用 Section ========== */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 产品卡片 ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.product-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    overflow: hidden;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--glow-strong);
}
.card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(var(--accent-rgb), 0.06), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .card-glow { opacity: 1; }
.card-icon {
    width: 56px; height: 56px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 20px;
}
.card-badge {
    position: absolute;
    top: 20px; right: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(var(--accent2-rgb), 0.15);
    color: var(--accent2);
    border-radius: 6px;
    letter-spacing: 1px;
}
.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}
.card-features {
    margin-bottom: 24px;
}
.card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.card-features li i {
    color: var(--accent);
    font-size: 0.75rem;
}
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition);
}
.card-link:hover { gap: 14px; }

/* ========== 核心优势 ========== */
.features {
    background: var(--bg-secondary);
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-item {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.feature-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}
.feature-item:hover .feature-icon {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: var(--border-hover);
    box-shadow: var(--glow);
}
.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== 关于我们 ========== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-visual {
    position: relative;
    height: 360px;
}
.tech-grid {
    position: relative;
    width: 100%; height: 100%;
}
.grid-line {
    position: absolute;
    background: var(--border);
}
.grid-line.h1, .grid-line.h2, .grid-line.h3 {
    height: 1px; left: 0; right: 0;
}
.grid-line.h1 { top: 25%; }
.grid-line.h2 { top: 50%; }
.grid-line.h3 { top: 75%; }
.grid-line.v1, .grid-line.v2, .grid-line.v3 {
    width: 1px; top: 0; bottom: 0;
}
.grid-line.v1 { left: 25%; }
.grid-line.v2 { left: 50%; }
.grid-line.v3 { left: 75%; }
.grid-node {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: var(--glow);
    animation: pulse 2s ease-in-out infinite;
}
.grid-node.n1 { top: 25%; left: 25%; animation-delay: 0s; }
.grid-node.n2 { top: 25%; left: 75%; animation-delay: 0.3s; }
.grid-node.n3 { top: 50%; left: 50%; animation-delay: 0.6s; width: 18px; height: 18px; }
.grid-node.n4 { top: 75%; left: 25%; animation-delay: 0.9s; }
.grid-node.n5 { top: 75%; left: 75%; animation-delay: 1.2s; }
.grid-node.n6 { top: 50%; left: 10%; animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.about-text .section-tag { display: block; text-align: left; margin-bottom: 12px; }
.about-text .section-title { text-align: left; margin-bottom: 24px; }
.about-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.about-text strong { color: var(--accent); }
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}
.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.highlight i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ========== 联系我们 ========== */
.contact {
    background: var(--bg-secondary);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.contact-card {
    text-align: center;
    padding: 36px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}
.contact-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
}
.contact-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== 页脚 ========== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 0.9rem;
}
.footer-links h5 {
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom .icp {
    margin-top: 6px;
}

.footer-bottom .icp a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom .icp a:hover {
    color: var(--accent);
}

/* ========== 滚动动画 ========== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; gap: 40px; padding-top: 100px; }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { width: 280px; height: 280px; }
    .ring-1 { width: 160px; height: 160px; }
    .ring-2 { width: 220px; height: 220px; }
    .ring-3 { width: 280px; height: 280px; }
    .product-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .about-layout { grid-template-columns: 1fr; }
    .about-visual { height: 280px; }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 260px; height: 100vh;
        background: rgba(10, 14, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }
    .nav-menu.open { right: 0; }
    .nav-toggle { display: flex; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .feature-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
    .hero-actions { flex-direction: column; align-items: center; }
}