/* ==========================================================================
   酉脑MES 落地页 — 视觉系统
   设计基调：浅色专业底色 + 深色 Hero + 琥珀色(#F59E0B)单点强调
   栅格：8px；圆角：卡片 16 / 控件 12 / 按钮 999；图标：2px 线性描边
   ========================================================================== */

:root {
  /* 色板 */
  --ink:        #0F172A;   /* 主文字 / 深色底 */
  --ink-2:      #334155;   /* 次级文字 */
  --ink-3:      #64748B;   /* 弱化文字 */
  --line:       #E5E7EB;   /* 描边 */
  --line-soft:  #EEF2F7;   /* 极浅分割 */
  --bg:         #FFFFFF;
  --bg-alt:     #F8FAFC;
  --accent:     #F59E0B;   /* 琥珀 · 强调色（唯一高饱和色） */
  --accent-ink: #B45309;   /* 琥珀上的可读文字 */
  --accent-bg:  #FEF3C7;   /* 琥珀浅底 */
  --teal:       #0E7490;   /* 辅助：质检/在检 */
  --green:      #16A34A;   /* 辅助：完工/良品 */
  --red:        #EF4444;   /* 辅助：缺料/异常 */

  /* 深色底（Hero / CTA / 页脚） */
  --dark:       #0B1220;
  --dark-2:     #141C2E;
  --on-dark:    #E2E8F0;
  --on-dark-3:  #94A3B8;

  /* 度量 */
  --r-card: 16px;
  --r-ctl:  12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(2, 6, 23, .45);
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -.01em; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 通用按钮 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 158, 11, .32);
}
.btn-primary:hover { background: #E79009; box-shadow: 0 10px 26px rgba(245, 158, 11, .4); }

.btn-ghost-dark {
  border: 1px solid rgba(226, 232, 240, .28);
  color: var(--on-dark);
  background: rgba(255, 255, 255, .04);
}
.btn-ghost-dark:hover { border-color: rgba(245, 158, 11, .55); color: #fff; background: rgba(245, 158, 11, .1); }

.btn-login {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-login:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ── 导航 ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; display: block; }
.brand-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand-text em { font-style: normal; color: var(--accent-ink); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 4px 0; transition: color .18s ease; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Hero（深色） ─────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  padding: 76px 0 88px;
}
.hero-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 380px at 78% 8%,  rgba(245, 158, 11, .16), transparent 62%),
    radial-gradient(760px 420px at 12% 92%, rgba(14, 116, 144, .18), transparent 60%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .34);
  background: rgba(245, 158, 11, .1);
  color: #FCD34D;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.22;
  font-weight: 800;
  color: #fff;
}
.lede {
  max-width: 30em;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--on-dark-3);
  line-height: 1.85;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-hint {
  margin-top: 20px;
  font-size: 13.5px;
  color: #7C8CA5;
}
.hero-visual { position: relative; }
.hero-visual .shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* ── 区块通用 ─────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }

.sec-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent-ink);
}
.sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.35;
}
.sec-sub { color: var(--ink-3); font-size: 16px; }

/* ── 网格与卡片 ───────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin: 16px 0 10px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.card p  { color: var(--ink-3); font-size: 14.5px; line-height: 1.8; }

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #DBE1EA; }

.card-pain { border-top: 3px solid var(--red); }
.feat:hover, .why:hover { border-color: rgba(245, 158, 11, .45); }

/* 线性图标（统一描边风格，无 emoji） */
.ico {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-ctl);
  background: var(--accent-bg);
  color: var(--accent-ink);
}
.ico svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-warn { background: #FEE2E2; color: #B91C1C; }

/* ── 产品界面展示 ─────────────────────────────────────────── */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}
.shot-card { margin: 0; }
.shot-card .shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot-phone .shot { width: 300px; max-width: 100%; box-shadow: none; border: 0; background: transparent; }
.shot-card figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}

/* ── 流程 ─────────────────────────────────────────────────── */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.flow li {
  position: relative;
  padding: 24px 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-align: left;
}
.flow li::after {
  content: "";
  position: absolute;
  top: 50%; right: -13px;
  width: 10px; height: 10px;
  border-top: 2px solid #CBD5E1;
  border-right: 2px solid #CBD5E1;
  transform: translateY(-50%) rotate(45deg);
}
.flow li:last-child::after { display: none; }
.flow .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 14px;
  border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 700;
}
.flow strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.flow em { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-3); line-height: 1.7; }

/* ── 结尾 CTA（深色） ─────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  padding: 84px 0;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(720px 320px at 50% 0%, rgba(245, 158, 11, .18), transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: #fff;
}
.cta p { color: var(--on-dark-3); font-size: 16px; margin-bottom: 30px; }
.cta .hero-cta { justify-content: center; }

/* ── 页脚 ─────────────────────────────────────────────────── */
.foot {
  background: #080E18;
  color: #8A99B0;
  padding: 48px 0 32px;
  font-size: 14px;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand .brand-text { color: #fff; }
.foot-brand p { margin-top: 8px; color: #7C8CA5; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { transition: color .18s ease; }
.foot-links a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #61708A;
  font-size: 13px;
}

/* ── 滚动淡入 ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 响应式 ───────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow li:nth-child(3)::after { display: none; }
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: left; }
  .hero-cta { margin-top: 26px; }
  .showcase { grid-template-columns: 1fr; justify-items: center; }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .btn-login { margin-left: auto; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow li::after { display: none; }
  .foot-inner { flex-direction: column; }
  .foot-links { flex-wrap: wrap; gap: 18px; }
}

/* 尊重系统「减少动态效果」 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
