/* ===========================================================
   山高校园墙 · 设计系统
   =========================================================== */

:root {
  --bg:          #f4f5fa;
  --surface:     #ffffff;
  --surface-2:   #fafaff;
  --line:        #e8eaf2;
  --line-soft:   #f0f1f7;

  --text:        #15171f;
  --text-2:      #565c6e;
  --text-3:      #8b91a3;

  --brand:       #5b5bd6;
  --brand-deep:  #4a4ac0;
  --brand-2:     #8b5cf6;
  --brand-soft:  #eeefff;
  --brand-line:  #dcdcff;

  --pink:        #ec4899;
  --pink-soft:   #fdeef6;
  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #ef4444;
  --red-soft:    #fdeeee;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  --sh-sm: 0 1px 2px rgba(21,23,31,.04), 0 2px 6px rgba(21,23,31,.03);
  --sh-md: 0 2px 6px rgba(21,23,31,.04), 0 10px 28px rgba(21,23,31,.06);
  --sh-lg: 0 12px 40px rgba(21,23,31,.10);

  --header-h: 64px;
  --ease: cubic-bezier(.32,.72,0,1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景微光 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 380px at 12% -6%, rgba(91,91,214,.10), transparent 62%),
    radial-gradient(620px 360px at 92% 2%, rgba(236,72,153,.07), transparent 60%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: rgba(91,91,214,.18); }

/* ---- 头像 ---- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 34%;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
  overflow: hidden;
}

.avatar-anon {
  background: linear-gradient(135deg, #a3a8bb, #7c8398);
  color: #fff;
}


.muted { color: var(--text-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ===========================================================
   顶栏
   =========================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(232,234,242,.9);
}

.topbar-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 17px;
  letter-spacing: -.01em;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--brand), var(--brand-2));
  color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(91,91,214,.32);
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  padding-left: 9px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  letter-spacing: .02em;
}

.topsearch {
  flex: 1;
  max-width: 340px;
  position: relative;
  margin-left: 8px;
}

.topsearch input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 1px solid transparent;
  background: #f2f3f9;
  border-radius: var(--r-full);
  color: var(--text);
  outline: none;
  transition: background .18s, border-color .18s, box-shadow .18s;
}

.topsearch input::placeholder { color: var(--text-3); }

.topsearch input:focus {
  background: #fff;
  border-color: var(--brand-line);
  box-shadow: 0 0 0 4px rgba(91,91,214,.09);
}

.topsearch .ico {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  display: flex;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s, color .16s;
}

.icon-btn:hover { background: #f2f3f9; color: var(--text); }

.icon-btn .dot {
  position: absolute;
  top: 7px; right: 8px;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: var(--r-full);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: content-box;
}

/* 用户下拉 */
.user-menu { position: relative; }

.user-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px 3px 3px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background .16s;
}

.user-trigger:hover { background: #f2f3f9; }

.dropdown {
  position: absolute;
  right: 0; top: calc(100% + 10px);
  min-width: 196px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: all .18s var(--ease);
  z-index: 70;
}

.user-menu.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown a,
.dropdown button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  background: none;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background .14s, color .14s;
}

.dropdown a:hover,
.dropdown button:hover { background: var(--brand-soft); color: var(--brand-deep); }

.dropdown .sep { height: 1px; background: var(--line-soft); margin: 5px 4px; }

/* ===========================================================
   布局骨架
   =========================================================== */

.app {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 292px;
  gap: 26px;
  align-items: start;
}

.col-side { position: sticky; top: calc(var(--header-h) + 22px); }

/* ---- 左侧导航 ---- */

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 14px 12px;
}

.nav-list { display: flex; flex-direction: column; gap: 2px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
}

.nav-item svg { flex-shrink: 0; opacity: .78; }

.nav-item:hover { background: #f5f6fb; color: var(--text); }

.nav-item.is-active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 650;
}

.nav-item.is-active svg { opacity: 1; }

.nav-item .count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: #f2f3f9;
  padding: 1px 7px;
  border-radius: var(--r-full);
}

.nav-item.is-active .count { background: #fff; color: var(--brand); }

.nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--text-3);
  padding: 16px 12px 7px;
  text-transform: uppercase;
}

.btn-compose {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  margin-bottom: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(91,91,214,.28);
  transition: transform .16s var(--ease), box-shadow .16s;
}

