/*
 * AIWEAPP 官网基础与首屏样式。
 * 深色工业科技风用于突出平台化与业务连接能力，样式仅作用于 Www 官网。
 */
:root {
    --bg: #06090f;
    --bg-deep: #030509;
    --surface: #0b111a;
    --surface-strong: #101823;
    --line: rgba(151, 174, 199, 0.17);
    --line-strong: rgba(151, 174, 199, 0.3);
    --text: #f4f8fb;
    --text-soft: #a8b5c4;
    --text-muted: #718092;
    --accent: #5ee7d8;
    --accent-strong: #8cf6df;
    --accent-blue: #5a8dff;
    --accent-violet: #a880ff;
    --dark-text: #08110f;
    --shell: min(1200px, calc(100vw - 48px));
    --header-height: 76px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, "SF Pro Display", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    background: radial-gradient(circle at 76% 8%, rgba(63, 133, 181, 0.1), transparent 29%), var(--bg);
    content: "";
    pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { color: var(--dark-text); background: var(--accent); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    color: var(--dark-text);
    background: var(--accent);
    transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }
.section-shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--accent);
    font: 700 12px "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.14em;
}

.eyebrow > span { width: 30px; height: 1px; background: currentColor; }

.button {
    display: inline-flex;
    min-height: 50px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 26px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--primary { color: var(--dark-text); background: var(--accent); box-shadow: 0 10px 34px rgba(94, 231, 216, 0.15); }
.button--primary:hover, .button--primary:focus-visible { background: var(--accent-strong); }
.button--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(12, 18, 27, 0.5); }
.button--ghost:hover, .button--ghost:focus-visible { border-color: rgba(94, 231, 216, 0.4); color: var(--accent); }

/* 顶部导航 */
.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(6, 9, 15, 0.84);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    width: var(--shell);
    height: 100%;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(94, 231, 216, 0.55);
    color: var(--accent);
    background: rgba(94, 231, 216, 0.06);
    clip-path: polygon(0 0, 76% 0, 100% 24%, 100% 100%, 24% 100%, 0 76%);
}

.brand__mark i { position: absolute; inset: 4px; border: 1px solid rgba(94, 231, 216, 0.18); clip-path: inherit; }
.brand__mark b { position: relative; font: 700 13px "SFMono-Regular", Consolas, monospace; letter-spacing: -0.08em; }
.brand__text { display: flex; flex-direction: column; gap: 1px; }
.brand__text strong { font-size: 17px; line-height: 1; letter-spacing: 0.12em; }
.brand__text small { color: var(--text-muted); font-size: 10px; letter-spacing: 0.18em; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav > a { position: relative; color: #b6c0cd; font-size: 14px; transition: color 180ms ease; }
.site-nav > a:not(.site-nav__cta)::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-nav > a:hover, .site-nav > a:focus-visible { color: var(--text); }
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-nav__cta { padding: 11px 18px; border: 1px solid rgba(94, 231, 216, 0.55); color: var(--accent) !important; background: rgba(94, 231, 216, 0.05); }
.site-nav__cta:hover, .site-nav__cta:focus-visible { color: var(--dark-text) !important; background: var(--accent); }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 11px;
    border: 1px solid var(--line-strong);
    color: var(--text);
    background: transparent;
}

.nav-toggle > span:not(.sr-only) { display: block; width: 100%; height: 1px; margin: 5px 0; background: currentColor; transition: transform 180ms ease; }

/* 首屏 */
.hero {
    position: relative;
    min-height: 890px;
    padding: calc(var(--header-height) + 84px) 0 0;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #06090f;
}

.hero__grid, .contact__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(140, 174, 202, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 174, 202, 0.055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 88%);
}

.hero__grid::after { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 25%, transparent 80%, var(--bg)); content: ""; }
.hero__ambient { position: absolute; border: 1px solid rgba(94, 231, 216, 0.08); border-radius: 50%; pointer-events: none; }
.hero__ambient--one { top: -330px; right: -240px; width: 850px; height: 850px; box-shadow: inset 0 0 100px rgba(71, 146, 206, 0.05); }
.hero__ambient--two { bottom: -350px; left: 13%; width: 680px; height: 680px; }

