/* ==========================================================================
   Nidavellir — 设计系统
   视觉参考：ptah.trade（深色 + 金色 + 衬线标题 + 等宽数据）
   世界观：北欧神话，矮人之国 Niðavellir
   ========================================================================== */

:root {
  /* 底色层次 —— 带冷调（蓝黑），取自北欧冰原与地底洞穴 */
  --bg: #080b11;
  --surface: #10141c;
  --surface-2: #181d27;
  --surface-3: #212733;

  /* 文字 */
  --ink: #d9d6cf;
  --muted: #a3a099;
  --dim: #676870;

  /* 铜金系 —— 矮人炉火，比纯金更暖更偏铜 */
  --gold: #c99f62;
  --gold-line: #7e6540;
  --gold-ink: #080b11;
  --gold-bright: #e4c288;

  /* 冰蓝 —— 北欧霜雪，用于次要强调，与纯金配色拉开距离 */
  --frost: #86b3cf;
  --frost-line: #4a6b82;
  --frost-dim: #5f7f96;

  /* 状态色 */
  --danger: #e08a76;
  --ok: #8dbf9b;

  /* 边框 */
  --edge: color-mix(in oklch, var(--gold-line) 34%, transparent);
  --edge-cool: color-mix(in oklch, var(--frost-line) 30%, transparent);
  --divider: color-mix(in oklch, var(--gold-line) 16%, transparent);

  /* 字体 */
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --font-card: Baskerville, "Baskerville Old Face", "Iowan Old Style", Georgia, "Songti SC", serif;
  --font-sans: "Avenir Next", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;

  /* 字号阶梯 */
  --step-display: clamp(48px, 8vw, 116px);
  --step-head: clamp(30px, 3.8vw, 54px);
  --step-lead: clamp(18px, 1.6vw, 26px);

  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 背景纹理：冷调霜光 + 极淡的暖金余晖，形成冷暖对比 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* 顶部：冰蓝霜光（主特征） */
    radial-gradient(ellipse 100% 60% at 50% -15%, color-mix(in oklch, var(--frost) 22%, transparent), transparent 65%),
    /* 左上：更深的冷蓝沉积 */
    radial-gradient(ellipse 50% 45% at 8% 18%, color-mix(in oklch, var(--frost) 9%, transparent), transparent 70%),
    /* 右下：矮人炉火的暖金余晖 */
    radial-gradient(ellipse 55% 45% at 90% 95%, color-mix(in oklch, var(--gold) 12%, transparent), transparent 68%);
}

/* 极细的竖向纹理，模拟矿石层理 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 119px,
    color-mix(in oklch, var(--frost-line) 16%, transparent) 119px,
    color-mix(in oklch, var(--frost-line) 16%, transparent) 120px
  );
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 70%);
}

/* ============================ 布局 ============================ */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================ 顶栏 ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--divider);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-card);
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark svg { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color 0.18s;
}

.nav a:hover { color: var(--gold-bright); }

.nav a.active {
  color: var(--gold);
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -21px;
  height: 1px;
  background: var(--gold);
}

/* 语言切换按钮 */
.lang-btn {
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 6px 11px;
  cursor: pointer;
  transition: all 0.18s;
  min-width: 46px;
}

.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* 官方 X 按钮 */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--edge);
  border-radius: 7px;
  color: var(--muted);
  transition: all 0.18s;
}

.x-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: color-mix(in oklch, var(--gold) 8%, transparent);
}

.x-btn svg {
  display: block;
}

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

/* 移动端导航（顶部展开） */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 8px;
  color: var(--muted);
  width: 38px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    padding: 6px 18px 12px;
    display: none;
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 14px;
  }

  .nav a:last-child { border-bottom: none; }

  .nav a.active::after { display: none; }
  .nav a.active { color: var(--gold); }
}

/* ============================ 子页英雄（较小） ============================ */

.page-hero {
  padding: clamp(48px, 7vw, 84px) 0 clamp(30px, 4vw, 48px);
  border-bottom: 1px solid var(--divider);
}

.page-hero .section-kicker { margin-bottom: 16px; }

.page-hero h1 {
  font-family: var(--font-card);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

.page-hero h1 em { font-style: italic; color: var(--gold); }

.page-hero p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted);
  line-height: 1.6;
  font-family: var(--font-card);
}

