/* ==========================================================================
   友龙论坛 · 移动端样式表（v2 简洁化）
   扁平深色：背景 #0b1120 / 卡片 #131a2b / 描边 rgba(255,255,255,.06) / 主色 #38bdf8
   无彩色发光、无渐变堆砌；移动优先，桌面端居中显示 420px 手机框
   ========================================================================== */

/* ------------------------------ 变量 ------------------------------ */
:root {
  --bg: #0b1120;
  --bg-deep: #070a11;
  --card: #131a2b;
  --card-2: #171f33;
  --input-bg: #0e1524;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --text: #e6edf7;
  --text-2: #a3b0c6;
  --muted: #7f8ca3;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.1);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.1);
  --ok: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --appbar-h: 48px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

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

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

::selection {
  background: rgba(56, 189, 248, 0.25);
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.stage {
  display: none;
}

.is-hidden {
  display: none !important;
}

.ic {
  display: block;
  flex: none;
}

.ic.fill {
  fill: currentColor;
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------ 手机外框 ------------------------------ */
.device {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 640px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-deep);
  }

  .device {
    width: 420px;
    max-width: 420px;
    height: min(860px, calc(100dvh - 48px));
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  }
}

/* ------------------------------ 顶部标题栏 ------------------------------ */
.appbar {
  position: relative;
  z-index: 20;
  flex: none;
  padding-top: var(--safe-top);
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.ab-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--appbar-h);
  padding: 0 6px;
}

.ab-title {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.ab-title-text {
  font-size: 16px;
  font-weight: 500;
  color: #e9eff8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ab-sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 1px;
}

.ab-spacer {
  width: 36px;
  flex: none;
}

.ab-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}

.ab-btn:active {
  background: rgba(255, 255, 255, 0.06);
}

.ab-btn.accent {
  width: auto;
  padding: 0 8px;
  font-size: 13px;
  color: var(--accent);
}

.ab-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  min-width: 36px;
  justify-content: flex-end;
}

.ab-text-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 8px;
  border-radius: 8px;
}

.ab-text-btn:active {
  background: rgba(255, 255, 255, 0.05);
}

/* 品牌（首页） */
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 4px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #06121d;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #eaf1fb;
}

/* 搜索页标题栏 */
.ab-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 8px 0 10px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  color: var(--muted);
}

.ab-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

.ab-search input::placeholder {
  color: var(--muted);
}

.ab-clear {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-2);
}

/* 全局请求进度条 */
.loading-bar {
  position: absolute;
  top: calc(var(--safe-top) + var(--appbar-h));
  left: 0;
  right: 0;
  height: 2px;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  background: var(--accent);
  transition: opacity 0.2s;
  animation: bar-pulse 1.2s ease-in-out infinite;
}

.loading-bar.on {
  opacity: 1;
}

@keyframes bar-pulse {
  0%,
  100% {
    transform: scaleX(0.15);
    transform-origin: left;
  }
  50% {
    transform: scaleX(0.6);
    transform-origin: left;
  }
}

/* ------------------------------ 账号状态条 ------------------------------ */
.status-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.45;
  border-bottom: 1px solid transparent;
  animation: fade-in 0.2s ease both;
}

.status-bar.pending {
  background: var(--warn-soft);
  color: #e2c17b;
  border-color: rgba(251, 191, 36, 0.18);
}

.status-bar.banned {
  background: var(--danger-soft);
  color: #eda0a0;
  border-color: rgba(248, 113, 113, 0.2);
}

/* ------------------------------ 滚动区域 ------------------------------ */
.view {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.scroll-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 14px;
}

/* 下拉刷新 */
.pull {
  flex: none;
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  transition: height 0.2s ease;
}

.pull.dragging {
  transition: none;
}

.pull-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  display: none;
}

.pull.loading .pull-spinner {
  display: block;
  animation: spin 0.7s linear infinite;
}

