/* 鸡你太美（JNTM）铸造页样式：broccoli 式漫画卡片风，暖黄/奶油配色，移动端优先，无构建步骤。 */
* { box-sizing: border-box; }
:root {
  --cream: #fff6dc;
  --cream-2: #ffecbf;
  --cream-3: #fffaf0;
  --ink: #2b1a0e;
  --ink-2: #5b4330;
  --ink-3: #8a7058;
  --yellow: #ffd23e;
  --gold: #f5b82e;
  --gold-2: #ffd766;
  --red: #e63946;
  --red-d: #b42318;
  --gray: #9aa0a6;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --radius: 16px;
  --font-display: "ZCOOL KuaiLe", "Fredoka", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; }

/* ---- 顶栏 ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: var(--line);
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.logo {
  width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
  border: var(--line); background: var(--yellow);
  display: block;
}
.wordmark { font-family: var(--font-display); font-size: 20px; line-height: 1.1; }
.wm-name { color: var(--ink); }
.wm-sym { color: var(--red-d); font-size: 14px; letter-spacing: 1px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--font-display); font-size: 16px; text-decoration: none;
  padding: 6px 12px; border-radius: 10px; color: var(--ink);
}
.nav a:hover { background: var(--cream-2); }
.top-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 24px; display: grid; gap: 28px; }
.deploy-banner {
  padding: 12px 14px; border-radius: var(--radius);
  background: #fff3c9; border: var(--line); color: var(--ink);
  font-size: 13px; box-shadow: var(--shadow);
}

.fair-banner {
  margin: 14px 0 0; padding: 13px 16px; border-radius: var(--radius);
  background: var(--yellow); border: var(--line); color: var(--ink);
  font-size: 17px; font-weight: 900; text-align: center; line-height: 1.5;
  box-shadow: var(--shadow);
}

.risk-banner {
  margin: 14px 0 0; padding: 13px 16px; border-radius: var(--radius);
  background: var(--red-d); border: var(--line); color: #fff;
  font-size: 17px; font-weight: 900; text-align: center; line-height: 1.5;
  box-shadow: var(--shadow);
}

/* ---- Hero ---- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; align-items: center;
  background: var(--cream-3); border: var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow);
}
.hero-kicker {
  margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  color: var(--ink-2);
}
.hero-title { font-family: var(--font-display); font-size: 64px; line-height: 1.05; margin: 0; }
.hero-title .sym { color: var(--red-d); font-size: 30px; letter-spacing: 2px; }
.hero-tag { font-family: var(--font-display); font-size: 24px; color: var(--red); margin: 6px 0 0; }
.hero-sub { font-size: 16px; color: var(--ink-2); margin: 12px 0 0; max-width: 46ch; }
.hero-security { margin: 14px 0 0; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--cream-3); font-size: 14px; font-weight: 700; line-height: 1.6; max-width: 46ch; box-shadow: 3px 3px 0 var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  border: 2px solid var(--ink); border-radius: 99px; background: var(--cream-2);
  padding: 5px 12px; font-size: 13px;
}
.chip b { color: var(--red-d); }
.refund-countdown { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 16px; padding: 10px 14px; background: var(--cream-2); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink); }
.rc-label { font-weight: 700; font-size: 15px; }
.rc-time { font-weight: 800; font-size: 20px; color: var(--red-d); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.rc-note { font-size: 13px; color: var(--ink-2); }
.hero-media { text-align: center; }
.hero-img {
  width: min(100%, 420px); height: auto; display: block; margin: 0 auto;
  border: var(--line); border-radius: 20px; background: var(--cream-2);
  box-shadow: var(--shadow);
}

/* ---- 通用卡片 ---- */
.card {
  background: var(--cream-3);
  border: var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 12px; }
