/* ============================================================
   上海道纪 · 私域经营一体化系统 落地页 v2（轻快 · 生机 · 活力）
   设计语言：亮暖白底 + 活力橘 CTA + 五产品专属色徽章 + 插画化产品图
   圆角体系（全页统一）：按钮=胶囊 999px；卡片=14px；徽章=10px
   主题锁定：全页浅色，仅「band」一处刻意的深绿色块
   五产品色（已过 dataviz 校验）：场#E8600A 人#E0356B 货#C97D07 服#0E96A0 资#2E9E4F
   ============================================================ */

:root {
  color-scheme: only light; /* 锁定浅色，防 Android/X5 强制反色改写配色 */
  --paper: #fffdf9;        /* 亮暖白底 */
  --card: #ffffff;
  --ink: #26272b;          /* 主墨色 */
  --ink-2: #5a5b60;        /* 次级文字 */
  --line: #ecebe4;         /* 发丝线 */
  --accent: #cc4a10;       /* 活力深橘（CTA 唯一主强调色，白字 4.6:1） */
  --accent-deep: #b33f0c;  /* hover 与小号文字 */
  --accent-tint: rgba(232, 96, 10, 0.09);
  --band: #123f33;         /* 深绿色块（生机锚点段） */
  --band-ink: #edf7f1;
  --band-mut: #9dc3b0;
  --mint-tint: #e8f5ec;    /* 生机绿浅衬 */
  --mint-deep: #1e7c39;
  /* 五产品专属色 */
  --c-shop: #e8600a;
  --c-crm: #e0356b;
  --c-erp: #c97d07;
  --c-ai: #0e96a0;
  --c-asset: #2e9e4f;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  /* 给底部拨号条留位：先写纯 px 回退，再写 env()，旧内核不识别 env 时整条不丢 */
  padding-bottom: 72px;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

::selection { background: var(--accent); color: #fff; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; }

/* 标题改现代粗黑体（轻快），衬线仅保留给《道德经》题记 */
.origin-q { font-family: var(--serif); }

h2 {
  font-size: clamp(26px, 5.6vw, 40px);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.lead { color: var(--ink-2); margin-top: 14px; max-width: 40em; }

/* ---------- 产品徽章（五色，品牌视觉主线） ---------- */

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
  transform: rotate(-2deg);
}

li:nth-child(2n) .seal, article:nth-child(2n) .seal { transform: rotate(1.5deg); }

.seal-shop { background: var(--c-shop); }
.seal-crm { background: var(--c-crm); }
.seal-erp { background: var(--c-erp); }
.seal-ai { background: var(--c-ai); }
.seal-asset { background: var(--c-asset); }

.brand-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), inset 0 0 0 4px var(--accent);
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

.brand-seal-sm { width: 30px; height: 30px; font-size: 10px; margin-right: 10px; vertical-align: -9px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(204, 74, 16, 0.22); }
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-nav { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-big { min-height: 54px; padding: 0 44px; font-size: 17px; }

/* ---------- 顶部 ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
}

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

.brand-name { font-weight: 700; font-size: 17px; line-height: 1.3; }

.brand-name i {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

/* ---------- 首屏 ---------- */

.hero { padding: 40px 0 56px; }

.hero-grid { display: grid; gap: 32px; }

h1 {
  font-size: clamp(28px, 7.2vw, 48px);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.hero-sub { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 34em; }

/* 桌面端才生效的断行控制 */
.br-md { display: none; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 首屏主图（SVG 插画，内置漂浮动效） */
.hero-art { margin: 36px auto 0; max-width: 440px; }

.hero-art img { display: block; width: 100%; height: auto; }

/* 五枚印章预览：一条朱线串起来 */
.seals {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 52px;
  position: relative;
  padding: 0;
}

.seals::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 24px;
  height: 2px;
  background: var(--accent);
  opacity: 0.28;
}

.seals li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  flex: 1;
}

.seals b { font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

/* ---------- 痛点：老板的一天 ---------- */

.leak { padding: 72px 0; border-top: 1px solid var(--line); }

.day { list-style: none; margin-top: 36px; }

.day li {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.day li:last-child { border-bottom: 1px solid var(--line); }

.day time {
  flex: none;
  width: 58px;
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  padding-top: 3px;
}

.day h3 { font-size: 17px; font-weight: 700; }

.day p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }

.tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--accent-deep);
  background: var(--accent-tint);
  padding: 2px 10px;
  border-radius: 999px;
}

.leak-end { margin-top: 28px; font-size: 18px; font-weight: 700; }

/* ---------- 全景：循环图 ---------- */

.map { padding: 72px 0; border-top: 1px solid var(--line); background: #f5fbf7; }

.loop {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 36px;
  counter-reset: none;
}

.loop a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}

.loop a:hover { border-color: var(--accent); transform: translateY(-2px); }

.loop b { display: block; font-size: 16px; }

.loop i { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* 环节之间的箭头 */
.loop li { position: relative; }

.loop li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  z-index: 1;
}

.loop-return {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--mint-tint);
  color: var(--mint-deep);
  font-size: 15px;
}