.pull.ready {
  color: var(--accent);
}

/* ------------------------------ 底部 Tab ------------------------------ */
.tabbar {
  position: relative;
  z-index: 20;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 4px 0 calc(6px + var(--safe-bottom));
  background: #0d1320;
  border-top: 1px solid var(--line);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0 2px;
  color: var(--muted);
  transition: color 0.15s;
}

.tab-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
}

.tab-label {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.tab.active {
  color: var(--accent);
}

.tab:active .tab-ico {
  opacity: 0.7;
}

.tab-badge {
  position: absolute;
  top: -2px;
  right: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fb7185;
  box-shadow: 0 0 0 2px #0d1320;
}

/* ------------------------------ 通用组件 ------------------------------ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 头像 */
.avatar {
  position: relative;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  color: #06121d;
  font-weight: 700;
  font-size: 14px;
  background: #2a3b55;
  user-select: none;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.av-0 {
  background: #7dd3fc;
}
.av-1 {
  background: #a5b4fc;
}
.av-2 {
  background: #6ee7b7;
}
.av-3 {
  background: #fcd34d;
}
.av-4 {
  background: #fda4af;
}
.av-5 {
  background: #c4b5fd;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--card-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s, background 0.15s;
  user-select: none;
}

.btn:active {
  opacity: 0.8;
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06121d;
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  background: transparent;
  border-color: rgba(248, 113, 113, 0.35);
  color: #f0a3a3;
}

.btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-xs {
  height: 26px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

/* 分类胶囊（首页分类 tab） */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s;
}

.chip.active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.35);
  background: var(--accent-soft);
}

.chip:active {
  opacity: 0.75;
}

/* 筛选行 / 分段控件 */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}

.filter-info {
  font-size: 11px;
  color: var(--muted);
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s;
}

.seg-btn.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* 角标（置顶 / 审核中 / 未通过） */
.badge {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge-pin {
  color: #9fc7e0;
  border-color: rgba(56, 189, 248, 0.28);
}

.badge-pending {
  color: #d8b570;
  border-color: rgba(251, 191, 36, 0.3);
}

.badge-rejected {
  color: #e39393;
  border-color: rgba(248, 113, 113, 0.3);
}

/* ------------------------------ 帖子列表卡片 ------------------------------ */
.post-card {
  display: flex;
  gap: 10px;
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.15s, background 0.15s;
}

.post-card:active {
  background: #151d30;
}

@media (hover: hover) {
  .post-card:hover {
    border-color: var(--line-2);
  }
}

.post-card.is-pinned {
  border-color: rgba(56, 189, 248, 0.18);
}

.pc-main {
  flex: 1;
  min-width: 0;
}

.pc-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pc-title {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: #e9eff8;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-excerpt {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.pc-meta-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-cat {
  color: #9fc7e0;
  flex: none;
}

.pc-sep {
  color: rgba(255, 255, 255, 0.18);
}

.pc-author {
  color: #93a3ba;
  flex: none;
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.pc-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
  background: none;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

.pc-stat.liked {
  color: var(--accent);
}

/* 卡片右侧缩略图（88px） */
.pc-media {
  flex: none;
  width: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: center;
}

.pc-media img {
  width: 88px;
  background: #1a2336;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.pc-media-1 img {
  height: 88px;
}

.pc-media-2 .pc-media-item {
  position: relative;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
}

.pc-media-2 img {
  height: 42px;
  border-radius: 8px;
}

.pc-media-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 10, 20, 0.55);
  color: #dbe6f4;
  font-size: 12px;
  font-weight: 600;
}

/* 列表状态 */
.list-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 6px;
  font-size: 11px;
  color: var(--muted);
}

.list-end::before,
.list-end::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--line-2);
}

.loading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
}

