/* ════════════════════════════════════════════════════════════════════════
   任务交易 · 纸面账簿
   米白纸 / 深绿墨 / 橙红印章 / 衬线标题 / 直角细线 / 等宽数字
   ════════════════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

:root {
  --paper: #f4f0e5;
  --paper-2: #fbf8f0;
  --paper-3: #ebe4d4;
  --paper-4: #e1d8c5;
  --ink: #20241f;
  --ink-soft: #4e5148;
  --muted: #777264;
  --faint: #9a9382;
  --green: #1f4d3a;
  --green-2: #2e6a52;
  --green-soft: rgba(31, 77, 58, .10);
  --orange: #a94f2f;
  --orange-soft: rgba(169, 79, 47, .10);
  --gold: #946a2e;
  --gold-soft: rgba(148, 106, 46, .10);
  --line: rgba(32, 36, 31, .18);
  --line-soft: rgba(32, 36, 31, .09);
  --line-strong: rgba(32, 36, 31, .36);
  --danger: #9d3b2e;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Noto Sans Mono CJK SC", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(255,255,255,.75), transparent 62%),
    radial-gradient(900px 460px at 100% 0%, rgba(31,77,58,.07), transparent 58%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .32;
  background-image:
    linear-gradient(rgba(32,36,31,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,36,31,.028) 1px, transparent 1px);
  background-size: 30px 30px, 30px 30px;
  mix-blend-mode: multiply;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
::selection { background: rgba(31,77,58,.15); }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── 顶栏 ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 229, .92);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  font-family: var(--serif);
  font-size: 16px;
  color: var(--green);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .14em;
}
.brand-sub {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .22em;
  color: var(--faint);
}
.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 0 5px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-link span:first-child {
  font-family: var(--mono);
  font-size: 9px;
  color: #9a9588;
  letter-spacing: .06em;
}
.nav-link:hover { color: var(--green); text-decoration: none; border-color: transparent; }
.nav-link.active { color: var(--ink); font-weight: 600; border-color: var(--green); }
.user-area { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 4px 2px 5px;
  border: 1px solid var(--line);
  background: rgba(251,248,240,.7);
  font-size: 12px;
}
.avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 12px;
}
.user-chip .name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 3px;
}
.chip-btn:hover { color: var(--ink); }

/* ── 通用按钮 / 标签 ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #c9c1af;
  border-radius: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); background: var(--paper-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-2);
}
.btn-primary:hover { border-color: var(--green); background: var(--green); }
.btn-green {
  border-color: var(--green);
  background: var(--green);
  color: #f7f3e9;
}
.btn-green:hover { background: var(--green-2); border-color: var(--green-2); }
.btn-danger { color: var(--danger); border-color: rgba(157,59,46,.35); }
.btn-danger:hover { background: var(--orange-soft); border-color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); padding-inline: 9px; }
.btn-ghost:hover { border-color: transparent; background: transparent; color: var(--ink); text-decoration: underline; }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 12px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge::before { content: ""; width: 4px; height: 4px; background: currentColor; }
.badge-open { color: var(--green); border-color: rgba(31,77,58,.38); background: var(--green-soft); }
.badge-completed { color: var(--green-2); border-color: rgba(46,106,82,.32); }
.badge-review { color: var(--gold); border-color: rgba(148,106,46,.36); background: var(--gold-soft); }
.badge-danger { color: var(--danger); border-color: rgba(157,59,46,.36); background: var(--orange-soft); }
.badge-muted { color: var(--faint); }
.badge-approve { color: var(--green); border-color: rgba(31,77,58,.38); }
.badge-reject { color: var(--danger); border-color: rgba(157,59,46,.36); }
.badge-revision { color: var(--gold); border-color: rgba(148,106,46,.36); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }

/* ── 页头 ───────────────────────────────────────────────────────────── */
.console-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 340px);
  gap: clamp(36px, 5vw, 74px);
  align-items: end;
  padding: clamp(38px, 5vw, 54px) 0 30px;
  border-bottom: 1px solid var(--ink);
}
.console-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.22;
}
.console-head h1 em { font-style: normal; color: var(--green); }
.console-lede {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}
.console-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.rule-panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px 20px 8px;
  box-shadow: 6px 6px 0 rgba(32, 36, 31, .05);
}
.rule-panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.rule-panel-title strong { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.rule-panel-title span { font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em; color: var(--faint); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}
.stat-strip > * {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 24px 20px;
  border-right: 1px solid var(--line-soft);
}
.stat-strip > *:last-child { border-right: 0; }
.stat-strip span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.stat-strip b {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-strip small { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.stat-strip .is-accent b { color: var(--green); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(36px, 5vw, 74px);
  align-items: end;
  padding: clamp(48px, 6vw, 74px) 0 34px;
  border-bottom: 1px solid var(--ink);
}
.hero-kicker { display: flex; align-items: center; gap: 10px; }
.hero-kicker::before { content: ""; width: 20px; height: 1px; background: var(--green); }
.hero h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 58px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-ledger {
  border: 1px solid var(--line);
  background: rgba(251,248,240,.64);
  padding: 20px 20px 18px;
  box-shadow: 8px 8px 0 rgba(32,36,31,.045);
}
.hero-ledger-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .15em;
  color: var(--faint);
}
.hero-ledger-title strong {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .1em;
  color: var(--ink);
  font-weight: 600;
}
.ledger-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dotted var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}
.ledger-line:last-child { border-bottom: 0; }
.ledger-line b {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; background: var(--line-soft); }
.hero-stat { background: var(--paper-2); padding: 12px 10px; text-align: center; }
.hero-stat b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.hero-stat span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--faint); }