/* ============================ 首页介绍块 ============================ */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.intro-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* 让卡片内的可伸缩区域撑满，避免高度不齐时留白 */
.intro-card > .layer-list { flex: 0 0 auto; }
.intro-card > .fill { flex: 1 1 auto; }

/* 行内代码 */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--gold);
  background: color-mix(in oklch, var(--gold) 10%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid color-mix(in oklch, var(--gold) 22%, transparent);
  white-space: nowrap;
}

.intro-card h3 {
  font-family: var(--font-card);
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1.25;
}

.intro-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.intro-card p:last-child { margin-bottom: 0; }

.intro-card .quote {
  font-family: var(--font-card);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  line-height: 1.65;
  padding-left: 16px;
  border-left: 2px solid var(--gold-line);
  margin: 20px 0;
}

/* 层级表 */
.layer-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.layer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.layer:hover { border-color: var(--edge); }

.layer-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  font-family: var(--font-card);
  font-size: 15px;
  font-style: italic;
}

.layer-body { flex: 1; min-width: 0; }

.layer-name {
  font-family: var(--font-card);
  font-size: 16px;
  margin-bottom: 2px;
}

.layer-desc {
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.5;
}

.layer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 9px;
  border: 1px solid var(--edge);
  border-radius: 100px;
  white-space: nowrap;
}

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

/* ============================ 按钮 ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1px solid var(--edge);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: color-mix(in oklch, var(--gold) 7%, transparent);
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--gold-ink);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn-lg { padding: 14px 30px; font-size: 14.5px; }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ============================ 英雄区 ============================ */

.hero {
  padding: clamp(64px, 11vw, 132px) 0 clamp(48px, 7vw, 84px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px;
  border: 1px solid var(--edge-cool);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frost);
  margin-bottom: 26px;
  background: color-mix(in oklch, var(--frost) 5%, transparent);
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--frost);
  box-shadow: 0 0 8px var(--frost);
}

.hero h1 {
  font-family: var(--font-card);
  font-size: var(--step-display);
  line-height: 1.02;
  font-weight: 400;
  margin: 0 0 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: var(--step-lead);
  line-height: 1.55;
  color: var(--muted);
  font-family: var(--font-card);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================ 统计条 ============================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 20px;
}

.stat {
  background: var(--surface);
  padding: 22px 20px;
  text-align: center;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 9px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--ink);
  letter-spacing: -0.01em;
}

.stat-value.gold { color: var(--gold); }

/* ============================ 区块 ============================ */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--divider);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--frost);
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-card);
  font-size: var(--step-head);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

/* ============================ 铸造卡片 ============================ */

.mint-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 26px;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 数量选择 */
.qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--edge);
  border-radius: 9px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 19px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-mono);
}

.qty-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--gold); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-value {
  min-width: 62px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--ink);
}

/* 明细行 */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--divider);
}

.detail-row:last-of-type { border-bottom: none; }

.detail-row .k { color: var(--muted); }
.detail-row .v { font-family: var(--font-mono); color: var(--ink); }
.detail-row .v.gold { color: var(--gold); }
.detail-row .v.ok { color: var(--ok); }
.detail-row .v.danger { color: var(--danger); }

.mint-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 18px;
  margin-top: 6px;
  border-top: 1px solid var(--edge);
  font-size: 14px;
}

.mint-total .v {
  font-family: var(--font-mono);
  font-size: 21px;
  color: var(--gold);
}

.card .btn-primary { width: 100%; }

/* 免费提示 */
.free-banner {
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 18px;
  border: 1px solid;
}

.free-banner.active {
  background: color-mix(in oklch, var(--ok) 9%, transparent);
  border-color: color-mix(in oklch, var(--ok) 32%, transparent);
  color: var(--ok);
}

.free-banner.used {
  background: color-mix(in oklch, var(--dim) 12%, transparent);
  border-color: var(--divider);
  color: var(--dim);
}

/* 进度条 */
.progress {
  height: 5px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-line), var(--gold));
  border-radius: 100px;
  transition: width 0.5s ease;
  width: 0%;
}