.section-title { font-family: var(--font-display); font-size: 30px; margin: 0 0 16px; }
.section-title .section-sub { font-size: 15px; color: var(--ink-3); font-family: var(--font-body); font-weight: 400; }
.hint { color: var(--ink-2); font-size: 13px; margin: 8px 0; }
.warn { color: var(--red-d); font-weight: 700; }
.err { color: var(--red-d); font-size: 13px; margin: 8px 0; white-space: pre-wrap; word-break: break-word; font-weight: 700; }
.warn-box {
  background: #fff3c9; border: 2px solid var(--ink); color: var(--ink);
  border-radius: 10px; padding: 10px 12px; font-size: 13px;
}
.hidden { display: none !important; }
.row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-bottom: 2px dashed #e5d3a8;
  font-size: 14px;
}
.row:last-child { border-bottom: none; }
.row span { color: var(--ink-2); flex: 0 0 auto; }
.row b { font-weight: 700; text-align: right; word-break: break-all; }
.big-num { font-family: var(--font-display); font-size: 32px; margin: 4px 0 8px; }
.progress { height: 16px; background: var(--cream-2); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.progress .fill { height: 100%; background: var(--yellow); border-radius: 99px; transition: width .4s ease; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.btn {
  appearance: none; border: var(--line); background: var(--cream-3);
  color: var(--ink); border-radius: 12px; padding: 11px 16px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--yellow); }
.btn.warn { background: var(--red); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.small { padding: 8px 12px; font-size: 13px; }
.btn.big { width: 100%; padding: 14px; font-size: 17px; margin-top: 10px; }
.hero-actions .btn.big { width: auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.wallet-info { margin-top: 10px; }
.field-label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 700; margin: 12px 0 6px; }
.lots-row { display: flex; gap: 8px; align-items: stretch; }
.step {
  width: 46px; border-radius: 12px; border: var(--line);
  background: var(--cream-2); color: var(--ink); font-size: 20px; font-weight: 900; cursor: pointer;
}
input[type="number"], input[type="text"] {
  width: 100%; background: var(--cream-3); border: 2px solid var(--ink);
  color: var(--ink); border-radius: 12px; padding: 11px 12px; font-size: 15px; outline: none;
}
input[type="number"] { text-align: center; min-width: 0; font-weight: 700; }
input:focus { border-color: var(--red-d); }
.row .btn { flex: 0 0 auto; }
.link-row { display: flex; gap: 8px; }
.link-row input { font-size: 13px; }

/* ---- 四格故事 ---- */
.comic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comic-card {
  position: relative;
  background: var(--cream-3); border: var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.comic-num {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-family: var(--font-display); font-size: 26px; color: var(--red-d);
  background: var(--cream-2); border: 2px solid var(--ink); border-radius: 10px;
  padding: 0 10px; line-height: 1.4;
}
.comic-img {
  width: 150px; height: 150px; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--cream-2); margin: 0 auto 12px;
}
.comic-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crop-top img { object-position: center 18%; transform: scale(1.15); }
.crop-bottom img { object-position: center 82%; transform: scale(1.2); }
.crop-full img { object-position: center 50%; }
.crop-side img { object-position: 22% 50%; transform: scale(1.25); }
.bubble {
  position: relative; display: inline-block;
  font-family: var(--font-display); font-size: 19px; margin: 0 0 8px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 14px;
  padding: 6px 12px;
}
.bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -9px;
  border: 9px solid transparent; border-top-color: var(--ink); border-bottom: 0;
}
.bubble::before {
  content: ""; position: absolute; left: 24px; bottom: -5px; z-index: 1;
  border: 7px solid transparent; border-top-color: var(--yellow); border-bottom: 0;
}
.comic-body { font-size: 14px; color: var(--ink-2); margin: 6px 0 0; }

/* ---- 铸造票 ---- */
.ticket-wrap { max-width: 760px; margin: 0 auto; width: 100%; }
.ticket-wrap .section-title { text-align: center; }
.ticket {
  background: var(--cream-3); border: var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden;
}
.ticket-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--yellow); border-bottom: var(--line); padding: 16px 20px;
}
.ticket-kicker { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: 2px; color: var(--ink-2); }
.ticket-title { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.ticket-status {
  font-family: var(--font-display); font-size: 16px; background: var(--cream-3);
  border: 2px solid var(--ink); border-radius: 10px; padding: 4px 12px; white-space: nowrap;
}
.ticket-perf {
  height: 0; border-top: 2px dashed var(--ink-3); margin: 0 20px; position: relative;
}
.ticket-body { padding: 20px; }
.ticket-sub { font-family: var(--font-display); font-size: 22px; margin: 18px 0 4px; }

/* ---- 规则 ---- */
.rules { margin: 0; padding-left: 18px; font-size: 14px; }
.rules li { margin: 8px 0; }
.rules b { color: var(--red-d); font-weight: 700; }

/* ---- 问答 ---- */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--cream-3); border: var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: 3px 3px 0 var(--ink);
}
.faq-item summary {
  font-family: var(--font-display); font-size: 18px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--red-d); flex: 0 0 auto; }
