/* ==========================================================
   北京知行智研科技有限公司 官网样式
   主题：科技蓝 · 现代感
   ========================================================== */

/* ---------- 变量 ---------- */
:root {
    --bg-deep: #060d1f;
    --bg-dark: #0a1428;
    --bg-card: #0f1e38;
    --bg-card-2: #122445;
    --primary: #3b82f6;
    --primary-2: #2563eb;
    --cyan: #22d3ee;
    --text: #e8eefc;
    --text-muted: #9aaac7;
    --text-dim: #6b7d9e;
    --border: rgba(120, 160, 230, 0.14);
    --border-strong: rgba(96, 165, 250, 0.35);
    --gradient: linear-gradient(120deg, #60a5fa 0%, #38bdf8 50%, #22d3ee 100%);
    --shadow: 0 24px 60px rgba(2, 8, 24, 0.55);
    --container: 1200px;
    --radius: 16px;
    --nav-h: 76px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }

/* ---------- 通用按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 12px; }
.btn-primary {
    background: linear-gradient(120deg, var(--primary), var(--cyan));
    color: #05122b;
    box-shadow: 0 10px 30px rgba(59, 130, 246, .3);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(59, 130, 246, .45); }
.btn-ghost {
    color: var(--text); border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover { background: rgba(96, 165, 250, .1); border-color: var(--cyan); }
.btn-white { background: #fff; color: var(--primary-2); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.btn-white:hover { box-shadow: 0 14px 38px rgba(0,0,0,.3); }

/* ---------- 渐变文字 ---------- */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ==========================================================
   顶部导航
   ========================================================== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(6, 13, 31, .82);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.brand-text small { font-size: 9px; letter-spacing: 2.5px; color: var(--cyan); margin-top: 3px; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; font-size: 15px; color: var(--text-muted); font-weight: 500; padding: 6px 0; transition: color .2s ease; }
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
    background: var(--gradient); border-radius: 2px; transition: width .28s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { padding: 10px 18px; font-size: 14px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: .3s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   Hero 首屏
   ========================================================== */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px;
    overflow: hidden; isolation: isolate;
    background:
        radial-gradient(1000px 600px at 75% 10%, rgba(37, 99, 235, .22), transparent 60%),
        radial-gradient(800px 500px at 15% 80%, rgba(34, 211, 238, .12), transparent 60%),
        linear-gradient(180deg, #081126 0%, var(--bg-deep) 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .7; }
.grid-overlay {
    position: absolute; inset: 0; z-index: -3;
    background-image:
        linear-gradient(rgba(120, 160, 230, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 160, 230, .05) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 80%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -2; pointer-events: none; }
.glow-1 { width: 460px; height: 460px; background: rgba(59,130,246,.22); top: -120px; right: -80px; animation: floatGlow 9s ease-in-out infinite; }
.glow-2 { width: 380px; height: 380px; background: rgba(34,211,238,.14); bottom: -120px; left: -60px; animation: floatGlow 11s ease-in-out infinite reverse; }
@keyframes floatGlow { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -40px); } }

.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 16px 7px 12px; margin-bottom: 26px;
    border: 1px solid var(--border-strong); border-radius: 50px;
    background: rgba(59, 130, 246, .08); color: #bcd4ff;
    font-size: 13px; font-weight: 500; letter-spacing: .5px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.15), 0 0 12px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(34,211,238,.15), 0 0 12px var(--cyan); } 50% { box-shadow: 0 0 0 7px rgba(34,211,238,0), 0 0 18px var(--cyan); } }

.hero-title { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.18; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 26px; }
.hero-desc { max-width: 680px; font-size: 17px; color: var(--text-muted); line-height: 1.9; margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }

.scroll-down { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); letter-spacing: 2px; z-index: 3; }
.scroll-mouse { width: 22px; height: 34px; border: 1.5px solid var(--text-dim); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.scroll-mouse span { width: 3px; height: 7px; background: var(--cyan); border-radius: 2px; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ==========================================================
   通用 Section
   ========================================================== */
.section { position: relative; padding: 110px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--cyan); margin-bottom: 14px; }
.section-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.section-subtitle { font-size: 16px; color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* ==========================================================
   关于我们
   ========================================================== */
.about { background: linear-gradient(180deg, var(--bg-deep) 0%, #081327 100%); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.about-text h3 { font-size: 30px; line-height: 1.45; font-weight: 700; margin-bottom: 22px; }
.about-text p { color: var(--text-muted); font-size: 15.5px; line-height: 1.95; margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.value-item { display: flex; align-items: flex-start; gap: 12px; }
.value-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(59,130,246,.1); border: 1px solid var(--border); color: var(--cyan); }
.value-icon svg { width: 22px; height: 22px; }
.value-item div { display: flex; flex-direction: column; }
.value-item strong { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.value-item span { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

.about-visual { position: relative; height: 400px; display: flex; align-items: center; justify-content: center; }
.visual-ring { position: absolute; width: 330px; height: 330px; border: 1px dashed rgba(96,165,250,.25); border-radius: 50%; animation: spin 40s linear infinite; }
.visual-ring::before { content: ''; position: absolute; inset: 40px; border: 1px solid rgba(34,211,238,.12); border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.visual-card { display: flex; align-items: center; gap: 14px; background: rgba(15, 30, 56, .85); border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px 22px; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.visual-card div { display: flex; flex-direction: column; }
.visual-card strong { font-size: 16px; }
.visual-card span:not(.visual-icon):not(.float-dot) { font-size: 12px; color: var(--text-dim); }
.visual-main { position: relative; z-index: 2; flex-direction: column; text-align: center; padding: 30px 34px; }
.visual-main .visual-icon { width: 76px; height: 76px; color: var(--cyan); margin-bottom: 10px; animation: softFloat 5s ease-in-out infinite; }
@keyframes softFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.visual-float { position: absolute; z-index: 3; padding: 13px 18px; }
.visual-float strong { font-size: 14px; }
.float-1 { top: 46px; right: 6px; animation: softFloat 6s ease-in-out infinite; }
.float-2 { bottom: 48px; left: 0; animation: softFloat 7s ease-in-out infinite reverse; }
.float-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.float-dot.cyan { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.float-dot.blue { background: var(--primary); box-shadow: 0 0 14px var(--primary); }

/* ==========================================================
   业务 / 产品中心
   ========================================================== */
.business { background: #071024; overflow: hidden; }
.business-bg { position: absolute; inset: 0; background: radial-gradient(900px 500px at 50% 0%, rgba(37,99,235,.14), transparent 65%); pointer-events: none; }
.business .container { position: relative; z-index: 1; }
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.biz-card {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, rgba(18, 36, 69, .85), rgba(10, 20, 40, .85));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px 30px 30px;
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.biz-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 200px at 100% 0%, rgba(59,130,246,.16), transparent 70%); opacity: 0; transition: opacity .35s ease; }
.biz-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }
.biz-card:hover::before { opacity: 1; }
.biz-icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(59,130,246,.2), rgba(34,211,238,.1)); border: 1px solid var(--border-strong); color: var(--cyan); margin-bottom: 26px; transition: transform .35s ease; }
.biz-card:hover .biz-icon { transform: scale(1.08) rotate(-5deg); }
.biz-icon svg { width: 28px; height: 28px; }
.biz-index { position: absolute; top: 26px; right: 28px; font-size: 40px; font-weight: 800; color: rgba(120,160,230,.08); line-height: 1; }
.biz-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; position: relative; }
.biz-card p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 18px; position: relative; min-height: 76px; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; position: relative; }
.biz-tags span { font-size: 11.5px; color: #a9c6f5; background: rgba(59,130,246,.1); border: 1px solid rgba(96,165,250,.18); border-radius: 6px; padding: 4px 10px; }
.biz-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--cyan); position: relative; }
.biz-link svg { width: 17px; height: 17px; transition: transform .25s ease; }
.biz-link:hover svg { transform: translateX(4px); }

.cta-banner {
    position: relative; overflow: hidden; margin-top: 64px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    padding: 44px 50px; border-radius: 20px;
    background: linear-gradient(115deg, #1e40af 0%, #2563eb 45%, #0891b2 100%);
    box-shadow: 0 24px 60px rgba(37, 99, 235, .3);
}
.cta-glow { position: absolute; width: 400px; height: 400px; background: rgba(255,255,255,.1); border-radius: 50%; filter: blur(60px); right: -100px; top: -180px; }
.cta-text { position: relative; z-index: 1; }
.cta-text h3 { font-size: 27px; font-weight: 800; margin-bottom: 6px; }
.cta-text p { color: rgba(255,255,255,.85); font-size: 15px; }
.cta-banner .btn { position: relative; z-index: 1; }

/* ==========================================================
   页脚
   ========================================================== */
.site-footer { background: #050b19; border-top: 1px solid var(--border); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.6fr; gap: 40px; padding-bottom: 54px; }
.footer-brand p { color: var(--text-dim); font-size: 13.5px; line-height: 1.8; margin-top: 18px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.footer-col a { color: var(--text-dim); font-size: 13.5px; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover { color: var(--cyan); transform: translateX(3px); }
.footer-contact p { display: flex; align-items: center; gap: 9px; color: var(--text-dim); font-size: 13px; }
.footer-contact svg { width: 17px; height: 17px; flex: none; color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { color: var(--text-dim); font-size: 12.5px; }

/* ==========================================================
   滚动显现动画
   ========================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.business-grid .reveal:nth-child(2), .business-grid .reveal:nth-child(5) { transition-delay: .08s; }
.business-grid .reveal:nth-child(3), .business-grid .reveal:nth-child(6) { transition-delay: .16s; }
.hero-badge.reveal { transition-delay: .05s; }
.hero-title.reveal { transition-delay: .12s; }
.hero-desc.reveal { transition-delay: .2s; }
.hero-actions.reveal { transition-delay: .28s; }

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 1024px) {
    .about-grid { gap: 40px; }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(6, 13, 31, .97); backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border); padding: 14px 24px 24px;
        transform: translateY(-140%); opacity: 0; transition: transform .35s ease, opacity .35s ease;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; }
    .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
    .nav-link::after { display: none; }
    .menu-toggle { display: block; }
    .nav-cta { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { height: 360px; margin-top: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .container { width: min(calc(100% - 36px), var(--container)); }
    .section { padding: 80px 0; }
    .hero-title { font-size: 38px; letter-spacing: -.5px; }
    .hero-desc { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .about-text h3 { font-size: 24px; }
    .about-values { grid-template-columns: 1fr; gap: 18px; }
    .visual-main { padding: 24px; }
    .business-grid { grid-template-columns: 1fr; }
    .biz-card p { min-height: auto; }
    .cta-banner { padding: 32px 26px; }
    .cta-banner .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-contact { grid-column: auto; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