.loop-return b { display: block; margin-top: 2px; }

.loop-base {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px dashed var(--line);
  transition: border-color 0.3s;
}

.loop-base:hover { border-color: var(--accent); }

.loop-base b { display: block; font-size: 16px; }

.loop-base i { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); margin-top: 2px; }

/* ---------- 五个产品 ----------
   每个产品块通过 --pc（徽章/要点色）与 --pc-text（副标题深色，均 ≥4.5:1）着色 */

.prods { padding: 24px 0 40px; }

#p-shop { --pc: var(--c-shop); --pc-text: #b04607; }
#p-crm { --pc: var(--c-crm); --pc-text: #c92b5d; }
#p-erp { --pc: var(--c-erp); --pc-text: #a1640a; }
#p-ai { --pc: var(--c-ai); --pc-text: #0a7e87; }
#p-asset { --pc: var(--c-asset); --pc-text: #1e7c39; }

.prod {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.prod:first-child { border-top: 0; }

.prod header { display: flex; align-items: center; gap: 16px; }

.prod h3 { font-size: 21px; font-weight: 800; }

.prod header p { color: var(--pc-text, var(--accent-deep)); font-size: 14px; margin-top: 2px; }

.prod-story { margin-top: 16px; color: var(--ink-2); }

.prod ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }

.prod ul li { padding-left: 20px; position: relative; font-size: 15px; }

.prod ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background: var(--pc, var(--accent));
}