.faq-item[open ] summary::after { content: "−"; }
.faq-item p { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }

.foot { text-align: center; color: var(--ink-2); font-size: 12px; padding: 0 16px 28px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 20px; }
  .hero-title { font-size: 48px; }
  .hero-title .sym { font-size: 22px; }
  .comic-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top-actions .btn { display: none; }
  .hero-actions .btn.big { flex: 1 1 auto; }
}
@media (min-width: 761px) {
  body { font-size: 16px; }
}

/* Agent 指令教程 */
.steps { margin: 10px 0 14px 20px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.cmd-block { border: 2px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fffdf5; }
.cmd-label { font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.cmd-text { margin: 0 0 8px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; white-space: pre-wrap; word-break: break-word; font-family: inherit; }

/* ---- 免费领专区 ---- */
.free-card { text-align: center; }
.free-zero { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--red-d); margin: 4px 0 0; }
.free-zero span { font-size: 28px; }
.free-zero-sub { font-size: 16px; font-weight: 700; margin: 6px 0 12px; }
.free-lines { list-style: none; margin: 0 auto 12px; padding: 0; display: grid; gap: 6px; max-width: 420px; text-align: left; }
.free-lines li { padding-left: 22px; position: relative; font-size: 15px; }
.free-lines li::before { content: "✓"; position: absolute; left: 0; color: var(--red-d); font-weight: 900; }

/* ---- 邀人奖励阶梯 ---- */
.ref-headline { font-family: var(--font-display); font-size: 24px; color: var(--red); margin: 0 0 8px; }
.ladder { display: grid; gap: 10px; margin: 14px 0; }
.ladder-step {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--cream-2); border: 2px solid var(--ink); border-radius: 14px;
  padding: 10px 14px; box-shadow: 3px 3px 0 var(--ink);
}
.ladder-step:nth-child(2) { margin-left: 24px; }
.ladder-step:nth-child(3) { margin-left: 48px; }
.ladder-step:nth-child(4) { margin-left: 72px; background: var(--yellow); }
.ladder-range { font-weight: 900; font-size: 16px; }
.ladder-mult { font-family: var(--font-display); font-size: 28px; color: var(--red-d); line-height: 1; }
.ladder-note { margin-left: auto; font-size: 13px; color: var(--ink-2); }

