/* ==========================================================================
   问题反馈平台 · 视觉系统
   风格：编辑式 / 工业票券（Editorial Ticket Desk）
   纸质暖底 + 油墨黑字 + 信号橙强调 + 等宽元数据
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --paper:        #F2EFE8;
  --paper-hi:     #FBF9F5;
  --card:         #FFFDF9;
  --ink:          #14120F;
  --ink-soft:     #46403A;
  --muted:        #837C70;
  --line:         #DFD9CC;
  --line-strong:  #C8C0AF;

  --accent:       #D2491B;
  --accent-ink:   #8E2F0E;
  --accent-wash:  #FBE9E0;
  --ok:           #1F6F4F;
  --ok-wash:      #E2F0E8;
  --warn:         #A96A08;
  --warn-wash:    #FBEFD9;
  --danger:       #BE2323;
  --danger-wash:  #FAE3E1;
  --info:         #235C8F;
  --info-wash:    #E3ECF6;

  --font-display: 'Fraunces', 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --font-body:    'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --shadow-1: 0 1px 0 rgba(20, 18, 15, .04), 0 6px 18px -12px rgba(20, 18, 15, .35);
  --shadow-2: 0 2px 0 rgba(20, 18, 15, .05), 0 22px 44px -26px rgba(20, 18, 15, .5);

  --shell: 1240px;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  letter-spacing: .01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 纸张纹理 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--font-mono); font-size: .86em; }

::selection { background: var(--accent); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--paper); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ---------- 通用排版元素 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow span { color: var(--accent); padding: 0 4px; }
.eyebrow--light { color: rgba(255,255,255,.6); }

.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0; }
.muted { color: var(--muted); }
.pad { padding: 28px; }

.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  color: var(--ink-soft);
  background: var(--paper-hi);
}
.chip--qq {
  color: var(--accent-ink);
  background: var(--accent-wash);
  border-color: #EDC4B3;
}

.meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}
.tag--admin { background: var(--accent); color: #fff; }

.count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* 状态圆点 */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; flex: none;
  background: var(--muted);
}
.dot--neutral { background: #8C8577; }
.dot--info    { background: var(--info); }
.dot--warn    { background: var(--warn); }
.dot--ok      { background: var(--ok); }
.dot--muted   { background: #B4AC9E; }
.dot--danger  { background: var(--danger); }

/* 状态 / 优先级胶囊 */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  flex: none;
}
.pill--neutral { color: #6E675B; background: #EFEAE0; border-color: #E2DACB; }
.pill--info    { color: var(--info);   background: var(--info-wash);   border-color: #CBDCEB; }
.pill--warn    { color: var(--warn);   background: var(--warn-wash);   border-color: #EEDCB8; }
.pill--ok      { color: var(--ok);     background: var(--ok-wash);     border-color: #C8E0D3; }
.pill--muted   { color: #857E71;       background: #EFEBE2;            border-color: #E0D9CA; }
.pill--danger  { color: var(--danger); background: var(--danger-wash); border-color: #EFC9C6; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), background .18s, color .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--solid {
  background: var(--ink);
  color: var(--paper-hi);
  border-color: var(--ink);
}
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper-hi); }
.btn--ghost.is-on { border-color: var(--ink); background: var(--ink); color: var(--paper-hi); }

.btn--danger { background: transparent; border-color: #E6B9B5; color: var(--danger); }
.btn--danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

.btn--sm { padding: 6px 13px; font-size: 12.5px; }
.btn--xs { padding: 4px 10px; font-size: 11.5px; }
.btn--lg { padding: 12px 26px; font-size: 15px; }
.btn--block { width: 100%; }

.inline { display: inline; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 14px clamp(18px, 4vw, 46px);
  background: rgba(242, 239, 232, .86);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--accent);
  border-radius: 9px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 15px; letter-spacing: .04em; }
.brand__text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--muted);
}

.nav { display: flex; gap: 4px; flex: 1; }
.nav__link {
  font-size: 13.5px;
  padding: 7px 13px;
  border-radius: 99px;
  color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav__link:hover { background: rgba(20,18,15,.06); color: var(--ink); }
.nav__link.is-active { background: var(--ink); color: var(--paper-hi); }

.topbar__actions { display: flex; align-items: center; gap: 9px; flex: none; }

/* ---------- 提示条 ---------- */
.flashes {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 16px 24px 0;
  width: 100%;
  display: grid;
  gap: 9px;
}
.flash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 13.5px;
  animation: rise .4s cubic-bezier(.2,.7,.3,1) backwards;
}
.flash__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.flash--success { border-color: #BEDCCB; background: var(--ok-wash); color: #14523A; }
.flash--success .flash__dot { background: var(--ok); }
.flash--error { border-color: #EFC0BC; background: var(--danger-wash); color: #7E1A1A; }
.flash--error .flash__dot { background: var(--danger); }

/* ---------- 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px) clamp(18px, 4vw, 30px) 70px;
  flex: 1;
}

/* ==========================================================================
   首屏
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: end;
  padding: clamp(22px, 3vw, 46px) 0 clamp(30px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.1vw, 64px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.03em;
  animation: rise .7s cubic-bezier(.2,.7,.3,1) backwards;
}
.hero__title .mark {
  position: relative;
  color: var(--accent);
  white-space: nowrap;
}
.hero__title .mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: .07em;
  height: .34em;
  background: var(--accent-wash);
  z-index: -1;
  transform: skewX(-8deg);
}

.hero__sub {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.8;
  animation: rise .7s cubic-bezier(.2,.7,.3,1) .08s backwards;
}

.hero__cta {
  margin-top: 30px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  animation: rise .7s cubic-bezier(.2,.7,.3,1) .16s backwards;
}

/* 统计瓦片 */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  animation: rise .7s cubic-bezier(.2,.7,.3,1) .2s backwards;
}
.stat {
  background: var(--paper-hi);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__num--sm { font-size: 26px; }
.stat__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.stat--main { grid-column: span 2; background: var(--ink); }
.stat--main .stat__num { color: var(--paper-hi); }
.stat--main .stat__label { color: rgba(255,253,249,.55); }
.stat--wide { grid-column: span 3; flex-direction: row; align-items: baseline; gap: 12px; }
.stat--wide .stat__label { text-transform: none; letter-spacing: .04em; }

/* ==========================================================================
   分类丝带
   ========================================================================== */
.ribbon {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: clamp(22px, 3vw, 34px) 0;
  scrollbar-width: none;
}
.ribbon::-webkit-scrollbar { display: none; }
.ribbon__item {
  flex: 1 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  background: var(--paper-hi);
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.ribbon__item b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.ribbon__item:hover { background: #fff; color: var(--ink); }
.ribbon__item.is-active { background: var(--ink); color: var(--paper-hi); }
.ribbon__item.is-active b { color: var(--accent); }

/* ==========================================================================
   看板：侧栏 + 列表
   ========================================================================== */
.board {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
}

/* 侧栏筛选 */
.filters {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 20px;
}

.search { display: grid; gap: 9px; grid-template-columns: 1fr auto; }
.search__box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 0 14px;
  transition: border-color .18s, box-shadow .18s;
}
.search__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(210,73,27,.12); }
.search__box span { color: var(--muted); font-size: 16px; }
.search__box input {
  border: 0; background: none; outline: none;
  padding: 9px 0; width: 100%; font-size: 13.5px;
}
.search__box input::placeholder { color: #A9A296; }

.filter-group__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
  padding-left: 2px;
}
.filter-list { display: grid; gap: 2px; }
.filter-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .16s, color .16s;
}
.filter-list a:hover { background: rgba(20,18,15,.055); color: var(--ink); }
.filter-list a.is-active { background: var(--ink); color: var(--paper-hi); }
.filter-list a.is-active i { color: var(--accent); }
.filter-list a span { flex: none; }
.filter-list a span:nth-child(2) { flex: 1; }
.filter-list a i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11.5px;
  color: var(--muted);
  margin-left: auto;
}

/* 列表栏 */
.list { display: grid; gap: 14px; min-width: 0; }
.list__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 4px;
}
.list__count { font-size: 13.5px; color: var(--muted); }
.list__count strong { color: var(--ink); font-family: var(--font-mono); font-size: 15px; }

.sort { display: flex; gap: 2px; background: var(--paper-hi); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.sort__opt {
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 99px;
  color: var(--muted);
  transition: background .16s, color .16s;
}
.sort__opt:hover { color: var(--ink); }
.sort__opt.is-active { background: var(--ink); color: var(--paper-hi); }

/* ---------- 工单卡片 ---------- */
.tickets { display: grid; gap: 12px; }

.ticket {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, border-color .22s;
  animation: rise .5s cubic-bezier(.2,.7,.3,1) backwards;
  animation-delay: calc(var(--i, 0) * 55ms);
  position: relative;
}
.ticket:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-strong);
}