.btn-compose:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(91,91,214,.34); }
.btn-compose:active { transform: translateY(0) scale(.99); }

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

.rail { display: flex; flex-direction: column; gap: 16px; }

.rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 16px 17px;
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--text);
  margin-bottom: 12px;
}

.rail-title .more { font-size: 12px; font-weight: 500; color: var(--text-3); }
.rail-title .more:hover { color: var(--brand); }

.notice-box {
  background: linear-gradient(150deg, #fbfbff, #f6f5ff);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-lg);
  padding: 15px 16px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
}

.notice-box .tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--brand-line);
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-bottom: 9px;
}

.topic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text-2);
}

.topic-row:hover { color: var(--brand); }

.topic-rank {
  width: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.topic-row:nth-child(2) .topic-rank { color: var(--pink); }
.topic-row:nth-child(3) .topic-rank { color: var(--amber); }
.topic-row:nth-child(4) .topic-rank { color: #a78bfa; }

.topic-row .heat { margin-left: auto; font-size: 11.5px; color: var(--text-3); }

.people-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
}

.people-row .info { min-width: 0; }
.people-row .nm { font-size: 13.5px; font-weight: 600; }
.people-row .bi { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rail-foot {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.8;
  padding: 0 4px;
}

.rail-foot a:hover { color: var(--brand); }

/* ===========================================================
   卡片 / 信息流
   =========================================================== */

.feed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.feed-title {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.02em;
  margin: 0;
}

.feed-title .sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 8px;
  letter-spacing: 0;
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #eceef6;
  border-radius: var(--r-full);
  margin-left: auto;
}

.seg a {
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  border-radius: var(--r-full);
  transition: all .16s;
}

.seg a.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(21,23,31,.10);
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 18px 20px 14px;
  margin-bottom: 14px;
  transition: box-shadow .22s var(--ease), border-color .22s, transform .22s var(--ease);
}

.post-card:hover {
  box-shadow: var(--sh-md);
  border-color: #e0e2ee;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.post-head .meta { min-width: 0; }

.post-head .line1 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  flex-wrap: wrap;
}

.author-name {
  font-weight: 650;
  color: var(--text);
}

a.author-name:hover { color: var(--brand); }

.post-head .line2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  row-gap: 3px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 1px;
}

.post-head .line2 > * { white-space: nowrap; }
.post-head .line2 .sep { opacity: .55; }

.board-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid var(--brand-line);
}

.badge-pin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-full);
  background: #fff4e5;
  color: #b45309;
  border: 1px solid #fde3bd;
}

.post-title {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.015em;
  margin: 0 0 6px;
}

.post-title a:hover { color: var(--brand); }

.post-body {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.78;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-card .post-img img { max-height: 320px; }

.post-card .post-body {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-body p { margin: 0 0 10px; }
.post-body p:last-child { margin-bottom: 0; }

.post-img {
  margin-top: 12px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
}

.post-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .4s var(--ease);
}

.post-img img:hover { transform: scale(1.012); }

.post-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-full);
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-variant-numeric: tabular-nums;
}

.act:hover { background: #f5f6fb; color: var(--text-2); }

.act.is-on { color: var(--brand); font-weight: 650; }
.act.is-on svg { fill: currentColor; }

.act.like.is-on { color: var(--pink); }

.act.act-right { margin-left: auto; }

/* 空状态 */
.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 56px 24px;
  text-align: center;
  color: var(--text-3);
}

.empty .emoji {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  color: var(--brand);
  opacity: .55;
}
.empty .emoji svg { width: 38px; height: 38px; }
.empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--text-2); font-weight: 650; }
.empty p { margin: 0; font-size: 13.5px; }

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 22px 0 0;
  flex-wrap: wrap;
}

.pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-2);
  transition: all .15s;
}

.pager-btn:hover { border-color: var(--brand-line); color: var(--brand); }

.pager-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 650;
}

.pager-info { font-size: 12.5px; color: var(--text-3); margin-left: 6px; }

/* ===========================================================
   帖子详情
   =========================================================== */

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 26px 28px;
}

.detail-card .post-title {
  font-size: 26px;
  line-height: 1.38;
  margin: 14px 0 14px;
  letter-spacing: -.025em;
}