/* ── 筛选 ───────────────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-right: auto; }
.seg-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
}
.seg-btn:hover { color: var(--ink); border-color: var(--line-soft); }
.seg-btn.active { color: var(--ink); border-color: var(--line); background: var(--paper-2); }
.toolbar .input, .toolbar select { width: auto; }
.input, .field input, .field select, .field textarea {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d3cbba;
  border-radius: 0;
  background: #f9f6ee;
  color: var(--ink);
  font-size: 13px;
  color-scheme: light;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field small { color: var(--faint); font-size: 11.5px; line-height: 1.5; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.search-input { width: 190px; }

/* ── 任务卡片 ───────────────────────────────────────────────────────── */
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 0 8px;
}
.task-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  box-shadow: 7px 7px 0 rgba(32,36,31,.045);
  cursor: pointer;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.task-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--line-strong);
  box-shadow: 10px 10px 0 rgba(32,36,31,.06);
  text-decoration: none;
}
.task-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-cat {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: var(--green);
}
.task-title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-desc {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-card-mid { margin-top: auto; padding-top: 16px; }
.task-reward {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--ink);
}
.task-reward b { font-family: var(--serif); font-size: 28px; line-height: 1; font-weight: 600; }
.task-reward small { color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dotted var(--line-soft);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
}
.task-meta .dot { color: var(--line-strong); }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--faint); font-size: 10.5px; }
.task-foot .publisher { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }

/* ── 空状态 / 分页 ───────────────────────────────────────────────────── */
.empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed var(--line);
  background: rgba(251,248,240,.5);
  text-align: center;
  color: var(--muted);
}
.empty strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 600; }
.empty span { display: block; margin-top: 8px; font-size: 13px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 26px 0 0; }
.pager-info { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .08em; }

