/* ==================== 浅色模式主题变量 ==================== */
:root {
    --primary: #2563eb;
    --primary-grad: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --primary-light: rgba(37, 99, 235, 0.08);
    --primary-glow: rgba(37, 99, 235, 0.3);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-danmaku: #f1f5f9;
    --border-color: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.75);
    --footer-bg: #ffffff;
    --footer-border: #f1f5f9;
    --footer-text: #64748b;
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    --card-shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== 自动检测并切换：手机暗色模式 ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-main: #f8fafc;
        --text-muted: #94a3b8;
        --bg-body: #09090b;
        --bg-card: #121214;
        --bg-danmaku: #1c1c1f;
        --border-color: #27272a;
        --header-bg: rgba(9, 9, 11, 0.75);
        --footer-bg: #09090b;
        --footer-border: #18181b;
        --footer-text: #71717a;
        --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        --card-shadow-hover: 0 20px 40px rgba(37, 99, 235, 0.15);
        --primary-light: rgba(37, 99, 235, 0.15);
    }
}

html { scroll-behavior: smooth; cursor: default; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1400px) { .container { max-width: 1400px; } }
@media (min-width: 1920px) { .container { max-width: 1600px; } }

/* ==================== 科技感鼠标跟随光标 ==================== */
@media (min-width: 992px) {
    body { cursor: auto; }
}
.cursor-dot, .cursor-glow {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 99999;
    transform: translate(-50%, -50%);
    display: none;
}
@media (min-width: 992px) {
    .cursor-dot, .cursor-glow { display: block; }
}
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-glow {
    width: 36px; height: 36px;
    border: 1px solid var(--primary);
    background: rgba(37, 99, 235, 0.05);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    transition: transform 0.08s ease-out, width 0.3s ease, height 0.3s ease, background 0.3s, left 0.08s ease-out, top 0.08s ease-out;
}
.cursor-glow.hover-active {
    width: 64px; height: 64px;
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}
.cursor-dot.hover-active { opacity: 0; }

/* ==================== 滚动揭示全局动画类 ==================== */
.reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==================== 1. 顶部导航栏 ==================== */
header {
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
header.scrolled { padding: 2px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); background: var(--header-bg); }
.navbar { display: flex; justify-content: space-between; align-items: center; height: 74px; transition: height 0.3s ease; }
header.scrolled .navbar { height: 64px; }

.logo { display: flex; align-items: center; font-weight: 700; font-size: 20px; letter-spacing: 0.5px; }
.logo img {
    width: 36px; height: 36px; object-fit: cover;
    border-radius: 10px; margin-right: 12px;
    border: 1.5px solid transparent;
    transition: var(--transition);
}
.logo:hover img { transform: scale(1.08) rotate(-5deg); box-shadow: 0 4px 15px var(--primary-glow); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14.5px; font-weight: 500; transition: var(--transition); position: relative; padding: 6px 0; }
.nav-links a.active, .nav-links a:hover { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2.5px; border-radius: 2px;
    background: var(--primary-grad); transition: var(--transition); transform: translateX(-50%);
}
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.btn-dev-custom, .btn-more {
    position: relative; overflow: hidden; background: var(--primary-grad); color: #ffffff !important;
    padding: 9px 20px; border-radius: 30px; font-size: 13.5px; font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow); transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; z-index: 1;
}
.btn-dev-custom::before, .btn-more::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: all 0.6s ease; z-index: -1;
}
.btn-dev-custom:hover::before, .btn-more:hover::before { left: 100%; }
.btn-dev-custom:hover, .btn-more:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }

/* ==================== 2. Hero 主视觉区 ==================== */
.hero { position: relative; padding: 90px 0; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    top: -100px; right: -100px; border-radius: 50%;
    animation: pulseBg 8s infinite alternate ease-in-out; z-index: -1; pointer-events: none;
}
@keyframes pulseBg {
    0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
    100% { transform: scale(1.2) translate(-50px, 50px); opacity: 1; }
}

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.tagline { display: inline-flex; background-color: var(--primary-light); color: var(--primary); padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 24px; border: 1px solid rgba(37, 99, 235, 0.1); backdrop-filter: blur(4px); }
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; letter-spacing: -0.5px; }
.hero-title span { background: var(--primary-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; position: relative; display: inline-block; }
.hero-desc { font-size: 16px; color: var(--text-muted); margin-bottom: 40px; max-width: 90%; }
.hero-btns { display: flex; gap: 16px; }

.btn-more { padding: 13px 34px; font-size: 15px; }
.btn-contact {
    background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main);
    padding: 13px 34px; border-radius: 30px; font-weight: 600; font-size: 15px; transition: var(--transition);
}
.btn-contact:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: var(--card-shadow); }