.ticket__stub {
  background: var(--paper);
  border-right: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 16px 6px;
  position: relative;
}
/* 票券打孔缺口 */
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.ticket__stub::before { top: -6px; }
.ticket__stub::after { bottom: -6px; }

.ticket__day {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink);
}
.ticket__year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--muted);
}

.ticket__body { padding: 17px 20px 16px; min-width: 0; }

.ticket__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.ticket__id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted);
  padding-right: 4px;
}
.ticket__id--lg { font-size: 13px; color: var(--ink-soft); }

.ticket__title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.012em;
  margin-bottom: 8px;
}
.ticket__title a { transition: color .18s; }
.ticket__title a:hover { color: var(--accent); }

.ticket__excerpt {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 13px;
}

.ticket__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.ticket__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(20,18,15,.017));
}
.ticket__more {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .18s;
}
.ticket:hover .ticket__more { color: var(--accent); }

/* 点赞按钮 */
.vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 52px;
  padding: 9px 8px 7px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.vote__arrow { font-size: 10px; line-height: 1; color: var(--muted); transition: color .18s, transform .2s; }
.vote__num { font-family: var(--font-mono); font-size: 14px; font-weight: 500; line-height: 1.2; }
.vote:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.vote:hover .vote__arrow { color: var(--accent); transform: translateY(-2px); }
.vote.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.vote.is-on .vote__arrow { color: #fff; }
.vote.just-voted { animation: pop .42s cubic-bezier(.2,.9,.3,1); }

.vote--lg { width: 100%; padding: 16px 12px 13px; border-radius: var(--r-md); }
.vote--lg .vote__arrow { font-size: 15px; }
.vote--lg .vote__num { font-family: var(--font-display); font-size: 30px; }

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 0 4px;
}
.pager__btn {
  font-size: 13px;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  transition: background .18s, color .18s, border-color .18s;
}
.pager__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper-hi); }
.pager__btn.is-off { color: #BDB6A9; border-color: var(--line); cursor: not-allowed; }
.pager__btn.is-off:hover { background: none; color: #BDB6A9; }
.pager__pos { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* 空状态 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 68px 24px;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}
.empty__glyph {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--line-strong);
}
.empty h3 { font-family: var(--font-display); font-size: 22px; }
.empty p { color: var(--muted); font-size: 13.5px; max-width: 34ch; }
.empty--page { padding: 90px 24px; border-style: solid; }

/* ==========================================================================
   页面标题 / 卡片 / 表单
   ========================================================================== */
.page-head { padding: 12px 0 clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 40px); }
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -.028em;
}
.page-head__sub { margin-top: 12px; color: var(--ink-soft); font-size: 14.5px; max-width: 62ch; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.4vw, 30px);
}
.card__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
}