.hero__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    gap: 68px;
    align-items: center;
}

.hero__copy { padding-bottom: 80px; }
.hero__title { max-width: 700px; margin: 0; color: #f6f9fb; font-size: clamp(52px, 5.8vw, 79px); font-weight: 600; line-height: 1.08; letter-spacing: -0.065em; }
.hero__title span { position: relative; display: inline-block; margin-left: 0.04em; color: var(--accent); }
.hero__title span::after { position: absolute; right: 2px; bottom: -4px; left: 2px; height: 2px; background: var(--accent); box-shadow: 0 0 16px rgba(94, 231, 216, 0.75); content: ""; }
.hero__lead { max-width: 620px; margin: 34px 0 0; color: var(--text-soft); font-size: 17px; line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__proof { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 570px; margin-top: 60px; border-top: 1px solid var(--line); }
.hero__proof > div { display: flex; padding: 24px 18px 0 0; flex-direction: column; gap: 7px; }
.hero__proof > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.hero__proof strong { color: var(--text); font: 500 27px "SFMono-Regular", Consolas, monospace; }
.hero__proof span { color: var(--text-muted); font-size: 12px; }

.hero-console {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border: 1px solid rgba(122, 154, 181, 0.34);
    background: rgba(8, 13, 20, 0.92);
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
    transform-style: preserve-3d;
    transition: transform 240ms ease-out;
}

.hero-console::before { position: absolute; z-index: -1; top: 82px; left: 20%; width: 70%; height: 70%; background: radial-gradient(circle, rgba(62, 150, 170, 0.11), transparent 66%); content: ""; }
.hero-console::after { position: absolute; top: 0; right: 34px; width: 60px; height: 1px; background: var(--accent); box-shadow: 0 0 20px var(--accent); content: ""; }
.hero-console__topbar { display: flex; height: 52px; padding: 0 20px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--text-muted); font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.09em; }
.console-brand, .console-status { display: inline-flex; align-items: center; gap: 8px; }
.console-brand__dot, .console-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(94, 231, 216, 0.85); }
.console-status { color: #8bc4b9; }
.console-status i { animation: status-pulse 2s infinite; }
.hero-console__body { display: grid; min-height: 510px; grid-template-columns: 52px 1fr; }
.console-sidebar { display: flex; padding-top: 23px; align-items: center; flex-direction: column; gap: 21px; border-right: 1px solid var(--line); }
.console-sidebar span { width: 15px; height: 15px; border: 1px solid rgba(141, 164, 187, 0.25); }
.console-sidebar span:nth-child(2) { border-radius: 50%; }
.console-sidebar span:nth-child(3) { width: 17px; height: 10px; }
.console-sidebar span:nth-child(4) { transform: rotate(45deg) scale(0.72); }
.console-sidebar span.is-active { border-color: var(--accent); background: rgba(94, 231, 216, 0.18); box-shadow: 0 0 12px rgba(94, 231, 216, 0.26); }
.console-main { padding: 22px 24px 26px; }
.console-main__heading { display: flex; align-items: flex-start; justify-content: space-between; }
.console-main__heading > div { display: flex; flex-direction: column; gap: 5px; }
.console-main__heading small { color: var(--text-muted); font: 8px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.13em; }
.console-main__heading strong { font-size: 18px; font-weight: 600; }
.console-main__heading > span { padding: 5px 8px; border: 1px solid rgba(94, 231, 216, 0.25); color: var(--accent); background: rgba(94, 231, 216, 0.04); font-size: 9px; }

.console-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.console-kpis article { position: relative; height: 72px; padding: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(17, 25, 36, 0.62); }
.console-kpis article > span { display: block; color: var(--text-muted); font-size: 9px; }
.console-kpis article > strong { display: block; margin-top: 7px; font-size: 13px; font-weight: 500; }
.signal { position: absolute; right: 0; bottom: 0; width: 58px; height: 23px; opacity: 0.75; clip-path: polygon(0 78%, 12% 60%, 23% 69%, 36% 32%, 48% 56%, 61% 17%, 75% 44%, 88% 8%, 100% 18%, 100% 100%, 0 100%); }
.signal--one { background: rgba(94, 231, 216, 0.5); }
.signal--two { background: rgba(90, 141, 255, 0.5); }
.signal--three { background: rgba(168, 128, 255, 0.45); }

.engine-map { display: grid; height: 290px; margin-top: 11px; grid-template-columns: 112px 1fr; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(rgba(132, 163, 189, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(132, 163, 189, 0.04) 1px, transparent 1px), rgba(4, 8, 13, 0.58); background-size: 22px 22px; }
.engine-map__sources { display: flex; padding: 28px 14px; align-items: stretch; flex-direction: column; justify-content: space-around; border-right: 1px solid var(--line); }
.engine-map__sources span { position: relative; color: #96a7b9; font-size: 9px; }
.engine-map__sources span::after { position: absolute; top: 50%; left: calc(100% + 6px); width: 30px; height: 1px; background: linear-gradient(90deg, rgba(94, 231, 216, 0.65), transparent); content: ""; }
.engine-map__core { position: relative; display: grid; place-items: center; }
.core-rings { position: absolute; display: grid; width: 200px; height: 200px; place-items: center; }
.core-rings i { position: absolute; border: 1px solid rgba(94, 231, 216, 0.15); border-radius: 50%; }
.core-rings i:nth-child(1) { width: 190px; height: 190px; border-style: dashed; animation: spin 22s linear infinite; }
.core-rings i:nth-child(2) { width: 142px; height: 142px; border-right-color: rgba(90, 141, 255, 0.5); animation: spin-reverse 16s linear infinite; }
.core-rings i:nth-child(3) { width: 108px; height: 108px; border-color: rgba(94, 231, 216, 0.42); box-shadow: 0 0 30px rgba(94, 231, 216, 0.08); }
.core-label { position: relative; z-index: 2; display: flex; width: 91px; height: 91px; align-items: center; justify-content: center; flex-direction: column; border: 1px solid rgba(94, 231, 216, 0.6); color: var(--accent); background: rgba(7, 20, 22, 0.9); clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%); }
.core-label small, .core-label span { font: 6px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.13em; }
.core-label strong { margin: 3px 0; font: 20px "SFMono-Regular", Consolas, monospace; }
.engine-node { position: absolute; z-index: 3; min-width: 54px; padding: 5px 7px; border: 1px solid rgba(124, 151, 177, 0.32); color: #a7b5c3; background: rgba(11, 18, 27, 0.9); font: 500 7px "SFMono-Regular", Consolas, monospace; text-align: center; }
.engine-node--mall { top: 33px; left: 18%; }
.engine-node--diy { top: 44px; right: 14%; }
.engine-node--data { right: 12%; bottom: 39px; }
.engine-node--member { bottom: 31px; left: 15%; }

.console-stream { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.console-stream div { display: flex; flex-direction: column; gap: 7px; }
.console-stream span { color: var(--text-muted); font: 7px "SFMono-Regular", Consolas, monospace; }
.console-stream i { height: 2px; overflow: hidden; background: rgba(151, 174, 199, 0.11); }
.console-stream b { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 8px rgba(94, 231, 216, 0.7); }
.hero-console__corner { position: absolute; right: 14px; bottom: 10px; color: rgba(141, 163, 185, 0.42); font: 7px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.09em; }

.hero__ticker { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 46px; overflow: hidden; border-top: 1px solid var(--line); background: rgba(4, 7, 11, 0.8); }
.hero__ticker > div { display: flex; width: max-content; height: 100%; align-items: center; gap: 28px; color: #657386; font: 9px "SFMono-Regular", Consolas, monospace; letter-spacing: 0.14em; animation: ticker 34s linear infinite; }
.hero__ticker i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

/* 无脚本时内容保持可见，脚本加载后启用滚动出现动画。 */
.is-js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes status-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes flow { to { left: 120%; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
