/* ============================================================
   KKIPS 首页 v2 — 深空科技风
   独立样式, 仅 index.php 引入, 不依赖 css/index.css
   ============================================================ */

:root {
    --bg: #04060c;
    --bg-2: #080d18;
    --panel: rgba(13, 20, 36, 0.62);
    --panel-solid: #0c1322;
    --line: rgba(140, 160, 190, 0.13);
    --line-bright: rgba(59, 130, 246, 0.5);
    --text: #e6edf7;
    --text-2: #93a4bc;
    --text-3: #5c6b82;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --violet: #a78bfa;
    --green: #34d399;
    --grad: linear-gradient(100deg, #7ab5ff, #3b82f6);
    --radius: 16px;
    --nav-h: 72px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
ul { list-style: none; }
::selection { background: rgba(59, 130, 246, 0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2940; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2b3d5c; }

/* ---------- 背景层 ---------- */
.bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1000px 600px at 80% -10%, rgba(59, 130, 246, 0.16), transparent 62%),
        radial-gradient(800px 520px at 8% 12%, rgba(34, 211, 238, 0.10), transparent 60%),
        radial-gradient(900px 600px at 50% 115%, rgba(167, 139, 250, 0.12), transparent 60%),
        var(--bg);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(140, 160, 190, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 160, 190, 0.05) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 25%, transparent 78%);
    pointer-events: none;
}

/* ---------- 导航 ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(4%, 24px);
    background: rgba(4, 6, 12, 0.66);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-logo .logo-mark {
    display: inline-flex;
    align-items: center;
    font-size: 21px;
    color: var(--blue);
}

.nav-logo em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu { display: flex; gap: 34px; }

.nav-menu a {
    font-size: 14.5px;
    color: var(--text-2);
    position: relative;
    padding: 6px 0;
}

.nav-menu a:hover { color: var(--text); }

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--grad);
    border-radius: 2px;
    transition: right 0.3s var(--ease);
}

.nav-menu a:hover::after { right: 0; }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.btn-ghost { color: var(--text-2); border-color: rgba(140, 160, 190, 0.28); }
.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(140, 160, 190, 0.55);
    background: rgba(140, 160, 190, 0.08);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #4187f6, #2f6bef);
    box-shadow: 0 2px 12px rgba(47, 107, 239, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #4d90ff, #3574f5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(47, 107, 239, 0.4);
}

.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 12px; }

.btn-icon { padding: 10px 13px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 48px) max(4%, 24px) 60px;
    max-width: 1280px;
    margin: 0 auto;
    gap: 56px;
}

.hero-left { flex: 1.15; min-width: 0; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(13, 20, 36, 0.6);
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 26px;
}

.hero-badge .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

.hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero h1 .grad {
    background: var(--grad);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: grad-flow 7s ease infinite;
}

@keyframes grad-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-sub {
    font-size: 17px;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 34px;
}

.hero-sub b { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
    display: flex;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.hstat {
    flex: 1;
    padding: 18px 10px;
    text-align: center;
    position: relative;
}

.hstat + .hstat::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 1px;
    background: var(--line);
}

.hstat .num {
    font-size: 26px;
    font-weight: 700;
    font-family: 'Poppins', monospace;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.hstat .lbl { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- Hero 右侧: 节点监控面板 ---------- */
.hero-right { flex: 1; min-width: 0; display: flex; justify-content: center; }

.node-panel {
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(17, 26, 45, 0.92), rgba(9, 14, 26, 0.92));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(59, 130, 246, 0.06);
    overflow: hidden;
    position: relative;
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
    transition: transform 0.5s var(--ease);
}

.node-panel:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }

/* 扫描线 */
.node-panel::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 72px;
    top: -80px;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.08), transparent);
    animation: scanline 4.5s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: -80px; }
    100% { top: 110%; }
}