/* 表单 */
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field__label {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.field__label em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid #EDC4B3;
  background: var(--accent-wash);
  border-radius: 4px;
  padding: 1px 6px;
}
.field__label em:only-of-type { }
.field__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.input {
  width: 100%;
  background: var(--paper-hi);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder { color: #ADA69A; }
.input:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(210,73,27,.13); }
.input--area { resize: vertical; line-height: 1.75; min-height: 120px; }
.input--sm { padding: 8px 12px; font-size: 13px; }
.input--xs { padding: 4px 8px; font-size: 12px; border-radius: 5px; width: auto; }
select.input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23837C70' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.form__actions { display: flex; gap: 11px; flex-wrap: wrap; padding-top: 4px; }

/* 分段选择器 */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.segmented__item { position: relative; cursor: pointer; }
.segmented__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.segmented__item span {
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-size: 13px;
  background: var(--paper-hi);
  transition: background .18s, color .18s, border-color .18s;
}
.segmented__item:hover span { border-color: var(--ink); }
.segmented__item input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper-hi); }
.segmented__item input:focus-visible + span { box-shadow: 0 0 0 3px rgba(210,73,27,.2); }

/* 建议卡 */
.tips { display: grid; gap: 22px; position: sticky; top: 84px; }
.tips__title { font-family: var(--font-display); font-size: 20px; }
.tips__list { display: grid; gap: 15px; counter-reset: tip; }
.tips__list li {
  counter-increment: tip;
  display: grid;
  gap: 3px;
  padding-left: 32px;
  position: relative;
}
.tips__list li::before {
  content: "0" counter(tip);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .06em;
}
.tips__list b { font-size: 13.5px; font-weight: 600; }
.tips__list span { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.tips__meta { display: grid; gap: 10px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.tips__meta div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.tips__meta span { color: var(--muted); }
.tips__meta b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-align: right; }

/* ==========================================================================
   详情页
   ========================================================================== */
.backlink {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 22px;
  transition: color .18s, transform .18s;
}
.backlink:hover { color: var(--accent); transform: translateX(-3px); }

.detail__head { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 36px); }
.detail__ident { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.detail__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.16;
  letter-spacing: -.028em;
  max-width: 24ch;
}
.detail__meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.detail__meta b { color: var(--ink); font-weight: 500; }