.detail-card .post-body { font-size: 15.5px; line-height: 1.9; color: #33374a; }
.detail-card .post-body p { margin: 0 0 14px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.crumb a:hover { color: var(--brand); }

/* 评论区 */
.comment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 20px 24px 24px;
  margin-top: 16px;
}

.comment-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.comment-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.comment-head .n { font-size: 12.5px; color: var(--text-3); }

.comment-form { display: flex; gap: 11px; margin-bottom: 22px; }

.comment-form .grow { flex: 1; min-width: 0; }

.comment-form textarea {
  width: 100%;
  min-height: 76px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  resize: vertical;
  outline: none;
  line-height: 1.7;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.comment-form textarea:focus {
  background: #fff;
  border-color: var(--brand-line);
  box-shadow: 0 0 0 4px rgba(91,91,214,.08);
}

.comment-form .row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
}

.comment-form .hint { font-size: 12px; color: var(--text-3); }

.cmt {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}

.cmt:first-of-type { border-top: 0; }

.cmt-body { flex: 1; min-width: 0; }

.cmt-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  margin-bottom: 2px;
}

.cmt-meta .t { font-size: 11.5px; color: var(--text-3); }

.cmt-text {
  font-size: 14px;
  color: #343849;
  line-height: 1.72;
  word-break: break-word;
  white-space: pre-wrap;
}

.cmt-acts {
  display: flex;
  gap: 2px;
  margin-top: 3px;
  margin-left: -8px;
}

.cmt-acts .act { font-size: 12px; padding: 3px 8px; }

.replies {
  margin-top: 8px;
  padding: 4px 0 0 12px;
  border-left: 2px solid var(--line-soft);
}

.reply-form { margin-top: 8px; display: none; }
.reply-form.show { display: block; }

.reply-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 8px 12px;
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  resize: vertical;
  outline: none;
}

.reply-form textarea:focus { background: #fff; border-color: var(--brand-line); }

/* ===========================================================
   表单 / 按钮
   =========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 17px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .16s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(91,91,214,.26);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(91,91,214,.32); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-2);
}

.btn-ghost:hover { border-color: var(--brand-line); color: var(--brand); background: var(--brand-soft); }

.btn-soft { background: var(--brand-soft); color: var(--brand-deep); }
.btn-soft:hover { background: #e3e4ff; }

.btn-danger { background: var(--red-soft); color: #c0392b; }
.btn-danger:hover { background: #fbdcdc; }

.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.field { margin-bottom: 16px; }

.field > label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-2);
  margin-bottom: 6px;
}

.field .tip { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.input,
.textarea,
.select {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.input:focus,
.textarea:focus,
.select:focus {
  background: #fff;
  border-color: var(--brand-line);
  box-shadow: 0 0 0 4px rgba(91,91,214,.08);
}

.input::placeholder, .textarea::placeholder { color: var(--text-3); }

.textarea { resize: vertical; min-height: 130px; line-height: 1.75; }

.form-error {
  background: var(--red-soft);
  border: 1px solid #f8d7d7;
  color: #b4372c;
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.form-note {
  background: #fbfbff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.7;
}

/* 板块选择 chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }

.chip-radio { position: relative; }

.chip-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-radio span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--text-2);
  cursor: pointer;
  transition: all .16s;
}

.chip-radio span:hover { border-color: var(--brand-line); color: var(--brand); }

.chip-radio input:checked + span {
  background: var(--brand-soft);
  border-color: var(--brand-line);
  color: var(--brand-deep);
  font-weight: 650;
}

/* 开关 */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}

.switch-row .txt { font-size: 13.5px; font-weight: 600; }
.switch-row .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }

.switch {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
}

.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }

.switch i {
  position: absolute;
  inset: 0;
  background: #dfe1ea;
  border-radius: var(--r-full);
  transition: background .2s;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  transition: transform .2s var(--ease);
}

.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }

/* 图片上传 */
.uploader {
  border: 1.5px dashed #d9dcea;
  border-radius: var(--r-md);
  background: var(--surface-2);
  padding: 22px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  transition: all .18s;
  position: relative;
}