/* 产品插画：移动端主界面 + 统计分析页，两图并排 */
.prod-shots {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.prod-shots img {
  display: block;
  width: calc(50% - 7px);
  max-width: 225px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(38, 39, 43, 0.1);
  transition: transform 0.6s var(--ease);
}

.prod-shots img:hover { transform: translateY(-6px); }

/* 产品截图槽（截图就位后启用，见 index.html 内 TODO 注释） */
.prod-shot { margin-top: 18px; }

.prod-shot img {
  display: block;
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* ---------- 深色段落：数字瓷片 ---------- */

.band {
  background: var(--band);
  color: var(--band-ink);
  padding: 72px 0;
}

.band .lead { color: var(--band-mut); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }

.tile {
  border: 1px solid rgba(242, 241, 235, 0.14);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tile-l { font-size: 13px; color: var(--band-mut); }

.tile-v { font-family: var(--sans); font-size: 40px; font-weight: 650; line-height: 1.1; }

.tile-v small { font-size: 15px; font-weight: 500; margin-left: 4px; color: var(--band-mut); }

.tile-d { font-size: 13px; color: var(--band-mut); line-height: 1.6; }

/* ---------- 行业场景 ---------- */

.inds { padding: 72px 0; background: #fff8f0; border-top: 1px solid var(--line); }

.ind-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  margin-top: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.ind-list::-webkit-scrollbar { display: none; }

.ind {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
}

.ind h3 {
  font-size: 18px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.ind ul { list-style: none; margin-top: 16px; display: grid; gap: 10px; }

.ind ul li { padding-left: 20px; position: relative; font-size: 14.5px; color: var(--ink-2); }

.ind ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

/* ---------- 常见疑虑 ---------- */

.faq { padding: 24px 0 72px; }

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 15px; max-width: 42em; }

.faq h2 { margin-bottom: 20px; }

/* ---------- CTA ---------- */

.cta {
  padding: 80px 0 88px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-phone {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.cta-phone:hover { color: var(--accent-deep); }

.cta .btn-big { margin-top: 24px; }

.cta-note { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

/* ---------- 品牌题记（道纪出处） ---------- */

.origin {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.origin-q {
  font-size: clamp(20px, 4.6vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.origin-t {
  margin: 12px auto 0;
  max-width: 34em;
  font-size: 14px;
  color: var(--ink-2);
}

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

.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--ink-2);
  font-size: 14px;
}

.foot p + p { margin-top: 8px; }

.foot a { color: var(--ink); font-weight: 600; }

/* ---------- 移动端常驻拨号条 ---------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px 16px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.4s var(--ease), background 0.3s;
}

.callbar a:active { transform: scale(0.98); }

.callbar b { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- 进场动效（滚动显现） ----------
   隐藏态仅在 html.js（脚本正常启用）时生效，
   无 JS / 老内核 / 脚本失败时内容默认可见 */

.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .rv.in { opacity: 1; transform: none; }

/* 瓷片与卡片的级联延迟 */
.tiles .tile:nth-child(2), .ind-list .ind:nth-child(2) { transition-delay: 0.08s; }
.tiles .tile:nth-child(3), .ind-list .ind:nth-child(3) { transition-delay: 0.16s; }
.tiles .tile:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .loop a, .callbar a { transition: none; }
}

/* ============================================================
   桌面端增强（≥768px）
   ============================================================ */

@media (min-width: 768px) {
  body { padding-bottom: 0; }

  .callbar { display: none; }

  .nav { padding: 18px 20px; }

  .hero { padding: 64px 0 80px; }

  .br-md { display: inline; }

  .seals { margin-top: 76px; }

  .seals::before { top: 26px; }

  .seal { width: 54px; height: 54px; font-size: 26px; }

  .seals b { font-size: 13px; }

  .leak, .map, .inds { padding: 104px 0; }

  .band { padding: 104px 0; }

  .faq { padding: 40px 0 104px; }

  .cta { padding: 120px 0 128px; }

  /* 循环图：桌面横排 */
  .loop { grid-template-columns: repeat(4, 1fr); gap: 28px; }

  .loop a { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 20px; height: 100%; }

  .loop li:not(:last-child)::after {
    content: "→";
    left: auto;
    right: -21px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .loop-return { margin-top: 24px; display: flex; gap: 8px; align-items: baseline; }

  .loop-return b { margin-top: 0; }

  /* 产品区：左侧章名 + 右侧内容的编辑排版 */
  .prods .wrap-narrow { max-width: 880px; }

  .prod { display: grid; grid-template-columns: 260px 1fr; column-gap: 48px; row-gap: 18px; padding: 56px 0; }

  .prod header { flex-direction: column; align-items: flex-start; gap: 18px; grid-row: 1 / span 2; }

  .prod .prod-story { margin-top: 0; grid-column: 2; }

  .prod ul { grid-column: 2; margin-top: 0; align-self: start; }

  .prod .prod-shots { grid-column: 2; margin-top: 10px; }

  .tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; }

  .tile { padding: 26px 22px; }

  .tile-v { font-size: 48px; }

  .ind-list { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }

  .foot .wrap { display: flex; align-items: center; justify-content: space-between; }

  .foot p + p { margin-top: 0; }
}

/* 首屏双栏仅在宽屏启用，避免平板宽度挤压大标题 */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 6.5fr) minmax(0, 4.5fr); gap: 48px; align-items: center; }

  .hero-art { margin: 0; max-width: 520px; justify-self: end; }
}
