/* ============ 微语社区 · PC 主样式 ============ */
/* 配色：珊瑚橙 + 暖灰（已彻底移除紫蓝配色） */
:root, :root[data-theme="dark"] {
  --bg: #14100d; --card: #1d1815; --card2: #262019; --line: rgba(255,232,214,.09);
  --txt: #f3ede7; --mut: #a3968b; --brand1: #ff6b3d; --brand2: #ff8f5e;
  --grad: linear-gradient(135deg, #ff6b3d, #ff8f5e);
  --link: #ff9470;
  --danger: #e14b4b; --ok: #3fbf8a; --like: #ff4169; --warn: #f2b33d;
  --shadow: 0 10px 34px rgba(0,0,0,.42); --r: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f8f3ee; --card: #fffdfa; --card2: #f5ede5; --line: rgba(92,58,32,.13);
  --txt: #24190f; --mut: #7b6a5c;
  --link: #c2410c;
  --shadow: 0 10px 30px rgba(92,58,32,.10);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.ic-sm { width: 16px; height: 16px; vertical-align: -3px; }
.ic.big-ic { width: 44px; height: 44px; opacity: .5; }
.ic.flip { transform: scaleX(-1); }
.muted { color: var(--mut); }
.small { font-size: 12.5px; }
code { background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.lnk, .tag, .mention { color: var(--link); }
.lnk:hover, .tag:hover, .mention:hover { text-decoration: underline; }

/* ---------- 素材彩色图标（assets/icons/*.svg，暖色重绘版） ---------- */
.mi { width: 22px; height: 22px; flex: none; vertical-align: -5px; object-fit: contain; }
.mi.ic-sm { width: 17px; height: 17px; }
.mi.lg { width: 46px; height: 46px; }
.mi.xl { width: 64px; height: 64px; }
.empty .mi.lg, .empty .mi.xl { margin: 0 auto 6px; }
/* 未激活导航图标做去色处理，激活后恢复彩色 */
.nav-item .mi { filter: grayscale(.92) opacity(.5); transition: filter .18s, transform .18s; }
.nav-item:hover .mi { filter: grayscale(.3) opacity(.8); }
.nav-item.on .mi { filter: none; transform: scale(1.06); }

/* ---------- 布局 ---------- */
.shell {
  display: grid; grid-template-columns: 236px minmax(0, 1fr) 300px;
  gap: 22px; max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px;
}
.feedcol { min-width: 0; }
.sidenav, .rightcol { align-self: start; }
@media (max-width: 1020px) { .rightcol { display: none; } .shell { grid-template-columns: 210px minmax(0,1fr); } }
@media (max-width: 720px)  { .sidenav { display: none; } .shell { grid-template-columns: 1fr; padding-top: 12px; } }

/* ---------- 侧边导航 ---------- */
.sidenav { display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; background: var(--grad);
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(255,107,61,.35);
}
.brand-mark.big { width: 56px; height: 56px; border-radius: 18px; margin-bottom: 10px; }
.brand-mark.big .ic { width: 28px; height: 28px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 12px;
  font-size: 15.5px; color: var(--mut); position: relative; transition: all .18s;
}
.nav-item:hover { background: var(--card2); color: var(--txt); }
.nav-item.on { color: var(--txt); font-weight: 700; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.nav-item.on .ic { color: var(--brand1); }
.nav-badge {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: linear-gradient(135deg, #e14b4b, #ff7a45); color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; font-style: normal;
}
.auth-cta { display: flex; flex-direction: column; gap: 8px; }
.sidenav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.me-meta { flex: 1; min-width: 0; }
.me-meta b { display: block; font-size: 14px; }
.me-meta small { color: var(--mut); font-size: 12px; }

/* ---------- 右侧栏 ---------- */
.widget h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 12px; }
.tags-list { display: flex; flex-direction: column; }
.tag-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 6px; border-radius: 10px; transition: background .15s; }
.tag-row:hover { background: var(--card2); }
.tag-name { font-weight: 700; color: var(--link); }
.tag-count { color: var(--mut); font-size: 12.5px; }
.who-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.who-meta { flex: 1; min-width: 0; }
.who-meta small { display: block; color: var(--mut); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-name { font-weight: 700; font-size: 14px; }
.site-card p { margin: 4px 0; font-size: 13px; }

/* ---------- 通用组件 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.widget { margin-bottom: 16px; padding: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 20px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s; background: none; color: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(255,107,61,.3); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--card2); }
.btn-ghost:hover { border-color: rgba(255,107,61,.45); color: var(--brand1); }
.btn-danger { background: rgba(225,75,75,.12); color: var(--danger); border-color: rgba(225,75,75,.3); }
.btn-danger:hover { background: rgba(225,75,75,.2); }
.btn-sm { padding: 5px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 12px 30px; font-size: 15.5px; border-radius: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  border: none; background: none; color: var(--mut); cursor: pointer; transition: all .15s; font: inherit;
}
.icon-btn:hover { background: var(--card2); color: var(--txt); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--card2); color: var(--txt); font: inherit; outline: none; transition: border .15s;
}
input:focus, textarea:focus, select:focus { border-color: rgba(255,107,61,.55); box-shadow: 0 0 0 3px rgba(255,107,61,.13); }
input:disabled { opacity: .55; }
textarea { resize: none; }
/* 复选框/单选框不能被上面的 width:100% 撑满 */
input[type="checkbox"], input[type="radio"] {
  width: auto; height: 16px; padding: 0; margin: 0; flex: none;
  accent-color: var(--brand1); cursor: pointer; vertical-align: -2px;
}
.switch-row { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; font-size: 14px; cursor: pointer; }
.switch-row span { color: var(--txt); }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 600; vertical-align: middle; }
.pill-ok { background: rgba(63,191,138,.14); color: var(--ok); }
.pill-pending { background: rgba(242,179,61,.15); color: var(--warn); }
.pill-rejected { background: rgba(225,75,75,.14); color: var(--danger); }
.flash {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 14px;
  border-radius: 12px; font-size: 14px; animation: fadeUp .3s ease;
}
.f-ok  { background: rgba(63,191,138,.12); color: var(--ok); border: 1px solid rgba(63,191,138,.3); }
.f-err { background: rgba(225,75,75,.1); color: var(--danger); border: 1px solid rgba(225,75,75,.3); }
.flash-x { margin-left: auto; background: none; border: none; color: inherit; opacity: .6; cursor: pointer; }
.flash-x:hover { opacity: 1; }
.announce {
  display: flex; gap: 10px; padding: 12px 16px; margin-bottom: 16px; font-size: 13.5px;
  background: linear-gradient(135deg, rgba(255,107,61,.14), rgba(255,143,94,.12));
  border: 1px solid rgba(255,107,61,.26); border-radius: 13px;
}
.empty { text-align: center; color: var(--mut); padding: 40px 20px; }
.empty p { margin: 8px 0 14px; }
.tabs { display: flex; gap: 6px; margin: 16px 0; }
.tabs a {
  padding: 8px 22px; border-radius: 20px; font-weight: 600; color: var(--mut);
  border: 1px solid transparent; transition: all .18s;
}
.tabs a:hover { color: var(--txt); }
.tabs a.on { background: var(--card); color: var(--txt); border-color: var(--line); box-shadow: var(--shadow); }
.pager { display: flex; gap: 6px; margin: 18px 0; flex-wrap: wrap; }
.pager a {
  min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card); font-size: 13.5px;
}
.pager a.on { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- 头像 ---------- */
.avatar {
  width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; object-fit: cover; flex: none;
  background: var(--card2);
}
.av-gen {
  display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: calc(var(--s, 44px) * .42);
  background: linear-gradient(135deg, hsl(var(--hue, 24), 72%, 52%), hsl(calc(var(--hue, 24) + 34), 78%, 44%));
  user-select: none;
}
.p-badge { width: 16px; height: 16px; }
.p-badge.lg { width: 20px; height: 20px; }

/* ---------- 发布器 ---------- */
.composer { margin-bottom: 4px; }
.composer-row { display: flex; gap: 12px; }
.composer-row textarea { border: none; background: none; padding: 8px 0; font-size: 16px; height: 140px; resize: none; }
.composer-row textarea:focus { box-shadow: none; }
.composer-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; }
.composer-hint { color: var(--mut); font-size: 12.5px; flex: 1; }
.char-left { color: var(--mut); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.char-left.low { color: var(--warn); }
.composer-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.composer-media .cm-item { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.composer-media img { width: 100%; height: 100%; object-fit: cover; }
.cm-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
}
.cm-up { width: 96px; height: 96px; border-radius: 10px; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--mut); font-size: 12px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* 拖拽图片上传高亮 */
.composer.drag-on, form[data-cimg].drag-on {
  outline: 2px dashed var(--link); outline-offset: 4px;
  background: rgba(255,107,61,.06);
}
.composer.drag-on .composer-media::after, form[data-cimg].drag-on [data-cimg-box]::after {
  content: '松开鼠标上传图片'; display: block; padding: 10px 0 4px;
  color: var(--link); font-size: 12.5px;
}
.dm-form.drag-on {
  outline: 2px dashed var(--link); outline-offset: 4px;
  background: rgba(255,107,61,.06);
}

/* ---------- 帖子卡片 ---------- */
.post {
  display: flex; gap: 12px; padding: 15px 16px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s, transform .2s; animation: fadeUp .35s ease;
}
.post:hover { border-color: rgba(255,107,61,.3); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.p-ava { flex: none; }
.p-body { flex: 1; min-width: 0; }
.p-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.p-name { font-weight: 700; }
.p-name:hover { text-decoration: underline; }
.p-handle, .p-time { color: var(--mut); font-size: 13px; }
.p-dot { color: var(--mut); }
.p-time:hover { text-decoration: underline; }
.p-edit { margin-left: auto; }
.p-del { margin-left: 0; }
.p-text { margin: 6px 0 4px; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.p-text.folded { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.p-title { margin: 8px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; word-break: break-word; }
.p-fold { display: inline-flex; align-items: center; background: none; border: none; padding: 2px 8px; margin: 0 0 2px -8px;
  color: var(--link); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 8px; }
.p-fold:hover { background: var(--card2); }
.p-media { display: grid; gap: 6px; margin-top: 10px; border-radius: 14px; overflow: hidden; }
/* 单图：显示完整原图（限宽居中，等比） */
.p-media.n1 { grid-template-columns: minmax(0, 86%); }
.p-media.n1 img { border-radius: 12px; }
/* 多图：QQ 动态那种方框九宫格 —— 每格强制 1:1 方形，不按原图比例拉伸 */
.p-media.n2, .p-media.n4 { grid-template-columns: 1fr 1fr; }
.p-media.n3, .p-media.n5, .p-media.n6, .p-media.n7, .p-media.n8, .p-media.n9 { grid-template-columns: 1fr 1fr 1fr; }
.p-media:not(.n1) a { aspect-ratio: 1/1; max-height: none; }
.p-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; transition: transform .3s; }
.p-media a { overflow: hidden; border-radius: 8px; max-height: 320px; }
.p-media a:hover img { transform: scale(1.04); }
.p-actions { display: flex; align-items: center; gap: 26px; margin-top: 10px; }
.pa { display: inline-flex; align-items: center; gap: 7px; background: none; border: none; color: var(--mut); cursor: pointer; padding: 4px 6px; border-radius: 8px; transition: all .15s; font: inherit; font-size: 13px; }
.pa:hover { color: var(--brand1); background: rgba(255,107,61,.1); }
.pa.act-like.on { color: var(--like); }
.pa.act-like.on .ic { fill: var(--like); animation: heartPop .4s ease; }
@keyframes heartPop { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }

/* ---------- 评论 ---------- */
.comments { margin-top: 14px; }
.comment-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.comment-form textarea { height: 84px; flex: 1; resize: none; }
.comment-form .btn { margin-top: 4px; }
.c-field { flex: 1; min-width: 0; }
.c-field textarea { width: 100%; }
.c-tools { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.c-tools .icon-btn { width: 30px; height: 30px; }
.c-tools label.icon-btn { display: inline-grid; cursor: pointer; }
.c-media { display: grid; gap: 6px; margin-top: 8px; max-width: 420px; }
.c-media.n1 { grid-template-columns: minmax(0, 62%); }
.c-media.n2, .c-media.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c-media a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.c-media img { width: 100%; height: 100%; max-height: 180px; object-fit: cover; display: block; transition: transform .25s; }
.c-media a:hover img { transform: scale(1.04); }
.c-media .cm-up { width: 72px; height: 72px; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.c-body { flex: 1; min-width: 0; }
.c-head { display: flex; align-items: center; gap: 8px; }
.c-name { font-weight: 600; font-size: 14px; }
.c-text { font-size: 14px; margin-top: 3px; word-break: break-word; }
.no-comment { padding: 14px 0 4px; }
.login-hint { padding: 4px 0 10px; }

/* ---------- 个人主页 ---------- */
.profile-head { margin-bottom: 14px; }
.pf-top { display: flex; gap: 16px; align-items: center; }
.pf-meta { flex: 1; min-width: 0; }
.pf-name { margin: 0 0 4px; font-size: 20px; display: flex; align-items: center; gap: 6px; }
.pf-meta p { margin: 2px 0; font-size: 13.5px; }
.pf-bio { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- 搜索 / 通知 / 设置 ---------- */
.search-box form { display: flex; align-items: center; gap: 10px; position: relative; }
.s-ic { position: absolute; left: 12px; color: var(--mut); pointer-events: none; }
.search-box input { padding-left: 38px; }
.search-box .btn { flex: none; }
.notif-list { padding: 4px 2px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-radius: 10px; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif.unread { background: rgba(255,107,61,.07); }
.n-body { flex: 1; min-width: 0; }
.n-body p { margin: 0; font-size: 14px; }
.settings-card { margin-bottom: 16px; }
.settings-card h3 { margin-top: 0; }
.avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar-row.center { justify-content: center; text-align: center; }
.resend-row { display: flex; gap: 8px; margin-top: 14px; }
.resend-row input { flex: 1; }

/* ---------- 登录注册 ---------- */
.auth-wrap { display: grid; place-items: center; min-height: 66vh; }
.auth-card { width: 100%; max-width: 400px; padding: 30px 28px; }
.auth-card h1 { margin: 8px 0 6px; font-size: 22px; }
.auth-card .btn { margin-top: 6px; }
.auth-links { margin-top: 16px; font-size: 13.5px; text-align: center; }

/* ---------- 落地页 ---------- */
.hero { position: relative; text-align: center; padding: 52px 18px 40px; overflow: hidden; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-bottom: 18px; }
.hero.compact { padding: 34px 16px 26px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.25; margin: 10px 0 14px; position: relative; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-kicker { display: inline-block; font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand1); font-weight: 700; }
.hero-sub { color: var(--mut); font-size: 15.5px; position: relative; }
.hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 22px; position: relative; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; pointer-events: none; }
.b1 { width: 300px; height: 300px; background: #ff6b3d; top: -120px; left: -60px; }
.b2 { width: 280px; height: 280px; background: #ff8f5e; bottom: -140px; right: -40px; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.feature { text-align: left; }
.feature .ic, .feature .mi { color: var(--brand1); width: 26px; height: 26px; }
.feature h3 { margin: 10px 0 4px; font-size: 15.5px; }
.feature p { margin: 0; color: var(--mut); font-size: 13px; }
@media (max-width: 720px) { .feature-row { grid-template-columns: 1fr; } }
.sec-title { font-size: 17px; margin: 20px 0 12px; }
.sec-title.in-card { margin-top: 0; }
.center-page { text-align: center; padding: 60px 20px; }

/* ---------- 404 页面 ---------- */
.nf { max-width: 440px; margin: 0 auto; text-align: center; padding: 44px 20px 60px; }
.nf-code {
  font-size: clamp(88px, 22vw, 136px); font-weight: 800; line-height: 1; letter-spacing: -3px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf-kicker { margin: 16px 0 0; font-size: 13px; letter-spacing: 3px; color: var(--brand1); font-weight: 700; }
.nf-sub { margin: 10px 0 0; color: var(--mut); font-size: 14.5px; line-height: 1.7; }
.nf-cta { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.nf-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--mut); font-size: 13.5px; }
.nf-more:hover { color: var(--link); }
.nf-search { display: flex; gap: 8px; margin-top: 24px; }
.nf-search input {
  flex: 1; min-width: 0; padding: 9px 14px; border-radius: 11px;
  background: var(--card); border: 1px solid var(--line); color: var(--txt);
  font: inherit; font-size: 14px;
}
.nf-search input:focus { outline: none; border-color: rgba(255,107,61,.5); }
.page-back { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); margin-bottom: 12px; font-size: 14px; }
.page-back:hover { color: var(--txt); }
.compose-page { max-width: 640px; }
.compose-title { margin: 2px 0 14px; font-size: 18px; }

/* ---------- App 页 ---------- */
.app-hero { max-width: 620px; margin: 0 auto; text-align: center; padding: 34px 26px; }
.app-hero h1 { font-size: 24px; margin: 8px 0; }
.app-actions { display: flex; gap: 12px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.scheme-test { border-top: 1px solid var(--line); padding-top: 18px; }
.scheme-test h3 { font-size: 15px; }
.scheme-link { margin: 4px 6px 4px 0; }
.app-notes { text-align: left; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; font-size: 13.5px; color: var(--mut); }

/* ---------- 加载更多 ---------- */
.load-more { margin: 4px 0 10px; }
.feed-more { display: none; }

/* ---------- 举报弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 90; background: rgba(12,8,5,.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px; animation: fadeUp .2s ease;
}
.modal { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 14px; font-size: 16px; }
.modal-sub { margin: -8px 0 4px; font-size: 13px; color: var(--mut); }
.modal select { margin-bottom: 12px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }

/* ---------- 评论操作（删除 / 举报） ---------- */
.c-acts { margin-left: auto; display: inline-flex; gap: 2px; align-items: center; flex: none; }
.c-acts .icon-btn { width: 26px; height: 26px; opacity: .5; }
.c-acts .icon-btn:hover { opacity: 1; }
.c-del { display: inline-flex; }

/* ---------- 认证标 / 成就徽章 ---------- */
.v-badge { display: inline-flex; vertical-align: -2px; }
.v-badge .ic, .v-badge .mi { width: 15px; height: 15px; }
.p-shield { color: var(--brand1); }
.flair { font-size: 11px; line-height: 1.6; background: var(--card2); border: 1px solid var(--line); color: var(--mut); border-radius: 999px; padding: 0 8px; white-space: nowrap; align-self: center; }

/* 官方机器人徽章：一眼区分真人 */
.bot-tag { display: inline-flex; align-items: center; margin-left: 4px; padding: 1px 6px; font-size: 11px; font-weight: 700; line-height: 1.4; color: #fff; background: linear-gradient(135deg, #4c7dff, #8a5bff); border-radius: 999px; vertical-align: 1px; white-space: nowrap; }

/* 机器人页 & 通用小工具 */
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px 12px; margin: 0 0 12px; }
.kv dt { color: var(--mut); font-size: 13px; }
.kv dd { margin: 0; font-size: 14px; word-break: break-all; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- 私信 ---------- */
.dm-card .dm-peer { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.dm-card .dm-peer > * { flex: none; }
/* 对方名字太长时省略，别把「举报」按钮挤出屏幕 */
.dm-card .dm-peer .who-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-thread { height: 55vh; overflow-y: auto; display: flex; flex-direction: column; padding: 4px 2px; }
.dm-thread #dm-box { display: flex; flex-direction: column; gap: 10px; }
.dm-msg { max-width: 78%; }
.dm-msg .dm-txt { background: var(--card2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; word-break: break-word; }
.dm-msg small { color: var(--mut); font-size: 11px; display: block; margin-top: 3px; }
.dm-msg.mine { align-self: flex-end; }
.dm-msg.mine .dm-txt { background: var(--grad); color: #fff; border: 0; border-radius: 14px 14px 4px 14px; }
.dm-msg.mine small { text-align: right; }
.dm-form { display: flex; gap: 8px; margin-top: 12px; align-items: flex-end; }
.dm-form textarea { flex: 1; resize: none; height: 44px; }
.dm-list .who-row .nav-badge { position: static; margin-left: auto; }
.dm-list .who-row { align-items: center; }
/* 对方账号已封禁/注销/不存在：顶部提示条 + 禁发提示 */
.dm-peer-banner { background: rgba(225,75,75,.1); color: var(--danger); border: 1px solid rgba(225,75,75,.25); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
.dm-form-disabled { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; text-align: center; font-size: 13px; margin-top: 12px; }

/* ---------- 私信分享卡片（点击直接跳帖子/评论详情） ---------- */
.dm-msg.has-share { max-width: 280px; }
.dm-share { display: block; width: 250px; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card2); text-decoration: none; color: inherit; transition: border-color .15s, transform .1s; }
.dm-share:hover { border-color: var(--brand1); }
.dm-share:active { transform: scale(.985); }
.dm-share-hd { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px; font-size: 12px; color: var(--brand1); background: rgba(255,107,61,.08); }
.dm-share-go { font-size: 16px; line-height: 1; }
.dm-share-img { width: 100%; max-height: 150px; object-fit: cover; display: block; }
.dm-share-txt { padding: 8px 10px; font-size: 13px; color: var(--txt); word-break: break-word; }
.dm-msg.mine .dm-share { background: rgba(255,255,255,.12); border-color: transparent; }
.dm-msg.mine .dm-share-hd { color: #fff; background: rgba(255,255,255,.14); }
.dm-msg.mine .dm-share-txt { color: #fff; }

/* ---------- B 站视频卡片（QQ 那种横版缩略图，点整卡跳 B 站） ---------- */
.dm-bili { width: 264px; }
.dm-bili-hd { color: #00aeec; background: rgba(0,174,236,.10); }
.dm-bili-body { display: flex; gap: 10px; padding: 10px; }
.dm-bili-body .dm-share-img { width: 96px; height: 60px; max-height: none; object-fit: cover; border-radius: 6px; flex: none; }
.dm-bili-txt { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.dm-bili-title { font-size: 13px; line-height: 1.4; color: var(--txt); word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dm-bili-author { font-size: 11px; color: var(--sub); }
.dm-msg.mine .dm-bili-hd { color: #9eeaff; background: rgba(0,174,236,.28); }
.dm-msg.mine .dm-bili-title { color: #fff; }
.dm-msg.mine .dm-bili-author { color: rgba(255,255,255,.72); }

/* ---------- 反馈 ---------- */
.fb-item { border-top: 1px solid var(--line); padding: 12px 0; }
.fb-item:first-of-type { border-top: 0; }
.fb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-reply { background: var(--card2); border-left: 3px solid var(--brand1); border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 13px; }
.fb-admin-form { display: flex; gap: 8px; margin-top: 8px; }
.fb-admin-form input { flex: 1; }
.vset-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; width: 100%; margin-top: 6px; }
.vset-form select { max-width: 110px; }
.vset-form .ban-reason { max-width: 220px; }

/* ---------- 私信配图 / 举报勾选 / 反馈截图 ---------- */
.dm-img { max-width: 220px; max-height: 220px; border-radius: 10px; display: block; cursor: zoom-in; }
.dm-msg { display: flex; align-items: flex-start; gap: 6px; }
.dm-msg.mine { flex-direction: row-reverse; }
/* 气泡和时间竖排：以前两者是 flex 行里的兄弟节点，时间被排到气泡右边，手机上气泡被挤得很窄 */
.dm-body { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
/* 删除自己私信的小按钮：气泡左侧（mine 是 row-reverse，所以视觉上在气泡左边） */
.dm-del { flex: none; align-self: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); color: var(--mut); font-size: 14px; line-height: 18px; text-align: center; cursor: pointer; padding: 0; opacity: 0; transition: opacity .15s; }
.dm-msg:hover .dm-del, .dm-del:focus-visible { opacity: 1; }
.dm-del:hover { color: var(--danger); border-color: var(--danger); }
.dm-check { display: none; width: 16px; height: 16px; margin-top: 10px; accent-color: var(--danger); cursor: pointer; }
.dm-thread.reporting .dm-check { display: inline-block; }
.dm-report { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.dm-report-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dm-report-bar input[name="reason"] { flex: 1; min-width: 140px; }
.dm-img-btn { cursor: pointer; white-space: nowrap; }
.fb-imgs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.fb-thumb { position: relative; display: inline-block; }
.fb-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.fb-thumb .cm-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-size: 12px; line-height: 18px; cursor: pointer; padding: 0; }
.fb-imgs-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.fb-imgs-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- 主页认证信息 ---------- */
.pf-verify { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; margin: 2px 0 0; }
.pf-verify .ic, .pf-verify .mi { width: 14px; height: 14px; }
/* 认证类型保留语义色：蓝V / 黄V */
.pf-verify.v-blue { color: #1e9bff; }
.pf-verify.v-gold { color: #e0a400; }
.pf-name .v-badge .ic, .pf-name .v-badge .mi { width: 20px; height: 20px; vertical-align: -3px; }

/* ---------- @ 提及联想 ---------- */
.mention-pop { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; margin-top: 6px; max-height: 220px; overflow-y: auto; width: 100%; box-sizing: border-box; }
.mention-pop[hidden] { display: none !important; }
.mention-item { display: flex; align-items: center; gap: 8px; background: none; border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; font: inherit; font-size: 14px; color: var(--txt); text-align: left; width: 100%; white-space: nowrap; overflow: hidden; }
.mention-item:hover { background: var(--card2); }
.mention-item img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.mention-item .v-badge { margin-left: 2px; font-style: normal; font-size: 12px; flex: none; }

/* # 话题联想 */
.tag-pop .tag-item { justify-content: flex-start; }
.tag-item .tag-hash { color: var(--brand1); font-weight: 800; flex: none; }
.tag-item .tag-name { font-weight: 600; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tag-item .tag-count { margin-left: auto; color: var(--mut); font-size: 12px; flex: none; padding-left: 8px; }

/* ---------- 帖子已删/违规提示页 ---------- */
.post-gone { text-align: center; padding: 40px 20px; }
.post-gone .pg-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--card2); display: flex; align-items: center; justify-content: center; color: var(--mut); }
.post-gone .pg-icon .ic { width: 26px; height: 26px; }
.post-gone .pg-icon .mi { width: 30px; height: 30px; }

/* ---------- 图片放大预览（灯箱） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,7,5,.94);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: zoom-out; animation: lbFade .18s ease;
}
@keyframes lbFade { from { opacity: 0; } }
.lightbox img {
  max-width: 92vw; max-height: 82vh; border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0,0,0,.6); transition: transform .15s ease;
  transform-origin: center center; cursor: zoom-in; user-select: none;
  touch-action: none; will-change: transform;
}
.lightbox.zoomed img { cursor: grab; transition: none; }
.lightbox small { color: #b9a79a; margin-top: 12px; font-size: 12px; pointer-events: none; }
/* 多图切换计数：右上角悬浮「2 / 5」 */
.lightbox .lb-count {
  position: absolute; top: 14px; right: 16px; color: #fff; font-size: 13px; font-weight: 600;
  background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: 20px; pointer-events: none;
}
.lb-fail {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  max-width: 80vw; text-align: center; font-size: 14px; line-height: 1.7; font-weight: 600;
  color: #ffb08a; text-decoration: underline; padding: 14px 18px; border-radius: 12px;
  background: rgba(255,107,61,.14); border: 1px solid rgba(255,107,61,.4);
}

/* ---------- 表情面板 ---------- */
.emoji-pop {
  position: absolute; z-index: 210; width: 268px; padding: 8px;  display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,.3); animation: popIn .14s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.emoji-pop button {
  border: 0; background: none; cursor: pointer; padding: 5px 0;
  font-size: 19px; line-height: 1; border-radius: 8px;
  transition: background .12s ease, transform .12s ease;
}
.emoji-pop button:hover { background: var(--card2); transform: scale(1.16); }
.post-gone h3 { margin: 0 0 8px; font-size: 17px; }
.post-gone .pg-acts { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ---------- 性别：设置页选项 + 主页小标签 ---------- */
.g-pick { display: flex; gap: 8px; margin: 2px 0 10px; }
.g-pick label { flex: 1; }
.g-pick input { position: absolute; opacity: 0; pointer-events: none; }
.g-pick span { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 0;
               border-radius: 10px; font-size: 14px; color: var(--mut); background: var(--card2);
               border: 1px solid var(--line);
               transition: background .15s ease, color .15s ease, border-color .15s ease; }
.g-pick .g-ic { width: 16px; height: 16px; vertical-align: 0; }
.g-pick input:checked + span .g-ic { filter: brightness(0) invert(1); }
.g-pick input:checked + span { color: #fff; background: var(--brand1); border-color: transparent; font-weight: 600; }
.g-pick input:focus-visible + span { outline: 2px solid var(--brand1); outline-offset: 2px; }
.g-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px 1px 5px; border-radius: 7px;
         font-size: 11px; font-weight: 600; color: var(--mut); background: var(--card2);
         border: 1px solid var(--line); }
.g-tag .g-ic { width: 15px; height: 15px; vertical-align: 0; }
.pf-count { text-decoration: none; color: inherit; }
.pf-count:hover { text-decoration: underline; }
.pf-count b { color: var(--txt); }

/* ==================================================================
   动效层 v2.5
   统一节奏曲线、入场、按压、悬浮、图片缩放、灯箱过渡。
   原则：短、轻、有物理感；不做夸张弹跳。全部尊重系统的「减弱动态效果」。
   ================================================================== */
:root {
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --ease-back: cubic-bezier(.34,1.3,.64,1);
  --dur-1: .14s;   /* 即时反馈 */
  --dur-2: .24s;   /* 常规过渡 */
  --dur-3: .42s;   /* 入场 */
}

/* 页面本身淡入，避免首屏「啪」一下跳出来 */
body { animation: pageIn .34s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; } }

/* 统一的入场：轻微上浮 + 极小的缩放，比单纯 fade 更有质感 */
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.994); }
  to   { opacity: 1; transform: none; }
}
.card, .post, .hero { animation: riseIn var(--dur-3) var(--ease-out) both; }
/* 列表轻微错峰，最多 6 档，再多就没有节奏感只剩拖沓 */
.post:nth-child(1) { animation-delay: 0ms; }
.post:nth-child(2) { animation-delay: 40ms; }
.post:nth-child(3) { animation-delay: 80ms; }
.post:nth-child(4) { animation-delay: 120ms; }
.post:nth-child(5) { animation-delay: 155ms; }
.post:nth-child(n+6) { animation-delay: 185ms; }

/* 按压反馈：只改 transform/opacity，不动布局 */
.btn, .icon-btn, .chip, .m-tabs > a, .m-fab, .mm-item, .pa, .act-like {
  transition: transform var(--dur-1) var(--ease-out),
              background var(--dur-2) var(--ease-soft),
              color var(--dur-2) var(--ease-soft),
              border-color var(--dur-2) var(--ease-soft),
              box-shadow var(--dur-2) var(--ease-soft),
              filter var(--dur-2) var(--ease-soft);
  will-change: transform;
}
.btn:active, .icon-btn:active, .chip:active, .m-fab:active, .mm-item:active,
.pa:active, .act-like:active, .m-tabs > a:active { transform: scale(.965); }
.m-fab:active { transform: scale(.94); }
.btn-primary:active { filter: brightness(.97); box-shadow: 0 3px 10px rgba(255,107,61,.28); }

/* 悬浮（只在真有指针的设备上生效，触屏不会误触发） */
@media (hover: hover) and (pointer: fine) {
  .card, .post { transition: border-color var(--dur-2) var(--ease-soft),
                             transform var(--dur-2) var(--ease-out),
                             box-shadow var(--dur-2) var(--ease-out); }
  .post:hover, .card:hover { transform: translateY(-2px);
    box-shadow: 0 10px 28px -14px rgba(0,0,0,.55); }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,107,61,.34); }
  .p-media img:hover, .c-media img:hover { transform: scale(1.045); }
  .mm-item:hover { transform: translateX(2px); }
  .m-tabs > a:hover .mi { filter: none; }
}

/* 键盘可达性：只在键盘聚焦时出现描边，鼠标点击不闪 */
:focus-visible { outline: 2px solid var(--brand1); outline-offset: 2px; border-radius: 6px; }

/* 灯箱：改为「轻微放大 + 淡入」，比纯淡入高级很多 */
@keyframes lbIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to   { opacity: 1; }
}
@keyframes lbImgIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: none; }
}
.lightbox { animation: lbIn .2s var(--ease-out) both; }
.lightbox img { animation: lbImgIn .26s var(--ease-back) both; }

/* 私信气泡入场（只影响新增节点，不会让已有消息反复闪） */
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.dm-msg { animation: bubbleIn .26s var(--ease-out) both; }

/* 加载更多：骨架条微光，替代死板的「加载中…」 */
@keyframes shimmer { from { background-position: -220px 0; } to { background-position: 220px 0; } }
.skeleton {
  height: 12px; border-radius: 8px; margin: 8px 0;
  background: linear-gradient(90deg, var(--card2) 25%, var(--line) 37%, var(--card2) 63%);
  background-size: 440px 100%; animation: shimmer 1.25s linear infinite;
}

/* 主题切换时颜色平滑过渡，而不是硬切 */
body, .card, .post, .m-head, .m-tabs, input, textarea, select {
  transition: background-color .28s var(--ease-soft), color .28s var(--ease-soft),
              border-color .28s var(--ease-soft);
}
html { scroll-behavior: smooth; }

/* 尊重系统设置：关掉动效就真的关掉 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  body { animation: none; }
}

/* ---------- 触屏：评论区的删除 / 举报要看得见也点得中 ---------- */
@media (hover: none), (pointer: coarse) {
  .c-acts { gap: 4px; }
  .c-acts .icon-btn { width: 32px; height: 32px; opacity: 1; }
  .c-acts .icon-btn .ic { width: 17px; height: 17px; }
  .c-head { flex-wrap: wrap; row-gap: 2px; }
}
@media (max-width: 560px) {
  .c-acts .icon-btn { width: 34px; height: 34px; }
}

/* ---------- 评论回复 / 楼主标识（v2.4.6） ---------- */
/* 楼主用皇冠图标，不用文字 */
.c-op { display: inline-flex; align-items: center; margin-left: 2px; color: var(--warn); flex: none; }
.c-op .ic-op { width: 13px; height: 13px; fill: rgba(242,179,61,.16); stroke-width: 1.9; }

.c-replies { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--line); }
.comment.is-reply { padding: 8px 0; border-top: 1px solid var(--line); }
.comment.is-reply:first-child { border-top: 0; padding-top: 2px; }
.comment.is-reply .c-text { font-size: 13.5px; }

.c-target { color: var(--link); font-weight: 600; text-decoration: none; }
.c-target:hover { text-decoration: underline; }
.c-target-sep { color: var(--mut); }

.c-reply-slot:empty { display: none; }
.c-reply-form { margin-top: 8px; }
.c-reply-form textarea {
  width: 100%; height: 76px; padding: 8px 10px; font: inherit; font-size: 13.5px;
  color: var(--txt); background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  resize: none; transition: border-color .18s, box-shadow .18s;
}
.c-reply-form textarea:focus { outline: none; border-color: var(--brand1); box-shadow: 0 0 0 3px rgba(255,107,61,.12); }
.c-reply-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------- 侧边导航分组标题（v2.4.7） ---------- */
.nav-sec {
  font-size: 11px; letter-spacing: .06em; color: var(--mut); opacity: .8;
  margin: 10px 10px 2px; line-height: 1.4;
}
.nav-sec:first-child { margin-top: 0; }

@media (max-width: 560px) {
  .c-replies { padding-left: 8px; }
  .comment.is-reply { padding: 7px 0; }
  .c-reply-form textarea { font-size: 14px; }   /* 小于 16px iOS 会放大页面，14 足够 */
}

/* ---------- @ 提及：底部弹出选择用户（v2.4.7） ---------- */
.at-mask {
  position: fixed; inset: 0; z-index: 92; background: rgba(12,8,5,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeUp .18s ease;
}
.at-sheet {
  width: 100%; max-width: 520px; max-height: 62vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-bottom: none;
  border-radius: 20px 20px 0 0; padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 34px rgba(0,0,0,.32);
  animation: sheetUp .24s cubic-bezier(.22,.61,.36,1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.at-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 8px; }
.at-head b { font-size: 14px; }
.at-list { display: flex; flex-direction: column; gap: 2px; }
.at-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 8px; border-radius: 12px; background: none; border: none;
  font: inherit; color: var(--txt); text-align: left; cursor: pointer;
  transition: background var(--dur-1, .14s) ease;
}
.at-row:hover, .at-row:active { background: var(--card2); }
.at-ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card2); }
.at-name { font-weight: 600; font-size: 14px; }
.at-row .at-v { width: 15px; height: 15px; flex: none; }
body:has(.at-mask) { overflow: hidden; }

/* ---------- 评论点赞 / 复制 / 置顶 / 排序（v2.4.8） ---------- */
.c-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-topbar .sec-title { margin: 0; }
.c-sort { display: flex; gap: 4px; }
.c-sort a {
  padding: 5px 12px; border-radius: 14px; font-size: 13px; color: var(--mut);
  border: 1px solid transparent; transition: all .16s;
}
.c-sort a.on { background: var(--card); color: var(--txt); border-color: var(--line); box-shadow: var(--shadow); }
.c-acts { flex-wrap: wrap; }
.c-like, .c-like-ro {
  display: inline-flex; align-items: center; gap: 3px; min-width: 34px;
  font-size: 12px; color: var(--mut);
}
.c-like .ic, .c-like-ro .ic { width: 15px; height: 15px; }
.c-like.on { color: var(--like); }
.c-like.on .ic { color: var(--like); fill: currentColor; }
.c-like-n { font-style: normal; font-size: 12px; }
.c-like:not(.on) .ic { transition: transform .16s; }
.c-like:active .ic { transform: scale(1.22); }
/* 「贴主觉得很赞」：楼主给这条评论点过赞时的小徽章 */
.c-op-like {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px 2px 7px; border-radius: 999px;
  background: rgba(255,107,61,.12); border: 1px solid rgba(255,107,61,.24);
  color: var(--brand1);
  font-size: 11.5px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.c-op-like .ic { width: 12px; height: 12px; color: var(--brand1); }
/* 评论 IP 属地（像 B 站那样的小灰字） */
.c-ip { margin-top: 5px; font-size: 12px; color: var(--sub, #a3968b); line-height: 1.4; }
.c-pin-form { display: inline; }
.c-pin-form .icon-btn.on { color: var(--brand1); }
.c-pin { display: inline-flex; color: var(--brand1); }
.c-pin .ic-pin, .c-pin .ic { width: 13px; height: 13px; }
.comment.is-top { background: color-mix(in srgb, var(--brand1) 5%, transparent); border-radius: 12px; }
.c-copy.done { color: var(--ok); }

/* ---------- 手机版二级菜单（吸顶筛选） ---------- */
.m-subs {
  position: sticky; top: var(--m-head-h, 52px); z-index: 40;
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 12px; margin: 0 -12px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.m-subs::-webkit-scrollbar { display: none; }
.m-subs a {
  flex: none; padding: 6px 14px; border-radius: 16px; font-size: 13.5px; font-weight: 600;
  color: var(--mut); border: 1px solid transparent; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
}
.m-subs a.on { color: var(--txt); background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
@media (hover: none), (pointer: coarse) {
  .c-acts .icon-btn { width: 32px; height: 32px; opacity: 1; }
  .c-like { min-width: 40px; height: 32px; }
}

/* 复制成功等轻提示 */
.ui-toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 120; padding: 9px 16px; border-radius: 14px; font-size: 13px;
  background: color-mix(in srgb, var(--txt) 88%, transparent); color: var(--bg);
  box-shadow: 0 8px 24px rgba(0,0,0,.28); animation: fadeUp .18s ease;
}

/* ---------- 滑块拼图验证码（v2.4.9） ---------- */
.cap-slider { margin: 4px 0 14px; }
.cap-stage {
  position: relative; width: 100%; max-width: 320px; aspect-ratio: 2 / 1;
  border-radius: 12px; overflow: hidden; background: var(--card2);
  border: 1px solid var(--line); user-select: none;
}
.cap-bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap-piece {
  position: absolute; left: 0; width: 16.25%; aspect-ratio: 1 / 1; height: auto;
  filter: drop-shadow(0 3px 7px rgba(0,0,0,.4)); pointer-events: none;
}
.cap-hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-size: 11px; color: #fff; background: rgba(0,0,0,.34);
  padding: 3px 9px; border-radius: 8px; white-space: nowrap;
}
.cap-bar { margin-top: 10px; max-width: 320px; }
.cap-track {
  position: relative; height: 40px; border-radius: 20px;
  background: var(--card2); border: 1px solid var(--line);
  overflow: hidden; touch-action: none;
}
.cap-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: color-mix(in srgb, var(--brand1) 26%, transparent);
}
.cap-handle {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 20px;
  background: var(--grad); color: #fff; cursor: grab;
  box-shadow: 0 4px 12px rgba(0,0,0,.22); touch-action: none;
}
.cap-handle .ic { transform: rotate(180deg); }
.cap-tip {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12.5px; color: var(--mut); pointer-events: none;
}
.cap-msg { font-size: 12.5px; color: var(--danger); margin: 8px 0 0; }
.cap-slider.ok .cap-track { border-color: var(--ok); }
.cap-slider.ok .cap-tip { color: var(--ok); font-weight: 600; }
.cap-slider.bad .cap-track { border-color: var(--danger); animation: capShake .3s; }
@keyframes capShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.resend-row { flex-wrap: wrap; }
.resend-row .cap-slider { flex: 1 0 100%; }

/* ---------- 反馈截图「上传中」占位 ---------- */
.fb-thumb.uploading {
  display: grid; place-items: center; width: 72px; height: 72px;
  border-radius: 8px; border: 1px dashed var(--line); background: var(--card2);
}
.fb-loading { font-size: 11px; color: var(--mut); font-style: normal; }

/* ---------- 分享到私信好友（自定义底部弹层） ---------- */
.share-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(12,8,5,.62);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
}
.share-panel {
  width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line);
  border-bottom: 0; border-radius: 18px 18px 0 0; padding: 16px; box-sizing: border-box;
  box-shadow: var(--shadow); animation: shareUp .22s ease;
}
@keyframes shareUp { from { transform: translateY(48px); opacity: .4; } to { transform: none; opacity: 1; } }
.share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.share-head b { font-size: 15px; color: var(--txt); }
.share-list { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 14px; -webkit-overflow-scrolling: touch; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 62px; cursor: pointer; border: none; background: none; padding: 0; }
.share-item:hover .share-name { color: var(--brand1); }
.share-ava { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--card2); flex: none; }
.share-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-name { font-size: 12px; color: var(--txt); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-empty { color: var(--mut); font-size: 13px; padding: 8px 0 16px; }
.share-empty .lnk { color: var(--brand1); }
.share-foot { display: flex; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.share-foot button { flex: 1; }

/* ==================== 樱花特效（网页版） ==================== */
#sakura {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 30;
}

/* ==================== 圣诞节彩蛋 ==================== */
.christmas-egg {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 15, 25, 0.55);
  backdrop-filter: blur(3px);
}
.ce-card {
  position: relative; width: min(88vw, 360px);
  background: linear-gradient(160deg, #14532d, #166534 55%, #0f3d22);
  border: 2px solid #fde68a; border-radius: 18px;
  padding: 26px 22px 20px; text-align: center; color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.ce-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: 0; color: #fde68a; font-size: 20px; line-height: 1;
  cursor: pointer; padding: 6px;
}
.ce-tree { font-size: 56px; line-height: 1; animation: ce-bounce 1.4s ease-in-out infinite; }
.ce-card h3 { color: #fde68a; margin: 10px 0 6px; font-size: 22px; }
.ce-card p { color: #fef9c3; font-size: 14px; margin: 0 0 12px; }
.ce-snow { position: absolute; inset: 0; pointer-events: none; }
.ce-snow i {
  position: absolute; top: -18px; color: #fff; opacity: 0.9;
  animation: ce-fall linear infinite;
}
@keyframes ce-fall {
  0%   { transform: translateY(-20px) rotate(0deg); }
  100% { transform: translateY(420px) rotate(300deg); }
}
@keyframes ce-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .ce-tree { animation: none; }
  .ce-snow i { animation: none; }
}

/* ==================== 灯箱长按保存菜单 ==================== */
.lb-save-menu {
  position: fixed; left: 50%; bottom: 16vh; transform: translateX(-50%);
  z-index: 10001; width: 224px;
  background: rgba(28, 32, 38, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.lb-save-menu button {
  display: block; width: 100%; padding: 13px 16px;
  background: none; border: 0; cursor: pointer;
  color: #fff; font-size: 14px; text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.lb-save-menu button:last-child { border-bottom: 0; }
.lb-save-menu .lb-save-go { color: #ffb3d1; font-weight: bold; }
