/* ============================================================
   奥印ERP · 落地页
   设计语言：宣纸白 / 墨色 / 印章红 —— 编辑排版风
   ============================================================ */

:root {
  --paper:      #f6f4ef;
  --paper-2:    #efece4;
  --card:       #fffefb;
  --ink:        #1a1c20;
  --ink-2:      #4a4d53;
  --muted:      #8a8d93;
  --line:       #e3dfd5;
  --seal:       #c03d21;
  --seal-deep:  #a53219;
  --seal-soft:  rgba(192, 61, 33, .08);
  --dark:       #15171c;
  --dark-2:     #1d2026;
  --dark-line:  #2c2f37;
  --dark-text:  #b9bdc6;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, Menlo, monospace;

  --shell: 1120px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--seal); color: var(--paper); }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }

section { scroll-margin-top: 84px; }

/* ---------------- 印章标记 ---------------- */

.seal-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--seal); color: var(--paper);
  font-size: 18px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 8px rgba(192, 61, 33, .28);
}
.seal-mark-sm { width: 22px; height: 22px; font-size: 12px; border-radius: 5px; box-shadow: none; }

/* ---------------- 顶栏 ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 36px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; letter-spacing: .02em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 14px; color: var(--ink-2);
  padding: 4px 0; position: relative;
  transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--seal);
  transition: right .25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn .arrow { transition: transform .18s ease; font-weight: 400; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--seal); color: #fff;
  box-shadow: 0 6px 18px rgba(192, 61, 33, .25);
}
.btn-primary:hover { background: var(--seal-deep); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(192, 61, 33, .3); }

.btn-ghost {
  border: 1px solid var(--line); color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-paper {
  background: var(--paper); color: var(--ink);
}
.btn-paper:hover { background: #fff; transform: translateY(-1px); }

.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------------- 眉题 ---------------- */

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .tick { width: 22px; height: 2px; background: var(--seal); flex: none; }
.eyebrow .num { color: var(--seal); font-weight: 700; }
.eyebrow-dark { color: #7d828d; }

/* ---------------- Hero ---------------- */

.hero { padding: 88px 0 72px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center;
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(56px, 7.5vw, 92px);
  font-weight: 800; line-height: 1.08; letter-spacing: .01em;
}
.hero-title em { font-style: normal; color: var(--ink); opacity: .92; }
.hero-period { color: var(--seal); }

.lead {
  font-size: 17px; color: var(--ink-2);
  max-width: 34em; line-height: 2;
}

.hero-actions { display: flex; gap: 14px; margin: 34px 0 0; flex-wrap: wrap; }

.hero-meta {
  display: flex; gap: 40px;
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-meta dt { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.hero-meta dd { font-family: var(--font-mono); font-size: 14px; font-weight: 600; margin-top: 2px; }

/* ---- 看板卡片 ---- */

.hero-panel-wrap { position: relative; }
.panel-backdrop {
  position: absolute; inset: 18px -14px -14px 18px;
  border: 1.5px solid rgba(192, 61, 33, .3);
  border-radius: var(--radius);
}
.hero-panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  box-shadow: 0 24px 60px -18px rgba(26, 28, 32, .18);
}

.stamp {
  position: absolute; top: 18px; right: 20px;
  transform: rotate(7deg);
  font-size: 12px; font-weight: 700; letter-spacing: .3em;
  color: var(--seal);
  border: 2px solid var(--seal);
  border-radius: 4px;
  padding: 5px 8px 5px 11px;
  opacity: .78;
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--seal); display: inline-block;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(192, 61, 33, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(192, 61, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 61, 33, 0); }
}
.panel-date { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-right: 86px; }

.kpi-label { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.kpi-value {
  font-family: var(--font-mono);
  font-size: 38px; font-weight: 700; line-height: 1.2;
  display: flex; align-items: baseline; gap: 12px;
}
.kpi-delta { font-size: 13px; color: var(--seal); font-weight: 600; }

.kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 18px 0 20px;
}
.kpi-row > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex; flex-direction: column; line-height: 1.4;
}
.kpi-row b { font-family: var(--font-mono); font-size: 19px; }
.kpi-row span { font-size: 11px; color: var(--muted); letter-spacing: .05em; }

.spark { width: 100%; height: 64px; display: block; margin-bottom: 20px; }
.spark rect { fill: rgba(26, 28, 32, .12); }
.spark rect.hot { fill: var(--seal); }