.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
}
.detail__main { display: grid; gap: 18px; min-width: 0; }
.detail__side { display: grid; gap: 18px; position: sticky; top: 84px; }

.prose__body {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* 回复线程 */
.thread { display: grid; gap: 2px; margin-bottom: 26px; }
.thread__item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  animation: rise .45s cubic-bezier(.2,.7,.3,1) backwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.thread__item:last-child { border-bottom: 0; }
.thread__item.is-admin {
  background: linear-gradient(90deg, var(--accent-wash), transparent 68%);
  border-radius: var(--r-sm);
  padding-left: 14px;
  padding-right: 14px;
  margin-left: -14px;
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper-hi);
  font-size: 14px;
  font-weight: 500;
  flex: none;
}
.thread__item.is-admin .avatar { background: var(--accent); }
.thread__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.thread__head b { font-size: 13.5px; }
.thread__head time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-left: auto; }
.thread__text { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }

.reply-form { display: grid; gap: 11px; padding-top: 20px; border-top: 1px solid var(--line); }
.reply-form__row { display: flex; gap: 11px; }
.reply-form__actions { display: flex; justify-content: flex-end; }

/* 点赞卡 */
.vote-card { display: grid; justify-items: center; gap: 12px; text-align: center; }
.vote-card__hint { font-size: 12px; color: var(--muted); }

/* 事实表 */
.facts__list { display: grid; gap: 0; }
.facts__list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.facts__list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts__list dt { color: var(--muted); font-size: 12.5px; flex: none; }
.facts__list dd { text-align: right; word-break: break-all; }

