/* 贸神智控台官网：深浅交替的品牌页风格。系统字体，无外部资源。 */
:root {
  --black: #000;
  --ink: #1d1d1f;
  --white: #fff;
  --gray-bg: #f5f5f7;
  --gray-text: #6e6e73;
  --gray-dim: #86868b;
  --blue: #0071e3;
  --blue-dark: #2997ff;
  --green: #30d158;
  --red: #ff453a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

/* 配色区块 */
.dark { background: var(--black); color: #f5f5f7; }
.light { background: var(--white); color: var(--ink); }
.light-gray { background: var(--gray-bg); color: var(--ink); }
.dark .sub, .dark .lead, .dark .feature-copy p { color: #a1a1a6; }
.dark .eyebrow { color: #a1a1a6; }

/* 顶部导航：半透明毛玻璃 */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background .3s;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 48px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { font-size: 17px; font-weight: 600; color: #f5f5f7; letter-spacing: .02em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 13px; }
.nav-links a { color: #d2d2d7; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { font-size: 13px; padding: 4px 14px; border-radius: 980px; background: var(--blue); color: #fff; }
.nav-cta:hover { background: #0077ed; }

/* 通用排版 */
section { padding: clamp(72px, 11vw, 140px) var(--gutter); }
.eyebrow { font-size: clamp(14px, 1.6vw, 17px); font-weight: 600; color: var(--gray-text); letter-spacing: .02em; margin-bottom: 12px; }
h1 { font-size: clamp(44px, 9vw, 96px); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 6vw, 64px); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1.14; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.45; margin-top: 22px; }
.sub { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.5; color: var(--gray-text); max-width: 640px; margin: 20px auto 0; }
.muted { color: var(--gray-dim); font-size: 14px; }

/* 按钮 */
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; align-items: center; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-size: 17px; padding: 12px 26px; border-radius: 980px; transition: background .2s, transform .2s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0077ed; }
.btn-primary:active { transform: scale(.98); }
.btn-link { color: var(--blue-dark); padding: 12px 6px; }
.btn-link:hover { text-decoration: underline; }
.light .btn-link { color: var(--blue); }

/* 首屏 */
.hero { padding-top: calc(48px + clamp(56px, 9vw, 110px)); padding-bottom: 0; text-align: center; overflow: hidden; }
.hero-copy { max-width: 820px; margin: 0 auto; }
.hero-stage { max-width: var(--maxw); margin: clamp(48px, 7vw, 88px) auto 0; padding-bottom: 0; perspective: 1600px; }
.win-hero { transform: rotateX(8deg) translateY(0); transform-origin: top center; margin-bottom: -18%; box-shadow: 0 -20px 120px rgba(41, 151, 255, .25), 0 40px 100px rgba(0, 0, 0, .6); }

/* 一句话区块 */
.statement, .safety, .download, .contact { text-align: center; }
.statement h2 { max-width: 14em; margin: 0 auto; }

/* 功能区块：左文右图，偶数块反过来 */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; max-width: none; }
.feature > * { max-width: 520px; }
.feature-copy { justify-self: end; }
.feature-copy p:not(.eyebrow) { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; color: var(--gray-text); margin-top: 20px; }
.feature-stage { justify-self: start; width: 100%; max-width: 560px; }
.feature.flip .feature-copy { order: 2; justify-self: start; }
.feature.flip .feature-stage { order: 1; justify-self: end; }

/* 模拟软件窗口（占位：上线前换成真实截图） */
.win { border-radius: 14px; background: #1c1c1e; border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .28); color: #f5f5f7; }
.light .win { box-shadow: 0 30px 80px rgba(0, 0, 0, .22); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #2c2c2e; position: relative; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; color: #98989d; pointer-events: none; }
.win-body { display: grid; grid-template-columns: 56px 1fr; min-height: 280px; }
.win-body.single { grid-template-columns: 1fr; padding: 22px; min-height: 260px; align-items: center; }
.win-side { background: #151517; padding: 16px 12px; display: grid; gap: 12px; align-content: start; }
.win-side b { height: 28px; border-radius: 8px; background: #2c2c2e; }
.win-side b.on { background: var(--blue); }
.win-main { padding: 20px; text-align: left; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpis div { background: #2c2c2e; border-radius: 10px; padding: 10px 12px; }
.kpis small { display: block; font-size: 11px; color: #98989d; }
.kpis strong { font-size: clamp(14px, 1.9vw, 20px); font-weight: 600; }
.kpis .up { color: var(--green); }
.spark { width: 100%; height: 110px; margin-top: 16px; display: block; }
.rows { margin-top: 12px; display: grid; gap: 8px; }
.rows p { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; background: #2c2c2e; border-radius: 8px; padding: 9px 12px; }
.rows span { width: 18px; height: 18px; border-radius: 5px; background: #48484a; }
.rows em { height: 8px; border-radius: 4px; background: #48484a; width: 70%; }
.rows u, .upl u, .accts u { text-decoration: none; font-size: 12px; color: #98989d; }
.rows u.ok, .accts u.ok { color: var(--green); }

.upl { display: grid; gap: 14px; }
.upl p { display: grid; grid-template-columns: 28px 1fr 44px; gap: 14px; align-items: center; }
.upl .file { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #5e5ce6, #0a84ff); }
.upl em { height: 8px; border-radius: 4px; background: #3a3a3c; overflow: hidden; display: block; }
.upl em b { display: block; height: 100%; border-radius: 4px; background: var(--blue-dark); }

.roi-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.roi-head strong { font-size: 13px; color: #98989d; font-weight: 500; }
.roi-head span { font-size: 28px; font-weight: 700; }
.roi svg { width: 100%; height: 150px; display: block; }
.roi-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 12px; }
.roi-tags span { padding: 4px 10px; border-radius: 980px; }
.roi-tags .bad { background: rgba(255, 69, 58, .16); color: var(--red); }
.roi-tags .good { background: rgba(48, 209, 88, .16); color: var(--green); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #2c2c2e; color: #98989d; font-size: 15px; }
.steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: #48484a; color: #fff; }
.steps .done { color: #f5f5f7; }
.steps .done b { background: var(--green); color: #000; }
.steps .now { color: #fff; outline: 1px solid var(--blue-dark); }
.steps .now b { background: var(--blue); }

.accts { display: grid; gap: 12px; }
.accts p { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; background: #2c2c2e; border-radius: 12px; padding: 12px 14px; }
.av { width: 38px; height: 38px; border-radius: 50%; }
.a1 { background: linear-gradient(135deg, #ff9f0a, #ff453a); }
.a2 { background: linear-gradient(135deg, #30d158, #0a84ff); }
.a3 { background: linear-gradient(135deg, #bf5af2, #5e5ce6); }
.a4 { background: linear-gradient(135deg, #8e8e93, #48484a); }
.accts em { display: grid; gap: 7px; }
.accts em b { height: 8px; width: 55%; border-radius: 4px; background: #5a5a5e; }
.accts em s { height: 7px; width: 34%; border-radius: 4px; background: #3a3a3c; }

/* 矩阵投放：视频墙 */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.t { aspect-ratio: 9 / 12; border-radius: 10px; position: relative; opacity: .55; }
.t::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 10%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.t.on { opacity: 1; outline: 2px solid var(--blue-dark); outline-offset: 2px; }
.t.on::before { content: "✓"; position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; display: grid; place-items: center; }
.t1 { background: linear-gradient(160deg, #ff9f0a, #ff375f); }
.t2 { background: linear-gradient(160deg, #5e5ce6, #0a84ff); }
.t3 { background: linear-gradient(160deg, #30d158, #0a84ff); }
.t4 { background: linear-gradient(160deg, #bf5af2, #ff375f); }
.t5 { background: linear-gradient(160deg, #64d2ff, #5e5ce6); }
.t6 { background: linear-gradient(160deg, #ffd60a, #ff9f0a); }
.t7 { background: linear-gradient(160deg, #ff375f, #5e5ce6); }
.t8 { background: linear-gradient(160deg, #0a84ff, #30d158); }
.t9 { background: linear-gradient(160deg, #8e8e93, #3a3a3c); }
.wall-bar { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; background: #2c2c2e; border-radius: 12px; padding: 10px 12px 10px 16px; font-size: 13px; }
.wall-bar em { font-style: normal; color: #c7c7cc; }
.wall-bar strong { background: var(--blue); color: #fff; border-radius: 980px; padding: 6px 16px; font-weight: 500; }

/* 更多能力 */
.more { text-align: center; }
.more .grid { max-width: var(--maxw); margin: clamp(40px, 6vw, 72px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: left; }
.mini { background: #fff; border-radius: 22px; padding: 26px 24px 28px; }
.mini svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.mini h4 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.mini p { color: var(--gray-text); font-size: 15px; line-height: 1.6; }

/* 安全卡片 */
.safety.light .card { background: var(--gray-bg); }
.safety .cards { max-width: var(--maxw); margin: clamp(40px, 6vw, 72px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.card { background: #fff; border-radius: 22px; padding: clamp(24px, 3vw, 36px); }
.card h4 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--gray-text); font-size: 16px; line-height: 1.6; }

/* 下载 */
.dl-card {
  max-width: 640px; margin: clamp(36px, 5vw, 56px) auto 0; padding: clamp(24px, 4vw, 36px);
  border-radius: 24px; background: #1c1c1e; border: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; text-align: left;
}
.ver { display: block; font-size: clamp(30px, 4.5vw, 44px); font-weight: 700; line-height: 1.2; }
.notes { max-width: 640px; margin: 20px auto 0; text-align: left; color: #a1a1a6; font-size: 15px; }
.notes summary { cursor: pointer; padding: 10px 4px; color: var(--blue-dark); }
.notes ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* 联系 */
.contact-box { max-width: 640px; margin: clamp(32px, 5vw, 48px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-box div { background: var(--gray-bg); border-radius: 20px; padding: 24px; text-align: left; }
.contact-box small { display: block; color: var(--gray-dim); font-size: 13px; margin-bottom: 6px; }
.contact-box strong { font-size: 18px; }

/* 页脚 */
.footer { background: var(--gray-bg); color: var(--gray-dim); text-align: center; font-size: 12px; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.hero-stage.reveal.in .win-hero { transform: rotateX(0deg); }
.win-hero { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }

/* 平板和手机 */
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; text-align: center; }
  .feature-copy, .feature.flip .feature-copy { order: 1; justify-self: center; }
  .feature-stage, .feature.flip .feature-stage { order: 2; justify-self: center; }
  .safety .cards, .contact-box { grid-template-columns: 1fr; }
  .more .grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .win-hero { margin-bottom: -10%; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .more .grid { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 40px 1fr; }
  .win-main { padding: 14px; }
  .dl-card { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .win-hero, .hero-stage.reveal.in .win-hero { transform: none; transition: none; }
}