.np-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.np-head .dots { display: flex; gap: 6px; }
.np-head .dots i {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: block;
}
.np-head .dots i:nth-child(1) { background: #f87171; }
.np-head .dots i:nth-child(2) { background: #fbbf24; }
.np-head .dots i:nth-child(3) { background: #34d399; }

.np-head .np-title {
    font-size: 13px;
    color: var(--text-2);
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
}

.np-head .np-live {
    margin-left: auto;
    font-size: 11px;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 5px;
}

.np-head .np-live::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 1.6s ease infinite;
}

.np-body { padding: 8px 6px; }

.np-row {
    display: grid;
    grid-template-columns: 1fr 92px 64px 40px;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    transition: background 0.2s ease;
    animation: row-in 0.6s var(--ease) both;
}

.np-row:nth-child(1) { animation-delay: 0.15s; }
.np-row:nth-child(2) { animation-delay: 0.3s; }
.np-row:nth-child(3) { animation-delay: 0.45s; }
.np-row:nth-child(4) { animation-delay: 0.6s; }
.np-row:nth-child(5) { animation-delay: 0.75s; }
.np-row:nth-child(6) { animation-delay: 0.9s; }

@keyframes row-in {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

.np-row:hover { background: rgba(56, 189, 248, 0.06); }

.np-city { display: flex; align-items: center; gap: 9px; color: var(--text); }

.np-city .isp {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 5px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.22);
}

.np-ip {
    color: var(--text-3);
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 12px;
}

.np-ping { display: flex; align-items: center; gap: 7px; }

.np-ping .bar {
    width: 34px; height: 4px;
    border-radius: 2px;
    background: rgba(140, 160, 190, 0.15);
    overflow: hidden;
    position: relative;
}

.np-ping .bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: var(--w, 60%);
    border-radius: 2px;
    background: linear-gradient(90deg, var(--green), var(--cyan));
    animation: bar-pulse 2.4s ease infinite;
}

@keyframes bar-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.np-ping .ms {
    font-size: 11.5px;
    color: var(--green);
    font-family: 'SF Mono', Consolas, monospace;
}

.np-status {
    justify-self: end;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 9px var(--green);
}

.np-foot {
    display: flex;
    justify-content: space-between;
    padding: 13px 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-3);
    font-family: 'SF Mono', Consolas, monospace;
}

.np-foot b { color: var(--cyan); font-weight: 600; }

/* ---------- 城市跑马灯 ---------- */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 13, 24, 0.5);
    overflow: hidden;
    padding: 16px 0;
    position: relative;
}

.marquee::before, .marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marquee-scroll 36s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-track span {
    font-size: 14px;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.marquee-track span::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.6;
}

/* ---------- 通用 section ---------- */
.section { padding: 110px max(4%, 24px); max-width: 1280px; margin: 0 auto; }

.sec-head { text-align: center; margin-bottom: 64px; }

.sec-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--blue);
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: 'Poppins', monospace;
}

.sec-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sec-head p { color: var(--text-2); margin-top: 14px; font-size: 16px; }

/* ---------- Bento 功能网格 ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.bento-card {
    grid-column: span 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.bento-card.wide { grid-column: span 2; }

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 240px at var(--mx, 50%) var(--my, -20%), rgba(59, 130, 246, 0.13), transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.bento-card:hover::before { opacity: 1; }

.bento-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--blue);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.26);
    margin-bottom: 20px;
}

.bento-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.bento-card p { font-size: 14.5px; color: var(--text-2); }

.bento-card .metric {
    margin-top: 18px;
    font-size: 30px;
    font-weight: 700;
    font-family: 'Poppins', monospace;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bento-card .metric small { font-size: 14px; color: var(--text-3); -webkit-text-fill-color: var(--text-3); margin-left: 6px; }

/* ---------- 接入流程 ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    position: relative;
}

.step-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 34px 30px;
    position: relative;
    transition: transform 0.35s var(--ease), border-color 0.35s ease;
}

.step-card:hover { transform: translateY(-5px); border-color: rgba(59, 130, 246, 0.4); }

.step-num {
    font-size: 46px;
    font-weight: 700;
    font-family: 'Poppins', monospace;
    line-height: 1;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.08));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 18px;
}

.step-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.step-card p { font-size: 14.5px; color: var(--text-2); }

.step-card .arrow {
    position: absolute;
    right: -21px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    font-size: 18px;
    z-index: 2;
}

/* ---------- 应用场景 ---------- */
.cases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.case-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 30px 24px;
    text-align: center;
    transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.case-card i {
    font-size: 30px;
    margin-bottom: 18px;
    color: var(--blue);
}

.case-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.case-card p { font-size: 13.5px; color: var(--text-2); }

/* ---------- CTA 收口 ---------- */
.cta-band { padding: 40px max(4%, 24px) 120px; max-width: 1280px; margin: 0 auto; }

.cta-inner {
    position: relative;
    border-radius: 22px;
    padding: 72px 40px;
    text-align: center;
    background:
        radial-gradient(600px 300px at 50% -40%, rgba(59, 130, 246, 0.25), transparent 70%),
        linear-gradient(160deg, rgba(17, 26, 45, 0.9), rgba(9, 14, 26, 0.9));
    border: 1px solid var(--line);
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
}

.cta-inner h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; margin-bottom: 14px; }
.cta-inner p { color: var(--text-2); margin-bottom: 34px; font-size: 16px; }
.cta-inner .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 8, 15, 0.8);
    padding: 64px max(4%, 24px) 0;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-3); max-width: 260px; }

.footer-social { display: flex; gap: 14px; margin-top: 20px; }

.footer-social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--text-2);
    font-size: 16px;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    color: var(--blue);
    border-color: var(--line-bright);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 12px;
}