/* ============================ 流程步骤 ============================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-card);
  font-size: 40px;
  color: var(--gold-line);
  line-height: 1;
  margin-bottom: 14px;
  font-style: italic;
}

.step h3 {
  font-family: var(--font-card);
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 9px;
}

/* ==========================================================================
   BAW 首次交互提示
   ========================================================================== */
.baw-note {
  margin: 0 0 16px;
  padding: 13px 15px;
  background: color-mix(in oklch, var(--frost) 6%, var(--surface-2));
  border: 1px solid color-mix(in oklch, var(--frost) 26%, transparent);
  border-left: 2px solid color-mix(in oklch, var(--frost) 70%, transparent);
  border-radius: 8px;
}

.baw-note-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--frost);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.baw-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   价格阶梯
   ========================================================================== */
.ladder {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: 8px;
  overflow: hidden;
}

.ladder-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface-2);
  transition: background 0.15s;
}

.ladder-row:hover {
  background: color-mix(in oklch, var(--gold) 5%, var(--surface-2));
}

.ladder-tier {
  font-family: var(--font-card);
  font-size: 15px;
  font-style: italic;
  color: var(--gold-line);
}

.ladder-range {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.ladder-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  text-align: right;
}

/* 价格待定：占位符弱化显示 */
.ladder-price.is-tbd {
  color: var(--dim);
  letter-spacing: 0.06em;
}

.ladder-more .ladder-tier,
.ladder-more .ladder-range,
.ladder-more .ladder-price {
  color: var(--dim);
  opacity: 1;
}

@media (max-width: 860px) {
  .ladder-row {
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    padding: 11px 13px;
  }
  .ladder-range { font-size: 11.5px; }
  .ladder-price { font-size: 12px; }
}

/* ==========================================================================
   诅咒说明（机制页）
   ========================================================================== */
.curse-note {
  margin-top: 22px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-left: 2px solid color-mix(in oklch, #c96a62 65%, transparent);
  border-radius: var(--radius);
}

.curse-note-title {
  font-family: var(--font-card);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
}

.curse-note p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 74ch;
}

.curse-note p:last-child {
  margin-bottom: 0;
}

.step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================ 我的藏品 ============================ */

.owned-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* 藏品卡片：图在上，名字在下 */
.owned-card {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}

.owned-card:hover {
  border-color: color-mix(in oklch, var(--gold) 55%, transparent);
  background: color-mix(in oklch, var(--gold) 4%, var(--surface-2));
  transform: translateY(-2px);
}

.owned-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0b0f15;
  overflow: hidden;
}

.owned-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.owned-card:hover .owned-media img { transform: scale(1.045); }

.owned-media img.broken { opacity: 0; }

.owned-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 9, 14, 0.72));
  pointer-events: none;
}

.owned-id {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(6, 9, 14, 0.72);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 2px 5px;
  backdrop-filter: blur(3px);
}

.owned-name {
  padding: 9px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 860px) {
  .owned-list {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
  }
  .owned-name { font-size: 10.5px; padding: 8px; }
}

.empty-note {
  color: var(--dim);
  font-size: 13px;
  padding: 18px 0;
  text-align: center;
}

/* ============================ 时间线 ============================ */

.timeline {
  position: relative;
  padding-left: 26px;
  max-width: 760px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--divider);
}

.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--gold-line);
}

.tl-item.done::before {
  background: var(--gold);
  box-shadow: 0 0 10px color-mix(in oklch, var(--gold) 55%, transparent);
}

.tl-item h4 {
  margin: 0 0 5px;
  font-family: var(--font-card);
  font-size: 17px;
  font-weight: 400;
}

.tl-item p { margin: 0; font-size: 13px; color: var(--muted); }

.tl-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

.tl-status.done { background: color-mix(in oklch, var(--ok) 16%, transparent); color: var(--ok); }
.tl-status.now { background: color-mix(in oklch, var(--gold) 18%, transparent); color: var(--gold); }
.tl-status.next { background: var(--surface-3); color: var(--dim); }

/* ============================ 市场 / 订单簿 ============================ */

.market-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  align-items: start;
}

/* 订单簿表格 */
.book {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.book thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
  text-align: left;
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--divider);
}

.book thead th.num,
.book tbody td.num { text-align: right; }

.book tbody td {
  padding: 11px 10px;
  border-bottom: 1px solid color-mix(in oklch, var(--gold-line) 10%, transparent);
  font-family: var(--font-mono);
  color: var(--ink);
  vertical-align: middle;
}