.uploader:hover { border-color: var(--brand); color: var(--brand); background: #fafaff; }

.uploader input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-preview {
  position: relative;
  margin-top: 10px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.upload-preview img { width: 100%; max-height: 320px; object-fit: cover; }

.upload-preview .rm {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(20,22,30,.62);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(4px);
}

/* ===========================================================
   认证页
   =========================================================== */

.auth-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-side {
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(150deg, #4f4fc4 0%, #5b5bd6 42%, #8b5cf6 100%);
  color: #fff;
  padding: 54px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -190px; bottom: -230px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), transparent 62%);
  border: 1px solid rgba(255,255,255,.16);
}

.auth-side .brand { color: #fff; font-size: 18px; }
.auth-side .brand-mark { background: rgba(255,255,255,.18); box-shadow: none; backdrop-filter: blur(6px); }

.auth-side h1 {
  margin: auto 0 14px;
  font-size: 38px;
  line-height: 1.3;
  letter-spacing: -.03em;
  font-weight: 750;
}

.auth-side .lede {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,.82);
  max-width: 380px;
  margin: 0 0 auto;
}

.auth-side .stats {
  display: flex;
  gap: 34px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.2);
  position: relative;
  z-index: 1;
}

.auth-side .stats .n { font-size: 24px; font-weight: 750; letter-spacing: -.02em; }
.auth-side .stats .l { font-size: 12px; color: rgba(255,255,255,.7); }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}

.auth-card { width: 100%; max-width: 372px; }

.auth-card h2 {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.025em;
  margin: 0 0 6px;
}

.auth-card .sub { color: var(--text-3); font-size: 13.5px; margin: 0 0 26px; }

.auth-card .btn { height: 44px; }

.auth-foot {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

.auth-foot a { color: var(--brand); font-weight: 600; }

.auth-tip {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.8;
}

/* ===========================================================
   个人主页
   =========================================================== */

.profile-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.profile-cover {
  height: 108px;
  background:
    radial-gradient(420px 160px at 12% 140%, rgba(255,255,255,.28), transparent 70%),
    radial-gradient(320px 140px at 88% -20%, rgba(255,255,255,.22), transparent 70%),
    linear-gradient(120deg, #4f46e5 0%, #7c3aed 52%, #a855f7 100%);
  position: relative;
}

.profile-body { padding: 0 24px 20px; }

.profile-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: -32px;
}

.profile-top .avatar { border: 4px solid #fff; box-shadow: 0 2px 10px rgba(21,23,31,.14); }

.profile-id { flex: 1; min-width: 0; padding-bottom: 2px; }

.profile-id h1 {
  font-size: 21px;
  font-weight: 750;
  margin: 0;
  letter-spacing: -.02em;
}

.profile-id .handle { font-size: 12.5px; color: var(--text-3); }

.profile-bio {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.profile-stats {
  display: flex;
  gap: 26px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.profile-stats .s { font-size: 12.5px; color: var(--text-3); }
.profile-stats .s b { display: block; font-size: 17px; color: var(--text); font-weight: 750; font-variant-numeric: tabular-nums; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.tabs a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .16s, border-color .16s;
}

.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ===========================================================
   通知
   =========================================================== */

.notif {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 9px;
  transition: border-color .16s, box-shadow .16s;
}

.notif:hover { border-color: #e0e2ee; box-shadow: var(--sh-sm); }

.notif.unread {
  background: linear-gradient(90deg, #fbfbff, #fff 40%);
  border-color: var(--brand-line);
}

.notif .body { flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); line-height: 1.65; }
.notif .body b { color: var(--text); font-weight: 650; }
.notif .body a:hover b { color: var(--brand); }
.notif .t { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.notif .quote {
  margin-top: 6px;
  padding: 7px 11px;
  background: #f6f7fb;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
}

/* ===========================================================
   提示条 / 页脚
   =========================================================== */

.flash-stack {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 400px);
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 15px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  font-size: 13.5px;
  color: var(--text-2);
  animation: slideDown .3s var(--ease);
}

.flash.success { border-color: #c7efdf; background: #f4fdf9; color: #10694c; }
.flash.error   { border-color: #f8d7d7; background: #fdf6f6; color: #a63a2f; }
.flash.info    { border-color: var(--brand-line); background: #f8f8ff; color: var(--brand-deep); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.site-foot .dotsep { opacity: .5; }
.site-foot a:hover { color: var(--brand); }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12,14,20,.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}

.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* 移动端底部导航 */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}

.mobile-nav .items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-3);
  border-radius: 10px;
}

.mobile-nav a.is-active { color: var(--brand); }

/* ===========================================================
   响应式
   =========================================================== */

@media (max-width: 1080px) {
  .app { grid-template-columns: 200px minmax(0, 1fr); }
  .col-rail { display: none; }
}

@media (max-width: 820px) {
  .app {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 14px 96px;
    gap: 0;
  }

  .col-side { display: none; }
  .brand-sub { display: none; }
  .topsearch { max-width: none; }
  .topbar-inner { gap: 10px; padding: 0 14px; }

  .mobile-nav { display: block; }

  .detail-card { padding: 20px 18px; border-radius: var(--r-md); }
  .detail-card .post-title { font-size: 21px; }
  .post-card { padding: 16px 16px 12px; border-radius: var(--r-md); }
  .comment-card { padding: 16px 16px 20px; border-radius: var(--r-md); }

  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }

  .profile-body { padding: 0 16px 18px; }
  .flash-stack { top: 70px; }
}

@media (max-width: 480px) {
  .feed-title { font-size: 18px; }
  .seg a { padding: 5px 10px; font-size: 12.5px; }
  .post-title { font-size: 17px; }
  .act span.lbl { display: none; }
  .post-foot { gap: 0; }
}

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

/* ===========================================================
   补充组件
   =========================================================== */

/* 快捷发帖条 */
.quick-compose {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}

.quick-compose:hover {
  border-color: var(--brand-line);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}

.quick-compose .qc-text {
  flex: 1;
  color: var(--text-3);
  font-size: 14.5px;
}

/* 复选行 */
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
  cursor: pointer;
  margin: 4px 0 0;
}

.checkline input {
  margin: 3px 0 0;
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.checkline a { color: var(--brand); font-weight: 600; }

/* 悬浮发帖按钮 */
.fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 85;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 26px rgba(91,91,214,.42);
  transition: transform .18s var(--ease);
}

.fab:active { transform: scale(.94); }

@media (max-width: 820px) {
  .fab { display: flex; }
}

/* 发帖页 */
.compose-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 26px 28px 22px;
}

.compose-head { margin-bottom: 22px; }

.compose-head h1 {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.025em;
  margin: 0 0 5px;
}

.compose-head p { margin: 0; font-size: 13.5px; color: var(--text-3); }

.compose-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

/* 板块宫格 */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}