.footer-col a:hover { color: var(--blue); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
}

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hero { flex-direction: column; gap: 48px; padding-top: calc(var(--nav-h) + 40px); }
    .hero-left { width: 100%; }
    .node-panel { transform: none; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card.wide { grid-column: span 2; }
    .cases { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .step-card .arrow { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; }
}

@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; }
    .bento-card.wide { grid-column: span 1; }
    .cases { grid-template-columns: 1fr; }
    .hero-stats { flex-wrap: wrap; }
    .hstat { flex: 1 1 45%; }
    .hstat:nth-child(3)::before { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    .np-row { grid-template-columns: 1fr 70px 40px; }
    .np-ip { display: none; }
}

/* ============================================================
   白天模式 (html[data-theme="light"])
   默认深色; JS 按时间自动切换, 手动切换存 localStorage
   ============================================================ */
html[data-theme="light"] {
    --bg: #f2f5fb;
    --bg-2: #e9eef7;
    --panel: rgba(255, 255, 255, 0.8);
    --panel-solid: #ffffff;
    --line: rgba(20, 45, 90, 0.12);
    --line-bright: rgba(37, 99, 235, 0.5);
    --text: #101c30;
    --text-2: #44536b;
    --text-3: #8592a6;
    /* 亮青在浅底上发飘; 白天主渐变收敛为蓝→紫双色, 与按钮/LOGO 统一 */
    --cyan: #0891b2;
    --blue: #2563eb;
    --violet: #7c3aed;
    --grad: linear-gradient(100deg, #2563eb, #3b82f6);
}

/* 白天模式小标签/链接强调色也走蓝色, 避免青绿色跳出来 */
html[data-theme="light"] .sec-tag { color: #2563eb; }
html[data-theme="light"] .footer-col a:hover,
html[data-theme="light"] .footer-social a:hover,
html[data-theme="light"] .nav-menu a:hover { color: #2563eb; }

/* 节点监控面板保持深色终端, 恢复局部深色变量(否则深底配深字) */
html[data-theme="light"] .node-panel {
    --line: rgba(148, 163, 184, 0.15);
    --text: #e6edf7;
    --text-2: #93a4bc;
    --text-3: #5c6b82;
    --cyan: #22d3ee;
}

html[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(20, 45, 90, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 45, 90, 0.06) 1px, transparent 1px);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c5d0e0; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #a9b8cd; }

html[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 2px 20px rgba(30, 60, 120, 0.07);
}

html[data-theme="light"] .btn-ghost { border-color: rgba(20, 45, 90, 0.22); }
html[data-theme="light"] .btn-ghost:hover {
    color: var(--text);
    border-color: rgba(20, 45, 90, 0.4);
    background: rgba(20, 45, 90, 0.04);
}

html[data-theme="light"] .hero h1 { text-shadow: none; }

html[data-theme="light"] .hero-badge { background: rgba(255, 255, 255, 0.7); }

/* 节点监控面板保持深色终端质感, 只调阴影 */
html[data-theme="light"] .node-panel {
    box-shadow: 0 28px 70px rgba(30, 60, 120, 0.28), 0 0 0 1px rgba(30, 60, 120, 0.06);
}

html[data-theme="light"] .marquee { background: rgba(255, 255, 255, 0.55); }

html[data-theme="light"] .bento-card:hover {
    box-shadow: 0 18px 40px rgba(30, 60, 120, 0.14);
    border-color: rgba(37, 99, 235, 0.4);
}

html[data-theme="light"] .step-card:hover { border-color: rgba(37, 99, 235, 0.4); }

html[data-theme="light"] .case-card:hover {
    box-shadow: 0 14px 30px rgba(30, 60, 120, 0.14);
    border-color: rgba(37, 99, 235, 0.4);
}

html[data-theme="light"] .cta-inner {
    background:
        radial-gradient(600px 300px at 50% -40%, rgba(59, 130, 246, 0.14), transparent 70%),
        linear-gradient(160deg, #ffffff, #eaf0fa);
}

html[data-theme="light"] .footer { background: rgba(255, 255, 255, 0.66); }

/* 光效按浅底减淡: 深色下的霓虹辉光在白底上会显脏 */
html[data-theme="light"] .btn-ghost { background: #ffffff; border-color: rgba(20, 45, 90, 0.16); }

html[data-theme="light"] .btn-primary {
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
html[data-theme="light"] .btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

html[data-theme="light"] .bento-icon {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.22);
}

html[data-theme="light"] .bento-card::before {
    background: radial-gradient(420px 240px at var(--mx, 50%) var(--my, -20%), rgba(37, 99, 235, 0.07), transparent 65%);
}

html[data-theme="light"] .step-num {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(37, 99, 235, 0.12));
    -webkit-background-clip: text;
    background-clip: text;
}

html[data-theme="light"] .cta-inner::before {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), transparent);
}

html[data-theme="light"] .footer-social a:hover { box-shadow: 0 0 14px rgba(37, 99, 235, 0.2); }

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