.hero-image-wrapper { display: flex; justify-content: center; position: relative; z-index: 1; }
.hero-image { position: relative; z-index: 2; width: 100%; max-width: 420px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 30px rgba(37, 99, 235, 0.15)); pointer-events: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ==================== 背景全景弹幕 (PC与移动端无缝互通) ==================== */
.hero-danmaku {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 180%; height: 100%; z-index: 1; pointer-events: none; overflow: hidden;
    mask-image: linear-gradient(to right, transparent 5%, black 25%, black 75%, transparent 95%);
    -webkit-mask-image: linear-gradient(to right, transparent 5%, black 25%, black 75%, transparent 95%);
    opacity: 0.8;
}
.danmaku-container { display: flex; flex-direction: column; gap: 20px; width: 100%; transform: rotate(-2.5deg); }
.danmaku-track { display: flex; white-space: nowrap; width: max-content; }
.track-1 .danmaku-group { animation: scrollMarquee 55s linear infinite; }
.track-2 .danmaku-group { animation: scrollMarquee 70s linear infinite reverse; }
.track-3 .danmaku-group { animation: scrollMarquee 60s linear infinite; animation-delay: -10s; }
.danmaku-group { display: flex; gap: 22px; padding-right: 22px; will-change: transform; }
.danmaku-item {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.80);
    padding: 9px 20px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04); color: var(--text-main);
}
@media (prefers-color-scheme: dark) {
    .danmaku-item { background: rgba(28, 28, 31, 0.80); border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
}
.danmaku-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--primary-light); }
.danmaku-text { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==================== 3. 电脑端数据看板 ==================== */
.stats-bar { margin-top: -30px; padding-bottom: 40px; position: relative; z-index: 10; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg-card); box-shadow: var(--card-shadow); border-radius: 20px; padding: 30px 20px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.stats-item { display: flex; align-items: center; justify-content: center; gap: 16px; border-right: 1px solid var(--border-color); transition: transform 0.3s ease; }
.stats-item:hover { transform: scale(1.03); }
.stats-item:last-child { border-right: none; }
.stats-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 22px; transition: var(--transition); }
.stats-item:hover .stats-icon { background: var(--primary); color: white; transform: rotate(-10deg); }
.stats-info .num { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.stats-info .label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ==================== 5. 旗下产品中心 ==================== */
.products-section { padding: 90px 0; background: var(--bg-card); position: relative; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }

.tab-container { display: inline-flex; justify-content: center; gap: 4px; background: var(--bg-body); padding: 6px; border-radius: 40px; margin: 0 auto 50px; border: 1px solid var(--border-color); position: relative; left: 50%; transform: translateX(-50%); }
.tab-btn { background: transparent; border: none; padding: 10px 32px; font-size: 15px; font-weight: 600; color: var(--text-muted); border-radius: 30px; transition: var(--transition); position: relative; z-index: 1; }
.tab-btn.active { background: var(--bg-card); color: var(--primary); box-shadow: var(--card-shadow); }
.tab-btn:hover:not(.active) { color: var(--text-main); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1200px; }

@media (min-width: 993px) {
    .products-grid { grid-template-columns: repeat(6, 1fr); }
    .products-grid > *:nth-child(1) { grid-column: 1 / 3; }
    .products-grid > *:nth-child(2) { grid-column: 3 / 5; }
    .products-grid > *:nth-child(3) { grid-column: 5 / 7; }
    .products-grid > *:nth-child(4) { grid-column: 2 / 4; }
    .products-grid > *:nth-child(5) { grid-column: 4 / 6; }
}

/* 3D 深度卡片 */
.product-card {
    background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px;
    padding: 32px 26px 26px; transition: box-shadow 0.4s ease, background 0.4s ease;
    display: flex; flex-direction: column; align-items: flex-start;
    position: relative; overflow: hidden; z-index: 1;
    transform-style: preserve-3d;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: -10px;
    background-image: var(--card-bg);
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    opacity: 0.06;
    filter: blur(30px);
    transition: var(--transition);
    z-index: -1;
    mask-image: radial-gradient(ellipse 60% 60% at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at center, black 30%, transparent 70%);
}
.product-card::after {
    content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 2px;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: var(--transition); pointer-events: none;
}

.product-card:hover { background: var(--bg-card); box-shadow: var(--card-shadow-hover); }
.product-card:hover::after { opacity: 1; }
.product-card:hover::before { opacity: 0.12; filter: blur(18px); }

.p-icon {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; transition: var(--transition); border: 1px solid var(--border-color);
    position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transform: translateZ(35px);
    overflow: hidden;
    background: var(--bg-card);
}
.p-icon img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
    transition: var(--transition);
}
.p-icon::after {
    content: ''; position: absolute; width: 8px; height: 8px; background: #3b82f6;
    border-radius: 50%; right: -3px; top: -3px; opacity: 0; transition: var(--transition);
    box-shadow: 0 0 10px #3b82f6;
}
.product-card:hover .p-icon {
    border-color: var(--primary);
    box-shadow: 0 8px 20px var(--primary-glow);
    transform: translateZ(35px) scale(1.05);
}
.product-card:hover .p-icon::after { opacity: 1; transform: scale(1.2); }

