/* 大景象官网：浅色主题，主色与 App 一致（dajingxiang_app/lib/core/theme/app_colors.dart） */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f9f8;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #4d5b58;
  --ink-3: #8a9794;
  --line: #e4eeeb;
  --line-strong: #d3e3df;
  --brand: #0e9b8a;
  --brand-2: #3bc57e;
  --brand-glow: #12b59f;
  --brand-soft: #e6f5f2;
  --accent: #0e9b8a;
  --grad: linear-gradient(135deg, #0e9b8a, #3bc57e);
  --shadow-sm: 0 1px 2px rgba(16, 40, 36, 0.04), 0 2px 8px rgba(16, 40, 36, 0.05);
  --shadow: 0 2px 6px rgba(16, 40, 36, 0.04), 0 12px 32px -8px rgba(16, 40, 36, 0.12);
  --shadow-lg: 0 30px 60px -20px rgba(14, 92, 80, 0.35);

  --f-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 1160px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(59, 197, 126, 0.12), transparent 70%),
    radial-gradient(900px 520px at -5% 0%, rgba(14, 155, 138, 0.1), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  overflow-x: hidden;
}
::selection { background: rgba(14, 155, 138, 0.18); }
a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
img { max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; height: auto; }

main { overflow-x: clip; }
.wrap {
  width: min(var(--page), calc(100% - 64px));
  margin: 0 auto;
}
.mono { font-family: var(--f-mono); }

/* ---------- 顶部导航 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(228, 238, 235, 0.8);
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 28px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex: none;
}
.app-icon {
  display: block;
  flex: none;
  border-radius: 22%;
  box-shadow: var(--shadow);
}
.app-icon-lg { margin-bottom: 24px; }
.cta-main { display: flex; align-items: center; gap: 22px; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; background: var(--brand-soft); }
.go {
  margin-left: auto;
  text-decoration: none;
  color: #fff;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 6px 16px -6px rgba(14, 155, 138, 0.6);
  transition: transform 0.15s, box-shadow 0.2s;
}
.go:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(14, 155, 138, 0.7); }

/* ---------- 通用元素 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
}
.lede {
  max-width: 34em;
  margin: 0;
  color: var(--ink-2);
  font-size: 17.5px;
  line-height: 1.8;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--grad);
  color: #fff;
  padding: 13px 28px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 10px 24px -10px rgba(14, 155, 138, 0.75);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(14, 155, 138, 0.85); }
.btn-quiet {
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-quiet:hover { color: var(--brand); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 0 0 32px;
}
.band-k {
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.band-t { font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: 0.02em; }
.band-d { font-size: 15px; color: var(--ink-3); }

.section { padding: 104px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li {
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--bg-soft);
  white-space: nowrap;
}
.chips li.on { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

ul.rules { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
ul.rules li { position: relative; padding-left: 20px; color: var(--ink-2); max-width: 36em; }
ul.rules li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-2);
}
ul.rules li b { color: var(--ink); font-weight: 600; }

.panel,
.figbox,
.domain,
.card,
.doc,
.rung {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.figbox { padding: 22px 20px 16px; }
.figcap {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* App 宣传图：上架用的 1179×2556 竖图，自带标题、手机框和底色 */
.shot {
  display: block;
  width: 100%;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  border-radius: 26px;
  background: var(--brand-soft);
  box-shadow: var(--shadow-lg);
}

