/* ============================================================
   DINO — 铸造模板
   视觉语言：Binance 风格（黄 #FCD535 + 深色底 #0B0E11）
   纯 CSS，无框架。
   ============================================================ */

:root {
  /* Binance dark (默认) */
  --bg-primary: #0B0E11;
  --bg-secondary: #181A20;
  --bg-card: #181A20;
  --bg-elevated: #1E2329;
  --bg-terminal: #0B0E11;

  --text-primary: #EAECEF;
  --text-secondary: #B7BDC6;
  --text-muted: #848E9C;
  --text-inverse: #181A20;

  --accent: #FCD535;
  --accent-deep: #F0B90B;
  --accent-ink: #181A20;
  --accent-glow: rgba(252, 213, 53, .28);
  --accent-subtle: rgba(252, 213, 53, .10);

  --up: #0ECB81;
  --down: #F6465D;
  --warn: #F0B90B;

  --border-light: #2B3139;
  --border-medium: #3A414D;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .5);

  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px;
}

[data-theme="light"] {
  --bg-primary: #FFFFFF;
  --bg-secondary: #FAFAFA;
  --bg-card: #FFFFFF;
  --bg-elevated: #F5F5F5;
  --bg-terminal: #FAFAFA;

  --text-primary: #1E2329;
  --text-secondary: #474D57;
  --text-muted: #707A8A;
  --text-inverse: #FFFFFF;

  --accent: #FCD535;
  --accent-deep: #F0B90B;
  --accent-ink: #1E2329;
  --accent-glow: rgba(240, 185, 11, .25);
  --accent-subtle: rgba(240, 185, 11, .12);

  --border-light: #EAECEF;
  --border-medium: #D8DCE2;

  --shadow-xs: 0 1px 2px rgba(30, 35, 41, .06);
  --shadow-sm: 0 2px 10px rgba(30, 35, 41, .08);
  --shadow-md: 0 8px 24px rgba(30, 35, 41, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "tnum" 1;
}

.wrap {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  margin: 0 -20px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand .tile {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  overflow: hidden;
}
.brand .tile img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  filter: saturate(0) brightness(.18) contrast(1.6);
}

.navlinks { display: flex; align-items: center; gap: 4px; }
.navlinks a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: .15s;
}
.navlinks a:hover { color: var(--accent); background: var(--bg-elevated); }

.spacer { flex: 1; }

.iconbtn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
}
.iconbtn:hover { border-color: var(--accent-deep); color: var(--accent); }

/* ---------- BUTTONS (Binance: 矩形、扁平、黄底黑字) ---------- */
.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--accent-deep); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-color: var(--border-light);
}

.btn.ghost, .btn.secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn.ghost:hover:not(:disabled), .btn.secondary:hover:not(:disabled) {
  border-color: var(--accent-deep);
  color: var(--accent);
  background: var(--accent-subtle);
}

/* ---------- HERO ---------- */
.hero { padding: 40px 0 6px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(14, 203, 129, .16);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
  margin-top: 18px;
}

h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -.5px;
  font-weight: 700;
  margin: 0 0 14px;
}

.stamp {
  display: inline-block;
  padding: 0 8px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-sm);
}

.lede {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 4px;
}
.lede b { color: var(--text-primary); font-weight: 600; }

/* mascot */
.mascot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}
.mascot::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 66%);
}
.mascot img {
  position: relative;
  width: 86%;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45));
  animation: bob 5s ease-in-out infinite;
}
[data-theme="light"] .mascot img { filter: drop-shadow(0 10px 20px rgba(30, 35, 41, .16)); }
:root:not([data-theme="light"]) .mascot img { filter: invert(1) brightness(1.02) drop-shadow(0 10px 20px rgba(252, 213, 53, .16)); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- WHY (lore cards) ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0 24px;
}
.why article {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color .18s, transform .18s;
}
.why article:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.whyNo {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--accent);
  margin-bottom: 8px;
}
.why h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 7px;
  letter-spacing: .1px;
}
.why p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- PILLS / CHIPS ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  white-space: nowrap;
}
.pill b { color: var(--text-primary); font-weight: 600; }

