/* ===========================================
   白葱社区 iMikufans Hub - v7 忠实还原封面
   浅紫粉 · 圆润 · 虚线圆按钮
   =========================================== */

@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/NotoSansSC-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/NotoSansSC-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/NotoSansSC-Bold.woff2") format("woff2");
}

:root {
  /* ===== v15 简星社区 clean 风格：白底 + 蓝主色 + 大圆角 + 大留白 ===== */
  --bg: #f5f6fa;          /* 极浅灰蓝白 */
  --bg-soft: #fafbfc;
  --bg-card: #ffffff;
  --fg: #1f2937;          /* 深灰文字 */
  --fg-strong: #111827;
  --fg-soft: #6b7280;
  --card: #ffffff;
  --card-2: #f9fafb;
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  /* 蓝色主色（替换紫色系 #7c69b8） */
  --accent: #4A90E2;      /* 蓝主色 */
  --accent-2: #3B82F6;    /* 深蓝 hover */
  --accent-3: #2563EB;    /* 渐变深端 */
  --accent-soft: #DBEAFE; /* 浅蓝底 */
  --accent-ink: #1E40AF;  /* 深蓝文字 */
  --link: #3B82F6;
  --warn-bg: #fef3c7;
  --warn-border: #fcd34d;
  --warn-fg: #92400e;
  --title-grad: linear-gradient(135deg, #4A90E2 0%, #3B82F6 100%);
  --capsule: #4A90E2;
  /* 圆角（加大） */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 24px;      /* 卡片 24px */
  --radius-xl: 32px;      /* 大容器 */
  --radius-pill: 999px;
  /* 阴影（去紫、去硬影、柔和） */
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 4px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.06);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.03), 0 8px 24px rgba(74,144,226,0.05);
  --topbar-h: 60px;
  --side-w: 340px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei",
    sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 80% -10%, rgba(255,255,255,0.55) 0%, transparent 55%),
    radial-gradient(900px 600px at 0% 10%, rgba(255,255,255,0.45) 0%, transparent 60%),
    linear-gradient(180deg, #ede6f5 0%, #e3dcef 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1,h2,h3,h4 { color: var(--fg-strong); line-height: 1.4; font-weight: 700; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--topbar-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center;
  padding: 0 22px; gap: 8px;
}
.topbar .brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; color: var(--fg-strong); font-size: 16px;
  margin-right: 24px; white-space: nowrap;
}
.topbar .brand .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--capsule);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(124,105,184,0.35);
}
.topbar nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.topbar nav a {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px; height: var(--topbar-h);
  color: var(--fg); font-size: 14px; white-space: nowrap;
  border-radius: 8px;
}
.topbar nav a:hover { color: var(--fg-strong); text-decoration: none; background: rgba(124,105,184,0.06); }
.topbar nav a.active { color: var(--accent-ink); font-weight: 500; }
.topbar nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--accent); border-radius: 2px 2px 0 0;
}
.topbar .spacer { flex: 1; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; border: none; background: transparent;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg);
}
.icon-btn:hover { background: rgba(124,105,184,0.10); color: var(--accent-ink); }

/* ===== 布局 ===== */
.app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 18px 60px;
}

/* ===== 首页 Hero（封面同款：封面图当背景，前景三圆按钮） ===== */
.hero-cover {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 18px;
  background: #e9e0f3;
  box-shadow: var(--shadow);
  height: 520px;
}
.hero-cover .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  display: block;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: flex-start;
  margin: 18px auto 22px;
  padding: 0 18px;
  flex-wrap: wrap;
}
.cir {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none; color: var(--accent-ink);
  cursor: pointer;
  transition: transform 0.15s;
}
.cir:hover { transform: translateY(-3px); text-decoration: none; }
.cir .ring {
  width: 96px; height: 96px;
  border: 2.5px dashed #a99dd0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(169,157,208,0.14);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cir:hover .ring {
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(124,105,184,0.20);
}
.cir .ring svg { width: 36px; height: 36px; color: #4a4068; }
.cir .label {
  font-size: 14px; font-weight: 700;
  color: var(--accent-ink);
  letter-spacing: 0.04em;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.card .head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 700; font-size: 15px; color: var(--fg-strong);
}
.card .head .more { font-size: 12.5px; font-weight: 400; color: var(--fg-soft); }
.card .body { padding: 16px 20px; }
.card .body.flush { padding: 0; }

/* ===== 侧栏 + 首页两列 ===== */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side .card { margin-bottom: 0; }
.side .intro { padding: 16px 18px 14px; }
.side .intro .logo-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.side .intro .logo-row .logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--capsule); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(124,105,184,0.3);
}
.side .intro .name { font-size: 15px; font-weight: 700; color: var(--fg-strong); }
.side .intro .domain { font-size: 12px; color: var(--fg-soft); }
.side .intro p { font-size: 12.5px; color: var(--fg); margin: 8px 0 0; line-height: 1.7; }
.side .intro .badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.side .intro .tag {
  font-size: 11.5px; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid #c8b9e3;
  border-radius: var(--radius-pill);
  padding: 2px 10px;
}
.side-login { display: flex; flex-direction: column; gap: 8px; }
.side-login input {
  width: 100%; padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.side-login input:focus { border-color: var(--accent); background: #fff; }
.side-auth-links {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 10px; font-size: 12.5px;
}
.side-auth-links .dot { color: var(--border); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 18px; height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, transform 0.05s;
  user-select: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(124,105,184,0.30); }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--fg); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--bg-soft); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { height: 32px; font-size: 12.5px; padding: 0 14px; }
.btn-block { width: 100%; }

/* ===== 提示 ===== */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; line-height: 1.6; }
.alert-warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-fg); }
.alert-info { background: var(--accent-soft); border: 1px solid #c8b9e3; color: var(--accent-ink); }
.alert-error { background: #fbecec; border: 1px solid #eec9c9; color: #9c3a3a; }

/* ===== 内容 tabs ===== */
.tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.75);
  position: sticky; top: var(--topbar-h); z-index: 90;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tabs .tab {
  position: relative;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--fg);
  cursor: pointer; white-space: nowrap;
}
.tabs .tab:hover { color: var(--fg-strong); }
.tabs .tab.active { color: var(--accent-ink); font-weight: 600; }
.tabs .tab.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
}
.tabs .right { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px 0; }

