/* 小豆邀请码接力站子页样式。暖白典藏纸墨体系配黄铜编号、群青主调与深墨码池对比段。 */
:root {
  --paper: #f5efe4; --paper1: #efe7d8; --paper2: #e7ddca; --paper3: #ded1ba;
  --card: #fffdf9; --line: rgba(42, 34, 24, .09); --line2: rgba(42, 34, 24, .18);
  --ink: #1e1914; --ink2: #574d42; --ink3: #857766;
  --blue: #274f9e; --blue-t: #1f4184; --blue-bg: rgba(39, 79, 158, .08); --blue-line: rgba(39, 79, 158, .26);
  --obs: linear-gradient(180deg, #332c25 0%, #1f1a15 58%, #15120e 100%);
  --blue-grad: linear-gradient(180deg, #3460b8 0%, #244a96 100%);
  --brass: linear-gradient(180deg, #f3e0a8 0%, #d4b26a 38%, #b38b43 72%, #977131 100%);
  --brass-c: #a9823c; --oxblood: #8a3a2f;
  --ok: #3e7a48; --ok-bg: rgba(62, 122, 72, .11);
  --warn: #a66f24; --warn-bg: rgba(166, 111, 36, .12);
  --dk: #171411; --dk1: #201c18; --dk2: #2a241f; --dk-line: rgba(255, 246, 232, .1);
  --dk-ink: #f5ede0; --dk-ink2: #bfb39f; --dk-ink3: #8a7e6c; --dk-blue: #95b6f5;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "HarmonyOS Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --wrap: 1180px; --pad: clamp(20px, 4.5vw, 52px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; z-index: 0; opacity: .24; background-image: url("../assets/tex-paper-fine.png"); background-size: 320px 320px; }
main, header, footer { position: relative; z-index: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
ol, ul { list-style: none; }
code, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin: 0 auto; }

/* 顶栏 */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 18px; padding: 0 var(--pad);
  background: rgba(245, 239, 228, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line); transition: background-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease); }
.nav.is-dark { background: rgba(23, 20, 17, .82); color: var(--dk-ink); box-shadow: 0 1px 0 var(--dk-line); }
.nav__back { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px 0 9px; border-radius: 999px; font-size: 13px; color: var(--ink2); white-space: nowrap;
  border: 1px solid var(--line2); background: rgba(255, 253, 249, .68); transition: background-color .18s var(--ease), color .18s var(--ease), transform .14s var(--ease); }
.nav__back svg { width: 14px; height: 14px; flex: none; }
.nav__back:hover { background: var(--card); color: var(--ink); }
.nav__back:active { transform: scale(.97); }
.nav.is-dark .nav__back { color: var(--dk-ink2); border-color: var(--dk-line); background: rgba(255, 246, 232, .05); }
.nav.is-dark .nav__back:hover { color: var(--dk-ink); background: rgba(255, 246, 232, .1); }
.nav__brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.nav__brand img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line2); }
.nav__brand b { font: 700 15.5px var(--serif); letter-spacing: .06em; }
.nav__brand i { width: 1px; height: 13px; background: currentColor; opacity: .22; }
.nav__brand span { font-size: 12.5px; letter-spacing: .12em; color: var(--ink3); }
.nav.is-dark .nav__brand span { color: var(--dk-ink3); }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__links a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink2); white-space: nowrap; transition: color .18s var(--ease), background-color .18s var(--ease); }
.nav__links a:hover { color: var(--ink); background: rgba(42, 34, 24, .05); }
.nav__links a.on { color: var(--blue-t); font-weight: 600; background: var(--blue-bg); }
.nav.is-dark .nav__links a { color: var(--dk-ink2); }
.nav.is-dark .nav__links a:hover { color: var(--dk-ink); background: rgba(255, 246, 232, .06); }
.nav.is-dark .nav__links a.on { color: var(--dk-blue); background: rgba(149, 182, 245, .14); }
.nav__cta { display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 999px; background: var(--obs); color: #faf6ee; font-size: 13px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 16px -8px rgba(21, 18, 14, .6); transition: transform .14s var(--ease), opacity .18s var(--ease); }
.nav__cta:hover { opacity: .92; }
.nav__cta:active { transform: scale(.97); }
.nav.is-dark .nav__cta { background: var(--dk-ink); color: var(--dk); box-shadow: none; }

/* 按钮与徽记 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: transform .14s var(--ease), opacity .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.btn--lg { min-height: 52px; font-size: 15.5px; }
.btn--xs { min-height: 30px; padding: 0 12px; font-size: 12px; font-weight: 500; }
.btn--primary { background: var(--obs); color: #fbf7f0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 14px 28px -14px rgba(21, 18, 14, .65); }
.btn--primary:hover:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 18px 34px -14px rgba(21, 18, 14, .75); opacity: .96; }
.btn--blue { background: var(--blue-grad); color: #fffdf9; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 28px -14px rgba(31, 65, 132, .62); }
.btn--blue:hover:not(:disabled) { opacity: .94; }
.btn--ghost { background: rgba(255, 253, 249, .7); color: var(--ink); border: 1px solid var(--line2); }
.btn--ghost:hover:not(:disabled) { background: var(--card); border-color: rgba(42, 34, 24, .34); }
.btn--subtle { background: var(--paper1); color: var(--ink2); border: 1px solid var(--line); min-height: 36px; padding: 0 14px; font-size: 13px; font-weight: 500; }
.btn--subtle:hover:not(:disabled) { background: var(--paper2); color: var(--ink); }
.btn--danger { background: transparent; color: var(--oxblood); border: 1px solid rgba(138, 58, 47, .35); min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn--danger:hover:not(:disabled) { background: rgba(138, 58, 47, .08); }
.btn--full { width: 100%; }
.eyebrow { display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .28em; color: var(--blue-t); }
.eyebrow--dark { color: var(--dk-blue); }
.brass-no { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 9px; border-radius: 5px; background: var(--brass); color: #241b0f; font: 700 12px var(--mono);
  box-shadow: inset 0 1px 0 rgba(255, 250, 232, .6), 0 1px 3px rgba(40, 28, 12, .22); }

/* 首屏画廊排版 */
.hero { position: relative; padding: calc(64px + clamp(48px, 7vw, 88px)) 0 clamp(64px, 8vw, 108px);
  background: radial-gradient(ellipse 72% 60% at 16% 0%, rgba(255, 253, 248, .92), transparent 72%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
.hero__eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink3); }
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(62, 122, 72, .16); }
.hero__title { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 56px); line-height: 1.14; font-weight: 700; letter-spacing: -.024em; color: var(--ink); margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--blue-t); }
.hero__lead { font-size: 16.5px; line-height: 1.82; color: var(--ink2); max-width: 33em; margin-bottom: 40px; }