.book tbody tr:last-child td { border-bottom: none; }

.book tbody tr {
  transition: background 0.15s;
}

.book tbody tr:hover {
  background: color-mix(in oklch, var(--gold) 5%, transparent);
}

.book .price-cell {
  color: var(--gold);
  font-weight: 500;
}

.book .token-cell {
  color: var(--muted);
}

.book .seller-cell {
  color: var(--dim);
  font-size: 11.5px;
}

.book .action-cell {
  text-align: right;
  width: 72px;
}

.book .buy-btn {
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s;
}

.book .buy-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: color-mix(in oklch, var(--gold) 8%, transparent);
}

.book .buy-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* 深度条：价格行的背景填充 */
.depth-bar {
  position: relative;
}

/* ==========================================================================
   刷新按钮 + 上次更新时间
   ========================================================================== */
.refresh-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--dim);
  white-space: nowrap;
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s;
}

.refresh-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: color-mix(in oklch, var(--gold) 8%, transparent);
}

.refresh-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.refresh-btn.spinning svg {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   地址查询（只读，无需连接钱包）
   ========================================================================== */
.lookup-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.lookup-input {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: 7px;
  padding: 9px 12px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  transition: border-color 0.16s, background 0.16s;
}

.lookup-input::placeholder {
  color: var(--dim);
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0;
}

.lookup-input:focus {
  outline: none;
  border-color: color-mix(in oklch, var(--frost) 55%, transparent);
  background: color-mix(in oklch, var(--frost) 4%, var(--surface-2));
}

.lookup-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.16s;
  white-space: nowrap;
}

.lookup-btn:hover:not(:disabled) {
  border-color: var(--frost);
  color: var(--frost);
  background: color-mix(in oklch, var(--frost) 8%, transparent);
}

.lookup-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lookup-hint {
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ==========================================================================
   免费窗口提示
   ========================================================================== */
/* Free window 行的副标题 */
.k-sub {
  display: block;
  font-size: 10.5px;
  color: var(--dim);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* 三档状态色 */
.detail-row .v.warn {
  color: var(--gold);
}

.detail-row .v.danger {
  color: #d98880;
}

.depth-bar::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--depth, 0%);
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--gold) 9%, transparent));
  pointer-events: none;
}

/* ==========================================================================
   卖单格子（ask grid）
   图片在上，价格在下，可滚动
   ========================================================================== */
.ask-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 12px;
  max-height: 560px;          /* 超出可下拉 */
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--edge) transparent;
}

/* 滚动条（WebKit） */
.ask-grid::-webkit-scrollbar { width: 6px; }
.ask-grid::-webkit-scrollbar-track { background: transparent; }
.ask-grid::-webkit-scrollbar-thumb {
  background: var(--edge);
  border-radius: 3px;
}
.ask-grid::-webkit-scrollbar-thumb:hover { background: var(--gold); }

.ask-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--dim);
  padding: 34px 0;
  font-size: 13px;
}

.ask-card {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--divider);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}

.ask-card:hover {
  border-color: color-mix(in oklch, var(--gold) 55%, transparent);
  background: color-mix(in oklch, var(--gold) 4%, var(--surface-2));
  transform: translateY(-2px);
}

.ask-card.is-mine {
  border-color: color-mix(in oklch, var(--frost) 45%, transparent);
}

/* 图片区 */
.ask-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0b0f15;
  overflow: hidden;
}

.ask-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ask-card:hover .ask-media img { transform: scale(1.045); }

/* 图片加载失败时的兜底 */
.ask-media img.broken {
  opacity: 0;
}

.ask-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 9, 14, 0.72));
  pointer-events: none;
}

/* tokenId 角标 */
.ask-id {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: rgba(6, 9, 14, 0.72);
  border: 1px solid var(--divider);
  border-radius: 4px;
  padding: 2px 5px;
  backdrop-filter: blur(3px);
}

/* 文字区 */
.ask-meta {
  padding: 9px 9px 10px;
}

.ask-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.ask-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.ask-token { color: var(--muted); }

