/* xzz ai · 收银台 — 极简 / 移动优先 / Hermes 式克制配色 */

:root {
  --bg: #0e0e18;
  --bg-soft: #14141f;
  --ink: #f2f2f2;
  --muted: rgba(242, 242, 242, .52);
  --dim: rgba(242, 242, 242, .34);
  --line: rgba(242, 242, 242, .14);
  --line-soft: rgba(242, 242, 242, .07);
  --accent: #3d3dff;
  --accent-ink: #9d9dff;
  --pad: 22px;
  --maxw: 1040px;
  --r: 2px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 顶部一条极淡的冷光，替代图片，保持“有质感但不喧哗” */
body::before {
  content: "";
  position: fixed;
  top: -40vh;
  left: 50%;
  width: 120vw;
  height: 70vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(61, 61, 255, .18), rgba(61, 61, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* ---------- bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(14, 14, 24, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.mark { display: flex; align-items: center; gap: 10px; }

.mark-x {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink);
}

.mark-sep { width: 1px; height: 14px; background: var(--line); }

.mark-name { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.bar-link {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.bar-link:hover, .bar-link:focus-visible { color: var(--ink); border-color: var(--accent); outline: none; }

/* ---------- hero ---------- */

main { position: relative; z-index: 1; }

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--pad) 44px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
}

.kicker {
  margin: 0 0 22px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 8.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 600;
}

.lede {
  margin: 22px 0 0;
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-art { justify-self: end; width: 300px; height: 300px; opacity: .55; }
.hero-art svg { width: 100%; height: 100%; display: block; }

/* ---------- desk ---------- */

.desk {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) 8px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(242, 242, 242, .035), rgba(242, 242, 242, .012));
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
}

.panel-head { display: flex; align-items: baseline; gap: 12px; }

.num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dim);
}

.panel h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.panel-note {
  margin: 12px 0 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

.panel-foot {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .01em;
}

/* ---------- field + buttons ---------- */

.field { display: flex; gap: 8px; }

.field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(14, 14, 24, .6);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 15px;
  font-family: inherit;
  transition: border-color .16s ease, background .16s ease;
}
.field input::placeholder { color: var(--dim); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(61, 61, 255, .06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, background .18s ease, color .18s ease;
}

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

.btn-block { width: 100%; margin-top: 2px; }

/* ---------- more ---------- */

.more {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 var(--pad);
  border-top: 1px solid var(--line-soft);
}

.more-row {
  display: grid;
  grid-template-columns: 148px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left .18s ease;
}
.more-row:hover { padding-left: 8px; }
.more-row:hover .more-k { color: var(--accent-ink); }

.more-k { font-size: 14px; color: var(--ink); }
.more-v { font-size: 12.5px; color: var(--dim); }
.more-row .ar { font-size: 12px; color: var(--dim); }

/* ---------- foot ---------- */

.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--pad) 54px;
}
.foot p { margin: 0 0 6px; font-size: 11.5px; line-height: 1.7; color: var(--dim); }
.foot-dim { color: rgba(242, 242, 242, .26); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--ink);
  color: #0e0e18;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 40;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- mobile ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 44px var(--pad) 30px;
    gap: 0;
  }
  .hero-art { display: none; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .lede { margin-top: 18px; font-size: 14px; max-width: none; }
  .lede br { display: none; }

  .desk { grid-template-columns: 1fr; gap: 12px; }

  .panel { padding: 22px 18px 18px; }

  .field { flex-direction: column; }
  .field input, .field .btn { width: 100%; }
  .field input { height: 52px; font-size: 16px; } /* 16px 防 iOS 聚焦缩放 */
  .btn { height: 52px; }

  .more-row { grid-template-columns: 1fr auto; gap: 4px; padding: 15px 2px; }
  .more-v { grid-column: 1 / 2; grid-row: 2; font-size: 12px; }
  .more-row .ar { grid-row: 1 / 3; align-self: center; }

  .foot { padding: 28px var(--pad) 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