.board-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 18px 19px 16px;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}

.board-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: #e0e2ee;
}

.bc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.bc-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 21px;
}

.bc-count { font-size: 11.5px; color: var(--text-3); font-weight: 600; }

.board-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.board-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.bc-foot {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}

/* 设置页 */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.swatches { display: flex; gap: 9px; flex-wrap: wrap; }

.swatch { position: relative; cursor: pointer; }

.swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch span {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .16s var(--ease), box-shadow .16s;
}

.swatch span:hover { transform: scale(1.08); }

.swatch input:checked + span {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c);
}

/* 长文排版 */
.prose { font-size: 15px; color: #33374a; line-height: 1.95; }

.prose .lede {
  font-size: 16.5px;
  color: var(--text);
  line-height: 1.8;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.prose h2 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 26px 0 8px;
  letter-spacing: -.01em;
  color: var(--text);
}

.prose p { margin: 0 0 12px; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 26px 0 16px;
}

/* 移动端补丁 */
@media (max-width: 820px) {
  .compose-wrap { padding: 20px 18px 18px; border-radius: var(--r-md); }
  .compose-head h1 { font-size: 20px; }
  .compose-actions { flex-wrap: wrap; }
  .compose-actions .form-note { flex-basis: 100%; }
  .board-grid { grid-template-columns: 1fr; }
  .quick-compose { border-radius: var(--r-md); }
}

/* 无右栏时：两列布局，正文更宽 */
.app.no-rail {
  grid-template-columns: 224px minmax(0, 1fr);
  max-width: 1000px;
}

@media (max-width: 820px) {
  .app.no-rail { grid-template-columns: minmax(0, 1fr); }
}

/* 移动端专用元素 */
.only-mobile { display: none; }

@media (max-width: 620px) {
  .topsearch { display: none; }
  .only-mobile { display: grid; }
}

/* 置顶公告：展开显示更多正文 */
.post-card.is-pinned {
  border-color: var(--brand-line);
  background: linear-gradient(180deg, #fbfbff, #fff 120px);
}

.post-card.is-pinned .post-body { -webkit-line-clamp: 16; }

/* ===========================================================
   在线状态 / 运行时长
   =========================================================== */

.site-status {
  margin: 14px 2px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

.status-line b {
  color: var(--text-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.status-line svg { flex-shrink: 0; opacity: .75; }

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: livePulse 2.2s var(--ease) infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.foot-status {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

.status-pill b {
  color: var(--text-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.status-pill svg { opacity: .75; }

/* 板块图标对齐 */
.nav-ico,
.topic-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  color: var(--text-2);
  flex-shrink: 0;
}

.topic-ico { width: 15px; color: var(--text-3); }
.nav-item.is-active .nav-ico { color: var(--brand); }
.nav-item .nav-ico svg,
.topic-ico svg { display: block; }
.board-emoji { line-height: 1; }

/* 移动端：状态条更紧凑 */
@media (max-width: 620px) {
  .site-foot { gap: 10px; font-size: 11.5px; padding-bottom: 84px; }
  .status-pill { padding: 2px 9px; font-size: 11.5px; }
}

/* 板块标题前的 SVG 图标 */
.feed-title .feed-ico {
  display: inline-flex;
  align-items: center;
  vertical-align: -3px;
  margin-right: 7px;
}

.feed-title .feed-ico svg { display: block; }

/* 窄屏：隐藏元信息里的间隔点，避免换行时行首出现「·」 */
@media (max-width: 620px) {
  .post-head .line2 { column-gap: 9px; }
  .post-head .line2 .sep { display: none; }
  .post-head .line2 > a:not(.board-chip) { color: var(--text-3); }
}

/* 登录/注册页左栏：白底品牌标识，保证在紫色背景上清晰 */
.auth-side .brand-mark {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 18px rgba(20, 12, 60, .18);
}

/* ===========================================================
   头像（图片头像 + 上传审核）
   =========================================================== */

.avatar-img {
  overflow: hidden;
  background: var(--surface-2);
  padding: 0;
}

.avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-edit {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.avatar-preview {
  position: relative;
  flex-shrink: 0;
}

.avatar-flag {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  background: var(--amber);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 4px 9px;
  border-radius: var(--r-full);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, .35);
}

.avatar-side {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.avatar-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.avatar-status svg { flex-shrink: 0; opacity: .8; }

.avatar-status.is-pending {
  color: #8a5a00;
  background: #fffaf0;
  border: 1px solid #f6e3bd;
  border-radius: 10px;
  padding: 8px 11px;
}

.avatar-status.is-rejected {
  color: #9b2c2c;
  background: #fdf1f1;
  border: 1px solid #f6d5d5;
  border-radius: 10px;
  padding: 8px 11px;
}

.avatar-quota {
  font-size: 12.5px;
  color: var(--text-3);
}

.avatar-quota b { color: var(--brand); font-weight: 700; }
.avatar-quota.is-out { color: var(--amber); }

.avatar-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.file-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  max-width: 100%;
}

.file-pick:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.file-pick input { display: none; }
.file-pick em {
  font-style: normal;
  color: var(--text-3);
  font-size: 12px;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

/* 搜索页独立搜索框 */
.search-form {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 16px;
  margin-bottom: 16px;
  box-shadow: var(--sh-sm);
}

.search-form svg { color: var(--text-3); flex-shrink: 0; }

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  padding: 7px 0;
  font-family: inherit;
}

.search-form input::placeholder { color: var(--text-3); }
.search-form .btn { border-radius: var(--r-full); flex-shrink: 0; }

@media (max-width: 620px) {
  .avatar-edit { gap: 16px; }
  .avatar-side { min-width: 100%; }
  .search-form { padding-left: 13px; }
}

/* 禁言提示条 */
.mute-banner {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 10px 16px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #fffaf0;
  border: 1px solid #f6e3bd;
  border-radius: 12px;
  color: #8a5a00;
  font-size: 13px;
  line-height: 1.6;
}

.mute-banner svg { flex-shrink: 0; margin-top: 2px; opacity: .85; }

@media (max-width: 620px) {
  .mute-banner { margin: 10px 12px 0; font-size: 12.5px; padding: 9px 12px; }
}

/* 浏览量数字：等宽，避免跳动 */
.view-num { font-variant-numeric: tabular-nums; }