/* ── 页脚 ───────────────────────────────────────────────────────────── */
.footer {
  margin-top: 70px;
  padding: 22px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.footer-mono { font-family: var(--mono); letter-spacing: .06em; }

/* ── 发布页 ─────────────────────────────────────────────────────────── */
.page-head { padding: 46px 0 24px; border-bottom: 1px solid var(--ink); }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1.25; }
.page-head p { max-width: 56ch; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.publish-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; padding: 28px 0 0; align-items: start; }
.form-sheet { border: 1px solid var(--line); background: var(--paper-2); padding: 26px 26px 28px; box-shadow: 10px 10px 0 rgba(32,36,31,.04); }
.form-section + .form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.form-section-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.form-section-title span { font-family: var(--mono); font-size: 9px; color: var(--green); letter-spacing: .14em; }
.form-section-title h2 { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.deadline-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.deadline-option {
  position: relative;
  display: block;
  padding: 10px 10px 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  text-align: center;
}
.deadline-option input { position: absolute; opacity: 0; pointer-events: none; }
.deadline-option b { display: block; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.deadline-option span { display: block; margin-top: 3px; color: var(--faint); font-size: 10px; }
.deadline-option:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.preview-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px;
  box-shadow: 7px 7px 0 rgba(32,36,31,.045);
  position: sticky;
  top: 92px;
}
.preview-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.preview-head span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; color: var(--faint); }
.preview-title { margin: 12px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.4; word-break: break-word; }
.preview-desc { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.preview-money { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.preview-money b { font-family: var(--serif); font-size: 32px; line-height: 1; }
.preview-money small { color: var(--muted); font-size: 10px; }
.wallet-box { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.wallet-line { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12px; color: var(--muted); }
.wallet-line b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.wallet-warn { margin-top: 10px; padding: 8px 10px; background: var(--orange-soft); border-left: 2px solid var(--orange); color: var(--danger); font-size: 11.5px; }
.publish-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.publish-actions .hint { margin-left: auto; max-width: 220px; color: var(--faint); font-size: 11px; text-align: right; }

/* ── 详情页 ─────────────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; padding: 28px 0 0; align-items: start; }
.detail-main { min-width: 0; }
.detail-head { padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.detail-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.detail-title { margin: 16px 0 0; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; line-height: 1.28; letter-spacing: .005em; word-break: break-word; text-wrap: balance; }
.detail-byline { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: var(--faint); font-size: 11px; font-family: var(--mono); }
.detail-description {
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 15px;
  line-height: 2;
  white-space: pre-wrap;
  word-break: break-word;
}
.detail-description::first-line { font-weight: 600; }
.detail-note { margin-top: 12px; color: var(--faint); font-size: 11.5px; }
.evidence-section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.section-head span { font-family: var(--mono); font-size: 9px; color: var(--faint); letter-spacing: .1em; }
.assignment-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 16px 18px;
}
.assignment-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.assignment-worker { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink); }
.assignment-worker .avatar { width: 24px; height: 24px; font-size: 12px; }
.assignment-time { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.assignment-evidence { margin-top: 10px; color: var(--ink-soft); font-size: 13px; line-height: 1.85; white-space: pre-wrap; word-break: break-word; }
.assignment-note { margin-top: 8px; padding: 8px 10px; background: var(--gold-soft); border-left: 2px solid var(--gold); color: var(--gold); font-size: 11.5px; }
.assignment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dotted var(--line-soft); }
.assignment-actions .review-note { flex: 1 1 220px; min-height: 34px; }
.detail-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; }
.money-card { border: 1px solid var(--line); background: var(--paper-2); padding: 20px; box-shadow: 7px 7px 0 rgba(32,36,31,.045); }
.money-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--faint); }
.money-big { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.money-big b { font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 600; }
.money-big small { color: var(--muted); font-size: 10px; }
.money-lines { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.money-lines div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12px; color: var(--muted); }
.money-lines b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.action-card { border: 1px solid var(--line); background: rgba(251,248,240,.7); padding: 18px; }
.action-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 18px; font-weight: 600; }
.action-card p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.action-card .btn { width: 100%; margin-top: 8px; }
.action-card .btn + .btn { margin-top: 8px; }
.action-stack { display: flex; flex-direction: column; }
.inline-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.inline-form .field + .field { margin-top: 12px; }
.inline-form-actions { display: flex; gap: 8px; margin-top: 12px; }
.detail-empty { margin-top: 16px; padding: 22px; border: 1px dashed var(--line); color: var(--muted); font-size: 13px; text-align: center; }

/* ── 我的任务 ───────────────────────────────────────────────────────── */
.my-tabs { display: flex; gap: 6px; padding: 20px 0 0; }
.my-list { padding: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.my-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.my-item-main { min-width: 0; }
.my-item-title { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.4; font-weight: 600; word-break: break-word; }
.my-item-desc { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.my-item-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.my-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 140px; }
.my-item-side .reward { font-family: var(--serif); font-size: 24px; }
.my-item-side .reward small { font-family: var(--mono); font-size: 9px; color: var(--faint); }
.my-item-side .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ── 管理台 ─────────────────────────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 22px 0 0; }
.admin-stat { border: 1px solid var(--line); background: var(--paper-2); padding: 16px; }
.admin-stat b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 600; }
.admin-stat span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--faint); }
.table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); background: var(--paper-2); }
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th, .table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table th { background: var(--paper-3); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--muted); font-weight: 500; white-space: nowrap; }
.table tr:hover td { background: rgba(31,77,58,.03); }
.table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .title-cell { min-width: 220px; }