.channel-bars { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.channel-bars li { display: grid; grid-template-columns: 52px 1fr 36px; align-items: center; gap: 12px; }
.cb-name { font-size: 12px; color: var(--ink-2); }
.cb-track { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.cb-track i { display: block; height: 100%; background: var(--ink); border-radius: 999px; opacity: .8; }
.channel-bars li:first-child .cb-track i { background: var(--seal); opacity: 1; }
.cb-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }

/* ---------------- 渠道一览条 ---------------- */

.channel-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 18px; padding: 16px 28px;
  font-size: 13px; color: var(--ink-2); letter-spacing: .04em;
}
.strip-inner i { color: var(--line); font-style: normal; }
.strip-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
  color: var(--seal); border: 1px solid rgba(192, 61, 33, .35);
  border-radius: 999px; padding: 2px 10px; margin-right: 6px;
}

/* ---------------- 通用 Section ---------------- */

.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 56px; }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800; line-height: 1.35; letter-spacing: .01em;
}

/* ---------------- 能力卡片 ---------------- */

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(192, 61, 33, .45);
  box-shadow: 0 18px 40px -20px rgba(26, 28, 32, .22);
}
.card-index {
  position: absolute; top: 26px; right: 28px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--muted); opacity: .7;
}
.card:hover .card-index { color: var(--seal); opacity: 1; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-2); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  font-size: 12px; color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px;
  letter-spacing: .04em;
}

/* ---------------- 业务流 ---------------- */

.steps { list-style: none; max-width: 780px; }
.steps li {
  display: grid; grid-template-columns: 96px 1fr;
  gap: 28px; align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: none; }

.step-no {
  font-family: var(--font-mono);
  font-size: 40px; font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(26, 28, 32, .35);
  transition: all .25s ease;
}
.steps li:hover .step-no { color: var(--seal); -webkit-text-stroke: 0px transparent; }
.step-body strong { font-size: 18px; font-weight: 700; display: block; margin-bottom: 4px; }
.step-body p { font-size: 14.5px; color: var(--ink-2); }

/* ---------------- 渠道对接（暗色带） ---------------- */

.dark-band { background: var(--dark); color: #f0eee8; }

.channel-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.channel-copy h2 {
  margin-top: 18px;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800; line-height: 1.4;
}
.dark-lead { margin-top: 18px; font-size: 15px; color: var(--dark-text); line-height: 2; }
.dark-lead code {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: 6px; padding: 2px 8px; color: #e8b693;
}

.dark-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.dark-chips li {
  font-size: 13px; color: var(--dark-text);
  border: 1px solid var(--dark-line);
  border-radius: 999px; padding: 5px 16px;
  transition: border-color .2s, color .2s;
}
.dark-chips li:hover { border-color: var(--seal); color: #fff; }

/* ---- 代码卡片 ---- */

.code-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6);
}
.code-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono); font-size: 13px;
}
.method {
  color: #fff; background: var(--seal);
  font-weight: 700; font-size: 11px; letter-spacing: .08em;
  border-radius: 5px; padding: 3px 9px;
}
.path { color: #cfd3da; overflow-wrap: anywhere; }

.code-card pre {
  padding: 20px 22px;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.85;
  color: #c8ccd4;
  overflow-x: auto;
}
.code-card .c { color: #6b7280; }
.code-card .k { color: #9fb6d9; }
.code-card .s { color: #e8b693; }
.code-card .n { color: #d9b0e0; }

.code-foot {
  display: flex; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--dark-line);
  font-family: var(--font-mono); font-size: 12px; color: #6b7280;
}
.code-foot .ok { color: #8fbf9a; }

/* ---------------- 文档 ---------------- */

.doc-list { display: flex; flex-direction: column; }
.doc-item {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding .22s ease, background .22s ease;
}
.doc-item:first-child { border-top: 1px solid var(--line); }
.doc-item strong { font-size: 18px; font-weight: 700; display: block; }
.doc-item span { font-size: 14px; color: var(--ink-2); }
.doc-arrow {
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-2) !important;
  transition: all .22s ease;
}
.doc-item:hover { padding-left: 18px; }
.doc-item:hover .doc-arrow { background: var(--seal); border-color: var(--seal); color: #fff !important; transform: rotate(-45deg); }

/* ---------------- 页脚 ---------------- */

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: var(--ink-2); transition: color .2s; }
.footer-nav a:hover { color: var(--seal); }

/* ---------------- 滚动渐入 ---------------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 960px) {
  .hero-grid, .channel-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 56px 0 56px; }
  .cards { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .hero-meta { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .shell { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero-title { font-size: 52px; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .kpi-row > div { padding: 8px 10px; }
  .steps li { grid-template-columns: 64px 1fr; gap: 16px; }
  .step-no { font-size: 30px; }
  .doc-item strong { font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