.product-card h3 { font-size: 19px; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.2px; transform: translateZ(25px); }
.product-card p { font-size: 14px; color: var(--text-muted); min-height: 66px; line-height: 1.6; margin-bottom: 22px; transform: translateZ(15px); }

.btn-go-product {
    font-size: 14px; font-weight: 600; color: var(--text-muted);
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: auto; transition: var(--transition); transform: translateZ(20px);
}
.btn-go-product span {
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%; background: var(--bg-body);
    transition: var(--transition); font-size: 12px;
}
.product-card:hover .btn-go-product { color: var(--primary); }
.product-card:hover .btn-go-product span { background: var(--primary-light); color: var(--primary); transform: translateX(6px); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: panelFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes panelFadeIn { from { opacity: 0; transform: translateY(15px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }

.more-products-action { text-align: center; margin-top: 50px; }
.btn-more-products {
    display: inline-flex; align-items: center; gap: 8px; color: var(--primary);
    font-weight: 600; font-size: 15px; padding: 12px 30px; border-radius: 30px;
    background: var(--primary-light); transition: var(--transition); border: 1px solid transparent;
}
.btn-more-products:hover { background: var(--primary); color: #ffffff; transform: translateY(-2px); box-shadow: 0 10px 20px var(--primary-glow); }
.btn-more-products span { transition: transform 0.3s ease; }
.btn-more-products:hover span { transform: translateX(4px); }

/* ==================== 6. 核心优势 ==================== */
.features-section { padding: 90px 0; background: var(--bg-body); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1200px; }
.feature-box {
    background: var(--bg-card); padding: 40px 30px; border-radius: 20px;
    box-shadow: var(--card-shadow); border: 1px solid var(--border-color);
    transition: box-shadow 0.4s ease; position: relative; overflow: hidden; transform-style: preserve-3d;
}
.feature-box::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.feature-box:hover { box-shadow: var(--card-shadow-hover); }
.feature-box:hover::before { transform: scaleX(1); }
.feature-title { font-size: 19px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; transform: translateZ(25px); }
.feature-box p { line-height: 1.7; transform: translateZ(15px); }

/* ==================== 7. 精致扁平化页脚 ==================== */
footer { background: var(--footer-bg); color: var(--footer-text); padding: 50px 0 40px; font-size: 13.5px; border-top: 1px solid var(--footer-border); text-align: center; transition: var(--transition); }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-copyright { font-weight: 500; letter-spacing: 0.2px; color: var(--text-main); }
.footer-badge-line { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-badge-line img { height: 16px; object-fit: contain; opacity: 0.8; transition: var(--transition); }
.footer-badge-line a { transition: color 0.2s ease; }
.footer-badge-line a:hover { color: var(--primary); }
.footer-badge-line:hover img { opacity: 1; }
.footer-wish-text { font-size: 13px; opacity: 0.7; max-width: 550px; margin: 4px 0 8px; font-style: italic; }

.footer-social-icons { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; }
.social-icon-btn {
    width: 40px; height: 40px; border-radius: 12px; background: var(--bg-body); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center; box-shadow: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-icon-btn img { width: 22px; height: 22px; object-fit: contain; opacity: 0.7; transition: all 0.3s ease; }
.social-icon-btn:not(a) { font-size: 16px; font-weight: 600; color: var(--text-muted); }

.social-icon-btn:hover { transform: translateY(-3px); border-color: var(--primary-light); }
.social-icon-btn:hover img { opacity: 1; transform: scale(1.1); }
.social-icon-btn[href*="douyin.com"]:hover { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.15); }
.social-icon-btn[href*="kuaishou.com"]:hover { background: rgba(255, 80, 0, 0.08); border-color: rgba(255, 80, 0, 0.2); }
.social-icon-btn[href*="b23.tv"]:hover, .social-icon-btn[href*="bilibili.com"]:hover { background: rgba(242, 93, 142, 0.08); border-color: rgba(242, 93, 142, 0.2); }
.social-icon-btn[href^="mailto:"]:hover { background: var(--primary-light); border-color: rgba(37, 99, 235, 0.2); }
.social-icon-btn:not(a):hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ==================== 8. 移动端响应式适配 ==================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-desc { margin: 0 auto 30px; }
    .hero-btns { justify-content: center; }
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .products-grid > * { grid-column: auto !important; }
    .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 36px; }
    .hero-image-wrapper { margin-top: 40px; }
    .hero-image { max-width: 260px; }
    .hero-danmaku { width: 120vw; mask-image: none; -webkit-mask-image: none; }
    .stats-bar { display: none !important; }
    .products-grid { grid-template-columns: 1fr !important; }
    .tab-btn { padding: 8px 20px; font-size: 14px; }
    .feature-box { padding: 30px 20px; }
}