/* ── 登录门 / 提示 ───────────────────────────────────────────────────── */
.gate {
  margin: 36px 0 0;
  padding: 42px 28px;
  border: 1px dashed var(--line);
  background: rgba(251,248,240,.55);
  text-align: center;
}
.gate h2 { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 600; }
.gate p { max-width: 46ch; margin: 10px auto 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.notice {
  padding: 10px 13px;
  border-left: 2px solid var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 12px;
  line-height: 1.7;
}
.notice-danger { border-color: var(--danger); background: var(--orange-soft); color: var(--danger); }
.notice-green { border-color: var(--green); background: var(--green-soft); color: var(--green); }

/* ── Toast / Modal ───────────────────────────────────────────────────── */
.toast-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 220px;
  max-width: 420px;
  padding: 11px 14px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 12.5px;
  box-shadow: 5px 5px 0 rgba(32,36,31,.1);
  animation: toast-in .18s ease-out;
}
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.ok { border-color: var(--green); color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 30, 26, .36);
  backdrop-filter: blur(2px);
}
.modal {
  width: min(520px, 100%);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 22px;
  box-shadow: 10px 10px 0 rgba(20,22,18,.18);
}
.modal h3 { margin: 0; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.modal p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.modal .modal-body { margin-top: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
  vertical-align: -1px;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 响应式 ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .topbar-inner { grid-template-columns: 1fr; gap: 10px; padding: 10px 0; }
  .topnav { justify-content: flex-start; gap: 18px; overflow-x: auto; }
  .topnav::-webkit-scrollbar { height: 0; }
  .user-area { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .console-head { grid-template-columns: 1fr; gap: 26px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > *:nth-child(2n) { border-right: 0; }
  .stat-strip > * { border-bottom: 1px solid var(--line-soft); }
  .hero-ledger { max-width: 420px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publish-grid, .detail-grid { grid-template-columns: 1fr; }
  .preview-card, .detail-side { position: static; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 0; }
  .brand-name { font-size: 18px; }
  .brand-sub { display: none; }
  .topnav { gap: 16px; }
  .nav-link { padding: 4px 0 5px; font-size: 12px; white-space: nowrap; }
  .nav-link span:first-child { display: none; }
  .hero { padding-top: 36px; }
  .console-head { padding-top: 32px; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > * { border-right: 0; }
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .task-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 0; }
  .form-sheet { padding: 18px 16px; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .deadline-options { grid-template-columns: 1fr; }
  .my-item { grid-template-columns: 1fr; }
  .my-item-side { align-items: flex-start; flex-direction: row; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { gap: 8px; }
  .search-input { width: 100%; }
  .detail-description { padding: 18px; }
  .money-card { padding: 16px; }
  .footer-inner { flex-direction: column; }
  .toast-wrap { right: 10px; left: 10px; bottom: 10px; }
  .toast { max-width: none; }
}

