:root {
    --bg-deep: #020617;
    --bg-card: rgba(10, 20, 50, 0.45);
    --border-glass: rgba(59, 130, 246, 0.28);
    --border-glow: rgba(59, 130, 246, 0.6);
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-cyan: #22d3ee;
    --accent-purple: #8b5cf6;
    --text-primary: #e8edf5;
    --text-secondary: #94a3b8;
    --text-dim: #94a3b8;
    --glow-blue: rgba(59, 130, 246, 0.25);
    --glow-purple: rgba(139, 92, 246, 0.2);
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #2c4c8c #0a1222;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1222;
}
::-webkit-scrollbar-thumb {
    background: #2c4c8c;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b5fb0;
}

body {
    font-family: 'Inter', 'Noto Sans SC', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.18) 0%, rgba(139, 92, 246, 0.08) 35%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    will-change: transform, left, top;
}

/* ── 导航栏 ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.9rem 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, 0.7);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.35s ease;
}
.navbar.scrolled {
    padding: 0.6rem 2.5rem;
    background: rgba(2, 6, 23, 0.85);
    border-bottom-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s, text-shadow 0.25s;
    position: relative;
    letter-spacing: 0.3px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    transition: transform 0.25s, box-shadow 0.25s !important;
}
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}
.nav-cta::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.mobile-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── 内容容器 ── */
.content {
    position: relative;
    z-index: 10;
}
.section {
    position: relative;
    z-index: 5;
    padding: 6rem 2rem;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ── 通用页面 Hero ── */
.page-hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
    text-align: center;
}
.page-hero .section-label {
    display: inline-block;
    color: var(--accent-light);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    font-weight: 500;
}
.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #93c5fd, #60a5fa);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 8s linear infinite;
}
@keyframes shine {
    0% { background-position: 200% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 4px var(--accent-cyan); }
    50% { box-shadow: 0 0 16px var(--accent-cyan), 0 0 30px rgba(34,211,238,0.4); }
}
.page-hero p {
    color: var(--text-secondary);
    max-width: 650px;
    margin: 1.2rem auto 0;
    font-size: 1.1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--accent-light);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 1.2rem auto;
    border-radius: 2px;
}

/* ── 按钮 ── */
.btn {
    padding: 0.95rem 2.2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
    transition: all var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 10px 30px -8px rgba(59, 130, 246, 0.45);
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px -10px rgba(59, 130, 246, 0.6);
}
.btn-glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: var(--text-primary);
}
.btn-glass:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -8px rgba(59, 130, 246, 0.3);
}
.btn-block {
    width: 100%;
    justify-content: center;
}

/* ── Footer ── */
.footer {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 10;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
}
.footer-col h4 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.footer-col p,
.footer-col a {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 2;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}
.footer-col a:hover {
    color: var(--accent-light);
}
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.85rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #ffffff;
}
.footer-wechat {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 25px;
    color: var(--accent-light) !important;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ── 微信二维码悬浮 ── */
.wechat-wrap {
    position: relative;
    cursor: pointer;
}
.wechat-qrcode {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(8px);
    z-index: 100;
    text-align: center;
}
.wechat-qrcode::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(2, 6, 23, 0.92);
}
.wechat-wrap:hover .wechat-qrcode {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.wechat-qrcode img {
    width: 150px;
    height: 150px;
    border-radius: 6px;
    display: block;
}
.wechat-qrcode i {
    display: block;
    font-style: normal;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 6px;
}

/* ── 响应式（共用） ── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.7rem 1.2rem;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(59, 130, 246, 0.2);
    }
    .nav-links.open {
        right: 0;
    }
    .mobile-toggle {
        display: flex;
    }
    .mobile-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .section {
        padding: 4rem 1.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
