/* ============================================================
   薯道南 · 设计系统
   视觉基调参考 ResearchGate：清爽白底、单一青绿主色、密集信息卡
   ============================================================ */

:root {
  --teal-700: #007d78;
  --teal-600: #00a19a;
  --teal-500: #12b3ab;
  --teal-100: #d5f0ee;
  --teal-50: #eef9f8;
  --ink: #14232b;
  --ink-2: #3c4d57;
  --muted: #687b85;
  --faint: #92a2ab;
  --bg: #f3f6f6;
  --card: #ffffff;
  --line: #e5ebeb;
  --line-2: #d6e0e0;
  --amber: #b57c0c;
  --amber-bg: #fdf6e6;
  --danger: #b83b30;
  --danger-bg: #fdeeec;
  --violet: #6d5bd0;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 14px;
  --shadow-s: 0 1px 2px rgba(16, 39, 45, .05);
  --shadow: 0 2px 10px rgba(16, 39, 45, .06);
  --shadow-l: 0 18px 48px rgba(16, 39, 45, .16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --topbar-h: 62px;
}

* { box-sizing: border-box; }
/* 组件里大量用 display:grid/flex，需保证 hidden 属性优先级最高 */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
::selection { background: var(--teal-100); }
:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: #fff; padding: 8px 14px; border-radius: var(--radius-s); box-shadow: var(--shadow);
}
.skip-link:focus { left: 8px; }

/* ---------------------------- 顶栏 ---------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1240px; margin: 0 auto; height: 100%;
  padding: 0 20px; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 125, 120, .28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 19px; font-weight: 700; letter-spacing: .06em; color: var(--ink);
}
.brand-sub {
  font-size: 9px; letter-spacing: .22em; color: var(--faint); text-transform: uppercase;
  font-weight: 600; margin-top: 1px;
}

.search-box {
  flex: 1; max-width: 460px; position: relative; display: flex; align-items: center;
  background: #f1f5f5; border: 1px solid transparent; border-radius: 999px;
  height: 38px; padding: 0 8px 0 14px; transition: .16s ease;
}
.search-box:focus-within { background: #fff; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(0, 161, 154, .1); }
.search-box svg { flex-shrink: 0; color: var(--faint); }
.search-box input {
  flex: 1; border: 0; background: none; outline: none; padding: 0 8px; font-size: 13.5px; min-width: 0;
}
.search-box input::placeholder { color: var(--faint); }
.search-kbd {
  font-size: 11px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 1px 5px; background: #fff; line-height: 1.4; margin-right: 4px;
}

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); position: relative; transition: .14s;
}
.icon-btn:hover { background: #f1f5f5; color: var(--teal-700); }
.badge-dot {
  position: absolute; top: 7px; right: 7px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #e5533d; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px;
  display: grid; place-items: center; border: 2px solid #fff; line-height: 1;
}
.avatar-btn { margin-left: 4px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0; user-select: none;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2);
}
.avatar-lg { width: 76px; height: 76px; font-size: 26px; border-width: 3px; }
.avatar-xl { width: 96px; height: 96px; font-size: 30px; border-width: 4px; }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }

.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 232px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
  padding: 6px; z-index: 80; animation: pop .14s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: var(--radius-s); font-size: 13.5px; color: var(--ink-2);
}
.dropdown-item:hover { background: #f4f7f7; color: var(--ink); }
.dropdown-item.is-danger { color: var(--danger); }
.dropdown-sep { height: 1px; background: var(--line); margin: 4px 8px; }

/* ---------------------------- 布局 ---------------------------- */