.pill.ok { color: var(--up); border-color: rgba(14, 203, 129, .35); background: rgba(14, 203, 129, .10); }
.pill.no { color: var(--down); border-color: rgba(246, 70, 93, .35); background: rgba(246, 70, 93, .10); }
.pill.warn { color: var(--warn); border-color: rgba(240, 185, 11, .35); background: rgba(240, 185, 11, .10); }

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 4px;
  padding: 3px 7px;
}

/* ---------- CARDS ---------- */
.grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: start;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color .18s;
}
.card:hover { border-color: var(--border-medium); }

.card + .card { margin-top: 16px; }

.hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.hd h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  margin: 0;
}

.serial {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* receipt */
.receipt { position: relative; overflow: hidden; }
.receipt::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

/* rows */
.rows { display: grid; gap: 0; }
.r {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.r:last-child { border-bottom: 0; }
.r span { color: var(--text-muted); }
.r b { font-weight: 600; text-align: right; word-break: break-all; }

.mono { font-family: var(--font-mono); }
.mono-sm {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1px;
  color: var(--text-secondary);
}

/* qty */
.qtybox {
  margin: 14px 0;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}
.qtybox label { display: block; letter-spacing: .6px; font-weight: 500; margin-bottom: 9px; }

.sharebtns { display: flex; gap: 6px; margin-bottom: 9px; }

.tab {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  min-width: 42px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: .15s;
}
.tab:hover { border-color: var(--accent-deep); color: var(--text-primary); }
.tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

input.mono, #qty {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-elevated);
  color: var(--text-primary);
  outline: none;
  transition: .15s;
}
input.mono:focus, #qty:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 1px var(--accent-deep);
}

/* bars */
.bar, .freebar .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
  overflow: hidden;
  margin-top: 8px;
}
.bar i, .freebar .bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: var(--accent);
  transition: width .45s ease;
}

.freebar {
  margin: 12px 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}
.freebar .budget { display: flex; justify-content: space-between; align-items: center; }

/* steps */
.steps { display: flex; gap: 8px; margin: 16px 0 8px; }
.steps .btn { flex: 1; }

.note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
  line-height: 1.6;
}
.note code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-elevated);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-secondary);
}

/* gate colours */
.ok { color: var(--up) !important; }
.no, .bad { color: var(--down) !important; }
.warn { color: var(--warn) !important; }
.dim { color: var(--text-muted) !important; }

/* ---------- FOOTER / TOAST ---------- */
footer.note {
  margin-top: 30px !important;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: 99;
  max-width: min(92vw, 460px);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--shadow-md);
  animation: toastIn .18s ease-out forwards;
}
.toast[hidden] { display: none; }
.toast.warn { border-color: var(--down); color: #FFD9D4; background: #2A1210; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* steam (subtle ticks, Binance-quiet) */
.steam-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.steam {
  position: absolute;
  bottom: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .16;
  animation: rise 16s linear infinite;
}
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: .2; }
  100% { transform: translateY(-100vh); opacity: 0; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .mascot { max-width: 220px; margin: 0 auto; order: -1; }
  .navlinks { display: none; }
}

@media (max-width: 520px) {
  .nav { height: 58px; gap: 10px; }
  .card { padding: 16px; }
  .steps { flex-direction: column; }
  .r { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
/* 保证 hidden 属性始终生效（覆盖 .chip/.pill 的 display） */
[hidden] { display: none !important; }


/* ============ 侧栏说明 / 流程（对齐 long-agent 文案结构） ============ */
.side { display: grid; gap: 16px; }
.sidebox { padding: 18px 20px; }
.sidebox h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.sidebox p { font-size: 13px; line-height: 1.75; color: var(--text-secondary); margin: 0 0 8px; }
.sidebox p:last-child { margin-bottom: 0; }
.needlist { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.needlist li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.needlist li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--accent);
}
.sidebox code, .method code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--accent);
}
.progress {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
  color: var(--text-muted);
  letter-spacing: .3px;
}

.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 6px;
}
.method {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}
.method h3 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.method ol { margin: 0; padding-left: 18px; display: grid; gap: 11px; }
.method li { font-size: 13px; line-height: 1.65; color: var(--text-secondary); }
.method li::marker { color: var(--accent-deep); font-family: var(--font-mono); font-size: 11.5px; }
.method li b { display: block; color: var(--text-primary); font-weight: 600; margin-bottom: 2px; }
.method li span { display: block; }

@media (max-width: 900px) {
  .methods { grid-template-columns: 1fr; }
}