/* ---- 资金流向条形图 ---- */
.flow-group { display: grid; gap: 8px; margin: 10px 0 4px; }
.flow-bar-row { display: grid; grid-template-columns: 128px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.flow-label { color: var(--ink-2); }
.flow-track { height: 16px; background: var(--cream-2); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.flow-fill { height: 100%; background: var(--yellow); border-radius: 99px; min-width: 8px; }
.flow-value { font-weight: 700; white-space: nowrap; }

/* 段内跳转链接 */
.card .hint a, .ticket-body .hint a { color: var(--red-d); font-weight: 700; }

@media (max-width: 760px) {
  .ladder-step:nth-child(2),
  .ladder-step:nth-child(3),
  .ladder-step:nth-child(4) { margin-left: 0; }
  .ladder-note { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .flow-bar-row { grid-template-columns: 1fr auto; }
  .flow-label { grid-column: 1; grid-row: 1; }
  .flow-value { grid-column: 2; grid-row: 1; }
  .flow-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- 邀人排行榜 ---- */
.leaderboard { margin-top: 18px; border-top: 2px dashed #e5d3a8; padding-top: 6px; }
.lb-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.lb-row {
  display: grid; grid-template-columns: 30px 1fr auto auto; gap: 10px; align-items: center;
  background: var(--cream-2); border: 2px solid var(--ink); border-radius: 12px;
  padding: 8px 12px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.lb-rank { font-family: var(--font-display); font-size: 19px; color: var(--red-d); line-height: 1; }
.lb-addr { font-variant-numeric: tabular-nums; word-break: break-all; }
.lb-invites { font-weight: 700; white-space: nowrap; }
.lb-mult { font-family: var(--font-display); font-size: 18px; color: var(--red-d); white-space: nowrap; line-height: 1; }
@media (max-width: 480px) {
  .lb-row { grid-template-columns: 26px 1fr auto auto; gap: 8px; padding: 8px 10px; font-size: 13px; }
  .lb-rank { font-size: 17px; }
  .lb-mult { font-size: 16px; }
}

.invite-box { margin: 10px 0; }
.invite-row { display: flex; gap: 8px; align-items: center; }
.invite-row input { flex: 1; min-width: 0; }

.wallet-error { color: var(--red); font-weight: 700; }

/* ---- 扫码登录弹窗（仿 Binance App 扫码登录） ---- */
.wc-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(43, 26, 14, .55); }
.wc-modal.hidden { display: none !important; }
.wc-modal-card { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fffdf5; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; text-align: center; }
.wc-modal-x { position: absolute; top: 10px; right: 12px; border: var(--line); background: #fff; border-radius: 8px; width: 32px; height: 32px; font-size: 20px; line-height: 1; cursor: pointer; }
.wc-modal-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 21px; }
.wc-modal-sub { margin: 0 0 14px; color: var(--ink-2); font-size: 13px; }
.wc-qr-box { position: relative; width: 220px; height: 220px; margin: 0 auto 14px; background: #fff; border: 2px solid var(--ink); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.wc-qr { width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.wc-qr svg { display: block; max-width: 100%; max-height: 100%; }
.wc-qr-loading { color: var(--ink-3); font-size: 13px; }
.wc-qr-logo { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: #fff; border-radius: 10px; padding: 4px; }
.wc-qr-box.has-qr .wc-qr-logo { display: block; }
.wc-steps { list-style: none; margin: 0 0 12px; padding: 0; text-align: left; }
.wc-steps li { display: flex; gap: 8px; align-items: baseline; margin: 6px 0; font-size: 13.5px; }
.wc-steps b { color: var(--red); font-size: 13px; }
.wc-pair { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--ink-3); border-bottom: 1px dashed var(--ink-3); padding: 8px 2px; margin-bottom: 12px; font-size: 13.5px; color: var(--ink-2); }
.wc-pair b { color: var(--ink); letter-spacing: 1px; }
.wc-open-app { width: 100%; padding: 12px; font-size: 15px; font-weight: 700; background: #fff; border: var(--line); border-radius: 10px; cursor: pointer; }
.wc-open-app:active { transform: translate(2px, 2px); }
.wc-injected { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0; font-size: 12.5px; color: var(--ink-2); text-align: left; }
.wc-injected button { flex: none; border: 2px solid var(--ink); background: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; cursor: pointer; }
.wc-actions { display: flex; gap: 10px; }
.wc-actions button { flex: 1; padding: 12px; font-size: 15px; font-weight: 700; border: var(--line); border-radius: 10px; cursor: pointer; }
.wc-btn-cancel { background: #fff; }
.wc-btn-refresh { background: var(--ink); color: #fff; }