/* 空状态 / 错误态 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 56px 32px;
  text-align: center;
  animation: fade-in 0.25s ease both;
}

.empty-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 4px;
}

.empty-title {
  font-size: 14px;
  font-weight: 500;
  color: #c3cfdf;
}

.empty-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 250px;
}

.empty .btn {
  margin-top: 6px;
}

/* 骨架屏 */
.sk {
  position: relative;
  overflow: hidden;
  background: #1a2336;
  border-radius: 6px;
}

.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.sk-card {
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.sk-line {
  height: 11px;
  margin-bottom: 9px;
}

.sk-line.w40 {
  width: 40%;
}
.sk-line.w55 {
  width: 55%;
}
.sk-line.w70 {
  width: 70%;
}
.sk-line.w80 {
  width: 80%;
}
.sk-line.w90 {
  width: 90%;
}

.sk-chip {
  width: 60px;
  height: 18px;
  margin-bottom: 12px;
}

.sk-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.sk-avatar {
  width: 21px;
  height: 21px;
  border-radius: 50%;
}

.sk-line.sm {
  height: 9px;
  width: 70px;
  margin: 0;
}

/* ------------------------------ 帖子详情 ------------------------------ */
.detail-main {
  margin: 10px 12px 0;
  padding: 14px;
}

.detail-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-title {
  margin: 8px 0 10px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  color: #eef4fc;
  word-break: break-word;
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-author .avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.da-info {
  flex: 1;
  min-width: 0;
}

.da-name {
  font-size: 13px;
  font-weight: 500;
  color: #dbe6f4;
}

.da-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.da-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.detail-content {
  padding: 12px 0 2px;
  font-size: 15px;
  line-height: 1.8;
  color: #d3deec;
  word-break: break-word;
  white-space: pre-wrap;
}

.detail-content:empty {
  display: none;
}

.detail-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

.detail-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 审核状态条 */
.review-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 12.5px;
  line-height: 1.5;
}

.review-banner.pending {
  background: var(--warn-soft);
  border-color: rgba(251, 191, 36, 0.2);
  color: #e2c17b;
}

.review-banner.rejected {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.22);
  color: #eda0a0;
}

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

.review-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.review-desc {
  opacity: 0.85;
  word-break: break-word;
}

/* 图片九宫格 */
.img-grid {
  display: grid;
  gap: 4px;
  margin: 12px 0 4px;
  grid-template-columns: repeat(3, 1fr);
}

.img-grid[data-n="1"] {
  grid-template-columns: 1fr;
}

.img-grid[data-n="1"] .img-cell {
  aspect-ratio: 4 / 3;
  max-height: 320px;
}

.img-grid[data-n="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.img-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #1a2336;
  border: 1px solid var(--line);
  padding: 0;
}

.img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-cell:active {
  opacity: 0.85;
}

/* 评论 */
.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #dbe6f4;
}

.comments-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 1px 7px;
}

.comment-list {
  margin: 0 12px;
  overflow: hidden;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.comment:last-child {
  border-bottom: none;
}

.comment .avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

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

.c-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.c-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #cfdcec;
}

.c-time {
  font-size: 10.5px;
  color: var(--muted);
}

.c-text {
  margin: 4px 0 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #d3deed;
  word-break: break-word;
  white-space: pre-wrap;
}

.c-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: var(--muted);
}

.c-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11.5px;
  padding: 2px 0;
}

.c-act.liked {
  color: var(--accent);
}

.replies {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply {
  display: flex;
  gap: 8px;
}

.reply .avatar {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.reply .c-text {
  font-size: 13px;
  margin: 3px 0 4px;
}

.reply .c-name {
  font-size: 12px;
}

/* 底部评论输入条 */
.comment-bar {
  position: relative;
  flex: none;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: #0d1320;
  border-top: 1px solid var(--line);
}

.cb-action {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 36px;
  height: 38px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 9.5px;
}

.cb-action.active {
  color: #fb7185;
}

.cb-action.active.star {
  color: var(--warn);
}

.cb-action:active {
  background: rgba(255, 255, 255, 0.05);
}

.cb-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 5px 0 12px;
  border-radius: 9px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
}

.cb-input-wrap.is-login {
  justify-content: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 0;
}

.cb-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}