/* 时间线 */
.timeline__list { display: grid; gap: 0; }
.timeline__item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px; top: 14px; bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.timeline__node {
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  outline: 3px solid var(--card);
  z-index: 1;
}
.timeline__item b { display: block; font-size: 13px; }
.timeline__item time { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.timeline__item p { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

.admin-action form { display: grid; gap: 11px; }

/* ==========================================================================
   管理台
   ========================================================================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: clamp(20px, 2.6vw, 30px);
}
.metric {
  background: var(--paper-hi);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.metric__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--muted);
}
.metric__num--sm { font-size: 17px; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0; }
.metric__num--sm .is-bad { color: var(--danger); font-weight: 700; }
.metric__num--state { display: flex; align-items: center; min-height: 32px; }
.metric__num--state .pill { font-size: 12.5px; padding: 5px 12px; }

/* ---------- 详情页：QQ 群通知 ---------- */
.notify-list { display: grid; gap: 8px; }
.notify-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.notify-list__item:last-child { border-bottom: 0; }
.notify-list__body { color: var(--muted); }
.notify-list__body code { color: var(--ink-soft); }

/* ---------- 机器人：主动通知 ---------- */
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.card__head .card__title { margin: 0; border: 0; padding: 0; }

.metrics--tight { margin-bottom: 16px; gap: 12px; }
.metrics--tight .metric__num { font-size: 21px; }
.metrics--tight .metric__label { font-size: 11px; }

.table--compact th,
.table--compact td { padding: 9px 12px; font-size: 13px; }
.table__note td {
  background: var(--danger-wash);
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding-top: 0;
  border-top: 0;
  word-break: break-all;
}

.btn--xs { padding: 3px 10px; font-size: 11.5px; border-radius: 5px; }

/* ---------- 机器人：体检结果 ---------- */
.diag { margin-bottom: clamp(20px, 2.6vw, 30px); }
.diag__list { display: grid; gap: 10px; }
.diag__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: var(--paper-hi);
}
.diag__item--ok { border-left-color: var(--ok); }
.diag__item--fail { border-left-color: var(--danger); background: var(--danger-wash); }
.diag__badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
  background: var(--ok-wash);
  color: var(--ok);
}
.diag__item--fail .diag__badge { background: #F4CFCB; color: var(--danger); }
.diag__body b { font-size: 13.5px; }
.diag__detail {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  word-break: break-all;
}
.diag__advice { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

/* ---------- 机器人：排查清单 ---------- */
.checklist { display: grid; gap: 13px; counter-reset: chk; }
.checklist li {
  counter-increment: chk;
  display: grid;
  gap: 3px;
  padding-left: 30px;
  position: relative;
}
.checklist li::before {
  content: counter(chk);
  position: absolute;
  left: 0; top: 0;
  width: 19px; height: 19px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  background: var(--paper-hi);
}
.checklist b { font-size: 13.5px; }
.checklist span { font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.checklist li.is-ok::before { border-color: var(--ok); color: var(--ok); background: var(--ok-wash); }
.checklist li.is-bad::before { border-color: var(--danger); color: #fff; background: var(--danger); }
.checklist li.is-bad b { color: var(--danger); }

/* ---------- 机器人：日志页 ---------- */
.log-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.scope { display: flex; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.search--log { flex: 1; min-width: 260px; grid-template-columns: 1fr auto auto; }
.log-toolbar__meta {
  flex: 1 0 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.log-toolbar__meta code { color: var(--ink-soft); }

.log-card { padding: 0; overflow: hidden; margin-bottom: 18px; }
.loglist {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.75;
  max-height: 62vh;
  overflow: auto;
  background: #1B1917;
}
.loglist__row {
  padding: 5px 18px;
  color: #CFC7B8;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  white-space: pre-wrap;
  word-break: break-all;
}
.loglist__row:last-child { border-bottom: 0; }
.loglist__row--error { color: #FF9E8E; background: rgba(190, 35, 35, .16); }
.loglist__row--warn { color: #F0C878; background: rgba(169, 106, 8, .12); }
.loglist__row--debug { color: #8A8377; }

.ribbon--admin { margin: 0 0 clamp(20px, 2.6vw, 30px); }

.table-card { padding: 0; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  font-weight: 500;
  padding: 14px 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .16s; }
.table tbody tr:hover { background: var(--paper-hi); }
.table__time, .table__author { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.table__title { min-width: 220px; }
.table__title a { font-weight: 500; transition: color .18s; }
.table__title a:hover { color: var(--accent); }
.table a.mono:hover { color: var(--accent); }
.row-form { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.row-form--danger { margin-bottom: 0; }

/* ==========================================================================
   管理台：危险操作区 + 二次确认弹窗
   ========================================================================== */
.danger-zone { border-color: #EFC9C6; background: var(--card); }
.danger-zone .card__title { color: var(--danger); }
.card__note { font-size: 12.5px; color: var(--muted); line-height: 1.75; max-width: 68ch; }
.card__note strong { color: var(--ink); font-weight: 600; }
.danger-zone__body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px dashed #EFC9C6;
  border-radius: var(--r-md);
  background: var(--danger-wash);
}
.danger-zone__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-right: auto;
}
.danger-zone__num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--danger);
}
.danger-zone__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--danger { color: var(--danger); }

body.is-locked { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 18, 15, .55);
  backdrop-filter: blur(3px);
  animation: fadein .18s ease-out;
}
.modal[hidden] { display: none; }
.modal__panel {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid #EFC9C6;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: clamp(22px, 3vw, 32px);
  animation: rise .22s ease-out;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -.02em;
  margin: 10px 0 14px;
}
.modal__text { font-size: 13.5px; line-height: 1.85; color: var(--ink-soft); }
.modal__text strong { color: var(--danger); }
.modal__text--muted { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.modal__text code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}
.modal__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 4px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper-hi);
  font-size: 13px;
  cursor: pointer;
}
.modal__check input { width: 16px; height: 16px; accent-color: var(--danger); cursor: pointer; }
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@keyframes fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==========================================================================
   登录页
   ========================================================================== */
.auth { display: grid; place-items: center; padding: clamp(30px, 8vh, 90px) 0; }
.auth__card { width: min(430px, 100%); }
.auth__title { font-family: var(--font-display); font-size: 30px; letter-spacing: -.025em; margin-bottom: 8px; }
.auth__sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px clamp(18px, 4vw, 46px);
  border-top: 1px solid var(--line);
  background: var(--paper-hi);
}
.footer__col { display: flex; align-items: center; gap: 12px; }
.footer__mark {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--accent);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}
.footer p { font-size: 12.5px; color: var(--muted); }
.footer__meta { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ==========================================================================
   动画
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero__stats { max-width: 560px; }
  .split, .detail__grid { grid-template-columns: 1fr; }
  .tips, .detail__side { position: static; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .board { grid-template-columns: 1fr; }
  .filters { position: static; grid-template-columns: 1fr 1fr; display: grid; }
  .search { grid-column: span 2; }
}

@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat--main { grid-column: span 2; }
  .stat--wide { grid-column: span 2; }
  .filters { grid-template-columns: 1fr; }
  .search { grid-column: span 1; }
  .ticket { grid-template-columns: 60px minmax(0, 1fr); }
  .ticket__side {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 18px;
  }
  .vote { flex-direction: row; gap: 7px; min-width: 0; padding: 6px 13px; }
  .vote--lg { flex-direction: column; padding: 15px 12px 12px; }
  .field-row { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .table-card { overflow-x: auto; }
  .table { min-width: 720px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