.ask-seller {
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-btn {
  width: 100%;
  margin-top: 9px;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.ask-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: color-mix(in oklch, var(--gold) 8%, transparent);
}

.ask-card.is-mine .ask-btn:hover:not(:disabled) {
  border-color: var(--frost);
  color: var(--frost);
  background: color-mix(in oklch, var(--frost) 8%, transparent);
}

.ask-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* 小屏：格子更紧凑 */
@media (max-width: 860px) {
  .ask-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
    max-height: 440px;
  }
  .ask-price { font-size: 12px; }
  .ask-meta { padding: 8px 8px 9px; }
}

/* 空状态 */
.book-empty {
  padding: 52px 20px;
  text-align: center;
}

.book-empty .icon {
  font-size: 30px;
  opacity: 0.35;
  margin-bottom: 14px;
}

.book-empty .title {
  font-family: var(--font-card);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 8px;
}

.book-empty .desc {
  font-size: 13px;
  color: var(--dim);
  line-height: 1.65;
  max-width: 380px;
  margin: 0 auto;
}

/* 摘要卡 */
.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 13.5px;
}

.summary-item:last-child { border-bottom: none; }

.summary-item .k { color: var(--muted); }
.summary-item .v {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 15px;
}

.summary-item .v.gold { color: var(--gold); }
.summary-item .v.dim { color: var(--dim); font-size: 13px; }

/* 市场状态徽章 */
.market-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid;
}

.market-badge.open {
  color: var(--ok);
  border-color: color-mix(in oklch, var(--ok) 35%, transparent);
  background: color-mix(in oklch, var(--ok) 10%, transparent);
}

.market-badge.closed {
  color: var(--dim);
  border-color: var(--divider);
  background: var(--surface-2);
}

.market-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.market-badge.open .dot {
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 提示框 */
.notice {
  margin-top: 20px;
  padding: 15px 17px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--surface-2);
  border-left: 2px solid var(--gold-line);
}

.notice strong { color: var(--gold); font-weight: 500; }

@media (max-width: 860px) {
  .market-grid { grid-template-columns: 1fr; }
  .book thead th:nth-child(3),
  .book tbody td:nth-child(3) { display: none; }  /* 小屏隐藏卖家列 */
}

/* ============================ Agent 提示词 ============================ */

.agent-prompt {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: 10px;
  overflow: hidden;
}

.agent-prompt-text {
  margin: 0;
  padding: 18px 20px 58px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 340px;
  overflow-y: auto;
}

.agent-prompt-text::-webkit-scrollbar { width: 6px; }
.agent-prompt-text::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 3px;
}

/* 顶部的复制按钮：和铸造按钮（.btn-lg）同尺寸 */
.agent-copy-top {
  flex-shrink: 0;
  min-width: 210px;
  padding: 14px 30px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  text-transform: none;
  background: color-mix(in oklch, var(--gold) 10%, transparent);
  border-color: color-mix(in oklch, var(--gold) 38%, transparent);
  color: var(--gold);
}

.agent-copy-top:hover:not(:disabled) {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}

.agent-copy-top.copied {
  background: color-mix(in oklch, var(--ok) 20%, transparent);
  border-color: color-mix(in oklch, var(--ok) 45%, transparent);
  color: var(--ok);
}

/* 旧的右下角按钮（保留样式，市场页仍在用） */
.agent-copy {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--surface-2);
  backdrop-filter: blur(6px);
}

.agent-copy:hover:not(:disabled) {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}

.agent-copy.copied {
  background: color-mix(in oklch, var(--ok) 20%, transparent);
  border-color: color-mix(in oklch, var(--ok) 45%, transparent);
  color: var(--ok);
}

/* ============================ 页脚 ============================ */

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 44px 0 52px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-tagline {
  font-family: var(--font-card);
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.9;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--gold); }

.hash {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  word-break: break-all;
  text-decoration: none;
}

.hash:hover { color: var(--gold); }

/* ============================ 提示条 ============================ */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 13.5px;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  max-width: 90vw;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.ok { border-color: color-mix(in oklch, var(--ok) 45%, transparent); color: var(--ok); }
.toast.err { border-color: color-mix(in oklch, var(--danger) 45%, transparent); color: var(--danger); }

/* ============================ 响应式 ============================ */

@media (max-width: 860px) {
  .mint-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}

/* 隐藏数字输入框的箭头 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