.cb-input::placeholder {
  color: var(--muted);
}

.cb-send {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #06121d;
}

.cb-send:disabled {
  opacity: 0.4;
}

.cb-reply-tip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 100%;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  color: var(--text-2);
}

/* ------------------------------ 表单 / 登录注册 ------------------------------ */
.form-page {
  padding: 4px 20px 30px;
  animation: fade-in 0.25s ease both;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 0 18px;
  text-align: center;
}

.auth-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #06121d;
  background: var(--accent);
  margin-bottom: 14px;
}

.auth-title {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 600;
  color: #edf3fb;
}

.auth-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.auth-card {
  padding: 18px;
  margin-top: 16px;
}

.field {
  margin-bottom: 14px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.field-label .hint {
  font-size: 10.5px;
  color: var(--muted);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color 0.15s;
}

.input-wrap:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
}

.input-wrap > svg {
  color: var(--muted);
  flex: none;
}

.input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
}

.input::placeholder {
  color: var(--muted);
}

textarea.input {
  width: 100%;
  min-height: 110px;
  height: auto;
  padding: 11px 12px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  resize: vertical;
  outline: none;
}

textarea.input:focus {
  border-color: rgba(56, 189, 248, 0.45);
}

.input-wrap .eye {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: 7px;
}

.input-wrap .eye:active {
  background: rgba(255, 255, 255, 0.05);
}

.form-error {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  margin-bottom: 13px;
  border-radius: 9px;
  background: var(--danger-soft);
  border: 1px solid rgba(248, 113, 113, 0.28);
  color: #fca5a5;
  font-size: 12.5px;
  line-height: 1.5;
  animation: shake 0.34s ease;
}

.form-tip {
  margin-top: 13px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

.form-tip a {
  color: var(--accent);
  font-weight: 500;
}

.form-note {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
}

.divider {
  height: 1px;
  margin: 16px 0 13px;
  background: var(--line);
}

/* 发帖 */
.compose-page {
  padding: 6px 16px 28px;
  animation: fade-in 0.25s ease both;
}

.compose-page .field {
  margin-bottom: 18px;
}

.compose-title-input {
  width: 100%;
  padding: 8px 0 10px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-2);
  outline: none;
  font-size: 18px;
  font-weight: 600;
  color: #eef4fc;
}

.compose-title-input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.compose-body {
  width: 100%;
  min-height: 190px;
  padding: 10px 0;
  background: none;
  border: none;
  outline: none;
  resize: none;
  font-size: 15px;
  line-height: 1.8;
  color: #d6e0ee;
}

.compose-body::placeholder {
  color: var(--muted);
}

.compose-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.count-warn {
  color: var(--warn);
}

/* 分类选择 */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-pick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 12.5px;
  transition: all 0.15s;
}

.cat-pick.active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--accent-soft);
}

/* 发帖图片 */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.upload-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
}

.upload-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-cell.uploading img {
  opacity: 0.35;
}

.u-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.u-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 17, 0.82);
  color: #fca5a5;
}

.upload-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  border: 1px dashed var(--line-2);
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
}

.upload-add:active {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent);
}