.shell {
  max-width: 1240px; margin: 0 auto; padding: 22px 20px 72px;
  display: grid; grid-template-columns: 236px minmax(0, 1fr) 304px; gap: 20px;
  align-items: start;
}
.shell--wide { grid-template-columns: 236px minmax(0, 1fr); }
.shell--full { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sticky { position: sticky; top: calc(var(--topbar-h) + 18px); }

/* 侧栏限高 + 独立滚动：内容比视口高时仍可上下查看 */
.col.sticky {
  max-height: calc(100vh - var(--topbar-h) - 36px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 161, 154, .28) transparent;
  padding-right: 5px;
  margin-right: -5px;      /* 抵掉 padding，保持栅格宽度不变 */
  padding-bottom: 2px;
}
.col.sticky > * { flex-shrink: 0; }
.col.sticky::-webkit-scrollbar { width: 6px; }
.col.sticky::-webkit-scrollbar-track { background: transparent; }
.col.sticky::-webkit-scrollbar-thumb {
  background: rgba(0, 161, 154, .22); border-radius: 999px;
}
.col.sticky:hover::-webkit-scrollbar-thumb { background: rgba(0, 161, 154, .45); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.card-pad { padding: 18px 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.card-title { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-link { font-size: 12.5px; color: var(--teal-700); font-weight: 500; }
.card-link:hover { text-decoration: underline; }

.section-title {
  display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; margin-bottom: 12px;
}
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.tiny { font-size: 12px; }
.small { font-size: 12.8px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hide { display: none !important; }

/* ---------------------------- 按钮 / 表单 ---------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid transparent; transition: .15s; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--teal-600); color: #fff; }
.btn-primary:hover { background: var(--teal-700); }
.btn-primary:disabled { background: #b9d8d6; cursor: not-allowed; }
.btn-outline { border-color: var(--teal-600); color: var(--teal-700); background: #fff; }
.btn-outline:hover { background: var(--teal-50); }
.btn-ghost { color: var(--ink-2); background: #fff; border-color: var(--line-2); }
.btn-ghost:hover { background: #f4f7f7; }
.btn-soft { background: var(--teal-50); color: var(--teal-700); }
.btn-soft:hover { background: var(--teal-100); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: #fbdcd8; }
.btn-sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn.is-following { background: #fff; color: var(--muted); border-color: var(--line-2); }
.btn.is-following:hover { color: var(--danger); border-color: #f0c4bf; background: var(--danger-bg); }
.btn-icon-only { width: 34px; padding: 0; }

.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: #fff; padding: 9px 12px; font-size: 13.5px; outline: none; transition: .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(0, 161, 154, .1); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.7; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field-hint { font-size: 11.5px; color: var(--faint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.checkline input { accent-color: var(--teal-600); width: 15px; height: 15px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px;
  background: #f2f6f6; border-radius: 999px; font-size: 12px; color: var(--ink-2);
  white-space: nowrap; border: 1px solid transparent;
}
.chip:hover { background: var(--teal-50); color: var(--teal-700); }
.chip--teal { background: var(--teal-50); color: var(--teal-700); }
.chip--amber { background: var(--amber-bg); color: var(--amber); }
.chip--outline { background: #fff; border-color: var(--line-2); }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { color: var(--teal-700); font-size: 12.5px; }
.tag::before { content: '#'; opacity: .7; margin-right: 1px; }
.tag:hover { text-decoration: underline; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
}
.pill-question { background: #f2eefc; color: var(--violet); }
.pill-publication { background: var(--teal-50); color: var(--teal-700); }
.pill-project { background: #eef4fd; color: #2f6bbd; }
.pill-update { background: #f4f6f7; color: var(--muted); }
.pill-oa { background: #eaf7ee; color: #1f7a44; }
.pill-hot { background: var(--amber-bg); color: var(--amber); }

/* ---------------------------- 左栏 ---------------------------- */

.rail-nav { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.rail-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-s);
  font-size: 13.5px; color: var(--ink-2); font-weight: 500; transition: .13s; position: relative;
}
.rail-item:hover { background: #f3f7f7; color: var(--ink); }
.rail-item.is-active { background: var(--teal-50); color: var(--teal-700); font-weight: 650; }
.rail-item svg { color: var(--faint); flex-shrink: 0; }
.rail-item.is-active svg { color: var(--teal-600); }
.rail-count { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 500; }

.profile-mini { overflow: hidden; }
.profile-mini-cover {
  height: 56px;
  background:
    radial-gradient(120px 60px at 18% 0%, rgba(255, 255, 255, .35), transparent 70%),
    linear-gradient(120deg, #00857f, #12b3ab 60%, #57cfc5);
}
.profile-mini-body { padding: 0 16px 16px; margin-top: -24px; }
.profile-mini-name { font-size: 15px; font-weight: 650; margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.profile-mini-sub { font-size: 11.8px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.mini-stat { text-align: center; }
.mini-stat b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.mini-stat span { font-size: 11px; color: var(--faint); }

.rail-foot { padding: 4px 14px 8px; font-size: 11.5px; color: var(--faint); line-height: 1.9; }
.rail-foot a:hover { color: var(--teal-700); }

/* ---------------------------- 动态 ---------------------------- */

.tabs {
  display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line);
  padding: 0 8px; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 13px 14px 12px; font-size: 13.5px; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: .14s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--teal-700); border-bottom-color: var(--teal-600); font-weight: 650; }

.composer { padding: 16px 18px; display: flex; gap: 12px; border-bottom: 1px solid var(--line); }
.composer-main { flex: 1; min-width: 0; }
.composer-input {
  width: 100%; border: 1px solid var(--line); background: #f7fafa; border-radius: var(--radius);
  padding: 11px 14px; font-size: 13.5px; color: var(--ink); resize: none; outline: none;
  min-height: 44px; line-height: 1.6; transition: .15s;
}
.composer-input::placeholder { color: var(--faint); }
.composer-input:focus { background: #fff; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(0, 161, 154, .08); }
.composer-tools { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: 999px; font-size: 12.5px; color: var(--muted); font-weight: 500;
}
.tool-btn:hover { background: #f2f6f6; color: var(--teal-700); }
.composer-expand { display: none; }
.composer.is-expanded .composer-expand { display: block; }

.post { padding: 17px 20px; border-bottom: 1px solid var(--line); position: relative; }
.post:last-child { border-bottom: 0; }
.post:hover { background: #fcfefe; }
.post-head { display: flex; align-items: flex-start; gap: 10px; }
.post-who { min-width: 0; flex: 1; }
.post-name { font-size: 13.5px; font-weight: 650; display: flex; align-items: center; gap: 5px; }
.post-name:hover { color: var(--teal-700); }
.post-meta { font-size: 11.8px; color: var(--faint); display: flex; align-items: center; gap: 6px; margin-top: 1px; flex-wrap: nowrap; overflow: hidden; }
.post-affil { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.post-body { margin: 10px 0 0; font-size: 13.8px; line-height: 1.78; color: #263740; white-space: pre-wrap; word-break: break-word; }
.post-title { font-size: 16px; font-weight: 650; margin: 10px 0 4px; line-height: 1.5; }
.post-title:hover { color: var(--teal-700); }
.post-typerow { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

.refcard {
  display: flex; gap: 12px; padding: 12px 14px; margin-top: 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--teal-600);
  border-radius: var(--radius-s); background: #fafcfc; transition: .15s;
}
.refcard:hover { background: var(--teal-50); border-color: var(--teal-100); }
.refcard-thumb {
  width: 42px; height: 54px; border-radius: 3px; flex-shrink: 0;
  background: linear-gradient(160deg, #eaf6f5, #d3ece9); display: grid; place-items: center;
  color: var(--teal-700);
}
.refcard-title { font-size: 13px; font-weight: 600; line-height: 1.5; }
.refcard-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.post-actions {
  display: flex; align-items: center; gap: 2px; margin-top: 12px; margin-left: -8px;
}
.act {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px;
  border-radius: 999px; font-size: 12.3px; color: var(--muted); font-weight: 500; transition: .13s;
}
.act:hover { background: #f1f5f5; color: var(--ink); }
.act.is-on { color: var(--teal-700); }
.act.is-on svg { fill: rgba(0, 161, 154, .14); }
.act.is-saved { color: var(--amber); }
.act.is-saved svg { fill: rgba(181, 124, 12, .14); }
.act-more { margin-left: auto; }

.comments { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 12px; }
.comment { display: flex; gap: 9px; }
.comment-body { background: #f5f8f8; border-radius: 2px 10px 10px 10px; padding: 8px 12px; font-size: 12.8px; line-height: 1.65; }
.comment-name { font-weight: 650; font-size: 12.5px; }
.comment-name:hover { color: var(--teal-700); }
.comment-form { display: flex; gap: 9px; align-items: flex-start; }
.comment-form .input { border-radius: 999px; height: 34px; padding: 0 14px; font-size: 12.8px; }

/* ---------------------------- 右栏 ---------------------------- */

.rail-list { display: flex; flex-direction: column; }
.rail-person { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.rail-person:hover { background: #f8fbfb; }
.rail-person-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.rail-person-sub { font-size: 11.3px; color: var(--faint); line-height: 1.4; margin-top: 1px; }
.rail-person .btn { margin-left: auto; flex-shrink: 0; }
.trend-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; font-size: 13px; }
.trend-item:hover { background: #f8fbfb; }
.trend-count { font-size: 11.5px; color: var(--faint); }

.pick-item { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pick-item:last-child { border-bottom: 0; }
.pick-title { font-size: 12.8px; font-weight: 600; line-height: 1.5; }
.pick-meta { font-size: 11.3px; color: var(--faint); margin-top: 3px; }

/* 本周热门文献（PubMed） */
.paper-item { display: block; transition: .14s; }
.paper-item:hover { background: #f8fdfd; }
.paper-why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.why-chip {
  display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px;
  border-radius: 4px; background: #f2f6f6; color: var(--muted); font-size: 10.5px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.why-match { background: var(--teal-50); color: var(--teal-700); font-weight: 600; }
.foryou-badge {
  display: inline-flex; align-items: center; height: 17px; padding: 0 7px; border-radius: 999px;
  background: var(--teal-100); color: var(--teal-700); font-size: 10.5px; font-weight: 650;
}
.trend-foryou {
  display: inline-block; font-style: normal; margin-left: 4px; padding: 0 4px; border-radius: 3px;
  background: var(--teal-50); color: var(--teal-700); font-size: 10px; font-weight: 650;
}
.card-foot { padding: 9px 16px 12px; border-top: 1px dashed var(--line); line-height: 1.6; }

/* ---------------------------- 问答 ---------------------------- */

.q-item { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.q-item:hover { background: #fcfefe; }
.q-stats { width: 58px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.q-stat { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 5px 0; line-height: 1.2; }
.q-stat b { display: block; font-size: 13.5px; }
.q-stat span { font-size: 10.5px; color: var(--faint); }
.q-stat.is-answered { border-color: #bfe3cd; background: #f0f9f3; color: #1f7a44; }
.q-title { font-size: 15px; font-weight: 650; line-height: 1.5; }
.q-title:hover { color: var(--teal-700); }
.q-excerpt { font-size: 12.8px; color: var(--muted); margin-top: 5px; }
.q-foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; flex-wrap: wrap; }

.q-detail-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.q-detail-title { font-size: 22px; font-weight: 650; line-height: 1.45; letter-spacing: -.015em; }
.q-detail-body { font-size: 14px; line-height: 1.85; color: #2b3c45; white-space: pre-wrap; margin-top: 12px; }

.answer { display: flex; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.vote-col { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 38px; flex-shrink: 0; }
.vote-btn { width: 34px; height: 30px; border-radius: var(--radius-s); display: grid; place-items: center; color: var(--faint); border: 1px solid var(--line); }
.vote-btn:hover { color: var(--teal-700); border-color: var(--teal-100); background: var(--teal-50); }
.vote-btn.is-on { color: var(--teal-700); background: var(--teal-50); border-color: var(--teal-100); }
.vote-count { font-size: 12.5px; font-weight: 650; }
.answer-main { flex: 1; min-width: 0; }
.answer-body { font-size: 13.8px; line-height: 1.85; white-space: pre-wrap; color: #263740; }
.answer-accepted { border: 1px solid #cbe7d6; background: #f7fcf9; }
.accepted-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #1f7a44; margin-bottom: 8px; }

/* ---------------------------- 成果 ---------------------------- */

.pub-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pub-toolbar .input { max-width: 260px; height: 34px; }
.pub-toolbar .select { width: auto; height: 34px; padding: 0 30px 0 12px; }

.pub-row { display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pub-row:hover { background: #fcfefe; }
.pub-cite {
  width: 64px; flex-shrink: 0; text-align: center; border-right: 1px solid var(--line);
  padding-right: 12px; align-self: flex-start;
}
.pub-cite b { display: block; font-size: 19px; font-weight: 650; color: var(--ink); line-height: 1.2; }
.pub-cite span { font-size: 10.5px; color: var(--faint); letter-spacing: .02em; }
.pub-cite + .pub-main { min-width: 0; flex: 1; }
.pub-title { font-size: 14.8px; font-weight: 650; line-height: 1.55; }
.pub-title:hover { color: var(--teal-700); }
.pub-authors { font-size: 12.3px; color: var(--muted); margin-top: 5px; }
.pub-authors b { color: var(--ink-2); font-weight: 600; }
.pub-meta { font-size: 12px; color: var(--faint); margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pub-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.pub-detail-title { font-size: 24px; line-height: 1.45; letter-spacing: -.02em; }
.pub-abstract { font-size: 14px; line-height: 1.9; color: #2b3c45; white-space: pre-wrap; }
.pub-side-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.pub-side-stat:last-child { border-bottom: 0; }
.pub-side-stat b { font-size: 15px; }

/* ---------------------------- 个人主页 ---------------------------- */

.profile-hero { position: relative; overflow: hidden; }
.profile-cover {
  height: 132px;
  background:
    radial-gradient(600px 200px at 12% -20%, rgba(255, 255, 255, .28), transparent 60%),
    radial-gradient(400px 180px at 88% 0%, rgba(0, 60, 58, .22), transparent 70%),
    linear-gradient(118deg, #00615d 0%, #00948d 45%, #35c1b6 100%);
  position: relative;
}
.profile-cover::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 16px 16px; opacity: .5; mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.profile-hero-body { padding: 0 26px 22px; position: relative; z-index: 1; }
.profile-avatar-wrap { margin-top: -48px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.profile-identity { display: flex; align-items: flex-start; gap: 16px; }
.profile-id { padding-top: 54px; }
.profile-avatar-wrap > .row { padding-top: 56px; }
.profile-name { font-size: 25px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.profile-title { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.profile-inst { font-size: 12.8px; color: var(--muted); margin-top: 1px; }
.profile-bio { font-size: 13.5px; line-height: 1.8; color: #2b3c45; margin-top: 14px; max-width: 720px; }
.profile-stats { display: flex; gap: 26px; margin-top: 18px; flex-wrap: wrap; }
.pstat b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; display: block; line-height: 1.2; }
.pstat span { font-size: 11.5px; color: var(--faint); }
.pstat--score b { color: var(--teal-700); }

.detail-list { display: grid; grid-template-columns: 94px 1fr; gap: 9px 12px; font-size: 13px; }
.detail-list dt { color: var(--faint); }
.detail-list dd { margin: 0; color: var(--ink-2); }

.verified { color: var(--teal-600); display: inline-flex; }
.mini-pub { padding: 13px 18px; border-bottom: 1px solid var(--line); }
.mini-pub:last-child { border-bottom: 0; }
.mini-pub-title { font-size: 13px; font-weight: 600; line-height: 1.55; }
.mini-pub-meta { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

/* ---------------------------- 项目 / 职位 ---------------------------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: .16s; }
.project-card:hover { border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-1px); }
.project-card h3 { font-size: 15px; line-height: 1.5; }
.project-card p { font-size: 12.8px; color: var(--muted); line-height: 1.7; }
.project-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 26px; height: 26px; font-size: 10px; margin-left: -7px; border-width: 2px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.job-row { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.job-logo {
  width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(140deg, #eef7f6, #dcefec);
  display: grid; place-items: center; color: var(--teal-700); flex-shrink: 0;
}
.job-title { font-size: 14.5px; font-weight: 650; }
.job-org { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--faint); margin-top: 7px; }
.job-salary { color: #b45309; font-weight: 600; }

/* ---------------------------- 消息 ---------------------------- */

.msg-layout { display: grid; grid-template-columns: 296px minmax(0, 1fr); min-height: 560px; height: calc(100vh - 168px); overflow: hidden; }
.msg-list { border-right: 1px solid var(--line); overflow-y: auto; }
.msg-list-head { padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 14px; position: sticky; top: 0; background: #fff; z-index: 2; }
.thread-item { display: flex; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f2f6f6; }
.thread-item:hover { background: #f8fbfb; }
.thread-item.is-active { background: var(--teal-50); }
.thread-main { min-width: 0; flex: 1; }
.thread-name { font-size: 13px; font-weight: 650; display: flex; justify-content: space-between; gap: 8px; }
.thread-preview { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-time { font-size: 10.5px; color: var(--faint); font-weight: 400; white-space: nowrap; }
.thread-tag { font-size: 10px; color: var(--muted); background: #eef3f3; border-radius: 999px; padding: 1px 6px; font-weight: 500; white-space: nowrap; margin-left: 6px; }
.unread-pill { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-600); margin-top: 6px; }

.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #fbfdfd; }
.bubble-row { display: flex; gap: 9px; max-width: 78%; }
.bubble-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble {
  padding: 9px 13px; border-radius: 4px 12px 12px 12px; background: #fff; border: 1px solid var(--line);
  font-size: 13.3px; line-height: 1.7; white-space: pre-wrap; word-break: break-word;
}
.mine .bubble { background: var(--teal-600); color: #fff; border-color: var(--teal-600); border-radius: 12px 4px 12px 12px; }
.bubble-time { font-size: 10.5px; color: var(--faint); align-self: flex-end; margin-bottom: 2px; white-space: nowrap; }
.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.chat-input .input { border-radius: 999px; }
.chat-limit { display: flex; align-items: center; gap: 7px; padding: 8px 18px; font-size: 12px; color: var(--muted); background: #f7fafb; border-bottom: 1px solid var(--line); }
.chat-limit svg { color: var(--amber); flex-shrink: 0; }
.chat-input .input:disabled { background: #f3f6f6; color: var(--faint); cursor: not-allowed; }
.chat-input .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------------------- 通知 ---------------------------- */

.ntf { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.ntf:hover { background: #fcfefe; }
.ntf.is-unread { background: #f7fcfc; }
.ntf-icon {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--teal-50); color: var(--teal-700);
}
.ntf-text { font-size: 13.2px; line-height: 1.6; }
.ntf-time { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.ntf-unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-600); margin-left: auto; margin-top: 8px; flex-shrink: 0; }

/* ---------------------------- 选题工作台 ---------------------------- */

.studio-hero {
  padding: 26px 26px 22px; border-radius: var(--radius-l); position: relative; overflow: hidden;
  background:
    radial-gradient(500px 220px at 88% -30%, rgba(255, 255, 255, .3), transparent 65%),
    linear-gradient(120deg, #00544f, #00857f 55%, #1fae9f);
  color: #fff;
}
.studio-hero::after {
  content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 26px solid rgba(255, 255, 255, .07);
}
.studio-hero h1 { font-size: 23px; letter-spacing: -.01em; position: relative; }
.studio-hero p { font-size: 13px; color: rgba(255, 255, 255, .82); margin-top: 8px; max-width: 620px; line-height: 1.8; position: relative; }
.studio-hero .chip { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .2); }
.studio-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 18px; align-items: start; }
.studio-form .card-pad { padding: 18px; }
.studio-step { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 4px; }

.pico-grid { display: grid; grid-template-columns: 44px 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.pico-key {
  background: #f4f9f8; display: grid; place-items: center; font-weight: 700; color: var(--teal-700);
  font-size: 14px; padding: 10px 0;
}
.pico-val { background: #fff; padding: 9px 13px; font-size: 13px; line-height: 1.65; }

.finer-row { display: grid; grid-template-columns: 76px 1fr 38px; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.finer-bar { height: 6px; background: #eef2f2; border-radius: 999px; overflow: hidden; }
.finer-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-500), var(--teal-700)); }
.finer-score { text-align: right; font-weight: 650; color: var(--teal-700); }

.result-block { border-top: 1px solid var(--line); padding: 16px 18px; }
.result-block:first-child { border-top: 0; }
.result-label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.big-number { font-size: 34px; font-weight: 700; letter-spacing: -.03em; color: var(--teal-700); line-height: 1.1; }
.big-number small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.formula {
  font-family: var(--mono); font-size: 11.8px; background: #f6f9f9; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 10px 12px; color: var(--ink-2); overflow-x: auto; line-height: 1.7;
}
.risk-item { display: flex; gap: 9px; font-size: 13px; line-height: 1.7; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.risk-item:last-child { border-bottom: 0; }
.risk-item svg { flex-shrink: 0; margin-top: 4px; color: var(--amber); }

/* ---------------------------- 管理后台 ---------------------------- */

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-stat { padding: 16px 18px; }
.admin-stat b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.admin-stat span { font-size: 12px; color: var(--faint); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fafcfc;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfefe; }

/* ---------------------------- 认证页 ---------------------------- */

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.auth-side {
  padding: 56px 56px 40px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 20% 0%, rgba(255, 255, 255, .16), transparent 60%),
    radial-gradient(500px 400px at 90% 100%, rgba(0, 40, 38, .35), transparent 65%),
    linear-gradient(140deg, #004b47, #00857f 55%, #17a89e);
  display: flex; flex-direction: column;
}
.auth-side::after {
  content: ''; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent);
}
.auth-side > * { position: relative; }
.auth-quote { font-family: "Songti SC", "Noto Serif SC", serif; font-size: 27px; line-height: 1.75; margin-top: auto; letter-spacing: .01em; }
.auth-points { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; font-size: 13px; color: rgba(255, 255, 255, .84); }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.7; }
.auth-points svg { flex-shrink: 0; margin-top: 4px; color: rgba(255, 255, 255, .7); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 384px; }
.auth-card h1 { font-size: 24px; letter-spacing: -.02em; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.auth-tabs { display: flex; gap: 18px; margin: 24px 0 20px; border-bottom: 1px solid var(--line); }
.auth-tab { padding-bottom: 10px; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.auth-tab.is-active { color: var(--teal-700); border-bottom-color: var(--teal-600); font-weight: 650; }
.demo-box { background: #f7fafa; border: 1px dashed var(--line-2); border-radius: var(--radius-s); padding: 12px 14px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.demo-box b { color: var(--ink-2); }
.demo-box button { color: var(--teal-700); font-weight: 600; font-size: 12px; }
.demo-box button:hover { text-decoration: underline; }

/* ---------------------------- 模态 / 提示 ---------------------------- */

.modal-mask {
  position: fixed; inset: 0; background: rgba(12, 28, 32, .45); z-index: 200;
  display: grid; place-items: center; padding: 20px; animation: fade .16s ease;
  backdrop-filter: blur(2px);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 520px; background: #fff; border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); max-height: 88vh; display: flex; flex-direction: column;
  animation: rise .2s cubic-bezier(.2, .8, .3, 1);
}
.modal--wide { max-width: 680px; }
@keyframes rise { from { transform: translateY(12px) scale(.99); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }

.toast-root { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #16323a; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 13px;
  box-shadow: var(--shadow-l); animation: toastIn .2s ease; display: flex; align-items: center; gap: 8px;
}
.toast.is-error { background: #8f2f26; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-icon { width: 50px; height: 50px; border-radius: 50%; background: #f2f6f6; display: grid; place-items: center; margin: 0 auto 14px; color: var(--faint); }
.empty h3 { font-size: 14.5px; color: var(--ink-2); margin-bottom: 5px; }
.empty p { font-size: 12.8px; line-height: 1.7; }

.skel { background: linear-gradient(90deg, #eef2f2 25%, #f7fafa 37%, #eef2f2 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.boot {
  position: fixed; inset: 0; background: var(--bg); z-index: 500; display: grid; place-content: center;
  justify-items: center; gap: 14px; color: var(--muted); font-size: 13px; transition: opacity .25s;
}
.boot-mark {
  width: 44px; height: 44px; border-radius: 13px;
  background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .7; } }
.boot.is-done { opacity: 0; pointer-events: none; }

/* ---------------------------- 移动端导航 ---------------------------- */

/* ---------------------------- 视频 ---------------------------- */

.pill-video { background: #eaf3fd; color: #1f5fa8; }

/* 封面块：列表与网格共用 */
.vposter {
  position: relative; display: block; aspect-ratio: 16 / 9; margin: 12px 0 6px;
  border-radius: var(--radius); overflow: hidden; background: #0e1c22;
}
.vposter img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vposter:hover img { transform: scale(1.02); }
.vposter-empty {
  width: 100%; height: 100%; display: grid; place-items: center; color: #4b6470;
  background: repeating-linear-gradient(135deg, #12232a 0 12px, #0e1c22 12px 24px);
}
.vplay {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .93); color: #0b3f4a; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .26); transition: .16s ease;
}
.vposter:hover .vplay { transform: scale(1.08); background: #fff; }
.vdur {
  position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 4px;
  background: rgba(6, 16, 20, .74); color: #fff; font-size: 11.5px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.vzone {
  position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(6, 16, 20, .58); color: #eaf6f5; font-size: 11px; font-weight: 600;
  backdrop-filter: blur(3px);
}
.vdemo {
  position: absolute; right: 8px; top: 8px; padding: 1px 7px; border-radius: 4px;
  background: rgba(181, 124, 12, .92); color: #fff; font-size: 11px; font-weight: 600;
}

/* 详情播放器 */
.vstage { margin: 10px 0 4px; border-radius: var(--radius); overflow: hidden; background: #06131a; }
.vplayer { display: block; width: 100%; aspect-ratio: 16 / 9; background: #06131a; }
.vposter--detail { margin: 10px 0 4px; }
.vnofile {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: #dbeae9;
  background: linear-gradient(180deg, transparent, rgba(4, 12, 16, .88));
}
.vmeta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 4px 0 10px; font-size: 12px; color: var(--muted);
}
.vmeta > span { display: inline-flex; align-items: center; gap: 4px; }

/* 视频频道 */
.vhead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; padding: 20px 20px 14px;
}
.vhead-title { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.vhead-sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.vzone-bar {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 16px;
  border-bottom: 1px solid var(--line);
}
.vzone-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: #fff;
  font-size: 12.5px; color: var(--ink-2); transition: .14s;
}
.vzone-tab span { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.vzone-tab:hover { border-color: var(--teal-600); color: var(--teal-700); }
.vzone-tab.is-active { background: var(--teal-700); border-color: var(--teal-700); color: #fff; font-weight: 600; }
.vzone-tab.is-active span { color: rgba(255, 255, 255, .72); }

.vgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(204px, 1fr));
  gap: 20px 16px; padding: 18px 20px 22px;
}
.vcard { min-width: 0; }
.vcard .vposter { margin: 0; }
.vcard .vplay { width: 38px; height: 38px; }
.vcard .vplay svg { width: 15px; height: 15px; }
.vcard-title {
  display: block; margin-top: 8px; font-size: 13.5px; font-weight: 650;
  line-height: 1.45; color: var(--ink);
}
.vcard-title:hover { color: var(--teal-700); }
.vcard-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  margin-top: 4px; font-size: 11.5px; color: var(--faint);
}
.vcard-up { display: inline-flex; align-items: center; gap: 3px; }
.vcard-up:hover { color: var(--teal-700); }
.vcard-dot { opacity: .5; }
.vcard-zone { color: var(--teal-700); }

/* 投稿器（两栏） */
.modal--xl { max-width: 940px; }
.modal--xl .modal-body { padding: 16px 18px; }
.vcomposer { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 20px; }
.vcomposer-main { min-width: 0; }
.vk-drop {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: #fafcfc;
  padding: 18px; cursor: pointer; transition: .16s;
}
.vk-drop:hover, .vk-drop:focus-visible { border-color: var(--teal-600); background: var(--teal-50); }
.vk-drop.is-drag { border-color: var(--teal-600); background: var(--teal-50); box-shadow: inset 0 0 0 2px rgba(0, 161, 154, .18); }
.vk-drop-inner { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 10px 0; }
.vk-drop-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--teal-700); border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.vk-drop-title { font-size: 13.5px; color: var(--ink-2); }
.vk-drop-title em { font-style: normal; color: var(--teal-700); font-weight: 650; }
.vk-drop-hint { font-size: 11.5px; color: var(--faint); }
.vk-file { display: flex; align-items: center; gap: 12px; }
.vk-file-thumb {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: #0e2a33; color: #8fdcd6;
}
.vk-file-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vk-file-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.vk-bar { height: 5px; border-radius: 999px; background: #e3ecec; overflow: hidden; margin-top: 7px; }
.vk-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-600), #4fd1c5); transition: width .2s; }
.vk-count { float: right; font-weight: 400; font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.vk-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vk-tagbox {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px;
  padding: 6px 8px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: #fff;
}
.vk-tagbox:focus-within { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(0, 161, 154, .1); }
.vk-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 4px 0 9px;
  border-radius: 999px; background: var(--teal-50); color: var(--teal-700); font-size: 12px; font-weight: 600;
}
.vk-tag button { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: var(--teal-700); opacity: .6; }
.vk-tag button:hover { background: rgba(0, 161, 154, .16); opacity: 1; }
.vk-tagbox input { flex: 1; min-width: 120px; border: 0; outline: none; background: none; font-size: 13px; padding: 3px 4px; }
.vk-seg { display: inline-flex; gap: 2px; padding: 3px; background: #f2f6f6; border-radius: var(--radius-s); }
.vk-seg button { padding: 5px 14px; border-radius: 5px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.vk-seg button.is-on { background: #fff; color: var(--teal-700); font-weight: 650; box-shadow: var(--shadow-s); }
[data-publishat] { margin-top: 8px; }

.vcomposer-side { min-width: 0; }
.vk-side-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.vk-side-title span { font-size: 11px; font-weight: 400; color: var(--faint); }
.vk-cover {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #0e1c22; border: 1px solid var(--line);
}
.vk-cover img { width: 100%; height: 100%; object-fit: cover; }
.vk-cover-empty {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 6px;
  font-size: 11.5px; color: #5d7d86;
  background: repeating-linear-gradient(135deg, #12232a 0 12px, #0e1c22 12px 24px);
}
.vk-cover-tools { display: flex; gap: 8px; margin-top: 10px; }
.vk-note { margin-top: 14px; padding: 12px; border-radius: var(--radius-s); background: #f7fafa; border: 1px solid var(--line); }
.vk-note-title { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.vk-note ul { margin: 6px 0 0; padding-left: 16px; list-style: disc; font-size: 11.5px; line-height: 1.7; color: var(--muted); }

.vk-grab {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px;
  padding: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-l);
}
.vk-grab[hidden] { display: none; }
.vk-grab-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 650; }
.vk-grab video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #06131a; }
.vk-grab input[type="range"] { width: 100%; accent-color: var(--teal-600); }
.vk-grab-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }

.mobile-nav { display: none; }

/* ---------------------------- 页脚 ---------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fbfdfd;
  padding: 22px 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.site-footer__contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 22px;
}
.site-footer__label { font-weight: 650; color: var(--ink-2); }
.site-footer__wx { color: var(--ink-2); }
.site-footer__wx b { color: var(--ink); font-weight: 650; }
.site-footer__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.site-footer__icp {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--faint); line-height: 1.6;
}
.site-footer__icp a { color: var(--faint); text-decoration: none; }
.site-footer__icp a:hover { color: var(--teal-700); }

@media (max-width: 1140px) {
  .shell { grid-template-columns: 216px minmax(0, 1fr); }
  .shell > .col--right { display: none; }
}
@media (max-width: 900px) {
  .shell, .shell--wide { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 88px; }
  .col--left { display: none; }
  .topbar-inner { padding: 0 14px; gap: 10px; }
  .brand-text { display: none; }
  .search-kbd { display: none; }
  .vcomposer { grid-template-columns: minmax(0, 1fr); }
  .vgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 12px; padding: 14px; }
  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 0; font-size: 10px; color: var(--faint); font-weight: 500; position: relative;
  }
  .mobile-nav a.is-active { color: var(--teal-700); }
  .mobile-nav a.is-active svg { stroke-width: 2.2; }
  .site-footer { padding: 18px 16px calc(20px + 88px); }
  .site-footer__contact { gap: 8px 16px; }
  .msg-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .msg-layout.has-thread .msg-list { display: none; }
  .msg-layout:not(.has-thread) .chat { display: none; }
  .chat { min-height: 62vh; }
  .studio-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .profile-cover { height: 112px; }
  .profile-hero-body { padding: 0 18px 18px; }
  .profile-name { font-size: 21px; }
  .profile-avatar-wrap { margin-top: -40px; }
  .profile-id { padding-top: 46px; }
  .profile-avatar-wrap > .row { padding-top: 8px; }
  .profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; }
}
@media (max-width: 620px) {
  .topbar-inner { padding: 0 12px; gap: 8px; }
  .topbar a.icon-btn[href="#/messages"] { display: none; }
  .topbar .icon-btn { width: 34px; height: 34px; }
  .topbar .btn-sm { height: 30px; padding: 0 11px; }
  .mobile-nav a { position: relative; }
  .nav-dot { position: absolute; top: 4px; right: 26%; width: 6px; height: 6px; border-radius: 50%; background: #e5533d; }
  .post { padding: 15px 15px; }
  .post-body.clamp-5 { white-space: normal; }
  .post-body { font-size: 13.6px; }
  .q-item { padding: 14px 15px; }
  .q-detail-head, .answer { padding-left: 16px; padding-right: 16px; }
  .q-detail-title { font-size: 19px; }
  .pub-row { padding: 15px; gap: 12px; }
  .pub-cite { width: 48px; padding-right: 8px; }
  .pub-cite b { font-size: 16px; }
  .pub-detail-title { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-stats { gap: 18px; }
  .search-box { max-width: none; }
  .brand { display: none; }
  .modal { max-height: 92vh; }
  .modal-foot [data-status] { display: none; }
  .vk-zones { grid-template-columns: 1fr; }
  .toast-root { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* 无顶栏页面（登录/注册）主容器 */
.bare-main { display: block; padding: 0; max-width: none; background: #fff; }
.is-hidden { display: none !important; }
.profile-mini--guest .profile-mini-body { margin-top: 0; padding-top: 16px; }
.profile-mini--guest .profile-mini-name { font-size: 16px; margin-top: 0; }

@media (max-width: 620px) {
  .topbar .btn-primary[data-act="open-composer"] {
    width: 34px; height: 34px; padding: 0; border-radius: 50%; gap: 0; font-size: 0;
  }
  .topbar .btn-primary[data-act="open-composer"] svg { width: 17px; height: 17px; }
}

.tool-btn { white-space: nowrap; flex-shrink: 0; }
.composer-tools { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 620px) {
  .composer { padding: 14px; gap: 10px; }
  .composer-input { min-height: 54px; font-size: 13px; }
  .composer-tools .tool-btn { height: 28px; font-size: 12px; padding: 0 8px; }
  .composer-tools .btn { height: 28px; padding: 0 12px; font-size: 12.5px; }
}

.auth-showcase { margin-top: 34px; max-width: 460px; }
.auth-snippet {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px; padding: 16px 18px; backdrop-filter: blur(6px);
}
.auth-snippet-tag { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .72); letter-spacing: .04em; }
.auth-snippet p { font-size: 14px; line-height: 1.75; margin-top: 9px; color: #fff; }
.auth-snippet-meta { font-size: 11.5px; color: rgba(255, 255, 255, .62); margin-top: 9px; }
.auth-metrics { display: flex; gap: 32px; margin-top: 22px; }
.auth-metrics b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.auth-metrics span { font-size: 11px; color: rgba(255, 255, 255, .6); }
@media (max-height: 760px) { .auth-showcase { display: none; } }

.chat-back { display: none; }
@media (max-width: 900px) { .chat-back { display: grid; } }

/* ==========================================================================
   兼容层：设计系统 v2 期间，视图层的内联样式改用语义变量名（--brand 等）。
   本版配色仍是青绿体系，这里把语义名映射回既有色板，避免内联样式失效。
   ========================================================================== */
:root {
  --brand: var(--teal-700);
  --surface-2: #f7fafa;
  --surface-3: #eef2f2;
  --warn: var(--amber);
}

/* ---------------- 审核体系（头像 / 徽标 / 横幅 / 管理后台） ---------------- */

.avatar-img {
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.mod-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: middle;
  white-space: nowrap;
}
.mod-pending { background: #fef3c7; color: #92400e; }
.mod-rejected { background: #fee2e2; color: #991b1b; }

.mod-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.7;
}
.mod-note svg { flex-shrink: 0; margin-top: 2px; }
.mod-note--pending { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.mod-note--danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.avatar-upload-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  background: #f7fafa;
  border: 1px solid #e5ebeb;
  border-radius: 12px;
}

.review-item {
  border: 1px solid #e5ebeb;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.review-item-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.review-detail {
  font-size: 13px;
  color: #3c4d57;
  padding: 10px 12px;
  background: #f7fafa;
  border-radius: 8px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.review-video {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: 240px;
  border-radius: 10px;
  background: #0f1720;
}
.review-file {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  background: #eef6f5;
  border: 1px solid #d6e9e7;
  border-radius: 10px;
  font-size: 12.5px;
}

.admin-stat { text-decoration: none; color: inherit; }
.admin-stat.stat-warn b { color: #b45309; }
.admin-stat.stat-danger b { color: #b91c1c; }
.admin-stat.stat-warn { border-color: #fde68a; }
.admin-stat.stat-danger { border-color: #fecaca; }

.tabs .pill { margin-left: 4px; }

/* ============================================================
   图文混合：发布器缩略图 / 展示网格 / 灯箱
   ============================================================ */

/* ---------- 发布器：缩略图与添加按钮 ---------- */
.composer-imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.img-thumb, .img-add {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.img-thumb { border: 1px solid var(--line); background: #eef4f3; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb.is-busy img { opacity: .45; }
.img-busy {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.img-busy::after {
  content: ""; width: 20px; height: 20px;
  border: 2px solid rgba(0, 125, 120, .25);
  border-top-color: var(--teal-600);
  border-radius: 50%;
  animation: img-spin .7s linear infinite;
}
@keyframes img-spin { to { transform: rotate(360deg); } }
.img-rm {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(20, 35, 43, .72);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.img-rm:hover { background: rgba(20, 35, 43, .92); }
.img-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px dashed #b8cdd4;
  background: transparent;
  color: #7a97a3;
  font-size: 11px;
  cursor: pointer;
}
.img-add:hover { border-color: var(--teal-600); color: var(--teal-700); background: var(--teal-50); }

/* ---------- 展示网格：单图大图 / 两列 / 三列 ---------- */
.img-grid { display: grid; gap: 8px; margin-top: 12px; width: 100%; }
.img-grid--1 { grid-template-columns: minmax(0, min(100%, 420px)); }
.img-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 540px; }
.img-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
.img-grid--sm { gap: 6px; margin-top: 8px; }
.img-grid--sm.img-grid--2, .img-grid--sm.img-grid--3 { grid-template-columns: repeat(3, 56px); max-width: none; }
.img-grid--sm.img-grid--1 { grid-template-columns: 56px; }
.img-cell {
  border: 0; padding: 0; margin: 0;
  display: block; width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eef4f3;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}
.img-grid--1 .img-cell { aspect-ratio: auto; height: auto; max-height: 460px; width: 100%; }
.img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-grid--1 .img-cell img { height: auto; max-height: 460px; object-fit: contain; }

/* ---------- 灯箱 ---------- */
.img-lightbox {
  position: relative;
  display: grid; place-items: center;
  min-height: 240px;
  background: #0e1a20;
  border-radius: var(--radius);
  overflow: hidden;
}
.img-lightbox img { max-width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.img-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.img-lb-nav:hover { background: rgba(255, 255, 255, .28); }
.img-lb-prev { left: 10px; }
.img-lb-next { right: 10px; }
.img-lb-count {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(14, 26, 32, .66);
  color: #e7f2f0;
  font-size: 11.5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 620px) {
  .img-grid--1 { grid-template-columns: minmax(0, 1fr); }
  .img-grid--1 .img-cell img { max-height: 58vw; }
  .img-grid--2 { max-width: none; }
  .img-lightbox img { max-height: 62vh; }
}
@media (prefers-reduced-motion: reduce) {
  .img-busy::after { animation: none; border-top-color: var(--teal-600); }
}