/* ---------- 首页：首屏 ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 56px;
  align-items: center;
  padding: 72px 0 24px;
}
.hero h1 {
  margin: 0;
  font-size: 76px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.slogan {
  display: block;
  margin: 14px 0 26px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.24em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta {
  margin: 40px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-3);
}
.hero-meta b { color: var(--ink); font-weight: 600; }

.stage {
  position: relative;
  height: 640px;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4% 4%;
  border-radius: 48% 52% 44% 56%;
  background: radial-gradient(circle at 40% 40%, rgba(59, 197, 126, 0.28), rgba(14, 155, 138, 0.1) 55%, transparent 75%);
  filter: blur(6px);
}
.stage .shot { position: absolute; width: 280px; }
.stage .shot-back {
  right: 0;
  top: 0;
  width: 250px;
  transform: rotate(6deg);
  opacity: 0.95;
}
.stage .shot-front {
  left: 20px;
  bottom: 0;
  transform: rotate(-4deg);
}

/* ---------- 首页：截图墙 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 10px 4px 34px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: start; }
.gallery .shot { border-radius: 20px; box-shadow: var(--shadow); }
.gallery figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); text-align: center; }

/* ---------- 首页：业务线 ---------- */
.domains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.domain { padding: 30px 28px 30px; transition: transform 0.2s, box-shadow 0.2s; }
.domains .domain:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.domain-head { display: flex; align-items: center; gap: 12px; }
.domain-id {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  font-weight: 700;
  font-size: 12.5px;
  color: #fff;
  background: var(--grad);
  border-radius: 8px;
}
.domain h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.domain p { margin: 14px 0 0; color: var(--ink-2); }
.more {
  display: inline-block;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.more::after { content: " →"; transition: margin 0.15s; }
.more:hover::after { margin-left: 4px; }

/* ---------- 动线 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.flow li {
  list-style: none;
  position: relative;
  padding: 24px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.flow li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
}
.flow b { display: block; font-size: 16.5px; font-weight: 600; }
.flow span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.flow-wrap { margin: 0; padding: 0; }

/* ---------- 阶梯 ---------- */
.ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 14px;
}
.rung { padding: 20px 20px 22px; }
.rung:nth-child(1) { min-height: 150px; }
.rung:nth-child(2) { min-height: 190px; }
.rung:nth-child(3) { min-height: 230px; }
.rung:nth-child(4) {
  min-height: 270px;
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.rung .mono { font-size: 13px; font-weight: 600; color: var(--brand); }
.rung b { display: block; margin-top: 4px; font-size: 17px; font-weight: 700; }
.rung p { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.rung:nth-child(4) .mono,
.rung:nth-child(4) p { color: rgba(255, 255, 255, 0.88); }

/* ---------- 下载条 ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 44px 48px;
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    var(--grad);
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { margin: 0; font-size: 30px; letter-spacing: 0.04em; }
.cta-band p { margin: 6px 0 0; color: rgba(255, 255, 255, 0.88); }
.cta-band .app-icon { box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.3); }
.cta-band .btn { background: #fff; color: var(--brand); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 11px 20px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 14px;
  text-align: left;
  font-family: inherit;
  cursor: not-allowed;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.7); line-height: 1.3; }
.store strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }

/* ---------- 子页面头部 ---------- */
.masthead { padding: 72px 0 30px; }
.masthead h1 {
  margin: 0;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
}
.masthead .lede { margin-top: 16px; }
.provenance {
  margin: 0;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-3);
  background: var(--bg-soft);
  border-radius: 14px;
}
.provenance b { color: var(--ink); font-weight: 600; }

/* ---------- 产品页 ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.feature:nth-of-type(even) { grid-template-columns: 300px minmax(0, 1fr); }
.feature:nth-of-type(even) > :first-child { order: 2; }
.feature h2 { margin: 0; font-size: 34px; letter-spacing: 0.04em; }
.feature .domain-head { margin-bottom: 14px; }
.feature p { margin: 0; color: var(--ink-2); max-width: 34em; }
.feature figure { margin: 0; }
.feature .figcap { text-align: center; }

/* ---------- 关于 ---------- */
.facts {
  margin: 0;
  padding: 6px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.facts div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 16px 0;
}
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.facts a { color: var(--brand); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.facts-list { margin: 0; }

.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.card { padding: 30px 30px 32px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { box-shadow: var(--shadow); }
.card h3 { margin: 0; font-size: 20px; letter-spacing: 0.02em; }
.card p { margin: 10px 0 0; color: var(--ink-2); }
.card .more { margin-top: 16px; }

/* ---------- 协议页 ---------- */
.doc-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 48px;
}
.toc {
  position: sticky;
  top: 90px;
  font-size: 14px;
  line-height: 1.5;
}
.toc-k {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.toc a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover { color: var(--brand); background: var(--brand-soft); }
.toc .switch {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.toc .switch a { color: var(--brand); font-weight: 600; }

.doc {
  padding: 44px 52px 56px;
  max-width: 840px;
}
.doc h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.updated {
  margin: 10px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.draft-note {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-left: 3px solid #f0a565;
  border-radius: 0 8px 8px 0;
  background: #fff6ee;
  font-size: 14px;
  color: #8a5a2e;
}
.cms { margin-top: 24px; color: #333; }
.cms p { margin: 0 0 1em; }
.cms h2 {
  margin: 2.1em 0 0.7em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.02em;
  scroll-margin-top: 84px;
}
.cms h3 { margin: 1.6em 0 0.5em; font-size: 17px; font-weight: 600; color: var(--ink); }
.cms ul { margin: 0 0 1em; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.cms ul li { position: relative; padding-left: 16px; }
.cms ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.cms strong { font-weight: 600; color: var(--ink); }
.cms a { color: var(--brand); }
.muted { color: var(--ink-3); }

/* ---------- 页脚 ---------- */
footer {
  margin-top: 120px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px 64px;
  padding: 44px 0 36px;
  font-size: 14px;
  color: var(--ink-2);
}
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); }
.foot-brand img { border-radius: 8px; }
.foot-slogan { margin-top: 6px; font-size: 14px; letter-spacing: 0.18em; color: var(--brand); }
.foot-k {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.foot nav { display: grid; gap: 6px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--brand); }
.foot-legal {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--ink-3);
}
.foot-legal a { color: var(--ink-3); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
  .stage { max-width: 440px; width: 100%; height: 560px; margin: 0 auto; }
  .stage .shot-front { width: 240px; }
  .stage .shot-back { width: 210px; }
  .domains,
  .two { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 34%; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .rung:nth-child(n) { min-height: 0; }
  .feature,
  .feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .feature:nth-of-type(even) > :first-child { order: 0; }
  .feature .figbox, .feature figure { max-width: 300px; margin: 0 auto; }
  .cta-band { grid-template-columns: 1fr; }
  .doc-shell { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { width: min(var(--page), calc(100% - 32px)); }
  .nav { display: none; }
  .hero h1 { font-size: 52px; }
  .slogan { font-size: 21px; letter-spacing: 0.18em; }
  .lede { font-size: 16px; }
  .stage { height: 470px; }
  .stage .shot-front { left: 0; width: 200px; }
  .stage .shot-back { width: 180px; }
  .band-t { font-size: 26px; }
  .section { padding-top: 80px; }
  .masthead { padding-top: 48px; }
  .masthead h1 { font-size: 34px; }
  .gallery { grid-auto-columns: 62%; }
  .flow { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .doc { padding: 26px 18px 34px; }
  .cta-band { padding: 30px 24px; border-radius: 22px; }
  .cta-band h2 { font-size: 24px; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* App 内嵌：iOS 一键登录的协议窗口带 ?embed=1 打开，只留正文，配色跟窗口的白色导航栏一致 */
html.embed {
  --bg: #ffffff;
  --ink: #1f1f1f;
  --ink-2: #555555;
  --ink-3: #888888;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.12);
  --brand: #16a34a;
}
.embed body { background: var(--bg); }
.embed .top,
.embed .toc,
.embed footer,
.embed .doc h1 { display: none; }
.embed .doc-shell { display: block; width: 100%; padding-top: 0; }
.embed .doc {
  max-width: none;
  padding: 12px 18px 34px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.embed .cms { color: #333333; }