/* ------------------------------ 个人中心 ------------------------------ */
.profile-hero {
  margin: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  animation: fade-in 0.25s ease both;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-top .avatar {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 19px;
  font-weight: 600;
  color: #eef4fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-username {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.profile-bio {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}

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

.p-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.p-stat b {
  font-size: 17px;
  font-weight: 600;
  color: #eaf2fb;
  font-variant-numeric: tabular-nums;
}

.p-stat span {
  font-size: 10.5px;
  color: var(--muted);
}

/* 个人页分段 */
.seg-tabs {
  display: flex;
  margin: 12px 12px 8px;
  padding: 2px;
  border-radius: 9px;
  background: var(--card);
  border: 1px solid var(--line);
}

.seg-tab {
  flex: 1;
  height: 32px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.seg-tab.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* 菜单 */
.menu {
  margin: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.menu-row:last-child {
  border-bottom: none;
}

.menu-row:active {
  background: rgba(255, 255, 255, 0.03);
}

.menu-ico {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
}

.menu-ico.amber {
  color: var(--warn);
  background: var(--warn-soft);
}

.menu-ico.red {
  color: var(--danger);
  background: var(--danger-soft);
}

.menu-label {
  flex: 1;
  font-size: 14px;
  color: #dbe6f4;
}

.menu-value {
  font-size: 11.5px;
  color: var(--muted);
}

/* 未登录引导 */
.guest-card {
  margin: 12px;
  padding: 24px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}

.guest-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--line-2);
}

.guest-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.guest-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.guest-actions {
  display: flex;
  gap: 10px;
}

.guest-actions .btn {
  flex: 1;
}

/* ------------------------------ 通知 ------------------------------ */
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 6px;
}

.notif-summary {
  font-size: 12px;
  color: var(--muted);
}

.notif-summary b {
  color: var(--accent);
  font-weight: 600;
}

.notif-list {
  margin: 6px 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.notif {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.notif:last-child {
  border-bottom: none;
}

.notif.unread {
  background: rgba(56, 189, 248, 0.04);
}

.notif.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--accent);
}

.notif:active {
  background: rgba(255, 255, 255, 0.03);
}

.notif-ico {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
}

.notif-ico.like {
  color: #fb7185;
}

.notif-ico.comment,
.notif-ico.reply {
  color: #5eead4;
}

.notif-ico.system {
  color: var(--warn);
}

.notif-ico.ok {
  color: var(--ok);
}

.notif-ico.danger {
  color: var(--danger);
}

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

.notif-text {
  font-size: 13px;
  line-height: 1.55;
  color: #cfdcec;
  word-break: break-word;
}

.notif-text b {
  color: #eaf2fb;
  font-weight: 500;
}

.notif-time {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}

.notif-dot {
  flex: none;
  align-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------ 搜索 ------------------------------ */
.search-hint {
  padding: 4px 16px 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
}

.section-title .clear-btn {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px;
}

.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 11px;
  border-radius: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12px;
  max-width: 100%;
}

.recent-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.hot-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 11px;
  border-radius: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.16);
  color: #9fc7e0;
  font-size: 12px;
}

/* ------------------------------ 设置页 ------------------------------ */
.settings-block {
  margin: 12px;
}

.settings-block-title {
  padding: 2px 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.settings-card {
  padding: 14px;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-avatar-edit {
  position: relative;
  flex: none;
  background: none;
  border: none;
  padding: 0;
}

.setting-avatar-edit .avatar {
  width: 54px;
  height: 54px;
  font-size: 21px;
}

.setting-avatar-edit .cam {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent);
  color: #06121d;
  display: grid;
  place-items: center;
  border: 2px solid var(--card);
}

.setting-avatar-edit .avatar-loading {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 17, 0.7);
  z-index: 2;
}

.setting-avatar-edit.uploading {
  pointer-events: none;
}

.setting-avatar-edit.uploading .cam {
  display: none;
}

/* ------------------------------ 管理后台 ------------------------------ */
.admin {
  padding: 2px 0 12px;
  animation: fade-in 0.25s ease both;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
}

.admin-tab {
  flex: 1;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
}

.admin-tab.active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.35);
  background: var(--accent-soft);
}

.tab-count {
  min-width: 17px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #e2c17b;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 2px 12px 10px;
}