/* 建筑感数据条 */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line2); padding-top: 24px; gap: 16px; }
.stat { position: relative; padding-right: 12px; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat__label { font-size: 12px; letter-spacing: .06em; color: var(--ink3); margin-bottom: 8px; }
.stat__val { font-family: var(--mono); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.stat__sub { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.stat__status { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 700; color: var(--ok); line-height: 1.3; }
.stat__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(62, 122, 72, .15); }
.stat__status.is-empty { color: var(--warn); }
.stat__status.is-empty i { background: var(--warn); box-shadow: 0 0 0 4px rgba(166, 111, 36, .16); }

/* 典藏感工作台卡片 */
.desk { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line2); border-radius: 18px; padding: clamp(26px, 3vw, 36px);
  box-shadow: 0 1px 2px rgba(34, 26, 18, .04), 0 28px 64px -24px rgba(34, 26, 18, .15); }
.desk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brass-c), var(--blue)); opacity: .75; }
.desk__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.desk__head h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.stepbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.stepbar__item { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px 13px; font-size: 13px; color: var(--ink3); transition: color .2s var(--ease); }
.stepbar__item b { font-family: var(--mono); font-size: 11.5px; opacity: .75; }
.stepbar__item::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; transition: background-color .2s var(--ease); }
.stepbar__item.is-active { color: var(--blue-t); font-weight: 600; }
.stepbar__item.is-active::after { background: var(--blue); }
.stepbar__item.is-done { color: var(--ok); }
.stepbar__item.is-done::after { background: var(--ok); }
.desk__body { display: flex; flex-direction: column; gap: 18px; }
.desk__hint { font-size: 14.5px; line-height: 1.7; color: var(--ink2); }

.user-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.user-bar__who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.user-bar__badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--blue-bg); color: var(--blue-t); font-weight: 600; }

.follow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.follow-choice { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--paper); cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), transform .14s var(--ease); }
.follow-choice:hover { border-color: var(--blue-line); background: var(--card); }
.follow-choice.is-selected { border-color: var(--blue); background: var(--blue-bg); }
.follow-choice__top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--blue-t); }
.follow-choice__name { font-size: 15px; font-weight: 700; color: var(--ink); }
.follow-choice__handle { font-family: var(--mono); font-size: 11.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.follow-actions { display: grid; gap: 10px; }
.follow-open-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }

.code-slab { padding: 20px; border-radius: 14px; background: linear-gradient(180deg, #faf5ec 0%, #f2e9d9 100%); border: 1px solid rgba(169, 130, 60, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.code-slab__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.code-slab__label { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--ink2); }
.code-slab__time { font-size: 12px; color: var(--ink3); }
.code-slab__code { font-family: var(--mono); font-size: 32px; font-weight: 700; letter-spacing: .2em; color: var(--ink); margin: 4px 0 16px; }
.code-slab__btns { display: flex; flex-wrap: wrap; gap: 8px; }

.return-box { padding-top: 18px; border-top: 1px solid var(--line); }
.return-box label { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.return-box p { font-size: 13px; color: var(--ink2); margin-bottom: 12px; }
.field { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--paper); color: var(--ink); font-size: 14px;
  transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease); }
.field:focus { outline: none; border-color: var(--blue); background: var(--card); box-shadow: 0 0 0 3px rgba(39, 79, 158, .1); }
.extract-hint { margin-top: 6px; min-height: 18px; font-size: 12.5px; color: var(--blue-t); }
.return-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* 暗墨码池对比段 */
.band-dark { position: relative; background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(169, 130, 60, .1), transparent 65%), var(--dk); color: var(--dk-ink); padding: clamp(72px, 8.5vw, 112px) 0; }
.pool-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--dk-blue); background: rgba(149, 182, 245, .1); border: 1px solid rgba(149, 182, 245, .24); }
.pool-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 24px 0 32px; border-top: 1px solid var(--dk-line); border-bottom: 1px solid var(--dk-line); margin-bottom: 32px; }
.pool-meta__item span { display: block; font-size: 12px; letter-spacing: .08em; color: var(--dk-ink3); }
.pool-meta__item strong { display: block; font-family: var(--mono); font-size: clamp(26px, 2.8vw, 34px); font-weight: 700; margin-top: 8px; color: var(--dk-ink); letter-spacing: -.02em; }
.relay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.slot-card { padding: 18px 20px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 246, 232, .05) 0%, rgba(255, 246, 232, .02) 100%); border: 1px solid var(--dk-line);
  box-shadow: inset 0 1px 0 rgba(255, 246, 232, .06); display: flex; flex-direction: column; gap: 12px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.slot-card:hover { transform: translateY(-2px); border-color: rgba(255, 246, 232, .22); }
.slot-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slot-card__code { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: .16em; color: var(--dk-ink); }
.slot-card__meta { font-size: 12.5px; color: var(--dk-ink3); display: flex; justify-content: space-between; gap: 8px; }
.status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.status-tag--available { background: rgba(62, 122, 72, .24); color: #a7d99e; }
.status-tag--received { background: rgba(166, 111, 36, .24); color: #f0c987; }
.status-tag--completed { background: rgba(149, 182, 245, .18); color: var(--dk-blue); }
.status-tag--waiting { background: rgba(255, 246, 232, .08); color: var(--dk-ink2); }

/* 通用章节 */
.section { padding: clamp(72px, 8.5vw, 112px) 0; }
.section--alt { background: var(--paper1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head h1, .sec-head h2 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.02em; margin-top: 10px; line-height: 1.18; }

/* 三步互助 */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 44px); }
.step-item { padding-top: 24px; border-top: 1px solid var(--line2); }
.step-item h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 16px 0 8px; letter-spacing: -.01em; }
.step-item p { font-size: 14.5px; color: var(--ink2); line-height: 1.75; }

/* 成员名录表格 */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab { padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink2); border: 1px solid var(--line2); background: var(--card);
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease); }
.filter-tab:hover { border-color: rgba(42, 34, 24, .34); color: var(--ink); }
.filter-tab.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search-input { width: min(280px, 100%); padding: 9px 14px; border-radius: 999px; background: var(--card); }
.member-table-wrap { overflow-x: auto; border: 1px solid var(--line2); border-radius: 16px; background: var(--card); box-shadow: 0 12px 32px -20px rgba(34, 26, 18, .12); }
.member-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.member-table th, .member-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.member-table th { font-size: 12px; letter-spacing: .06em; color: var(--ink3); font-weight: 600; background: var(--paper); white-space: nowrap; }
.member-table tbody tr { transition: background-color .14s var(--ease); }
.member-table tbody tr:hover { background: rgba(245, 239, 228, .48); }
.member-table tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill--completed { background: var(--ok-bg); color: var(--ok); }
.pill--received { background: var(--warn-bg); color: var(--warn); }
.pill--waiting { background: var(--paper2); color: var(--ink2); }
.empty-state { padding: 48px 20px; text-align: center; color: var(--ink3); font-size: 14px; }