/* ===== 帖子卡 ===== */
.note {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(80,60,140,0.04);
}
.note .note-head { display: flex; align-items: flex-start; gap: 12px; }
.note .note-head .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff;
}
.note .note-head .av img { width: 100%; height: 100%; object-fit: cover; }
.note .note-head .who { min-width: 0; }
.note .note-head .who .name { font-weight: 700; color: var(--fg-strong); font-size: 14.5px; }
.note .note-head .who .uname { font-weight: 700; color: var(--fg-strong); font-size: 14.5px; }
.note .note-head .uname { font-weight: 700; color: var(--fg-strong); font-size: 14.5px; }
.note .note-head .who .name a { color: inherit; }
.note .note-head .who .handle { color: var(--fg-soft); font-size: 12.5px; }
.note .note-head .time { margin-left: auto; color: var(--fg-soft); font-size: 12px; flex-shrink: 0; }
.note .note-body { font-size: 14px; line-height: 1.8; color: var(--fg); padding: 8px 0 6px 56px; }
.note .note-body .quote {
  display: block; margin: 8px 0; padding: 8px 12px;
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
}
.note .note-body .quote .qwho { color: var(--link); font-weight: 600; display: block; margin-bottom: 2px; }
.note .media { margin: 6px 0 4px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.note .media img { border-radius: var(--radius-sm); }
.note .reactions { display: flex; gap: 6px; flex-wrap: wrap; padding-left: 56px; margin-top: 4px; }
.note .reaction { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-pill); padding: 2px 9px; }
.note .note-foot { display: flex; gap: 4px; align-items: center; padding: 6px 0 0 56px; color: var(--fg-soft); font-size: 12.5px; }
.note .note-foot .action {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; border-radius: 8px; cursor: pointer; min-width: 36px; justify-content: center;
}
.note .note-foot .action:hover { background: var(--bg-soft); color: var(--fg); }
.note .note-foot .action.react { color: #c2476a; }
.note .note-foot .action.react:hover { background: #fbeef2; color: #c2476a; }
.note .note-foot .action .ic { width: 17px; height: 17px; }

/* ===== 频道卡 ===== */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; padding: 18px; }
.ch-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  display: flex; flex-direction: column;
}
.ch-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.ch-card .cover {
  height: 100px;
  background: linear-gradient(135deg, #e0d4f0 0%, #c8b9e3 50%, #dcc6e8 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: var(--accent-ink);
  font-weight: 700;
  overflow: hidden;
}
.ch-card .cover img { max-height: 100%; width: auto; object-fit: cover; }
.ch-card .cover.has-img { background-size: cover; background-position: center; }
.ch-card .body { padding: 14px 16px; flex: 1; }
.ch-card .body .title { font-weight: 700; color: var(--fg-strong); font-size: 15px; margin-bottom: 4px; }
.ch-card .body .desc { font-size: 13px; color: var(--fg); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.ch-card .body .meta { font-size: 12px; color: var(--fg-soft); margin-top: 6px; }
.ch-card .stats {
  display: flex; gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--border-soft);
  color: var(--fg-soft); font-size: 12.5px;
}
.ch-card .stats .stat + .stat { border-left: 1px solid var(--border-soft); padding-left: 14px; }

/* ===== 公告 ===== */
.ann-list { padding: 18px; }
.ann-item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.ann-item.warn { background: #fdfaf2; border-color: var(--warn-border); }
.ann-item .head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg-strong); margin-bottom: 10px; font-size: 14.5px; }
.ann-item .head .badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  padding: 1px 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid #c8b9e3;
}
.ann-item.warn .head .badge { background: #faeed2; color: #8a6d1f; border-color: #ecd9a0; }
.ann-item .body { font-size: 13.5px; line-height: 1.8; color: var(--fg); white-space: pre-wrap; }
.ann-item .body a { color: var(--link); }
.ann-item .meta { font-size: 12px; color: var(--fg-soft); margin-top: 10px; }

/* ===== 关于页 ===== */
.about-hero {
  padding: 28px 24px;
  background: linear-gradient(135deg, #8a7bc7 0%, #a89bd6 55%, #c8b9e8 100%);
  color: #fff;
}
.about-hero .b1 { font-size: 24px; font-weight: 800; letter-spacing: 0.04em; }
.about-hero .b2 { font-size: 15px; opacity: 0.92; margin-top: 2px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 14px; padding: 18px 22px; }
.kv dt { color: var(--fg-soft); font-size: 13px; }
.kv dd { margin: 0; color: var(--fg); font-size: 13.5px; word-break: break-all; }
.kv dd a { color: var(--link); }
.link-rows { padding: 0 22px 18px; }
.link-rows .btn { width: 100%; justify-content: space-between; margin-bottom: 10px; }
details.rule { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; }
details.rule summary { cursor: pointer; font-weight: 700; color: var(--fg-strong); font-size: 13.5px; }
details.rule .content { padding-top: 10px; font-size: 13px; line-height: 1.8; color: var(--fg); }

/* ===== 用户主页 ===== */
.u-head { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.u-head .cover { height: 160px; background: linear-gradient(135deg, #8bb8f0 0%, #c2ddf9 55%, #e8f2fd 100%); }
.u-head .body { padding: 0 22px 18px; position: relative; }
.u-head .body .av {
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; padding: 3px;
  margin-top: -42px; box-shadow: 0 0 0 1px var(--border-soft);
  display: inline-block; overflow: hidden;
}
.u-head .body .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.u-head .body .av .noimg {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 28px;
}
.u-head .body .uname { font-size: 20px; font-weight: 700; color: var(--fg-strong); margin-top: 8px; }
.u-head .body .handle { color: var(--fg-soft); font-size: 13px; }
.u-head .body .bio { color: var(--fg); margin-top: 6px; font-size: 13.5px; }
.u-head .body .stats { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--fg); }
.u-head .body .stats b { color: var(--fg-strong); margin-right: 3px; }
.u-head .body .acts { position: absolute; top: 16px; right: 22px; display: flex; gap: 8px; }
.u-menu { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.u-menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); color: var(--fg-strong); text-decoration: none; font-size: 14px; transition: background .12s; cursor: pointer; }
.u-menu-item:last-child { border-bottom: none; }
.u-menu-item:hover { background: var(--accent-soft); }
.u-menu-item svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.u-menu-item .arrow { margin-left: auto; color: var(--fg-soft); font-size: 16px; }

/* ===== 表单 ===== */
.form { max-width: 440px; margin: 0 auto; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-strong); margin-bottom: 5px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 10px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); background: #fff; }
.form-row .hint { font-size: 12px; color: var(--fg-soft); margin-top: 3px; }
.form-row .checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 400; color: var(--fg); }
.form-row .checkbox input { width: auto; margin-top: 3px; }
.form-actions { display: flex; gap: 8px; margin-top: 18px; }

/* ===== 居中登录/注册 ===== */
.center-wrap { min-height: calc(100vh - var(--topbar-h)); display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 32px 28px; }
.auth-card .logo { text-align: center; margin-bottom: 14px; }
.auth-card .logo .c {
  width: 60px; height: 60px; margin: 0 auto 8px;
  border-radius: 16px;
  background: var(--capsule); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  box-shadow: 0 2px 10px rgba(124,105,184,0.35);
}
.auth-card .title { text-align: center; font-size: 18px; font-weight: 700; color: var(--fg-strong); }
.auth-card .subtitle { text-align: center; font-size: 13px; color: var(--fg-soft); margin: 4px 0 18px; }

/* ===== 空状态 / 加载 ===== */
.empty { text-align: center; padding: 48px 16px; color: var(--fg-soft); font-size: 13.5px; }
.loading { text-align: center; padding: 32px 16px; color: var(--fg-soft); font-size: 13px; }
.loading::before {
  content: ""; display: inline-block;
  width: 18px; height: 18px;
  margin-right: 8px; vertical-align: -4px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.powered {
  position: fixed; left: 14px; bottom: 10px;
  font-size: 11px; color: var(--fg-soft);
  opacity: 0.85; pointer-events: none; z-index: 5;
}
.powered .b { font-weight: 700; font-size: 13px; display: block; }

.ic { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; display: inline-block; vertical-align: -3px; }
.ic-lg { width: 19px; height: 19px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.text-soft { color: var(--fg-soft); }
.text-sm { font-size: 12px; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.spacer { flex: 1; }

/* ===== 响应式 ===== */
@media (max-width: 1080px) {
  .hero-ctas { gap: 22px; }
  .cir .ring { width: 80px; height: 80px; }
  .cir .ring svg { width: 32px; height: 32px; }
}
@media (max-width: 860px) {
  .hero-cover { height: 380px; }
  .hero-ctas { gap: 18px; margin: 14px auto 16px; }
  .cir .ring { width: 70px; height: 70px; }
  .cir .ring svg { width: 28px; height: 28px; }
  .cir .label { font-size: 13px; }
  .side { grid-template-columns: 1fr; }
  .home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 0 12px; }
  .topbar .brand { margin-right: 0; font-size: 14px; flex: 1; }
  .topbar nav { display: none; }
  .powered { position: static; padding: 14px; text-align: center; }

  .app { padding: 10px; }

  /* hero 适配：高度变小，圆按钮在 hero 下方独立行 */
  .hero-cover { height: 200px; border-radius: 14px; }
  .hero-cover .hero-bg { object-position: center 40%; }
  .hero-ctas { gap: 12px; margin: 12px 0 14px; padding: 0 8px; }
  .cir .ring { width: 54px; height: 54px; box-shadow: 0 0 0 4px rgba(169,157,208,0.12); }
  .cir .ring svg { width: 22px; height: 22px; }
  .cir .label { font-size: 12.5px; }
  .cir { gap: 6px; }

  /* 首页两列改单列 */
  .home-grid { grid-template-columns: 1fr; gap: 14px; }
  /* 侧栏两卡改单列 */
  .side { grid-template-columns: 1fr; }

  .note { padding: 14px 14px; }
  .note .note-body { padding-left: 0; }
  .note .media { margin-left: 0; }
  .note .reactions { padding-left: 0; }
  .note .note-foot { padding-left: 0; }
  .note .note-foot .action { padding: 6px 6px; }
  .ch-grid { grid-template-columns: 1fr; padding: 12px; }
  .tabs { padding: 0 8px; overflow-x: auto; }
  .tabs .right { display: none; }
  .kv { grid-template-columns: 1fr; }
  .u-head .body { padding: 0 16px 14px; }
  .u-head .body .acts { position: static; margin-top: 12px; }
  .auth-card { padding: 24px 20px; }
  .side .actions .btn { height: 36px; font-size: 13.5px; }
  .note .note-head .av { width: 38px; height: 38px; font-size: 12px; }
}

/* ===== 页面切换高斯模糊过渡 ===== */
.app, .center-wrap {
  /* fill-mode: backwards（动画结束不保留 transform/filter，避免 fixed 浮层错位） */
  animation: pageIn 0.5s ease backwards;
}
@keyframes pageIn {
  /* 注意：结束状态不要带 filter（blur(0) 也会建立 fixed 子元素定位包含块，导致浮层错位） */
  from { opacity: 0.25; transform: translateY(10px) scale(1.005); }
  to   { opacity: 1; transform: none; }
}
body.page-leave .topbar,
body.page-leave .app,
body.page-leave .center-wrap {
  transition: opacity 0.22s ease, filter 0.22s ease;
  opacity: 0;
  filter: blur(12px);
}
@media (prefers-reduced-motion: reduce) {
  .app, .center-wrap { animation: none; }
  body.page-leave * { transition: none !important; }
}

/* ===== 登录/注册页 二次元背景 ===== */
body.auth-page { background: #f4f0fa; }
body.auth-page::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(720px 420px at 85% 8%, rgba(255,205,240,.5), transparent 62%),
    radial-gradient(640px 400px at 6% 92%, rgba(205,220,255,.55), transparent 60%),
    url("/assets/img/cover_1920.jpg") center/cover no-repeat fixed;
  filter: blur(2.5px) saturate(1.05) brightness(1.02);
  opacity: .4;
}
body.auth-page::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(124,105,184,.30) 0%, rgba(244,240,250,.72) 45%, rgba(232,220,245,.92) 100%);
}
.auth-card {
  position: relative;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 10px 44px rgba(80,60,140,.20), 0 0 0 1px rgba(255,255,255,.35);
}
.auth-card .logo .c { background: linear-gradient(135deg, #8b6fc8, #7c69b8); }

/* 漂浮星星装饰 */
.spark {
  position: fixed; z-index: 0; pointer-events: none;
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(255,255,255,.85), 0 0 26px 6px rgba(190,170,255,.35);
  opacity: .8;
  animation: floaty 6.5s ease-in-out infinite;
}
.spark.s1 { top: 16%; left: 12%; animation-delay: 0s; }
.spark.s2 { top: 22%; right: 14%; width: 5px; height: 5px; animation-delay: 1.4s; }
.spark.s3 { bottom: 20%; left: 18%; width: 5px; height: 5px; animation-delay: 2.6s; }
.spark.s4 { bottom: 14%; right: 10%; animation-delay: 3.8s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) scale(1); opacity: .75; }
  50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* 输入框错误态（替代浏览器气泡） */
.form input.invalid, .side-login input.invalid {
  border-color: #e06a6a !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 3px rgba(224,106,106,.12);
  animation: shakeX .28s ease;
}
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .spark { animation: none; }
}

/* ===========================================
   v13 二次元化升级：大圆角 · 胶囊 · 彩色柔和阴影
   =========================================== */

/* 全局背景：柔和紫粉光斑（非登录页也有二次元氛围） */
body {
  background: #f3edf9;
  background-image:
    radial-gradient(560px 320px at 10% 4%, rgba(255,205,240,.32), transparent 62%),
    radial-gradient(600px 360px at 90% 12%, rgba(205,220,255,.36), transparent 62%),
    radial-gradient(520px 320px at 4% 90%, rgba(222,206,252,.34), transparent 62%),
    radial-gradient(560px 340px at 94% 86%, rgba(255,224,236,.36), transparent 62%);
  background-attachment: fixed;
}

/* 顶栏：毛玻璃 + 渐变 logo */
.topbar {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(210,195,235,.55);
  box-shadow: 0 4px 18px rgba(124,105,184,.07);
}
.topbar .brand .logo {
  background: linear-gradient(135deg, #9a7fd0 0%, #7c69b8 60%, #6a57a8 100%);
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(124,105,184,.38), inset 0 1px 0 rgba(255,255,255,.3);
}
.topbar nav a { border-radius: 999px; margin: 0 2px; padding: 0 16px; transition: background .15s, color .15s; }
.topbar nav a.active { background: var(--accent-soft); font-weight: 600; }
.topbar nav a.active::after { display: none; }

/* 卡片：大圆角 + 彩色柔和阴影 + hover 上浮 */
.card {
  border-radius: 20px;
  border: 1px solid rgba(212,198,238,.75);
  box-shadow: 0 2px 6px rgba(124,105,184,.07), 0 10px 28px rgba(124,105,184,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(124,105,184,.12), 0 16px 42px rgba(124,105,184,.13); }
.card .head {
  padding: 15px 20px;
  border-bottom: 1px dashed rgba(210,195,235,.6);
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent);
}

/* 按钮：主按钮渐变胶囊 + 彩色阴影；次按钮浅紫底 */
.btn { border-radius: 999px; letter-spacing: .02em; transition: transform .12s ease, filter .15s ease, box-shadow .15s ease, background .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, #9a7fd0 0%, #7c69b8 55%, #6a57a8 100%);
  box-shadow: 0 4px 14px rgba(124,105,184,.38), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { background: linear-gradient(135deg, #8b6fc8 0%, #7c69b8 55%, #6a57a8 100%); transform: translateY(-1px); filter: brightness(1.04); }
.btn-secondary { background: var(--accent-soft); border-color: #cdbfe8; color: var(--accent-ink); }
.btn-secondary:hover { background: #ddd0f2; border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.btn-sm { box-shadow: none; }

/* tabs：active 变紫色胶囊 */
.tabs {
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.tabs .tab { border-radius: 999px; margin: 7px 2px; padding: 8px 16px; transition: background .15s, color .15s; }
.tabs .tab:hover { background: rgba(124,105,184,.07); }
.tabs .tab.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.tabs .tab.active::after { display: none; }

/* 帖子卡：圆润 + 柔和阴影 + hover 微浮 */
.note {
  border-radius: 20px;
  border: 1px solid rgba(212,198,238,.7);
  box-shadow: 0 2px 6px rgba(124,105,184,.06), 0 8px 24px rgba(124,105,184,.08);
  transition: transform .16s ease, box-shadow .16s ease;
}
.note:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(124,105,184,.12), 0 14px 36px rgba(124,105,184,.11); }
.note .note-head .av { box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(124,105,184,.25); }
.note .note-foot .action { border-radius: 999px; }
.note .note-foot .action:hover { background: var(--accent-soft); }

/* 频道卡：大圆角 + 粉紫渐变封面 + 上浮 */
.ch-card {
  border-radius: 20px;
  border: 1px solid rgba(212,198,238,.7);
  box-shadow: 0 2px 6px rgba(124,105,184,.06), 0 8px 24px rgba(124,105,184,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ch-card:hover { transform: translateY(-5px); box-shadow: 0 10px 22px rgba(124,105,184,.16), 0 20px 48px rgba(124,105,184,.14); border-color: var(--accent); }
.ch-card .cover {
  height: 110px;
  background: linear-gradient(135deg, #e9daf9 0%, #d3c2ee 45%, #f2cfe6 100%);
}
.ch-card .stats { border-top: 1px dashed rgba(210,195,235,.6); }

/* 公告卡 */
.ann-item { border-radius: 18px; border: 1px solid rgba(212,198,238,.7); box-shadow: 0 2px 6px rgba(124,105,184,.06), 0 6px 18px rgba(124,105,184,.07); }
.ann-item.warn { background: linear-gradient(180deg, #fdfaf2, #fbf3e4); }

/* 用户主页 */
.u-head { border-radius: 22px; border: 1px solid rgba(180,210,240,.7); box-shadow: 0 2px 6px rgba(74,144,226,.07), 0 10px 28px rgba(74,144,226,.09); }
.u-head .cover { height: 170px; background: linear-gradient(135deg, #8bb8f0 0%, #c2ddf9 55%, #eef5ff 100%); }
.u-head .body .av { box-shadow: 0 0 0 3px #fff, 0 6px 18px rgba(74,144,226,.28); }

/* 关于页 hero：加光斑装饰 */
.about-hero {
  background:
    radial-gradient(340px 180px at 12% 0%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(300px 160px at 88% 100%, rgba(255,220,240,.35), transparent 60%),
    linear-gradient(135deg, #8a7bc7 0%, #a89bd6 55%, #c8b9e8 100%);
  border-radius: 20px 20px 0 0;
}

/* 标签/徽章：更圆润 */
.side .intro .tag, .ann-item .head .badge { border-radius: 999px; box-shadow: 0 1px 3px rgba(124,105,184,.15); }
.reaction { border-radius: 999px; }

/* 登录/注册卡 */
.auth-card { border-radius: 26px; }
.auth-card .logo .c { border-radius: 18px; }

/* 输入框：更圆润 */
.form-row input, .form-row textarea, .form-row select, .side-login input { border-radius: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.form-row input:focus, .form-row textarea:focus, .side-login input:focus { box-shadow: 0 0 0 4px rgba(124,105,184,.12); }
.form-row input.invalid { box-shadow: 0 0 0 4px rgba(224,106,106,.12); }

/* 空状态 */
.empty { padding: 56px 16px; }

/* 小屏细节：1080 以下顶栏 nav 更紧凑 */
@media (max-width: 1080px) {
  .topbar { padding: 0 14px; }
  .topbar nav a { padding: 0 12px; }
}
@media (max-width: 860px) {
  .home-grid { gap: 14px; }
  .card .head { padding: 13px 16px; }
  .card .body { padding: 14px 16px; }
  .kv { padding: 14px 16px; }
  .note { padding: 14px 15px; }
}
@media (max-width: 600px) {
  .topbar .brand { font-size: 15px; }
  .topbar .actions { gap: 4px; }
  .topbar .actions .btn { padding: 0 12px; height: 30px; font-size: 12px; }
  .tabs .tab { padding: 7px 12px; font-size: 13px; margin: 6px 1px; }
  .ch-card .cover { height: 92px; }
  .u-head .cover { height: 120px; }
  .about-hero { border-radius: 16px 16px 0 0; }
  .card { border-radius: 16px; }
  .note { border-radius: 16px; }
  .ch-card { border-radius: 16px; }
  .auth-card { border-radius: 20px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .topbar .brand span:last-child { display: none; }
  .hero-cover { height: 170px; }
}

/* ===========================================
   v14 二次元贴纸风：去椭圆胶囊，改圆角矩形+硬阴影+高光
   =========================================== */

/* —— 按钮：日系手游贴纸风（圆角矩形 + 底部硬阴影 + 左上高光） —— */
.btn {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  position: relative;
  box-shadow: 0 4px 0 rgba(90,71,150,.32), 0 10px 20px rgba(124,105,184,.22);
  overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; left: 8px; top: 4px; right: 8px; height: 40%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0));
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(90,71,150,.32), 0 14px 26px rgba(124,105,184,.28); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(90,71,150,.35), 0 3px 8px rgba(124,105,184,.2); }
.btn-primary { box-shadow: 0 4px 0 #5a4790, 0 10px 20px rgba(124,105,184,.26); }
.btn-primary:hover { box-shadow: 0 6px 0 #5a4790, 0 14px 26px rgba(124,105,184,.32); }
.btn-primary:active { box-shadow: 0 1px 0 #5a4790, 0 3px 8px rgba(124,105,184,.2); }
.btn-secondary { border-color: rgba(124,105,184,.18); box-shadow: 0 4px 0 #c9bce8, 0 8px 16px rgba(124,105,184,.15); }
.btn-secondary:hover { box-shadow: 0 6px 0 #c9bce8, 0 12px 22px rgba(124,105,184,.2); }
.btn-secondary:active { box-shadow: 0 1px 0 #c9bce8, 0 2px 6px rgba(124,105,184,.12); }
.btn-ghost { box-shadow: 0 4px 0 rgba(124,105,184,.14), 0 8px 16px rgba(124,105,184,.10); }
.btn-ghost:hover { box-shadow: 0 6px 0 rgba(124,105,184,.18), 0 12px 22px rgba(124,105,184,.14); }
.btn-ghost:active { box-shadow: 0 1px 0 rgba(124,105,184,.18), 0 2px 6px rgba(124,105,184,.08); }
.btn-sm { border-radius: 12px; box-shadow: 0 3px 0 rgba(90,71,150,.30), 0 6px 12px rgba(124,105,184,.18); }
.btn-sm.btn-secondary { box-shadow: 0 3px 0 #c9bce8, 0 5px 10px rgba(124,105,184,.13); }
.btn-sm:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(90,71,150,.3), 0 2px 5px rgba(124,105,184,.14); }
.btn-mini { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }

/* —— tabs：去掉椭圆胶囊，active 改圆角矩形 —— */
.tabs .tab { border-radius: 12px; margin: 7px 2px; padding: 8px 16px; }
.tabs .tab.active { border-radius: 12px; box-shadow: 0 2px 0 rgba(124,105,184,.15); }

/* —— 顶栏 nav：圆角矩形 —— */
.topbar nav a { border-radius: 12px; }
.topbar nav a.active { border-radius: 12px; box-shadow: 0 2px 0 rgba(124,105,184,.18); }
.icon-btn { border-radius: 12px; }

/* —— 标签/徽章：去椭圆（小圆角矩形） —— */
.side .intro .tag, .ann-item .head .badge, .reaction {
  border-radius: 8px;
}

/* —— 头像：蓝描边环 —— */
.note .note-head .av, .u-head .body .av, .side .mini-list .av {
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #9ec8f5, 0 6px 14px rgba(74,144,226,.22);
}

/* —— 404 二次元装饰 —— */
.err-404 { text-align: center; margin-bottom: 16px; }
.err-logo {
  width: 92px; height: 92px; margin: 0 auto 14px;
  border-radius: 26px;
  background: linear-gradient(135deg, #9a7fd0 0%, #7c69b8 60%, #6a57a8 100%);
  color: #fff; font-size: 42px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 #5a4790, 0 16px 32px rgba(124,105,184,.32), inset 0 2px 0 rgba(255,255,255,.35);
}
.err-code {
  font-size: 46px; font-weight: 800; letter-spacing: .14em;
  color: var(--accent-ink);
  text-shadow: 0 3px 0 rgba(124,105,184,.22);
}

/* —— 表单 checkbox：紫色圆角 —— */
.form-row input[type="checkbox"], .form input[type="checkbox"] {
  width: 17px; height: 17px; border-radius: 5px; accent-color: var(--accent);
  cursor: pointer;
}

/* —— 选中文本：浅紫 —— */
::selection { background: rgba(190,170,255,.4); }

/* —— 滚动条：紫色圆润 —— */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #c8b9e3, #a891d6); border-radius: 999px; border: 2px solid #f3edf9; }
::-webkit-scrollbar-thumb:hover { background: #a891d6; }

/* —— 链接 hover：紫色 —— */
a:hover { color: var(--accent-2); }

/* —— powered 角标：小装饰 —— */
.powered { letter-spacing: .03em; }
.powered .b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: linear-gradient(135deg,#9a7fd0,#7c69b8); vertical-align: 1px; box-shadow: 0 0 0 2px rgba(124,105,184,.15); }

/* —— 空状态：加个软紫圆 —— */
.empty::before {
  content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e9daf9, #d3c2ee);
  box-shadow: 0 3px 0 rgba(124,105,184,.15), inset 0 2px 0 rgba(255,255,255,.6);
}

/* —— 帖子引用块：更圆 —— */
.note .note-body .quote { border-radius: 12px; border-left: 4px solid var(--accent); }


/* v14 后台表格适配：含 .table-wrap 的 .card 允许横向滚动不被裁 */
.card:has(> .table-wrap) { overflow: visible; }
.card:has(> .table-wrap) > .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px 4px; }
.card:has(> .table-wrap) > .table-wrap table { min-width: 560px; border-radius: 0 0 18px 18px; }

/* ===== 发帖框 ===== */
.post-text {
  width: 100%; min-height: 74px; resize: vertical;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px; line-height: 1.7; outline: none;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.post-text:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(124,105,184,.12); }
.post-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

/* ===== 表情回应 + 收藏 + 付费 + 用户菜单 ===== */
.emoji-picker {
  display: none;
  gap: 6px; padding: 8px 10px; margin: 8px 0 0 60px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(80,60,140,.12);
  flex-wrap: wrap;
}
.emoji-picker.show { display: inline-flex; }
.ep-emoji {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: var(--accent-ink);
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: 10px; cursor: pointer;
  transition: transform .12s, background .12s, border-color .12s;
}
.ep-emoji:hover { transform: translateY(-2px); background: #fff; border-color: var(--accent); }
.note .note-foot .action.fav-btn.on { color: #f6a23a; }
.note .note-foot .action.fav-btn.on .ic { color: #f6a23a; }

.paid-lock {
  position: relative; margin-top: 12px; padding: 28px 18px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #f6f0fb, #e7d8f3);
  border: 1px solid #cdbfe8;
}
.paid-lock-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.paid-lock-inner { position: relative; z-index: 1; text-align: center; }
.paid-lock-title { font-size: 16px; font-weight: 700; color: var(--accent-ink); margin-bottom: 6px; }
.paid-lock-desc { font-size: 13px; color: var(--fg-soft); margin-bottom: 12px; }
.paid-tag { padding: 8px 12px; background: var(--bg-soft); border-radius: 10px; font-size: 12.5px; color: var(--fg-soft); margin-top: 8px; }

.topbar-balance { font-family: var(--font); }
.user-menu-btn { font-family: var(--font); }
.user-menu-btn:hover { background: rgba(255,255,255,.85); text-decoration: none; }

/* 商品卡 */
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 18px; }
.goods-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(124,105,184,.06), 0 8px 22px rgba(124,105,184,.08);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.goods-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(124,105,184,.16), 0 16px 40px rgba(124,105,184,.12); border-color: var(--accent); }
.goods-card .cover { height: 140px; background: linear-gradient(135deg, #e9daf9, #d3c2ee 50%, #f2cfe6); display: flex; align-items: center; justify-content: center; color: var(--accent-ink); font-size: 36px; font-weight: 700; }
.goods-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.goods-card .body { padding: 14px 16px; }
.goods-card .name { font-weight: 700; color: var(--fg-strong); font-size: 15px; margin-bottom: 4px; }
.goods-card .desc { font-size: 13px; color: var(--fg); line-height: 1.6; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.goods-card .price { margin-top: 10px; font-size: 18px; font-weight: 800; color: #b35f00; }
.goods-card .foot { padding: 10px 16px; border-top: 1px dashed rgba(210,195,235,.6); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--fg-soft); }

/* 充值页 */
.recharge-card { max-width: 480px; margin: 0 auto; }
.amount-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.amount-cell { padding: 14px 10px; background: var(--card); border: 2px solid var(--border-soft); border-radius: 14px; text-align: center; cursor: pointer; font-weight: 700; color: var(--accent-ink); transition: border-color .12s, background .12s, transform .12s; }
.amount-cell:hover { border-color: var(--accent); transform: translateY(-2px); }
.amount-cell.on { border-color: var(--accent); background: var(--accent-soft); }
.amount-cell .v { font-size: 18px; }
.amount-cell .b { font-size: 11px; color: var(--fg-soft); margin-top: 2px; font-weight: 500; }
.pay-qr { display: flex; align-items: center; justify-content: center; padding: 18px; background: #fff; border: 1px solid var(--border-soft); border-radius: 14px; min-height: 220px; }
.pay-status { text-align: center; padding: 18px; }
.pay-spinner { width: 38px; height: 38px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 12px; }

/* 头像上传 */
.avatar-uploader {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--bg-soft);
  border: 1px dashed var(--border-soft); border-radius: 14px;
}
.avatar-uploader img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--accent); }
.avatar-uploader .upload-btn { padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); cursor: pointer; font-size: 13px; font-weight: 600; box-shadow: 0 2px 0 rgba(124,105,184,.15); }
.avatar-uploader .upload-btn:hover { background: #ddd0f2; }
.avatar-uploader input[type=file] { display: none; }

/* 用户主页好友/收藏/购买 tab */
.profile-tabs { display: flex; gap: 6px; padding: 0 18px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,.7); border-radius: 18px 18px 0 0; }
.profile-tabs .ptab { padding: 12px 18px; font-size: 14px; color: var(--fg); cursor: pointer; }
.profile-tabs .ptab.on { color: var(--accent-ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.friend-card, .purchase-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
}
.friend-card:last-child, .purchase-card:last-child { border-bottom: none; }
.friend-card .av, .purchase-card .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.friend-card .av img, .purchase-card .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.friend-card .info, .purchase-card .info { flex: 1; min-width: 0; }
.friend-card .info .n, .purchase-card .info .n { font-weight: 600; color: var(--fg-strong); }
.friend-card .info .h { color: var(--fg-soft); font-size: 12.5px; }
@media (max-width: 600px) {
  .emoji-picker { margin-left: 0; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .goods-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; }
  .goods-card .cover { height: 100px; }
}

/* ===== SPA 入场 ===== */
.main.page-in, .center-wrap.page-in { animation: pageIn 0.5s ease backwards; }

/* ===== 回复 / 评论区 ===== */
.reply-compose { padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.reply-compose textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 72px;
  border: 1.5px solid var(--border, #e3e3e3); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; line-height: 1.7;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--fg, #4a4552); background: #fff; outline: none; transition: border-color .15s;
}
.reply-compose textarea:focus { border-color: var(--accent, #7c69b8); }
.reply-compose-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.reply-hint { font-size: 12px; color: var(--fg-soft, #8b8595); }
.reply-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.reply-item:last-child { border-bottom: none; }
.reply-av {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%;
  background: linear-gradient(135deg, #9a7fd0, #7c69b8); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  text-decoration: none; overflow: hidden;
}
.reply-main { flex: 1; min-width: 0; }
.reply-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.reply-name { font-weight: 600; font-size: 13.5px; color: var(--fg-strong, #2b2633); text-decoration: none; }
.reply-name:hover { color: var(--accent-ink, #7c69b8); }
.reply-time { font-size: 12px; color: var(--fg-soft, #8b8595); }
.reply-text { font-size: 14px; line-height: 1.75; color: var(--fg, #4a4552); word-break: break-word; white-space: pre-wrap; }
.reply-report {
  flex: 0 0 auto; align-self: flex-start; font-size: 12px; color: var(--fg-soft, #8b8595);
  cursor: pointer; padding: 4px 8px; border-radius: 8px; user-select: none;
}
.reply-report:hover { color: #d45b5b; background: rgba(212, 91, 91, .08); }

/* ===== 移动端：回复区布局优化 ===== */
@media (max-width: 600px) {
  .reply-compose { padding: 12px 16px; }
  .reply-compose textarea {
    font-size: 15px; min-height: 84px; padding: 11px 13px;
    line-height: 1.65;
  }
  .reply-compose-actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 10px; }
  .reply-compose-actions .reply-hint { text-align: right; font-size: 11.5px; order: -1; }
  .reply-compose-actions .btn { width: 100%; padding: 11px; font-size: 14px; }
  .reply-item { padding: 12px 0; gap: 10px; }
  .reply-av { width: 34px; height: 34px; flex: 0 0 34px; font-size: 13px; }
  .reply-name { font-size: 13.5px; }
  .reply-text { font-size: 14px; line-height: 1.7; }
  .reply-report { padding: 2px 6px; font-size: 11.5px; }
  /* 回复区空状态的小紫圆在小屏幕缩小 */
  #replyList .empty::before { width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 12px; }
  #replyList .empty { padding: 36px 12px 30px; font-size: 13px; }
  /* 详情页主区在窄屏的内边距 */
  #noteContent > .card { padding: 0; }
  .card > .head { padding: 12px 16px; }
}

/* ===== 付费片段（长按/框选标记的付费内容） ===== */
.pay-seg {
  display: inline; position: relative; cursor: pointer;
  background: linear-gradient(135deg, #fdf3df, #f9e9c8);
  border-bottom: 1.5px dashed #d99a2b; padding: 1px 2px; border-radius: 4px;
  user-select: none;
}
.pay-seg.bought { background: #eef7f1; border-bottom-color: #4a9d6e; }
.pay-seg-text { color: var(--fg, #4a4552); }
.pay-seg-mask {
  color: #c99a55; font-weight: 600; letter-spacing: .04em;
  text-shadow: 0 0 8px rgba(201, 154, 85, .55);
}
.pay-seg-tag {
  display: inline-block; margin: 0 2px; padding: 0 6px; font-size: 11px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #e0a63e, #c9861f); border-radius: 6px; vertical-align: 1px;
}
.pay-seg.bought .pay-seg-tag { background: #2f7a50; }
.pay-media {
  position: relative; display: inline-block; cursor: pointer; margin-right: 4px;
  border: 2px dashed #d99a2b; border-radius: 12px; overflow: hidden; line-height: 0;
}
.pay-media img { display: block; }
.pay-media-tag {
  position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #e0a63e, #c9861f); border-radius: 8px; line-height: 1.4;
}
.pay-media.bought { border-color: #4a9d6e; }
.pay-media.bought .pay-media-tag { background: #2f7a50; }

/* ===== @提及 ===== */
.note-body .mention {
  color: var(--accent-ink, #7c69b8);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(124,105,184,.45);
  cursor: pointer;
}
.note-body .mention:hover { color: #5b4a86; border-bottom-style: solid; }

/* ===== 自定义频道选择器（完整展开所有频道）===== */
#chSelectMenu {
  display: none; position: fixed; z-index: 99999; box-sizing: border-box;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px;
  min-width: 240px; max-width: min(340px, calc(100vw - 32px));
  overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
}
.ch-opt {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--fg);
  transition: background .12s;
}
.ch-opt:hover { background: #f1edf8; }
.ch-opt.on { background: #f1edf8 !important; }
.ch-opt.on::after {
  content: "✓"; margin-left: auto; color: var(--accent-ink, #7c69b8);
  font-weight: 700; font-size: 12px;
}
.ch-ico {
  width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px;
  background: linear-gradient(135deg,#9a7fd0,#7c69b8); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.ch-ico-all { background: #f3eff8; color: var(--fg-soft); }
.ch-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-users { flex: 0 0 auto; font-size: 11px; color: var(--fg-soft); }

/* ==========================================================
   v15 简星社区 clean 风格覆写（白底+蓝主色+大圆角+大留白）
   追加在末尾，自动覆盖前面的 v13/v14 紫/硬影样式
   ========================================================== */

/* body 背景：去紫光斑，改极浅灰蓝白 */
html, body {
  background: #f5f6fa !important;
  background-image: none !important;
  color: var(--fg) !important;
}

/* 顶栏：去毛玻璃/紫渐变 */
.topbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  height: var(--topbar-h) !important;
}
.topbar .logo-row, .topbar .balance-pill {
  color: var(--fg-strong) !important;
  background: transparent !important;
}
.topbar .balance-pill {
  background: var(--accent-soft) !important;
  color: var(--accent-ink) !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
}

/* 卡片基础 */
.card {
  background: var(--card) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  margin-bottom: 18px !important;
  transition: box-shadow .15s, transform .15s;
}
.card:hover {
  box-shadow: var(--shadow-hover) !important;
  transform: translateY(-2px);
}
.card .head {
  padding: 18px 24px !important;
  background: transparent !important;
  border-bottom: 1px solid var(--border-soft) !important;
  color: var(--fg-strong) !important;
  font-weight: 700 !important;
  font-size: 15px;
}
.card .head .title { color: var(--fg-strong) !important; font-weight: 700; }
.card .body { padding: 18px 24px; }

/* 按钮：去贴纸硬影，蓝色渐变 */
.btn {
  border-radius: 12px !important;
  border: none !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(74,144,226,0.20) !important;
  transition: transform .12s, box-shadow .15s, background .15s;
  position: relative;
}
.btn:hover { background: var(--accent-2) !important; box-shadow: 0 4px 10px rgba(74,144,226,0.30) !important; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(74,144,226,0.20) !important; }
.btn::before, .btn::after { display: none !important; }
.btn-primary {
  background: linear-gradient(135deg, #4A90E2, #3B82F6) !important;
  box-shadow: 0 2px 6px rgba(74,144,226,0.25) !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
  box-shadow: 0 6px 14px rgba(74,144,226,0.35) !important;
}
.btn-secondary {
  background: #ffffff !important;
  color: var(--fg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.btn-secondary:hover { background: var(--bg-soft) !important; color: var(--accent) !important; border-color: var(--accent) !important; }
.btn-ghost { background: transparent !important; color: var(--fg-soft) !important; box-shadow: none !important; }
.btn-ghost:hover { background: var(--accent-soft) !important; color: var(--accent) !important; }

/* Tab：蓝下划线指示器 */
.tabs {
  display: flex; gap: 28px;
  border-bottom: 1px solid var(--border) !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.tab {
  padding: 12px 4px !important;
  background: transparent !important;
  color: var(--fg-soft) !important;
  border-radius: 0 !important;
  font-weight: 600;
  position: relative;
  font-size: 14px;
  box-shadow: none !important;
  border: none !important;
}
.tab:hover { color: var(--accent) !important; }
.tab.active {
  color: var(--accent) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.tab.active::after {
  content: "" !important;
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.tab::before, .tab::after { all: unset; }

/* 帖子卡 */
.note {
  background: var(--card) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  margin-bottom: 16px;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.note:hover { box-shadow: var(--shadow-hover) !important; border-color: var(--accent-soft); }
.note-head .av { border: 2px solid var(--accent-soft) !important; }
.note-foot .action { color: var(--fg-soft) !important; }
.note-foot .action:hover { color: var(--accent) !important; background: var(--accent-soft) !important; }

/* 频道卡 */
.ch-card {
  background: var(--card) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.ch-card:hover { box-shadow: var(--shadow-hover) !important; border-color: var(--accent-soft); transform: translateY(-3px); }
.ch-card .cover { background: linear-gradient(135deg, #4A90E2, #3B82F6) !important; }

/* 空状态：浅蓝大圆 */
.empty {
  padding: 60px 20px !important;
  color: var(--fg-soft);
}
.empty::before {
  width: 88px !important; height: 88px !important;
  background: var(--accent-soft) !important;
  border-radius: 24px !important;
  margin: 0 auto 18px !important;
  color: var(--accent) !important;
  font-size: 32px !important;
}
.empty .msg { color: var(--fg-soft) !important; }

/* 圆按钮（首页 hero）*/
.cir { width: 96px !important; height: 96px !important; border: 2.5px dashed var(--accent) !important; border-radius: 50% !important; background: #ffffff !important; box-shadow: none !important; }
.cir .ring { color: var(--accent) !important; background: transparent !important; }
.cir:hover { background: var(--accent-soft) !important; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(74,144,226,0.15); }
.cir .label { color: var(--fg-strong) !important; font-weight: 600; }

/* 首页 hero-cover */
.hero-cover {
  height: 360px !important; max-height: 360px;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

/* home-grid 间距 */
.home-grid { gap: 24px !important; margin: 24px 0; }

/* 侧栏 .side 怪象修复：单列 */
.side { display: block !important; grid-template-columns: none !important; }
.side .card { margin-bottom: 16px; }

/* 链接 */
a { color: var(--link) !important; }
a:hover { color: var(--accent-2) !important; text-decoration: none; }

/* 顶栏图标按钮 hover */
.topbar .icon-btn:hover { background: var(--accent-soft) !important; color: var(--accent) !important; }

/* 选区颜色 */
::selection { background: var(--accent-soft) !important; color: var(--accent-ink) !important; }

/* 滚动条 */
::-webkit-scrollbar-thumb { background: var(--accent) !important; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2) !important; }

/* ===== v15 首页：统计卡 + 欢迎卡 ===== */
.home-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 18px;
  margin: 24px 0;
}
.stat-mini {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; justify-content: center;
  min-height: 96px;
}
.stat-mini .t { font-size: 14px; color: var(--fg-soft); font-weight: 500; }
.stat-mini .n { font-size: 32px; font-weight: 700; color: var(--fg-strong); margin-top: 6px; letter-spacing: -.02em; }
.stat-welcome {
  background: linear-gradient(135deg, #DBEAFE, #ffffff 70%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 18px;
  min-height: 96px;
}
.stat-welcome .welcome-icon {
  flex: 0 0 56px; width: 56px; height: 56px;
  background: var(--accent); color: #fff;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(74,144,226,0.30);
}
.stat-welcome h3 { margin: 0; font-size: 19px; color: var(--fg-strong); font-weight: 700; letter-spacing: -.01em; }
.stat-welcome p { margin: 4px 0 0; color: var(--fg-soft); font-size: 13.5px; }
@media (max-width: 860px) {
  .home-stats { grid-template-columns: 1fr 1fr; }
  .stat-welcome { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .home-stats { grid-template-columns: 1fr; }
}

/* ===== v15 首页：最新动态 顶部 Tab ===== */
.home-tabs {
  display: flex; gap: 32px; padding: 0 24px;
  border-bottom: 1px solid var(--border);
}
.home-tab {
  display: inline-block; padding: 16px 0;
  font-size: 15px; font-weight: 600; color: var(--fg-soft);
  text-decoration: none; position: relative; cursor: pointer;
  transition: color .15s;
}
.home-tab:hover { color: var(--accent); text-decoration: none; }
.home-tab.active { color: var(--accent); }
.home-tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
}

/* ===== v15 双列 hero + 加入官方群卡（参考简星社区 1.0.4 视频） ===== */
.hero-cover { display: none !important; }                  /* 隐藏原静态大图 */
.hero-ctas { display: none !important; }                   /* 隐藏原 4 个大圆按钮（避免重复） */
.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  margin: 20px 0 18px;
  min-height: 280px;
}
.hero-banner {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  background: var(--bg-soft); min-height: 280px;
}
.hero-slides { position: relative; width: 100%; height: 100%; min-height: 280px; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .6s;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 100%);
  color: #fff;
}
.hero-slide-tag { font-size: 12px; opacity: .9; letter-spacing: .1em; margin-bottom: 4px; }
.hero-slide-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.hero-slide-sub { font-size: 13px; opacity: .85; margin-top: 4px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.85); color: var(--accent);
  border: none; cursor: pointer; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.hero-banner:hover .hero-arrow { opacity: 1; }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .2s; }
.hero-dot.active { width: 22px; border-radius: 3px; background: #fff; }

.hero-join {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FFB199 0%, #FF7A8A 100%);
  color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(255,122,138,.30);
  min-height: 280px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.hero-join:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,122,138,.40); text-decoration: none; }
.hero-join::before {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  background: rgba(255,255,255,.15); border-radius: 50%;
}
.hero-join-icon { width: 40px; height: 40px; background: rgba(255,255,255,.2); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.hero-join-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hero-join-sub { font-size: 12.5px; opacity: .9; line-height: 1.55; }
.hero-join-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hero-join-tags span { padding: 2px 8px; background: rgba(255,255,255,.25); border-radius: 6px; font-size: 11px; }
.hero-join-btn {
  margin-top: auto; align-self: flex-start;
  padding: 8px 18px; background: #fff; color: #FF6B7A;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}

/* 紧凑小圆按钮（替代 96px 大圆按钮） */
.hero-quick {
  display: flex; gap: 10px; margin: 0 0 20px; flex-wrap: wrap;
}
.hq {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: #fff;
  border: 1px solid var(--border-soft); border-radius: 12px;
  text-decoration: none; color: var(--fg); font-size: 13px; font-weight: 500;
  transition: all .15s;
}
.hq:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-card); }
.hq-ico { width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-banner { min-height: 200px; }
  .hero-slides { min-height: 200px; }
  .hero-slide-title { font-size: 20px; }
  .hero-join { min-height: 0; padding: 18px 20px; }
  .hero-join-title { font-size: 17px; }
}

/* ===== 移动端底部 Tab Bar（简星社区风格：毛玻璃 + 阴影 + 中间凸起 +） ===== */
.mobile-tabbar {
  display: none;
}
@media (max-width: 860px) {
  .mobile-tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0;
    height: 68px;
    align-items: flex-start;
    padding-top: 6px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255,255,255,0.78);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    border-top: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 -6px 26px rgba(0,0,0,0.08), 0 -1px 0 rgba(0,0,0,0.03);
    border-radius: 22px 22px 0 0;
    z-index: 50;
  }
  .mobile-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    padding: 6px 2px 0; color: var(--fg-soft); text-decoration: none; font-size: 10px; gap: 3px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-tabbar a.on { color: var(--accent); }
  .mobile-tabbar a svg { width: 24px; height: 24px; }
  .mobile-tabbar a.tab-post {
    flex: 0 0 70px;
  }
  .mobile-tabbar .post-btn {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(74,144,226,0.35), 0 2px 6px rgba(74,144,226,0.2);
    margin-top: -22px;
    transition: transform .15s, box-shadow .15s;
  }
  .mobile-tabbar .post-btn:active { transform: scale(0.94); }
  .mobile-tabbar .post-btn svg { width: 28px; height: 28px; }
  .main.app { padding-bottom: 82px !important; }   /* 防止底部 tabbar 遮挡内容 */
  .center-wrap { padding-bottom: 82px !important; }
}

/* ===== hero 装饰圆（CSS 渐变轮播的浮动装饰） ===== */
.hero-slide-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.deco-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.15); }
.deco-circle.c1 { width: 240px; height: 240px; right: -60px; top: -80px; animation: float-c1 8s ease-in-out infinite; }
.deco-circle.c2 { width: 160px; height: 160px; left: -40px; bottom: -50px; background: rgba(255,255,255,.12); animation: float-c2 10s ease-in-out infinite; }
.deco-circle.c3 { width: 90px; height: 90px; right: 30%; top: 20%; background: rgba(255,255,255,.10); animation: float-c3 6s ease-in-out infinite; }
@keyframes float-c1 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-15px, 20px); } }
@keyframes float-c2 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(20px, -15px); } }
@keyframes float-c3 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-10px, 10px); } }
/* ===== v15.2 移动端适配修复 ===== */
/* 顶栏移动端：紧凑布局 + 隐藏副标题 */
@media (max-width: 600px) {
  .topbar .container { padding: 0 10px !important; }
  .topbar .logo-row { gap: 4px !important; }
  .topbar .logo-row .name { font-size: 13.5px !important; }
  .topbar .logo-row .sub { display: none !important; }   /* 隐藏副标题"连结每一份"避免拥挤 */
  .topbar .right { gap: 4px !important; }
  .topbar .right .icon-btn { padding: 4px !important; }
  .topbar .right .icon-btn svg { width: 18px !important; height: 18px !important; }
  .topbar .balance-pill { display: none !important; }   /* 顶栏余额徽章：移动端隐藏，详情页显示 */
  .topbar .login-pill { padding: 3px 8px !important; font-size: 12px !important; }
}
/* toast 容器：跨页面切换自动清理 */
#toastHost { position: fixed; left: 0; right: 0; bottom: 80px; z-index: 9999; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