.stat-card {
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.stat-card b {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: #eef4fc;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-card span {
  font-size: 11.5px;
  color: var(--muted);
}

.stat-card.amber b {
  color: #e2c17b;
}

.stat-card.red b {
  color: #eda0a0;
}

.admin-section-title {
  padding: 6px 14px 8px;
  font-size: 12px;
  color: var(--muted);
}

.admin-quick {
  margin: 0 12px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.admin-quick-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  font-size: 13.5px;
}

.admin-quick-row:last-child {
  border-bottom: none;
}

.admin-quick-row:active {
  background: rgba(255, 255, 255, 0.03);
}

.admin-quick-label {
  flex: 1;
}

.admin-quick-value {
  font-size: 12px;
  color: var(--muted);
}

.admin-hint {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--muted);
}

.admin-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 12px 10px;
  flex-wrap: wrap;
}

.admin-filter-label {
  font-size: 13px;
  color: var(--text-2);
}

.admin-filters {
  display: flex;
  gap: 6px;
}

.admin-filter {
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
}

.admin-filter.active {
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.35);
  background: var(--accent-soft);
}

.admin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
}

.admin-row-main {
  flex: 1;
  min-width: 0;
}

.admin-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: #e9eff8;
  word-break: break-word;
}

.admin-row-title a {
  color: #e9eff8;
}

.admin-sub {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

.admin-row-meta {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  word-break: break-all;
}

.admin-row-text {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 60px;
  overflow: hidden;
}

.admin-reason {
  margin-top: 4px;
  font-size: 11.5px;
  color: #eda0a0;
}

.admin-row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-self: center;
}

.admin-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.admin-thumb {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1a2336;
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------ 浮层 / 图片预览 / 弹窗 ------------------------------ */
.overlay-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 12, 0.94);
  animation: fade-in 0.16s ease both;
}

.viewer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.viewer img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}

.viewer-close {
  position: absolute;
  top: calc(16px + var(--safe-top));
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(19, 26, 43, 0.9);
  color: #e2e8f0;
  border: 1px solid var(--line-2);
  z-index: 3;
}

.viewer-counter {
  position: absolute;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(19, 26, 43, 0.9);
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--text-2);
  z-index: 3;
}

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(19, 26, 43, 0.9);
  border: 1px solid var(--line-2);
  color: #e2e8f0;
  z-index: 3;
}

.viewer-nav.prev {
  left: 12px;
}

.viewer-nav.next {
  right: 12px;
}

/* 弹窗 */
.modal {
  pointer-events: auto;
  width: min(320px, calc(100vw - 52px));
  padding: 20px 18px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  animation: pop-in 0.18s ease both;
}

.modal-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.modal-desc {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  text-align: center;
}

.modal-input {
  width: 100%;
  min-height: 84px;
  padding: 10px 11px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: var(--input-bg);
  border: 1px solid var(--line-2);
  outline: none;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.modal-input:focus {
  border-color: rgba(56, 189, 248, 0.45);
}

.modal-input.shake {
  animation: shake 0.34s ease;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-actions .btn {
  flex: 1;
  height: 40px;
  font-size: 13.5px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  transform: translate(-50%, 10px);
  z-index: 200;
  max-width: min(78vw, 330px);
  padding: 10px 15px;
  border-radius: 9px;
  background: #1b2437;
  border: 1px solid var(--line-2);
  color: #e6edf7;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success {
  border-color: rgba(52, 211, 153, 0.3);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

/* ------------------------------ 动画 ------------------------------ */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------ 小屏微调 ------------------------------ */
@media (max-width: 359px) {
  .post-card {
    margin-left: 9px;
    margin-right: 9px;
    padding: 10px;
    gap: 8px;
  }

  .pc-media {
    width: 76px;
  }

  .pc-media img {
    width: 76px;
  }

  .pc-media-1 img {
    height: 76px;
  }

  .pc-media-2 .pc-media-item,
  .pc-media-2 img {
    height: 36px;
  }

  .tab-label {
    font-size: 9px;
  }

  .stat-card {
    padding: 10px;
  }
}
