/* 推文台 · 样式 */
:root {
  --bg: #f7f8fa;
  --paper: #ffffff;
  --ink: #141a22;
  --ink-2: #3d4654;
  --muted: #6b7280;
  --line: #e5e8ed;
  --line-strong: #d3d9e1;
  --accent: #0b5c86;
  --accent-dark: #07445f;
  --accent-soft: #eef5fa;
  --green: #15803d;
  --green-soft: #f0fdf4;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --slate: #475569;
  --slate-soft: #f1f5f9;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 26, 34, .05);
  --shadow: 0 8px 24px -12px rgba(20, 26, 34, .18);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: -.01em; }

img { max-width: 100%; display: block; }

code { font-family: var(--mono); font-size: .88em; background: #f1f3f6; padding: .1em .35em; border-radius: 5px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------- 导航 */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 248, 250, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-size: 17px;
  box-shadow: 0 4px 12px -4px rgba(11, 92, 134, .35);
}
.brand-text { font-family: var(--serif); font-size: 18px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  position: relative; padding: 8px 12px; border-radius: 9px; color: var(--ink-2);
  font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { background: #eef1f4; color: var(--ink); }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent);
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #e5e8ed; color: var(--ink-2);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
}

/* ---------------------------------------------------------- 布局 */
.page { padding: 40px 24px 72px; }
.container { max-width: 1120px; margin: 0 auto; }
.container-wide { max-width: 1180px; }
.section { margin-top: 56px; }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.page-head h1 { font-size: 30px; }
.page-head .muted { margin: 6px 0 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: 22px; }

/* ---------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; font-family: var(--sans); cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, color .15s;
  background: none; color: var(--ink); white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--line-strong); background: var(--paper); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-ghost { background: #f2f4f7; color: var(--ink-2); }
.btn-ghost:hover { background: #e4e8ed; color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #991b1b; color: #fff; }
.btn-danger-ghost { color: var(--red); background: var(--red-soft); }
.btn-danger-ghost:hover { background: #fee2e2; }
.btn-link { color: var(--muted); }
.btn-link:hover { color: var(--accent); }
.link { color: var(--accent); font-weight: 500; }
.link:hover { text-decoration: underline; }
.inline-form { display: inline; margin: 0; }

/* ---------------------------------------------------------- 首页 hero */
.hero {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center;
  padding: 28px 0 8px;
}
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.18; letter-spacing: -.02em; }
.hero-sub { color: var(--ink-2); font-size: 16px; margin: 18px 0 0; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line);
  padding-left: 28px;
}
.stat { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; }
.stat-num { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1; }
.stat-label { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------- 卡片 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f4; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-cover img { transform: scale(1.03); }
.card-cover-empty { display: grid; place-items: center; }
.card-cover-empty span { font-family: var(--serif); font-size: 44px; color: #d3d9e1; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 19px; line-height: 1.45; }
.card-excerpt { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 12px; color: var(--muted); background: #f2f4f7; padding: 2px 8px; border-radius: 999px;
}
.tag:hover { color: var(--accent); }

/* ---------------------------------------------------------- 状态标签 */
.chip {
  display: inline-block; font-size: 11.5px; line-height: 20px; padding: 0 9px; border-radius: 999px;
  font-weight: 500; white-space: nowrap; vertical-align: middle;
}
.chip-draft { background: var(--slate-soft); color: var(--slate); }
.chip-submitted { background: var(--amber-soft); color: var(--amber); }
.chip-published { background: var(--green-soft); color: var(--green); }
.chip-rejected { background: var(--red-soft); color: var(--red); }
.chip-archived { background: #f1f3f6; color: var(--muted); }

/* ---------------------------------------------------------- 面板 / 列表 */
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.panel.centered { text-align: center; padding: 64px 24px; max-width: 520px; margin: 40px auto; }
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
  transition: border-color .15s, box-shadow .15s;
}
.row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.row-main { min-width: 0; flex: 1; }
.row-title { font-family: var(--serif); font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-hint { color: var(--muted); font-size: 13px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; }
.row-side { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.row-actions { display: flex; gap: 6px; align-items: center; }
.row-link { font-weight: 600; }
.reject-note { margin-top: 6px; font-size: 12.5px; color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 8px; display: inline-block; }

.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: 14px; background: #fbfcfd; }
.empty-title { font-family: var(--serif); font-size: 17px; font-weight: 700; }
.empty-hint { color: var(--muted); font-size: 13.5px; margin: 8px 0 16px; }

/* ---------------------------------------------------------- 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, transform .15s;
}
.stat-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.stat-card-num { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.2; }
.stat-card-label { font-size: 13.5px; font-weight: 500; }
.stat-card-hint { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- 标签页 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 10px 14px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab-num { margin-left: 6px; font-size: 12px; color: var(--muted); }
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; }

/* ---------------------------------------------------------- 表格 */
.table-panel { padding: 4px 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 14px 20px; border-bottom: 1px solid var(--line); letter-spacing: .02em;
}
.table td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fbfcfd; }
.head-stats { display: flex; gap: 18px; }
.mini-stat { font-size: 13px; color: var(--muted); }
.mini-stat b { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-right: 3px; }

/* ---------------------------------------------------------- 详情页 */
.detail { max-width: 760px; margin: 0 auto; }
.back-link { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.back-link:hover { color: var(--accent); }
.detail-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 14px; }
.detail-cover { margin: 28px 0 0; border-radius: 18px; overflow: hidden; }
.detail-cover img { width: 100%; }
.detail-tags { margin-top: 32px; }

.prose { font-size: 17px; line-height: 1.95; color: var(--ink-2); margin-top: 32px; }
.prose p { margin: 0 0 1.2em; }
.prose h3, .prose h4 { margin: 1.6em 0 .7em; color: var(--ink); font-size: 21px; }
.prose h4 { font-size: 18px; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent);
  color: var(--ink); font-family: var(--serif); font-size: 18px;
}
.prose ul { margin: 0 0 1.2em; padding-left: 22px; }
.prose li { margin: .35em 0; }
.prose code { background: #f2f4f7; }
.post-figure { margin: 1.8em 0; }
.post-figure img { border-radius: 14px; width: 100%; }

/* ---------------------------------------------------------- 审核双栏 */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.review-content { padding: 32px 36px; }
.review-content .prose { margin-top: 0; }
.review-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.side-block { padding: 20px; }
.side-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; letter-spacing: .04em; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.timeline li { padding: 7px 0; border-bottom: 1px dashed var(--line); line-height: 1.5; }
.timeline li:last-child { border-bottom: none; }
.reject-box { margin-top: 18px; border-top: 1px dashed var(--line); padding-top: 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip-btn {
  font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink-2); cursor: pointer; text-align: left;
}
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.reject-box textarea, .side-block textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px;
  font-family: var(--sans); font-size: 13.5px; resize: vertical; margin-bottom: 10px;
  background: #fbfcfd; color: var(--ink);
}
.reject-box textarea:focus, .side-block textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* ---------------------------------------------------------- 编辑器 */
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.editor-head h1 { font-size: 28px; }
.editor-status { font-size: 12.5px; color: var(--muted); background: #f2f4f7; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.editor-status[data-state="saving"] { color: var(--amber); background: var(--amber-soft); }
.editor-status[data-state="saved"] { color: var(--green); background: var(--green-soft); }
.editor-status[data-state="error"] { color: var(--red); background: var(--red-soft); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.editor-main {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px 18px; min-height: 60vh;
}
.title-input {
  width: 100%; border: none; outline: none; font-family: var(--serif); font-size: 32px;
  font-weight: 700; color: var(--ink); background: transparent; padding: 0 0 8px;
}
.title-input::placeholder { color: #d3d9e1; }
.editor-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 8px 0; margin: 16px 0 0; position: sticky; top: 68px; background: var(--paper); z-index: 5;
}
.seg { display: flex; background: #f2f4f7; border-radius: 9px; padding: 3px; }
.seg-btn {
  border: none; background: none; padding: 5px 14px; border-radius: 7px; font-size: 13px;
  color: var(--muted); cursor: pointer; font-family: var(--sans);
}
.seg-btn.is-active { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.tool-buttons { display: flex; gap: 2px; }
.tool {
  width: 32px; height: 32px; border: none; background: none; border-radius: 7px; cursor: pointer;
  color: var(--ink-2); font-size: 14px; font-family: var(--serif); font-weight: 700;
  display: grid; place-items: center;
}
.tool:hover { background: #f2f4f7; }
.tool-upload { font-size: 15px; font-weight: 400; }
.body-input {
  width: 100%; min-height: 46vh; border: none; outline: none; resize: vertical;
  font-family: var(--serif); font-size: 18px; line-height: 1.95; color: var(--ink-2);
  background: transparent; padding: 22px 0;
}
.body-input::placeholder { color: #d3d9e1; }
.preview { margin-top: 22px; min-height: 46vh; }
.editor-foot { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.editor-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.side-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.cover-picker img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 10px; }
.cover-actions { display: flex; gap: 6px; }
.text-input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px;
  font-size: 14px; font-family: var(--sans); background: #fbfcfd; color: var(--ink);
}
.text-input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

/* ---------------------------------------------------------- 表单 / 登录 */
.auth-wrap { display: flex; justify-content: center; padding: 24px 0 40px; }
.auth-card { width: 100%; max-width: 420px; padding: 32px; }
.auth-title { font-size: 28px; margin-bottom: 6px; }
.auth-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field input {
  height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px;
  font-size: 14px; font-family: var(--sans); background: #fbfcfd; color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.auth-switch { text-align: center; margin: 16px 0 0; }
.demo-box { margin-top: 22px; padding: 14px 16px; background: #fbfcfd; border: 1px dashed var(--line-strong); border-radius: 12px; }
.demo-title { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.demo-list { margin: 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); }
.demo-list li { margin: 2px 0; }

/* ---------------------------------------------------------- 提示 */
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 20px; border: 1px solid transparent; }
.flash-ok { background: var(--green-soft); color: var(--green); border-color: #bbf7d0; }
.flash-err { background: var(--red-soft); color: var(--red); border-color: #fecaca; }
.flash-warn { background: var(--amber-soft); color: var(--amber); border-color: #fde68a; }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13.5px;
  z-index: 100; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  max-width: 90vw;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.is-error { background: var(--red); }

/* ---------------------------------------------------------- 通知 */
.notify {
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
}
.notify.is-unread { border-color: #fed7aa; background: #fffdfa; }
.notify-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 7px; flex-shrink: 0; }
.notify.is-unread .notify-dot { background: var(--accent); }
.notify-main { flex: 1; }
.notify-title { font-weight: 600; font-size: 14.5px; }
.notify-body { color: var(--ink-2); font-size: 13.5px; margin: 4px 0 6px; }
.notify:not(.is-unread) .notify-title { font-weight: 500; color: var(--ink-2); }

/* ---------------------------------------------------------- 其他 */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.page-btn {
  min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; color: var(--ink-2);
}
.page-btn:hover { border-color: var(--line-strong); }
.page-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.error-code { font-family: var(--serif); font-size: 64px; color: var(--line-strong); line-height: 1; }
.error-title { font-size: 24px; margin: 8px 0 10px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { flex-direction: row; border-left: none; border-top: 1px solid var(--line); padding: 16px 0 0; gap: 32px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .editor, .review-layout { grid-template-columns: 1fr; }
  .editor-side, .review-side { position: static; }
  .nav-links { gap: 0; }
}

@media (max-width: 680px) {
  .page { padding: 24px 16px 56px; }
  .nav-inner {
    padding: 8px 14px; gap: 10px; height: auto;
    flex-wrap: wrap; row-gap: 8px;
  }
  .brand-mark { width: 28px; height: 28px; font-size: 15px; }
  /* 导航改成可横滑的一行，避免手机上菜单消失 */
  .nav-links {
    display: flex; order: 3; width: 100%; flex: 0 0 100%;
    overflow-x: auto; overflow-y: hidden; gap: 2px;
    padding-bottom: 2px; scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; padding: 7px 10px; font-size: 13.5px; }
  .nav-right { margin-left: auto; }
  .nav-user-text { display: none; }
  .grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .row { flex-direction: column; align-items: stretch; gap: 12px; }
  .row-side { justify-content: space-between; }
  .editor-main { padding: 20px 18px; }
  .title-input { font-size: 26px; }
  .review-content { padding: 20px; }
  .detail-meta { gap: 10px; }
  .hero-actions .btn { flex: 1; }
  /* 表格：手机上横向滚动，别把页面撑破 */
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .search input[type="search"] { min-width: 0; width: 100%; }
  .field-row { grid-template-columns: 1fr; }
}

/* ================= 内部系统补充 ================= */
.search { display: flex; gap: 8px; align-items: center; }
.search input[type="search"] {
  height: 36px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 12px;
  font-size: 13.5px; background: #fff; min-width: 240px; font-family: var(--sans); color: var(--ink);
}
.search input[type="search"]:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.nav-user-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; }
.nav-user-text em { font-style: normal; font-size: 11px; color: var(--muted); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 登录页双栏 */
.auth-wrap {
  display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center;
  max-width: 1060px; margin: 20px auto 48px;
}
.auth-side h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.2; margin: 10px 0 16px; }
.auth-points { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.auth-points li::before { content: "—"; color: var(--accent); margin-right: 8px; }
.auth-points b { color: var(--ink); }

/* 表单补充 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 11.5px; color: var(--muted); }
.req { color: var(--accent); font-style: normal; font-size: 11px; }
.field select, .field input[type="date"] {
  height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px;
  font-size: 14px; background: #fbfcfd; font-family: var(--sans); color: var(--ink);
}
.field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.side-block .field { margin-bottom: 10px; }
.side-block .field-label { font-size: 12px; }

/* 统计卡 */
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-card.tone-warn { border-color: #fde68a; background: #fffdf5; }
.stat-card.tone-ok { border-color: #bbf7d0; }
.stat-card.tone-bad { border-color: #fecaca; }

/* 待办条 */
.todo {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid #fecaca; border-radius: 12px; padding: 12px 16px;
}
.todo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 状态与逾期 */
.chip-first_pass { background: #eef2ff; color: #4338ca; }
.chip-second_pass { background: #f5f3ff; color: #6d28d9; }
.chip-late { background: var(--red-soft); color: var(--red); }
.chip-late-soft { background: #fff7ed; color: #0b5c86; }
.warn-text { color: var(--red); font-weight: 600; }

/* 列表卡片链接 */
.row-link-card {
  display: flex; flex-direction: column; gap: 2px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px;
}
.row-link-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); color: inherit; }
.row-meta { font-size: 12px; color: var(--muted); }

/* 详情双栏 */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.detail-layout .detail { max-width: none; margin: 0; }
.detail-layout .review-side { position: sticky; top: 88px; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-row h1 { font-size: clamp(26px, 3vw, 34px); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); flex-shrink: 0; }
.kv b { font-weight: 500; text-align: right; }

/* 邀请码 */
.invite-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.invite-form .field { min-width: 130px; margin: 0; }
.invite-form .field-grow { flex: 1; min-width: 180px; }
.code-lg { font-family: var(--mono); font-size: 13.5px; background: #f2f4f7; padding: 3px 8px; border-radius: 6px; }
.tabs-sub { margin-top: 18px; }

@media (max-width: 1100px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 28px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-layout .review-side { position: static; }
}
@media (max-width: 680px) {
  .field-row { grid-template-columns: 1fr; }
  .stat-grid-3 { grid-template-columns: 1fr; }
  .nav-user-text { display: none; }
  .auth-side { display: none; }
}

/* ================= 投稿附件 ================= */
.file-zone { margin: 18px 0 8px; }
.file-drop {
  border: 1.5px dashed var(--line-strong); border-radius: 14px; background: #fbfcfd;
  padding: 26px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.file-drop:hover, .file-drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.file-drop-icon { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.file-drop-title { font-size: 14px; color: var(--ink-2); }
.file-drop-title .link { text-decoration: underline; }

.file-card {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.file-card-static { margin: 24px 0 0; }
.file-badge {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; background: #f1f5f9;
  color: #334155; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  display: grid; place-items: center;
}
.file-meta { flex: 1; min-width: 0; }
.file-name {
  font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-preview { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.file-preview summary {
  cursor: pointer; padding: 10px 14px; font-size: 12.5px; color: var(--muted); user-select: none;
}
.file-preview pre {
  margin: 0; padding: 4px 16px 16px; max-height: 420px; overflow: auto;
  font-family: var(--serif); font-size: 14.5px; line-height: 1.85; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word; background: none;
}
.editor-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0 0;
  font-size: 12px; color: var(--muted);
}
.editor-divider::before, .editor-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ================= 学院标识 ================= */
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 36px; width: auto; display: block; }
.auth-logo { width: 100%; max-width: 320px; height: auto; margin: 0 0 20px; }
.footer-logo { height: 22px; width: auto; opacity: .85; }
@media (max-width: 680px) {
  .brand-logo { height: 30px; }
}

/* ================= 账号设置 ================= */
.profile-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px; align-items: start;
}
.profile-grid .panel { padding: 24px; }
@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; }
}

/* ================= 编辑稿上传 ================= */
.file-drop-sm { padding: 12px 14px; margin: 8px 0 10px; font-size: 13px; border-radius: 10px; }
.url-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 6px 0 0; }
.chip-已排版 { background: var(--green-soft); color: var(--green); }

/* ================= 成员管理 / 通知 ================= */
.chip-stage { background: #eef2ff; color: #4338ca; }
.search select, .filter-bar select {
  height: 36px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 8px;
  font-size: 13px; background: #fff; color: var(--ink); font-family: var(--sans);
}
.inline-form-rows { display: flex; gap: 8px; align-items: center; }
.inline-form-rows select {
  flex: 1; height: 36px; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 0 8px; background: #fff; font-size: 13px; color: var(--ink);
}
.temp-pass {
  font-family: var(--mono); font-size: 30px; letter-spacing: .16em; font-weight: 700;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: 16px 12px; border-radius: 12px; margin: 18px 0; user-select: all;
}
.code-block {
  background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 14px 16px;
  font-family: var(--mono); font-size: 12px; line-height: 1.7; overflow-x: auto;
  white-space: pre; margin: 10px 0;
}
.mono-sm { font-family: var(--mono); font-size: 11.5px; word-break: break-all; font-weight: 400; }

/* ================= 公告栏 ================= */
.notice-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 12px 16px; margin: 0 0 8px;
}
.notice-pill {
  font-size: 13.5px; padding: 4px 12px; border-radius: 999px;
  background: #f2f4f7; color: var(--ink-2); max-width: 320px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-pill:hover { background: var(--accent-soft); color: var(--accent-dark); }
.notice-pill.is-pinned { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

.notice-list { display: flex; flex-direction: column; gap: 18px; }
.notice-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px;
}
.notice-head h2 {
  font-size: 21px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.notice-meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  color: var(--muted); font-size: 12.5px; margin-top: 8px;
}
.notice-body { margin-top: 18px; font-size: 15.5px; }
.notice-body p { margin: 0 0 .9em; }
.notice-body ul { margin: 0 0 .9em; }
.notice-form { display: flex; flex-direction: column; gap: 16px; }
.notice-form textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.8; resize: vertical;
  background: #fcfbfd; color: var(--ink);
}
.notice-form textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }

/* 登录页：单栏居中（生产模式，只留表单） */
.auth-wrap-single {
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
  margin-top: 8vh;
}
.auth-wrap-single .auth-card { width: 100%; }

/* 登录页标题区 */
.auth-brand {
  font-family: var(--serif); font-size: 25px; line-height: 1.35;
  margin: 4px 0 6px; letter-spacing: .01em;
}
.auth-sub { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.auth-note {
  color: var(--muted); font-size: 11.5px; text-align: center;
  margin: 16px 0 0; padding-top: 12px; border-top: 1px dashed var(--line);
}
