/* 训练营二期落地页 + 推广页。纸色底、墨色字、一点朱红，网格对齐，不加装饰。 */
:root {
  --paper: #f3efe6;
  --paper-2: #e9e3d6;
  --ink: #1b1a17;
  --ink-2: #5b5750;
  --ink-3: #8f8a80;
  --red: #c23a2b;
  --line: #d6cfbf;
  --white: #fffdf8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
}
img { max-width: 100%; display: block; }
b, strong { font-weight: 600; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 22px; }

/* ── 首屏 ── */
.hero { padding: 56px 0 44px; border-bottom: 1px solid var(--ink); position: relative; }
.hero .no {
  font-size: 13px; letter-spacing: .3em; color: var(--ink-2);
  display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
.hero h1 { font-size: 34px; line-height: 1.3; font-weight: 700; margin: 34px 0 18px; letter-spacing: .04em; }
.hero h1 .red { color: var(--red); }
.hero .sub { font-size: 17px; color: var(--ink); max-width: 30em; }
.hero .stamp {
  position: absolute; right: 0; bottom: 44px; writing-mode: vertical-rl;
  font-size: 13px; letter-spacing: .5em; color: var(--red);
}
.hero .cta-row { margin-top: 30px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.hero .now { font-size: 14px; color: var(--ink-2); }
.hero .now b { font-size: 28px; color: var(--red); font-weight: 700; margin: 0 2px; }
.ref-tag { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.ref-tag b { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 2px;
  font-size: 16px; font-weight: 600; letter-spacing: .12em; padding: 14px 28px;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.red { background: var(--red); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

/* ── 分节 ── */
section.blk { padding: 48px 0 8px; }
.blk-h { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: 22px; }
.blk-h .n { font-size: 13px; color: var(--red); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.blk-h h2 { font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.blk p { margin-bottom: 14px; }
.muted { color: var(--ink-2); }

.ifs { list-style: none; }
.ifs li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ifs li::before { content: "如果"; color: var(--red); font-weight: 600; margin-right: .4em; }
.punch { font-size: 18px; font-weight: 600; margin-top: 22px; }

.quotes { display: grid; gap: 12px; }
.quote { background: var(--white); border-left: 3px solid var(--red); padding: 14px 16px; }
.quote p { margin: 0; }
.quote .who { font-size: 12px; color: var(--ink-3); margin-top: 6px; letter-spacing: .1em; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid2 > div { background: var(--paper); padding: 16px 14px; }
.grid2 h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.grid2 p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.7; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }

.weeks { list-style: none; }
.weeks li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.weeks .w { font-size: 13px; color: var(--ink-2); letter-spacing: .08em; padding-top: 2px; }
.weeks h3 { font-size: 16px; font-weight: 700; }
.weeks p { font-size: 14px; color: var(--ink-2); margin: 2px 0 0; }

.sched { width: 100%; border-collapse: collapse; font-size: 14px; }
.sched td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sched td:first-child { width: 7.5em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sched tr.live td:last-child { font-weight: 600; }

/* ── 报名 ── */
#join { padding-bottom: 40px; }
.ladder { list-style: none; border: 1px solid var(--ink); }
.ladder li { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.ladder li:last-child { border-bottom: 0; }
.ladder .p { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ladder .d { font-size: 13px; }
.ladder li.on { background: var(--ink); color: var(--paper); }
.ladder li.on .p { color: #fff; }
.ladder li.on .d::after { content: " · 现在"; color: #f0b3a8; }
.ladder li.past { text-decoration: line-through; }
.countdown { font-size: 14px; color: var(--red); margin: 12px 0 0; min-height: 1.6em; }

.pay-box { margin-top: 26px; background: var(--white); border: 1px solid var(--line); padding: 20px 18px; }
.pay-box label { font-size: 14px; color: var(--ink-2); display: block; margin-bottom: 6px; }
.pay-box input {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line);
  background: var(--paper); border-radius: 2px; color: var(--ink);
}
.pay-box input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.pay-title { font-size: 20px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-align: center; }
.pay-box .btn { width: 100%; margin-top: 16px; padding: 16px; font-size: 17px; }
.pay-note { font-size: 13px; color: var(--ink-2); margin-top: 12px; line-height: 1.7; }
.pay-off .pay-live { display: none; }
.pay-fallback { display: none; }
.pay-off .pay-fallback { display: block; }
.qr-me { width: 180px; margin: 14px auto 6px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.center { text-align: center; }

footer { border-top: 1px solid var(--ink); padding: 22px 0 60px; font-size: 12px; color: var(--ink-3); letter-spacing: .1em; }

/* ── 弹层 ── */
.mask { position: fixed; inset: 0; background: rgba(27,26,23,.55); display: flex; align-items: center; justify-content: center; padding: 22px; opacity: 0; transition: opacity .2s; z-index: 50; }
.mask[hidden] { display: none; }
.mask.on { opacity: 1; }
.modal { background: var(--paper); width: 100%; max-width: 380px; padding: 26px 22px 22px; position: relative; border-top: 4px solid var(--red); }
.modal h3 { font-size: 19px; margin-bottom: 8px; }
.modal .x { position: absolute; right: 10px; top: 6px; background: none; border: 0; font-size: 26px; color: var(--ink-2); cursor: pointer; }
.pay-qr { width: 220px; height: 220px; margin: 14px auto; display: flex; align-items: center; justify-content: center; background: #fff; padding: 10px; }
.pay-qr svg { width: 100%; height: 100%; }
.pay-spin { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.small { font-size: 13px; color: var(--ink-2); }

/* ── 推广页 ── */
.tui-field { margin-top: 22px; }
.tui-out { margin-top: 26px; }
.tui-mine { background: var(--white); border: 1px solid var(--ink); padding: 14px 16px; margin-bottom: 22px; }
.tui-mine .small { margin: 0; }
.tui-sum { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tui-orders { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tui-orders th, .tui-orders td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: right; }
.tui-orders th:first-child, .tui-orders td:first-child { text-align: left; }
.tui-orders th { font-size: 12px; font-weight: 400; color: var(--ink-3); border-bottom-color: var(--ink); }
.tui-orders .empty td { color: var(--ink-3); }
.tui-orders tfoot td { font-weight: 700; border-bottom: 0; }
.tui-orders .r { color: var(--red); }
.tui-link { word-break: break-all; background: var(--white); border: 1px solid var(--line); padding: 12px; font-size: 14px; }
.tui-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.tui-row .btn { flex: 1; min-width: 140px; }
.poster { margin: 22px auto 0; max-width: 360px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.08); }