/* 站长后台 */
.admin-panel { border-top: 2px solid var(--brass-c); background: var(--paper1); padding: clamp(56px, 6vw, 84px) 0; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; }
.admin-card { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line2); }
.admin-card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 14px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--paper); margin-top: 12px; font-size: 14px; }
.switch-btn { width: 46px; height: 26px; border-radius: 999px; background: var(--line2); position: relative; flex: none; transition: background-color .18s var(--ease); }
.switch-btn::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); transition: transform .18s var(--ease); }
.switch-btn[aria-checked="true"] { background: var(--blue); }
.switch-btn[aria-checked="true"]::after { transform: translateX(20px); }

/* 弹窗与页脚 */
.modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; background: rgba(23, 20, 17, .58); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: min(460px, 100%); background: var(--card); border-radius: 18px; border: 1px solid var(--line2); padding: 28px; box-shadow: 0 28px 72px rgba(15, 12, 8, .32); }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal__head h3 { font-family: var(--serif); font-size: 20px; }
.modal__desc { font-size: 13.5px; color: var(--ink2); line-height: 1.65; margin-bottom: 14px; }
.modal__close { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); }
.modal__close:hover { background: var(--paper1); color: var(--ink); }

.foot { border-top: 1px solid var(--line2); background: var(--paper1); padding: 48px 0 36px; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 28px; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line2); }
.foot__brand b { display: block; font-family: var(--serif); font-size: 16px; }
.foot__brand span { font-size: 13px; color: var(--ink2); }
.foot__col h4 { font-size: 12px; letter-spacing: .12em; color: var(--ink3); margin-bottom: 12px; }
.foot__col a, .foot__col span { display: block; font-size: 13.5px; color: var(--ink2); padding: 4px 0; transition: color .16s var(--ease); }
.foot__col a:hover { color: var(--blue-t); }
.foot__bottom { padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink3); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; padding: 11px 20px; border-radius: 999px; background: var(--dk); color: var(--dk-ink); font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(15, 12, 8, .3); transition: transform .22s var(--ease), opacity .22s var(--ease); }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 960px) {
  .hero { padding-top: 84px; }
  .hero__grid, .admin-grid { grid-template-columns: 1fr; gap: 32px; }
  .desk-stack { order: -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .steps-grid, .pool-meta { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .follow-grid, .follow-open-row, .foot__grid { grid-template-columns: 1fr; }
  .nav__brand i, .nav__brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 审核测试与定制扩展样式 */
.nav__back--prominent { background: var(--card); color: var(--ink); font-weight: 600; border-color: rgba(169, 130, 60, .55); box-shadow: 0 2px 8px rgba(40, 28, 12, .08); }
.nav__back--prominent:hover { background: #fff; border-color: var(--brass-c); }
.nav__book-link { color: var(--oxblood) !important; font-weight: 600; background: rgba(138, 58, 47, .08); }
.nav__book-link:hover { background: rgba(138, 58, 47, .15) !important; }

/* 首屏个人主页与《工程经验全书》强引流展签 */
.hero__copy { min-width: 0; }
.tome-promo { margin-top: 26px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, #fffdf9 0%, #f6ede0 100%); border: 1.5px solid rgba(169, 130, 60, .45);
  box-shadow: 0 14px 34px -18px rgba(42, 28, 14, .22), inset 0 1px 0 rgba(255, 255, 255, .85); }
.tome-promo__cover { height: 136px; border-radius: 4px 10px 10px 4px; padding: 12px 10px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(90deg, #471612 0 9px, #7b2921 9px, #68211a 100%); color: #f6e7c8;
  box-shadow: inset -3px 0 0 #d4b26a, 0 10px 20px -10px rgba(71, 22, 18, .55); border: 1px solid #3d120f; transition: transform .18s var(--ease); }
.tome-promo__cover:hover { transform: translateY(-2px) rotate(-1deg); }
.tome-promo__vol { font: 700 9.5px/1 var(--mono); letter-spacing: .16em; color: #e2c383; }
.tome-promo__cover strong { font: 700 15px/1.25 var(--serif); letter-spacing: .03em; color: #fff8ea; }
.tome-promo__cover small { font: 500 10.5px/1.3 var(--sans); color: #e7cfa0; border-top: 1px solid rgba(246, 231, 200, .24); padding-top: 5px; }
.tome-promo__body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tome-promo__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; font-weight: 600; color: var(--oxblood); }
.tome-promo__learners { display: inline-flex; align-items: center; gap: 3px; padding: 1.5px 8px; border-radius: 999px; background: rgba(143, 51, 41, .09); border: 1px solid rgba(143, 51, 41, .24); color: var(--oxblood); font-size: 11.5px; font-weight: 600; }
.tome-promo__learners b { font-weight: 700; }
.tome-promo__title { font: 700 18px/1.3 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.tome-promo__desc { font-size: 13px; line-height: 1.58; color: var(--ink2); }
.tome-promo__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; }
.btn--oxblood { background: linear-gradient(180deg, #8f3329 0%, #6e221a 100%); color: #fffaf2; min-height: 38px; padding: 0 14px; font-size: 13px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 22px -10px rgba(110, 34, 26, .6); }
.btn--oxblood:hover { opacity: .94; transform: translateY(-1px); }
.btn--brass-outline { background: #fffdf9; color: var(--ink); min-height: 38px; padding: 0 13px; font-size: 13px; font-weight: 600;
  border: 1.5px solid rgba(169, 130, 60, .65); box-shadow: 0 4px 12px -6px rgba(42, 28, 14, .16); }
.btn--brass-outline:hover { background: #fbf4e6; border-color: #8f6b29; }
@media (max-width: 640px) { .tome-promo { grid-template-columns: 1fr; } .tome-promo__cover { height: auto; flex-direction: row; align-items: center; gap: 12px; } }

/* 大尺寸纯净双平台扫码卡片 */
.qr-showcase--pinned { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line2); }
.qr-card { margin: 0; padding: 14px 12px; border-radius: 14px; background: #ffffff; border: 1px solid var(--line2);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; box-shadow: 0 6px 18px -10px rgba(34, 26, 18, .12); }
.qr-card__frame { width: 190px; height: 190px; max-width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #ffffff; border-radius: 10px; overflow: hidden; }
.qr-card__frame img { width: 100%; height: 100%; object-fit: contain; display: block; background: #ffffff; }
.qr-card figcaption { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.qr-card figcaption b { font-size: 13.5px; color: var(--ink); font-weight: 700; }
.qr-card figcaption span { font-size: 12px; color: var(--ink2); font-family: var(--mono); }
@media (max-width: 520px) { .qr-showcase--pinned { grid-template-columns: 1fr; } .qr-card__frame { width: 210px; height: 210px; } }

/* 站长数据统计与溯源面板 */
.admin-stats-block { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line2); }
.admin-stats-title { font-family: var(--serif); font-size: 17px; margin: 0 0 14px; color: var(--ink); }
.admin-stats-sub { font-size: 14px; font-weight: 600; margin: 20px 0 10px; color: var(--ink2); }
.admin-stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-kpi { background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; }
.admin-kpi__label { font-size: 12px; color: var(--ink3); }
.admin-kpi__val { font-size: 21px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.admin-user-cell { display: flex; align-items: center; gap: 8px; }
.admin-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--paper2); flex-shrink: 0; }
.admin-mono { font-family: var(--mono); font-size: 12px; color: var(--ink2); }
.pill--invalid { background: rgba(138, 58, 47, .12); color: var(--oxblood); }

/* 授权后确认关注步骤内的大二维码与 20 秒倒计时提示 */
.qr-showcase--follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 2px 0; }
.qr-showcase--follow .qr-card { cursor: pointer; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .14s var(--ease); }
.qr-showcase--follow .qr-card:hover { border-color: var(--blue-line); transform: translateY(-1px); }
.qr-showcase--follow .qr-card.is-picked { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39, 79, 158, .12), 0 6px 18px -10px rgba(34, 26, 18, .16); }
.follow-wait-tip { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--ink3); text-align: center; }
.follow-wait-tip.is-counting { color: var(--blue-t); font-weight: 600; }
.follow-wait-tip.is-ready { color: var(--ok); font-weight: 600; }
@media (max-width: 520px) { .qr-showcase--follow { grid-template-columns: 1fr; } .qr-showcase--follow .qr-card__frame { width: 210px; height: 210px; } }

/* 第 3 步回传底部：AI 工具订阅渠道（3 渠道精简卡片组） */
.tool-ref-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px dashed var(--line2); }
.tool-ref-box__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-ref-box__head strong { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.tool-ref-box__head span { font-size: 11.5px; color: var(--ink3); }
.tool-ref-list { display: flex; flex-direction: column; gap: 8px; }
.tool-ref-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: inherit; transition: border-color .16s var(--ease), transform .14s var(--ease), box-shadow .16s var(--ease); }
.tool-ref-item:hover { border-color: rgba(169, 130, 60, .6); transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(34, 26, 18, .18); }
.tool-ref-tag { display: inline-flex; align-items: center; justify-content: center; height: 24px; border-radius: 6px; font: 700 11px/1 var(--mono); letter-spacing: .02em; }
.tool-ref-tag--gpt { background: rgba(16, 132, 98, .1); color: #0f6b50; border: 1px solid rgba(16, 132, 98, .22); }
.tool-ref-tag--claude { background: rgba(154, 78, 42, .1); color: #8c3f1c; border: 1px solid rgba(154, 78, 42, .22); }
.tool-ref-tag--self { background: rgba(39, 79, 158, .1); color: var(--blue-t); border: 1px solid rgba(39, 79, 158, .22); }
.tool-ref-item__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-ref-item__text b { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.tool-ref-item__text small { font-size: 11.5px; color: var(--ink3); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-ref-item__go { font-size: 13px; font-weight: 600; color: var(--ink3); transition: color .16s var(--ease), transform .16s var(--ease); }
.tool-ref-item:hover .tool-ref-item__go { color: var(--ink); transform: translate(1px, -1px); }

/* 移动端工作台与订阅渠道精修 */
@media (max-width: 560px) {
  :root { --pad: 14px; }
  .nav { gap: 8px; padding: 0 12px; }
  .nav__back, .nav__cta { padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
  .desk { padding: 20px 16px; }
  .desk__head { padding: 0; margin-bottom: 16px; }
  .desk__body { padding: 0; }
  .tool-ref-box { padding: 12px 10px; }
  .tool-ref-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .tool-ref-item__text small { white-space: normal; overflow: visible; text-overflow: clip; }
}

/* 右栏堆叠：工作台 + 实时接力数据看板 */
.desk-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.live-board { position: relative; overflow: hidden; background: linear-gradient(180deg, #fffdf9 0%, #f9f3e8 100%); border: 1px solid rgba(169, 130, 60, .42); border-radius: 18px; padding: 20px clamp(18px, 2.4vw, 24px); box-shadow: 0 14px 32px -20px rgba(42, 28, 14, .18), inset 0 1px 0 rgba(255, 255, 255, .85); display: flex; flex-direction: column; gap: 14px; }
.live-board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brass-c), rgba(39, 79, 158, .55)); opacity: .7; }
.live-board__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.live-board__title { display: inline-flex; align-items: center; gap: 8px; }
.live-board__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(62, 122, 72, .16); flex: none; }
.live-board__title h3 { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.live-board__tag { font-size: 11.5px; font-weight: 600; color: var(--brass-c); background: rgba(169, 130, 60, .1); border: 1px solid rgba(169, 130, 60, .28); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.live-board__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lb-cell { background: rgba(255, 253, 249, .86); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-cell__label { font-size: 11.5px; color: var(--ink3); letter-spacing: .03em; }
.lb-cell__val { display: flex; align-items: baseline; gap: 4px; color: var(--ink); }
.lb-cell__val strong { font-family: var(--mono); font-size: 24px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.lb-cell__val small { font-size: 12px; color: var(--ink3); font-weight: 500; }
.lb-cell__sub { font-size: 11.5px; color: var(--ink2); line-height: 1.35; }
.live-board__meter { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.live-board__meter-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink2); }
.live-board__meter-row strong { font-family: var(--mono); font-size: 12px; color: var(--blue-t); }
.live-board__track { height: 6px; border-radius: 999px; background: rgba(42, 34, 24, .09); overflow: hidden; }
.live-board__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brass-c) 0%, var(--blue) 100%); transition: width .45s var(--ease); }
.live-board__fill.is-low { background: var(--warn); }
.live-board__feed { font-size: 12px; line-height: 1.5; color: var(--ink2); background: rgba(245, 239, 228, .72); border: 1px dashed rgba(169, 130, 60, .35); border-radius: 10px; padding: 8px 11px; }

/* 匿名贡献榜排名徽章 */
.rank-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 7px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink2); background: var(--paper1); border: 1px solid var(--line); }
.rank-badge--1 { background: linear-gradient(180deg, #f5e2a8 0%, #d4af5a 55%, #b18636 100%); color: #3a2607; border-color: rgba(151, 113, 49, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.rank-badge--2 { background: linear-gradient(180deg, #f3f5f8 0%, #cfd6df 58%, #aab4c2 100%); color: #242b35; border-color: rgba(122, 134, 150, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.rank-badge--3 { background: linear-gradient(180deg, #f0d2bc 0%, #cf9872 58%, #a96d46 100%); color: #3b1f0d; border-color: rgba(153, 96, 58, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.anon-code { font-weight: 600; color: var(--ink); letter-spacing: .01em; }

@media (max-width: 560px) {
  .live-board { padding: 16px 14px; gap: 12px; }
  .live-board__grid { gap: 8px; }
  .lb-cell { padding: 10px; }
  .lb-cell__val strong { font-size: 21px; }
}

/* Step 1 登录卡内置紧凑实时码池条（仅未登录 Step 1 显示，平衡首屏左右双栏视觉重心） */
.login-live-strip { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line2); display: flex; flex-direction: column; gap: 14px; }
.login-live-strip__head { display: flex; align-items: center; gap: 8px; }
.login-live-strip__head strong { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.login-live-strip__cap { margin-left: auto; font-size: 11.5px; color: var(--brass-c); font-weight: 600; background: rgba(169, 130, 60, .1); border: 1px solid rgba(169, 130, 60, .28); padding: 2px 9px; border-radius: 999px; }
.login-live-strip__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.login-live-metric { padding: 12px 12px 11px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.login-live-metric span { font-size: 11.5px; color: var(--ink3); }
.login-live-metric strong { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.login-live-metric strong em { font-style: normal; font-family: var(--mono); }
.login-live-metric small { font-size: 11.5px; color: var(--ink2); line-height: 1.35; }
.live-board__health { display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.live-board__health-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink2); }
.live-board__health-top b { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--blue-t); }
.live-board__bar { height: 7px; border-radius: 999px; background: rgba(42, 34, 24, .09); overflow: hidden; }
.live-board__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brass-c) 0%, var(--blue) 100%); transition: width .45s var(--ease); }
.live-board__bar i.is-low { background: var(--warn); }
.login-live-strip__pulse { margin: 0; font-size: 12px; color: var(--ink2); line-height: 1.55; padding: 10px 12px; border-radius: 10px; background: rgba(245, 239, 228, .72); border: 1px dashed rgba(169, 130, 60, .35); }
@media (max-width: 480px) { .login-live-strip__metrics { gap: 7px; } .login-live-metric { padding: 9px 8px; } .login-live-metric strong { font-size: 15px; } .login-live-metric small { font-size: 11px; } }

/* 站长漏斗转化率、双渠道对比与报表导出面板 */
.admin-stats-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-stats-head .admin-stats-title { margin-bottom: 4px; }
.admin-stats-note { margin: 0; font-size: 12.5px; color: var(--ink3); }
.admin-export-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn--sm { min-height: 36px; padding: 0 13px; font-size: 12.5px; font-weight: 600; }
.admin-analytics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 22px; }
.admin-analytics-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; }
.admin-analytics-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-analytics-card__head h4 { margin: 0; font-family: var(--serif); font-size: 15.5px; color: var(--ink); }
.admin-funnel-list { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: flex; flex-direction: column; gap: 5px; padding: 9px 11px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.funnel-row__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.funnel-row__label { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.funnel-row__val { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.funnel-row__track { height: 7px; border-radius: 999px; background: rgba(30, 23, 16, .08); overflow: hidden; }
.funnel-row__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9a732a 0%, #274f9e 100%); transition: width .24s var(--ease); }
.funnel-row__note { font-size: 11.5px; color: var(--ink3); }
.admin-channel-box { display: flex; flex-direction: column; gap: 12px; }
.channel-split-bar { height: 12px; border-radius: 999px; background: rgba(30, 23, 16, .08); display: flex; overflow: hidden; }
.channel-split-bar__dy { background: #1f1a14; height: 100%; transition: width .24s var(--ease); }
.channel-split-bar__xhs { background: #9a3b2e; height: 100%; transition: width .24s var(--ease); }
.channel-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.channel-card { padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.channel-card__head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.channel-card__dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.channel-card__dot--dy { background: #1f1a14; }
.channel-card__dot--xhs { background: #9a3b2e; }
.channel-card__num { font-size: 18px; font-weight: 700; color: var(--ink); }
.channel-card__sub { font-size: 11.5px; color: var(--ink3); }
.eff-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 6px; border-top: 1px dashed var(--line2); }
.eff-metric { padding: 8px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.eff-metric span { font-size: 11px; color: var(--ink3); }
.eff-metric strong { font-size: 14.5px; font-weight: 700; color: var(--ink); }
@media (max-width: 820px) { .admin-analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .channel-cards, .eff-metrics { grid-template-columns: 1fr; } }

/* Phase 2 新增：排队位置预估横幅、创作者令牌自检徽章、24 小时热度柱状图、高频换码警示徽章与打印/长截图高对比样式 */
.queue-eta-banner { margin: 8px 0 6px; padding: 9px 12px; border-radius: 10px; background: var(--warn-bg); border: 1px solid rgba(166, 111, 36, .35); color: #6e4814; font-size: 12.5px; line-height: 1.55; }
.queue-eta-banner strong { font-family: var(--mono); font-weight: 700; color: #4a300c; }
.admin-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-health-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-analytics-card--wide { grid-column: 1 / -1; }
.admin-hourly-chart { display: flex; flex-direction: column; gap: 8px; }
.hourly-bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 84px; padding: 10px 8px 4px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.hourly-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; min-width: 0; }
.hourly-col__stack { width: 100%; max-width: 16px; height: 54px; display: flex; align-items: flex-end; justify-content: center; gap: 1px; }
.hourly-bar { flex: 1; min-height: 2px; border-radius: 3px 3px 1px 1px; transition: height .24s var(--ease); }
.hourly-bar--claim { background: var(--blue); }
.hourly-bar--return { background: var(--brass-c); }
.hourly-col__lbl { font-family: var(--mono); font-size: 10px; color: var(--ink3); line-height: 1; }
.hourly-legend { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink3); }
.hourly-legend__items { display: flex; align-items: center; gap: 14px; }
.hourly-legend__item { display: inline-flex; align-items: center; gap: 5px; }
.hourly-legend__dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.pill--warn { background: rgba(166, 111, 36, .16); color: #7a4e13; border: 1px solid rgba(166, 111, 36, .42); }
.channel-card__quality { margin-top: 2px; padding-top: 4px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink2); display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.channel-card__quality strong { color: var(--blue-t); font-family: var(--mono); }
.admin-code-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 高对比度卡片边框增强（兼顾手机长截图社群分享清晰度） */
.desk, .tome-promo, .admin-card, .member-table-wrap, .stat, .step-item, .qr-card { border-color: rgba(42, 34, 24, .16); }

@media (max-width: 560px) {
  .hourly-bars { gap: 2px; padding: 8px 4px 4px; height: 74px; }
  .hourly-col__lbl { font-size: 8.5px; }
  .hourly-col:nth-child(2n) .hourly-col__lbl { visibility: hidden; }
}

@media print {
  body::before, .nav, .skip, .toast, .modal-backdrop, .foot__bottom button { display: none !important; }
  html, body { background: #ffffff !important; color: #000000 !important; }
  .hero, .section, .band-dark, .admin-panel { padding: 16px 0 !important; background: #ffffff !important; color: #000000 !important; }
  .desk, .tome-promo, .admin-card, .member-table-wrap, .stat, .step-item, .slot-card, .qr-card, .login-live-metric, .funnel-row, .channel-card {
    box-shadow: none !important;
    border: 1.5px solid #2a2218 !important;
    background: #ffffff !important;
    color: #000000 !important;
    break-inside: avoid;
  }
}

/* 回传后邀请码自动隐藏后三位 + 小眼睛切换防晒图外泄 */
.code-slab__code-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.code-slab__code-row .code-slab__code { margin: 0; }
.code-eye-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(169, 130, 60, .38); background: rgba(255, 253, 249, .88); color: var(--ink2); cursor: pointer; transition: all .15s var(--ease); flex: none; }
.code-eye-btn[hidden] { display: none !important; }
.code-eye-btn:hover { border-color: var(--brass-c); color: var(--ink); background: #fffdf9; transform: translateY(-1px); }
.code-eye-btn .eye-icon { width: 18px; height: 18px; }
.code-eye-btn .eye-icon--open { display: none; }
.code-eye-btn.is-revealed .eye-icon--closed { display: none; }
.code-eye-btn.is-revealed .eye-icon--open { display: block; color: var(--brass-c); }
.code-mask-tip { margin: -4px 0 12px; font-size: 12px; line-height: 1.45; color: var(--ink3); }

#btn-confirm-claim.is-waiting { opacity: .78; cursor: pointer; }

/* 站长后台与榜单表格定高内滚 + 表头吸顶 */
.admin-panel .member-table-wrap {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 130, 60, .52) rgba(245, 239, 228, .65);
}
#members .member-table-wrap {
  max-height: 460px;
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 130, 60, .52) rgba(245, 239, 228, .65);
}
.admin-panel .member-table-wrap::-webkit-scrollbar,
#members .member-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.admin-panel .member-table-wrap::-webkit-scrollbar-track,
#members .member-table-wrap::-webkit-scrollbar-track {
  background: rgba(245, 239, 228, .75);
  border-radius: 999px;
}
.admin-panel .member-table-wrap::-webkit-scrollbar-thumb,
#members .member-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(169, 130, 60, .48);
  border-radius: 999px;
  border: 2px solid rgba(245, 239, 228, .75);
}
.admin-panel .member-table-wrap::-webkit-scrollbar-thumb:hover,
#members .member-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(169, 130, 60, .72);
}
.admin-panel .member-table thead th,
#members .member-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f3ece0;
  box-shadow: 0 1px 0 var(--line);
}
