/* =========================================================
   全站布局系统（参考生财有术信息架构）
   顶栏 + 主栏/侧栏 + 航海三列卡片
   ========================================================= */

:root {
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  --font-display: "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bg: #eef1f6;
  --surface: #fff;
  --ink: #111827;
  --ink2: #4b5563;
  --ink3: #9aa3af;
  --line: #e5e7eb;
  --line2: #d1d5db;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-bg: #eff4ff;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 56px;
  --aside: 312px;
  --container: 1180px;
  --ease: cubic-bezier(.2,0,0,1);
  --ease-spring: cubic-bezier(.34,1.4,.64,1);
  --shadow-sm: 0 1px 2px rgba(17,24,39,.04), 0 4px 14px rgba(17,24,39,.04);
  --shadow-md: 0 8px 24px rgba(17,24,39,.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--ink3); }
.main { padding: 16px 0 64px; min-height: calc(100vh - var(--header-h) - 80px); }

/* —— Top notice —— */
.top-notice {
  background: #fff2f0;
  color: #a61d24;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  border-bottom: 1px solid #ffccc7;
}
.top-notice a { color: #a61d24; font-weight: 700; text-decoration: underline; }

/* —— Header —— */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--header-h);
}
.header-left {
  display: flex; align-items: center; gap: 28px;
  min-width: 0; flex: 1 1 auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink) !important; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.logo:hover { color: var(--ink) !important; }
.logo-mark {
  width: 28px !important; height: 28px !important; border-radius: 8px !important;
  background: var(--brand) !important; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
img.logo-mark.logo-img { background: transparent !important; object-fit: contain; }
.nav {
  display: flex; align-items: center; gap: 8px;
  height: 100%; min-width: 0;
}
.nav a {
  height: 36px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 8px;
  color: var(--ink2) !important; font-size: 14px; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}
.nav a:hover { color: var(--ink) !important; background: #f5f7fb; }
.nav a.active {
  color: var(--brand) !important; background: var(--brand-bg);
  box-shadow: none;
}
.nav-m { display: none !important; }
.nav-mask { display: none; }
.header-right {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0; margin-left: auto;
}
.header-search {
  display: flex; align-items: center; height: 34px;
  width: 200px;
  background: var(--bg); border: 1px solid transparent; border-radius: 18px; overflow: hidden;
  flex-shrink: 0;
}
.header-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  padding: 0 12px; font-size: 13px; outline: none; color: var(--ink);
}
.header-search button {
  width: 34px; height: 100%; border: 0; background: transparent; color: var(--ink3); cursor: pointer;
}
.header-search:focus-within { background: #fff; border-color: #c9d6ff; }
.header-search.is-locked { opacity: .7; }
.btn-post {
  height: 32px; padding: 0 14px; border-radius: 16px;
  background: var(--brand); color: #fff !important; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; border: 0; cursor: pointer; flex-shrink: 0;
}
.btn-post:hover { background: var(--brand-hover); color: #fff !important; }
.btn-text {
  height: 32px; padding: 0 10px; border: 0; background: transparent;
  color: var(--ink2); font-weight: 600; cursor: pointer;
}
.header-av-link { display: inline-flex; flex-shrink: 0; }
.header-av, img.header-av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.header-av.letter {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-bg); color: var(--brand); font-weight: 700; font-size: 12px;
}
.nav-toggle {
  display: none; width: 36px; height: 36px; border: 1px solid var(--line2);
  border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: var(--ink);
  border-radius: 2px; position: relative; transition: .2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
body.nav-open .nav-toggle-bars { background: transparent; }
body.nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
body.nav-open { overflow: hidden; }

/* —— Buttons —— */
.btn-primary, .btn-outline, .btn-ghost, .btn-block, .btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: .15s var(--ease);
}
.btn-primary { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.btn-primary:hover { background: var(--brand-hover) !important; border-color: var(--brand-hover) !important; color: #fff !important; }
.btn-outline { background: #fff !important; border-color: var(--line2) !important; color: var(--ink) !important; }
.btn-outline:hover { border-color: var(--brand) !important; color: var(--brand) !important; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; }

/* —— Body layout —— */
.site-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside);
  gap: 16px;
  align-items: start;
}
.site-body.single { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.site-content { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.site-aside {
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: calc(var(--header-h) + 16px);
}

/* —— Tags —— */
.tag-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.tag-bar.plain { padding: 0; border: 0; background: transparent; }
.tag-bar a {
  height: 30px; padding: 0 12px; display: inline-flex; align-items: center;
  border-radius: 15px; background: var(--bg); color: var(--ink2) !important;
  font-size: 13px; font-weight: 600;
}
.tag-bar a:hover { color: var(--brand) !important; }
.tag-bar a.on { background: var(--brand-bg); color: var(--brand) !important; }

/* —— Feed —— */
.feed-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.feed-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.feed-sort { display: flex; gap: 4px; }
.feed-sort a {
  height: 28px; padding: 0 12px; display: inline-flex; align-items: center;
  border-radius: 4px; color: var(--ink2) !important; font-size: 13px; font-weight: 600;
}
.feed-sort a.on { color: var(--brand) !important; background: var(--brand-bg); }
.feed-item { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-item-hd {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap;
}
.feed-av, img.feed-av {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg);
}
.feed-author { font-size: 13px; font-weight: 600; color: var(--ink); }
.feed-time { font-size: 12px; color: var(--ink3); }
.pill {
  height: 20px; padding: 0 6px; display: inline-flex; align-items: center;
  border-radius: 3px; font-size: 11px; font-weight: 650; background: var(--bg); color: var(--ink2);
}
.pill.danger { background: #ffece8; color: var(--danger); }
.pill.warn { background: #fff7e8; color: var(--warn); }
.feed-item-body { display: block; color: inherit; }
.feed-item-body:hover { color: inherit; }
.feed-item-body h2 {
  margin: 0; font-size: 17px; font-weight: 700; line-height: 1.45; color: var(--ink);
}
.feed-item-body:hover h2 { color: var(--brand); }
.feed-item-body p {
  margin: 8px 0 0; color: var(--ink2); font-size: 14px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-item-ft {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 12px;
}
.feed-stats { display: flex; gap: 14px; color: var(--ink3); font-size: 12px; }
.feed-tag {
  height: 24px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 3px; background: var(--bg); color: var(--ink2) !important;
  font-size: 12px; font-weight: 600;
}
.feed-tag:hover { color: var(--brand) !important; }
.empty-box, .empty-inline, .empty {
  padding: 48px 16px; text-align: center; color: var(--ink3);
}
.empty-box.panel, .empty {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}

/* —— Aside —— */
.aside-card, .content-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.aside-card { padding: 14px; }
.content-card { padding: 18px; }
.aside-title, .card-hd h2 {
  margin: 0; font-size: 14px; font-weight: 700;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.aside-desc { margin: 0 0 12px; color: var(--ink2); font-size: 13px; line-height: 1.55; }
.aside-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.aside-av, img.aside-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.aside-name { font-weight: 700; font-size: 14px; }
.aside-sub { color: var(--ink3); font-size: 12px; margin-top: 2px; }
.aside-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aside-actions a, .aside-actions button {
  height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; border: 1px solid var(--line2); background: #fff;
  color: var(--ink) !important; font-size: 13px; font-weight: 600; cursor: pointer;
}
.aside-actions .primary, .aside-actions a.primary {
  background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important;
}
.aside-list { margin: 0 0 12px; }
.aside-list li {
  position: relative; padding: 6px 0 6px 14px; font-size: 13px; color: var(--ink2);
}
.aside-list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.aside-btn, .hh-btn, .hh-btn-main {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 36px; border-radius: 6px; border: 0;
  background: var(--brand); color: #fff !important; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.aside-btn:hover, .hh-btn-main:hover { background: var(--brand-hover); color: #fff !important; }
.hh-btn-block { width: 100%; }
.hh-btn-ghost {
  background: #fff !important; border: 1px solid var(--line2) !important; color: var(--ink) !important;
}
.aside-entry {
  display: block; padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); color: inherit !important;
}
.aside-entry:hover { border-color: #c9d6ff; color: inherit !important; }
.aside-entry strong { display: block; margin-bottom: 4px; font-size: 14px; color: var(--ink); }
.aside-entry span { font-size: 12px; color: var(--ink3); }
.aside-rank li {
  display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.aside-rank li:first-child { border-top: 0; padding-top: 0; }
.aside-rank i {
  font-style: normal; font-weight: 700; color: var(--ink3); font-size: 13px;
}
.aside-rank i.top { color: var(--brand); }
.aside-rank a {
  color: var(--ink) !important; font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aside-rank a:hover { color: var(--brand) !important; }
.aside-facts li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.aside-facts li:last-child { border-bottom: 0; }
.aside-facts span { color: var(--ink3); }

/* —— Points —— */
.pts-card { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pts-label { margin: 0 0 2px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.pts-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pts-points { font-size: 22px; font-weight: 700; line-height: 1.1; }
.pts-points small { font-size: 12px; color: var(--ink3); font-weight: 500; }
.pts-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--ink2); }
.pts-meta b { color: var(--ink); }
.pts-btn {
  min-width: 88px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 13px; cursor: pointer;
}
.pts-btn.is-done, .pts-btn:disabled { background: var(--bg); color: var(--ink3); cursor: default; }
.pts-msg { margin-top: 8px; font-size: 12px; color: var(--ok); }
.pts-msg.is-err { color: var(--danger); }

/* —— HangHai page —— */
.hh-page { display: flex; flex-direction: column; gap: 16px; }
.hh-top {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .7fr); gap: 12px;
}
.hh-banner {
  min-height: 148px; border-radius: var(--radius-lg); padding: 28px 24px;
  background: linear-gradient(135deg, #1d2129 0%, #4e5969 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.hh-banner h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.hh-banner p { margin: 8px 0 0; color: rgba(255,255,255,.75); font-size: 14px; }
.hh-mine {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.hh-mine-title { font-size: 15px; font-weight: 700; }
.hh-mine p { margin: 0; color: var(--ink2); font-size: 13px; }
.hh-sec-title {
  margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--ink);
}
.hh-sec-title em { font-style: normal; color: var(--ink3); font-weight: 500; font-size: 14px; }
.hh-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.hh-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.hh-card:hover { border-color: #c9d6ff; box-shadow: 0 4px 12px rgba(31,35,41,.06); }
.hh-card-link {
  display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px;
  color: inherit !important; flex: 1;
}
.hh-card-logo, img.hh-card-logo {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); background: var(--bg);
}
.hh-card-logo.letter, .detail-logo.letter {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--brand); background: var(--brand-bg); border-color: #c9d6ff;
}
.hh-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.hh-card-main h2 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.hh-card-link:hover h2 { color: var(--brand); }
.hh-card-main p {
  margin: 6px 0 0; color: var(--ink2); font-size: 13px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hh-badge {
  flex-shrink: 0; height: 20px; padding: 0 6px; display: inline-flex; align-items: center;
  border-radius: 3px; font-size: 11px; font-weight: 650; background: var(--bg); color: var(--ink2);
}
.hh-badge.run { background: #e8ffea; color: var(--ok); }
.hh-badge.soon { background: #fff7e8; color: var(--warn); }
.hh-card-ft {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--ink3);
}
.hh-card-acts { display: flex; align-items: center; gap: 8px; }
.hh-link { color: var(--ink2) !important; font-weight: 600; }
.hh-cta {
  height: 28px; padding: 0 12px; display: inline-flex; align-items: center;
  border: 1px solid var(--brand); border-radius: 4px;
  color: var(--brand) !important; font-size: 12px; font-weight: 650;
}
.hh-cta:hover { background: var(--brand); color: #fff !important; }

/* Detail / topic shared */
.crumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 12px; color: var(--ink3);
}
.crumb a { color: var(--ink3); }
.crumb a:hover { color: var(--brand); }
.detail-hd { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-logo, img.detail-logo {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line); background: var(--bg); flex-shrink: 0;
}
.detail-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; color: var(--ink3); font-size: 12px; }
.detail-hd h1, .tp-head h1, .page-article h1, .form-title {
  margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35;
}
.detail-summary { margin: 8px 0 0; color: var(--ink2); font-size: 14px; }
.article-body { font-size: 15px; line-height: 1.85; }
.article-body img { border-radius: 8px; margin: 10px 0; }
.tp-flags { display: flex; gap: 6px; margin-bottom: 8px; }
.tp-author { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.tp-av, img.tp-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tp-author-name { font-weight: 700; color: var(--ink) !important; }
.tp-author-sub { display: flex; gap: 10px; color: var(--ink3); font-size: 12px; margin-top: 2px; }

.cmt-form textarea, .tp-composer textarea, #cmtContent {
  width: 100%; min-height: 88px; border: 1px solid var(--line2);
  border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; resize: vertical;
}
.cmt-form textarea:focus, #cmtContent:focus { outline: none; border-color: var(--brand); }
.cmt-list { margin-top: 8px; }
.cmt-item {
  display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 10px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.cmt-item.is-child, .cmt-child { margin-left: 20px; }
.cmt-av, img.cmt-av, .cmt-avatar, img.cmt-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.cmt-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink3); font-size: 12px; margin-bottom: 4px; }
.cmt-meta strong, .cmt-name { color: var(--ink) !important; font-weight: 700; font-size: 13px; }
.cmt-body { font-size: 14px; line-height: 1.7; }
.cmt-reply-btn, .cmt-cancel-reply {
  border: 0; background: transparent; color: var(--ink3); font-size: 12px; cursor: pointer; padding: 0;
}
.lock-box, .vip-gate {
  text-align: center; padding: 28px 16px; border: 1px dashed var(--line2);
  border-radius: 8px; background: #fafafa;
}
.vip-gate-icon {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 3px; background: #fff7e8; color: var(--warn);
  font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.vip-gate h3, .lock-box h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.vip-gate p, .lock-box p { margin: 0; color: var(--ink2); }
.vip-gate-actions { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}

/* VIP */
.vip-layout {
  display: grid; grid-template-columns: 1.15fr .85fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.vip-info { padding: 28px 24px; }
.vip-info h1 { margin: 0; font-size: 24px; font-weight: 800; }
.vip-desc { margin: 8px 0 0; color: var(--ink2); font-size: 14px; }
.vip-now {
  margin-top: 14px; padding: 10px 12px; border-radius: 6px;
  background: #fff7e8; color: #ad4e00; font-size: 13px;
}
.vip-benefits { margin: 18px 0 0; }
.vip-benefits li {
  position: relative; padding: 9px 0 9px 16px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink2);
}
.vip-benefits li:first-child { border-top: 0; }
.vip-benefits li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.vip-pay { padding: 28px 22px; background: #f7f8fa; border-left: 1px solid var(--line); }
.vip-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 16px; }
.vip-price em { font-style: normal; font-size: 18px; font-weight: 700; color: var(--brand); }
.vip-price b { font-size: 40px; font-weight: 800; line-height: 1; color: var(--brand); }
.vip-price span { margin-left: 6px; color: var(--ink3); font-size: 13px; }
.pay-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pay-type {
  height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); border-radius: 6px; background: #fff;
  font-weight: 600; font-size: 13px; color: var(--ink2); cursor: pointer;
}
.pay-type.active { border-color: var(--brand); color: var(--brand); background: var(--brand-bg); }
.vip-cardkey { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.vip-cardkey .label { margin-bottom: 8px; font-size: 12px; color: var(--ink3); font-weight: 600; }

/* User center */
.user-page {
  max-width: 820px; margin: 0 auto; padding: 16px 0 64px;
  display: flex; flex-direction: column; gap: 12px;
}
.uc-hero {
  padding: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.uc-hero-top { display: flex; gap: 14px; align-items: center; }
.uc-hero-av, .uc-hero-av img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.uc-hero-av {
  background: var(--brand-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #dbeafe;
}
.uc-hero-meta { min-width: 0; flex: 1; }
.uc-hero-name-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.uc-hero h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.uc-hero-stats {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px;
}
.uc-hero-stats > div {
  min-width: 48px;
}
.uc-hero-stats b { display: block; font-size: 16px; font-weight: 800; line-height: 1.1; }
.uc-hero-stats span { font-size: 12px; color: var(--ink3); }
.uc-hero-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.uc-action {
  height: 34px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); background: #fff;
  color: var(--ink) !important; font-size: 13px; font-weight: 700;
}
.uc-action:hover { border-color: #bfdbfe; color: var(--brand) !important; }
.uc-action.danger { color: var(--danger) !important; border-color: #fecaca; }
.uc-action.danger:hover { background: #fff1f2; }
.aside-logout {
  display: block; margin-top: 10px; text-align: center;
  height: 32px; line-height: 32px; border-radius: 6px;
  border: 1px solid var(--line2); color: var(--ink2) !important;
  font-size: 13px; font-weight: 600;
}
.aside-logout:hover { color: var(--danger) !important; border-color: #fecaca; }

.uc-tabs {
  display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; scrollbar-width: none;
}
.uc-tabs::-webkit-scrollbar { display: none; }
.uc-tabs a {
  flex-shrink: 0; height: 36px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 10px; color: var(--ink2) !important; font-weight: 700; font-size: 13px;
}
.uc-tabs a.on { background: var(--brand-bg); color: var(--brand) !important; }

.uc-panel {
  padding: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-sm);
}
.uc-section + .uc-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.uc-section-hd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.uc-section-hd h2 { margin: 0; font-size: 16px; font-weight: 800; }
.uc-section-hd span { font-size: 12px; color: var(--ink3); font-weight: 600; }

.uc-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.uc-home-card {
  padding: 16px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, #f8faff, #fff); color: inherit !important;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.uc-home-card:hover {
  transform: translateY(-2px); border-color: #bfdbfe; box-shadow: var(--shadow-sm); color: inherit !important;
}
.uc-home-card b { display: block; font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.uc-home-card span { color: var(--ink3); font-size: 12px; }

.uc-pts { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.uc-pts-item {
  text-align: center; padding: 14px 8px; border: 1px solid var(--line);
  border-radius: 12px; background: #f8fafc;
}
.uc-pts-item b { display: block; font-size: 18px; font-weight: 800; }
.uc-pts-item span { font-size: 11px; color: var(--ink3); }
.uc-pts-actions .pts-btn { width: 100%; max-width: 240px; height: 40px; }

.uc-list { display: flex; flex-direction: column; }
.uc-list-item {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit !important;
}
.uc-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.uc-list-item:first-child { padding-top: 0; }
.uc-list-title {
  font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.45;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.uc-list-item:hover .uc-list-title { color: var(--brand); }
.uc-list-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px;
  font-size: 12px; color: var(--ink3);
}

.uc-empty {
  padding: 36px 12px; text-align: center; color: var(--ink3); font-size: 14px;
}
.uc-empty a { font-weight: 700; }

.uc-order-list { display: grid; gap: 10px; }
.uc-order-card {
  padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc;
}
.uc-order-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.uc-order-top strong { font-size: 14px; font-weight: 800; line-height: 1.4; }
.uc-order-status {
  flex-shrink: 0; height: 22px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 750;
  background: #f3f4f6; color: var(--ink3);
}
.uc-order-status.paid { background: #dcfce7; color: #166534; }
.uc-order-status.pending { background: #fff7ed; color: #c2410c; }
.uc-order-status.closed { background: #f3f4f6; color: #6b7280; }
.uc-order-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
  font-size: 12px; color: var(--ink3);
}
.uc-order-amount {
  margin-top: 10px; font-size: 18px; font-weight: 800; color: var(--brand);
}

.badge-vip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; background: #fff7e8; color: #ad4e00; font-size: 11px; font-weight: 750;
}
.badge-novip {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; background: var(--brand-bg); color: var(--brand);
  font-weight: 750; font-size: 12px;
}

.user-form { max-width: 480px; }
.user-form .form-group { margin-bottom: 16px; }
.user-form .form-group label {
  display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink2);
}
.user-form .form-group input {
  width: 100%; height: 44px; border: 1px solid var(--line2); border-radius: 12px;
  padding: 0 14px; font-size: 14px; background: #fff;
}
.user-form .form-group input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.user-form-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.user-form-actions .btn-primary,
.user-form-actions .btn-outline {
  height: 42px; padding: 0 18px; border-radius: 12px;
}
.avatar-edit {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc;
}
.avatar-preview,
.avatar-preview img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.avatar-preview {
  background: var(--brand-bg); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; overflow: hidden;
}
.avatar-edit-right { min-width: 0; flex: 1; }
.avatar-upload-btn {
  height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center;
}
.form-help { margin: 8px 0 0; font-size: 12px; color: var(--ink3); line-height: 1.5; }

.form-card { max-width: 760px; }
.form-actions { display: flex; gap: 8px; align-items: center; }
.search-form {
  display: flex; gap: 8px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.search-form input {
  flex: 1; height: 36px; border: 1px solid var(--line2); border-radius: 6px; padding: 0 12px;
}
.result-row {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: inherit !important;
}
.result-title { font-size: 15px; font-weight: 700; color: var(--ink); }
.result-row:hover .result-title { color: var(--brand); }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--ink3); font-size: 12px; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; color: var(--ink3); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid var(--line2); border-radius: 6px; padding: 10px 12px; font-size: 14px; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand);
}
.form-error {
  padding: 8px 10px; border-radius: 6px; background: #ffece8; color: var(--danger);
  font-size: 13px; margin-bottom: 10px;
}
.form-ok {
  padding: 8px 10px; border-radius: 6px; background: #e8ffea; color: var(--ok);
  font-size: 13px; margin-bottom: 10px;
}
.alert {
  padding: 10px 12px; border-radius: 6px; background: #fff7e8;
  border: 1px solid #ffe4ba; color: #ad4e00; font-size: 13px;
}
.hh-stars { display: inline-flex; gap: 1px; }
.hh-stars i { font-style: normal; color: #d0d3d9; font-size: 12px; }
.hh-stars i.on { color: var(--warn); }
.hh-side-muted { color: var(--ink3); font-size: 13px; }

/* Footer / auth / toast */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 20px 0; color: var(--ink3); }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.footer-brand { font-weight: 700; color: var(--ink); }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--ink2); font-size: 13px; }
.footer-copy { font-size: 12px; }
.footer-copy a { color: var(--ink3); }

.auth-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.auth-modal[hidden] { display: none !important; }
.auth-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.auth-modal-panel {
  position: relative; width: min(400px, calc(100% - 28px)); background: #fff;
  border-radius: 12px; border: 1px solid var(--line); padding: 22px 20px 24px; z-index: 1;
}
.auth-modal-x {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink3); font-size: 20px; cursor: pointer;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.auth-tab { border: 0; background: transparent; padding: 8px 4px; font-weight: 700; color: var(--ink3); cursor: pointer; }
.auth-tab.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.auth-form-error { margin-bottom: 10px; color: var(--danger); font-size: 13px; }
.toast-wrap {
  position: fixed; top: calc(var(--header-h) + 12px); left: 50%;
  transform: translateX(-50%); z-index: 1200; width: min(400px, calc(100% - 24px));
}
.toast {
  display: flex; gap: 10px; align-items: flex-start; justify-content: space-between;
  padding: 12px 14px; background: #fff; border-radius: 8px; border: 1px solid var(--line);
}
.toast-x { border: 0; background: transparent; cursor: pointer; color: var(--ink3); font-size: 18px; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; }
.pagination a, .pagination span {
  min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink);
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Compat aliases */
.page-layout, .tp-layout, .comm-shell, .home, .layout-2 {
  display: grid; grid-template-columns: minmax(0,1fr) var(--aside); gap: 16px; align-items: start;
}
.panel, .rail-block, .side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-hd h2 { margin: 0; font-size: 14px; font-weight: 700; }
.tag, .tag-red, .tag-gold { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px; font-size: 11px; font-weight: 650; background: var(--bg); color: var(--ink2); }
.tag-red { background: #ffece8; color: var(--danger); }
.tag-gold { background: #fff7e8; color: var(--warn); }

@media (max-width: 980px) {
  .hh-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .header-search { width: 160px; }
  .nav a { padding: 0 12px; }
  .header-left { gap: 18px; }
}
@media (max-width: 900px) {
  .site-header { z-index: 200; }
  .header-row { gap: 10px; }
  .header-left { gap: 0; flex: 1; }
  .logo-text {
    max-width: 36vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 12px; right: 12px;
    z-index: 230; height: auto; max-height: min(70vh, calc(100vh - var(--header-h) - 24px));
    overflow-y: auto; flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 10px; display: none;
    box-shadow: 0 16px 40px rgba(17,24,39,.16);
  }
  .nav.open { display: flex; }
  .nav a {
    height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink) !important;
    width: 100%; justify-content: flex-start;
  }
  .nav a.active { background: var(--brand-bg); color: var(--brand) !important; }
  .nav-m { display: flex !important; }
  .header-search,
  .header-auth-desk { display: none !important; }
  .btn-post { height: 30px; padding: 0 12px; font-size: 12px; }
  .header-right { gap: 10px; }
  .nav-mask {
    display: none; position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(15,23,42,.36); z-index: 220;
  }
  .nav-mask.open { display: block !important; }
  .site-body, .page-layout, .tp-layout, .comm-shell, .home, .layout-2, .hh-top {
    grid-template-columns: 1fr;
  }
  .site-aside { position: static; }
  .vip-layout { grid-template-columns: 1fr; }
  .vip-pay { border-left: 0; border-top: 1px solid var(--line); }
  .uc-home-grid { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: block; }
  .mobile-bar .hh-btn, .mobile-bar .aside-btn, .mobile-bar a, .mobile-bar button { width: 100%; }
  .cm-circles,
  .cm-aside-boards { display: none !important; }
  .cm-pulse { display: none !important; }
  .cm-welcome {
    grid-template-columns: 1fr !important;
    padding: 14px !important;
  }
  .cm-welcome-desc { display: none; }
  .cm-welcome-user-btn { display: none; }
  .cm-welcome-actions .cm-btn { height: 36px; }
}
@media (max-width: 640px) {
  .container { width: min(var(--container), calc(100% - 24px)); }
  .hh-grid { grid-template-columns: 1fr; }
  .aside-actions { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .hh-banner h1 { font-size: 22px; }
  .vip-price b { font-size: 34px; }
  .home-hero { padding: 20px 16px; }
  .home-hero-main h1 { font-size: 24px; }
  .join-page { grid-template-columns: 1fr; }
  .join-visual { min-height: 42vh; padding: 36px 22px 28px; }
  .join-visual h1 { font-size: 28px; }
  .join-panel { padding: 24px 18px 40px; }
  .vip-hero { padding: 24px 18px; }
  .vip-hero-copy h1 { font-size: 28px; }
}

/* —— Home hero —— */
.home-hero {
  display: grid; grid-template-columns: minmax(0,1.4fr) auto;
  gap: 20px; align-items: end;
  padding: 24px 22px;
  background:
    radial-gradient(900px 240px at 0% 0%, rgba(51,112,255,.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.home-eyebrow {
  margin: 0 0 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.home-hero-main h1 {
  margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
}
.home-hero-main > p {
  margin: 10px 0 0; color: var(--ink2); font-size: 14px; max-width: 42em;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.home-hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(72px,1fr)); gap: 10px;
}
.home-hero-stats > div {
  min-width: 76px; padding: 12px 10px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.home-hero-stats b { display: block; font-size: 18px; font-weight: 800; line-height: 1.1; }
.home-hero-stats span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink3); }
.feed-new {
  height: 28px; padding: 0 12px; display: inline-flex; align-items: center;
  border-radius: 4px; background: var(--brand); color: #fff !important;
  font-size: 12px; font-weight: 700;
}
.feed-new:hover { background: var(--brand-hover); color: #fff !important; }
.tag-bar-scroll { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }

/* —— VIP rewrite —— */
.vip-page { padding: 16px 0 88px; display: flex; flex-direction: column; gap: 18px; }
.vip-hero {
  display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr);
  gap: 20px; align-items: stretch;
  padding: 32px 28px;
  border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(37,99,235,.22), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #111827 48%, #1e293b 100%);
  color: #fff;
}
.vip-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; opacity: .72; }
.vip-hero-copy h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.vip-hero-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 34em; }
.vip-hero-bullets { margin: 18px 0 0; display: grid; gap: 8px; }
.vip-hero-bullets li {
  position: relative; padding-left: 16px; font-size: 13px; color: rgba(255,255,255,.86);
}
.vip-hero-bullets li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: #60a5fa;
}
.vip-now {
  display: inline-flex; margin-top: 18px; padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
  font-size: 13px; color: #fff;
}
.vip-now.soft { color: rgba(255,255,255,.88); }
.vip-price-board {
  background: #fff; color: var(--ink); border-radius: 16px; padding: 22px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.vip-board-label {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--brand); margin-bottom: 8px;
}
.vip-price-note { margin: -6px 0 14px; font-size: 12px; color: var(--ink3); }
.vip-trust { margin-top: 12px; text-align: center; font-size: 12px; color: var(--ink3); }

.vip-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px;
}
.vip-stats > div {
  padding: 16px 12px; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.vip-stats b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.vip-stats span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink3); }

.vip-section {
  padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-sm);
}
.vip-sec-hd { margin-bottom: 16px; }
.vip-sec-hd h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.vip-sec-hd p { margin: 8px 0 0; color: var(--ink2); font-size: 14px; }

.vip-modules {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px;
}
.vip-module {
  padding: 16px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #f8faff, #fff);
  transition: transform .2s var(--ease-spring), box-shadow .2s var(--ease);
}
.vip-module:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vip-module-top { display: flex; align-items: center; margin-bottom: 10px; }
.vip-module-tag {
  height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center;
  background: var(--brand-bg); color: var(--brand); font-size: 11px; font-weight: 700;
}
.vip-module h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.vip-module p { margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.65; }

.vip-compare { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vip-compare-hd, .vip-compare-row {
  display: grid; grid-template-columns: minmax(0,1.6fr) .7fr .7fr; gap: 8px;
  padding: 12px 14px; align-items: center;
}
.vip-compare-hd {
  background: #0f172a; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.vip-compare-row { border-top: 1px solid var(--line); font-size: 13px; background: #fff; }
.vip-compare-row:nth-child(odd) { background: #f9fafb; }
.vip-compare-row .yes { color: var(--ok); font-weight: 800; text-align: center; }
.vip-compare-row .no { color: var(--ink3); text-align: center; }
.vip-compare-hd span:nth-child(2),
.vip-compare-hd span:nth-child(3) { text-align: center; }

.vip-scenes {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px;
}
.vip-scene {
  padding: 18px 16px; border-radius: 14px; border: 1px solid var(--line); background: #f8fafc;
}
.vip-scene h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.vip-scene p { margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.7; }

.vip-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px;
}
.vip-step {
  padding: 18px 16px; border-radius: 14px;
  background: linear-gradient(180deg, #eff4ff, #fff); border: 1px solid #dbeafe;
}
.vip-step b { display: block; color: var(--brand); font-size: 20px; font-weight: 900; letter-spacing: .04em; }
.vip-step h3 { margin: 8px 0 6px; font-size: 16px; font-weight: 800; }
.vip-step p { margin: 0; color: var(--ink2); font-size: 13px; }

.vip-map {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px;
}
.vip-map-card {
  padding: 16px; border-radius: 14px; border: 1px dashed #bfdbfe; background: #f8faff;
}
.vip-map-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; color: var(--brand); }
.vip-map-card p { margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.65; }

.vip-faq { display: grid; gap: 8px; }
.vip-faq-item {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 14px;
}
.vip-faq-item summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 750; font-size: 14px;
}
.vip-faq-item summary::-webkit-details-marker { display: none; }
.vip-faq-item p { margin: 0 0 14px; color: var(--ink2); font-size: 13px; line-height: 1.7; }

.vip-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #0ea5e9);
  box-shadow: 0 16px 36px rgba(37,99,235,.28);
}
.vip-cta h2 { margin: 0; font-size: 22px; font-weight: 800; }
.vip-cta p { margin: 6px 0 0; opacity: .9; font-size: 13px; }
.vip-cta .btn-primary {
  background: #fff !important; color: var(--brand) !important; border-color: #fff !important;
  height: 44px; padding: 0 20px; flex-shrink: 0;
}

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

@media (max-width: 980px) {
  .vip-modules, .vip-map { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .vip-hero { grid-template-columns: 1fr; }
  .vip-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vip-steps, .vip-scenes { grid-template-columns: 1fr; }
  .vip-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .home-hero-stats { width: 100%; }
  .vip-modules, .vip-map { grid-template-columns: 1fr; }
  .vip-compare-hd, .vip-compare-row { grid-template-columns: minmax(0,1.4fr) .6fr .6fr; padding: 10px; font-size: 12px; }
}

/* —— Join landing (scys-like gate) —— */
.join-body {
  margin: 0;
  min-height: 100vh;
  background: #0b1220;
  color: #fff;
}
.join-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr);
}
.join-visual {
  position: relative;
  padding: 48px 56px;
  display: flex; align-items: center;
  background:
    radial-gradient(900px 480px at 10% 10%, rgba(51,112,255,.35), transparent 55%),
    radial-gradient(700px 420px at 80% 80%, rgba(14,165,233,.18), transparent 50%),
    linear-gradient(160deg, #0b1220 0%, #111827 55%, #0f172a 100%);
  overflow: hidden;
}
.join-visual::after {
  content: "";
  position: absolute; inset: auto -10% -20% 30%;
  height: 55%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04));
  transform: rotate(-8deg);
  pointer-events: none;
}
.join-visual-inner { position: relative; z-index: 1; max-width: 560px; }
.join-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff !important; font-weight: 800; font-size: 18px; margin-bottom: 28px;
}
.join-brand .logo-mark {
  width: 36px !important; height: 36px !important; border-radius: 10px !important;
}
.join-visual h1 {
  margin: 0; font-size: 42px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em;
}
.join-lead {
  margin: 16px 0 0; font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.72); max-width: 28em;
}
.join-points {
  margin: 28px 0 0; display: grid; gap: 12px;
}
.join-points li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: rgba(255,255,255,.86);
}
.join-points li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: #5b8cff;
}
.join-price-tag {
  margin-top: 32px; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.join-price-tag span { font-size: 13px; color: rgba(255,255,255,.65); }
.join-price-tag strong { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.join-price-tag em { font-style: normal; color: rgba(255,255,255,.55); font-size: 13px; }
.join-panel {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 40px 32px; background: #f5f7fb; color: var(--ink);
}
.join-panel-card {
  width: min(420px, 100%);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 22px 26px; box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.join-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 4px; margin-bottom: 18px; background: var(--bg); border-radius: 10px;
}
.join-tab {
  height: 38px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ink3); font-weight: 700; font-size: 14px; cursor: pointer;
}
.join-tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.join-form-tip { margin: 0 0 14px; font-size: 13px; color: var(--ink2); line-height: 1.55; }
.join-form-tip b { color: var(--brand); }
.join-submit { height: 44px; margin-top: 4px; font-size: 15px; }
.join-footnote {
  margin: 18px 0 0; font-size: 12px; color: var(--ink3); text-align: center;
}

/* —— 社群介绍页（浅色清爽风） —— */
.gate-body {
  margin: 0; min-height: 100vh; background: #f3f7f5; color: #10231c;
  font-family: var(--font);
}
.gate-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(243,247,245,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16,35,28,.08);
}
.gate-nav-inner, .gate-hero-inner, .gate-strip-inner, .gate-block-inner, .gate-foot-inner {
  width: min(1080px, calc(100% - 32px)); margin: 0 auto;
}
.gate-nav-inner {
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gate-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #10231c !important; font-weight: 800; font-size: 17px;
}
.gate-brand .logo-mark {
  background: #0f766e !important; width: 34px !important; height: 34px !important; border-radius: 10px !important;
}
.gate-nav-actions { display: flex; align-items: center; gap: 10px; }
.gate-link {
  height: 36px; padding: 0 12px; display: inline-flex; align-items: center;
  color: #315247 !important; font-weight: 700; font-size: 14px;
}
.gate-link:hover { color: #0f766e !important; }
.gate-cta {
  height: 38px; padding: 0 16px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #0f766e; color: #fff !important; font-weight: 750; font-size: 13px;
  box-shadow: 0 8px 20px rgba(15,118,110,.22);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.gate-cta:hover { background: #0d9488; color: #fff !important; transform: translateY(-1px); }
.gate-cta.lg { height: 46px; padding: 0 22px; font-size: 15px; }

.gate-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(15,118,110,.14), transparent 55%),
    radial-gradient(520px 240px at 90% 20%, rgba(13,148,136,.08), transparent 50%),
    linear-gradient(180deg, #eef7f4 0%, #f3f7f5 100%);
}
.gate-eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #0f766e;
}
.gate-hero h1 {
  margin: 0; max-width: 12em;
  font-size: clamp(36px, 6vw, 56px); line-height: 1.12; letter-spacing: -.04em; font-weight: 900;
}
.gate-lead {
  margin: 16px 0 0; max-width: 36em; font-size: 17px; line-height: 1.75; color: #4b635a;
}
.gate-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.gate-link-btn {
  height: 46px; padding: 0 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(16,35,28,.14); color: #10231c !important;
  background: rgba(255,255,255,.7); font-weight: 700; font-size: 14px;
}
.gate-link-btn:hover { border-color: #0f766e; color: #0f766e !important; }
.gate-link-btn.dark { background: #fff; }
.gate-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}
.gate-meta span {
  height: 30px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.75); border: 1px solid rgba(15,118,110,.12);
  color: #315247; font-size: 12px; font-weight: 700;
}

.gate-strip { padding: 8px 0 0; }
.gate-strip-inner {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px;
  padding: 8px; border-radius: 20px; background: #fff;
  border: 1px solid rgba(16,35,28,.06); box-shadow: 0 10px 30px rgba(16,35,28,.04);
}
.gate-strip-inner > div { text-align: center; padding: 18px 10px; }
.gate-strip-inner b { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.02em; color: #10231c; }
.gate-strip-inner span { display: block; margin-top: 4px; font-size: 12px; color: #6b8178; }

.gate-block { padding: 48px 0; }
.gate-block.alt { background: rgba(255,255,255,.55); }
.gate-hd { margin-bottom: 22px; max-width: 40em; }
.gate-hd h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -.03em; }
.gate-hd p { margin: 10px 0 0; color: #4b635a; font-size: 15px; line-height: 1.7; }

.gate-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.gate-grid-3 article {
  padding: 22px 18px; border-radius: 18px; background: #fff;
  border: 1px solid rgba(16,35,28,.06); box-shadow: 0 8px 24px rgba(16,35,28,.03);
}
.gate-grid-3 h3 { margin: 0 0 8px; font-size: 17px; font-weight: 850; }
.gate-grid-3 p { margin: 0; color: #4b635a; font-size: 14px; line-height: 1.7; }

.gate-features { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.gate-features > div {
  padding: 18px 18px; border-radius: 16px; background: #fff;
  border: 1px solid rgba(15,118,110,.12);
}
.gate-features strong { display: block; margin-bottom: 6px; font-size: 15px; color: #0f766e; }
.gate-features span { color: #4b635a; font-size: 13px; line-height: 1.65; }

.gate-cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 28px 26px; border-radius: 22px;
  background: linear-gradient(135deg, #0f766e, #0d9488 55%, #14b8a6);
  color: #fff; box-shadow: 0 18px 40px rgba(15,118,110,.28);
}
.gate-cta-panel h2 { margin: 0; font-size: 26px; font-weight: 900; }
.gate-cta-panel p { margin: 8px 0 0; opacity: .92; font-size: 14px; }
.gate-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gate-cta-panel .gate-cta {
  background: #fff; color: #0f766e !important; box-shadow: none;
}
.gate-cta-panel .gate-cta:hover { background: #ecfeff; color: #0f766e !important; }
.gate-cta-panel .gate-link-btn {
  border-color: rgba(255,255,255,.35); color: #fff !important; background: transparent;
}
.gate-cta-panel .gate-link-btn:hover { background: rgba(255,255,255,.1); color: #fff !important; }

.gate-foot { padding: 18px 0 36px; color: #6b8178; font-size: 12px; }
.gate-foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.gate-empty {
  padding: 28px 16px; text-align: center; border-radius: 16px;
  background: #fff; border: 1px dashed rgba(15,118,110,.25); color: #6b8178; font-size: 14px;
}
.gate-hh-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px;
}
.gate-hh-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: 18px; background: #fff;
  border: 1px solid rgba(16,35,28,.06);
  box-shadow: 0 8px 24px rgba(16,35,28,.04);
}
.gate-hh-top { display: flex; gap: 12px; align-items: flex-start; }
.gate-hh-logo, img.gate-hh-logo {
  width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  background: #ecfdf5;
}
.gate-hh-logo.letter {
  display: inline-flex; align-items: center; justify-content: center;
  background: #0f766e; color: #fff; font-weight: 800; font-size: 18px;
}
.gate-hh-head { min-width: 0; flex: 1; }
.gate-hh-head h3 {
  margin: 0; font-size: 16px; font-weight: 850; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gate-hh-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  margin-top: 6px; border-radius: 999px; font-size: 11px; font-weight: 750;
  background: #f1f5f4; color: #4b635a;
}
.gate-hh-badge.run { background: #dcfce7; color: #166534; }
.gate-hh-badge.soon { background: #e0f2fe; color: #075985; }
.gate-hh-badge.done { background: #f3f4f6; color: #6b7280; }
.gate-hh-desc {
  margin: 0; color: #4b635a; font-size: 13px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.gate-hh-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 4px; border-top: 1px solid rgba(16,35,28,.06);
}
.gate-hh-stars { display: inline-flex; gap: 1px; }
.gate-hh-stars i { font-style: normal; color: #d1d5db; font-size: 12px; }
.gate-hh-stars i.on { color: #f59e0b; }
.gate-hh-foot a {
  font-size: 12px; font-weight: 800; color: #0f766e !important;
}
.gate-hh-foot a:hover { color: #0d9488 !important; }

.gate-mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(243,247,245,.94); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(16,35,28,.08);
  gap: 10px;
}
.gate-mobile-bar .gate-link-btn,
.gate-mobile-bar .gate-cta {
  flex: 1; height: 44px; justify-content: center; text-align: center;
}

/* —— 独立登录 / 注册页 —— */
.auth-body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(600px 280px at 20% 0%, rgba(15,118,110,.12), transparent 55%),
    linear-gradient(180deg, #eef7f4, #f3f7f5 40%, #eef2f0);
  font-family: var(--font); color: #10231c;
}
.auth-shell {
  width: min(440px, calc(100% - 32px)); margin: 0 auto;
  min-height: 100vh; padding: 48px 0 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #10231c !important; font-weight: 800; font-size: 16px; align-self: flex-start;
}
.auth-brand .logo-mark {
  background: #0f766e !important; width: 32px !important; height: 32px !important; border-radius: 9px !important;
}
.auth-card {
  background: #fff; border: 1px solid rgba(16,35,28,.08); border-radius: 20px;
  padding: 28px 24px 26px; box-shadow: 0 18px 48px rgba(16,35,28,.08);
}
.auth-card h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.auth-sub { margin: 8px 0 18px; color: #4b635a; font-size: 14px; line-height: 1.6; }
.auth-sub b { color: #0f766e; }
.auth-card .btn-primary {
  height: 44px; border-radius: 12px; background: #0f766e !important; border-color: #0f766e !important;
}
.auth-card .btn-primary:hover { background: #0d9488 !important; border-color: #0d9488 !important; }
.auth-switch, .auth-back { margin: 14px 0 0; text-align: center; font-size: 13px; color: #6b8178; }
.auth-switch a, .auth-back a { color: #0f766e; font-weight: 700; }
.auth-card .pay-types { margin-bottom: 14px; }
.auth-card .pay-type.active {
  border-color: #0f766e; color: #0f766e; background: #ecfdf5;
}

@media (max-width: 980px) {
  .gate-hh-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .gate-strip-inner, .gate-grid-3, .gate-features { grid-template-columns: 1fr 1fr; }
  .gate-cta-panel { flex-direction: column; align-items: flex-start; }
  .gate-link-hide-sm { display: none; }
}
@media (max-width: 640px) {
  .gate-body { padding-bottom: 78px; }
  .gate-nav-inner, .gate-hero-inner, .gate-strip-inner, .gate-block-inner, .gate-foot-inner {
    width: min(1080px, calc(100% - 24px));
  }
  .gate-nav-inner { height: 56px; }
  .gate-brand span { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gate-nav-actions .gate-link { padding: 0 8px; }
  .gate-cta { height: 34px; padding: 0 12px; font-size: 12px; }
  .gate-hero { padding: 28px 0 20px; }
  .gate-hero h1 { font-size: clamp(28px, 9vw, 36px); max-width: none; }
  .gate-lead { font-size: 15px; margin-top: 12px; }
  .gate-hero-actions { margin-top: 20px; gap: 8px; }
  .gate-hero-actions .gate-cta.lg,
  .gate-hero-actions .gate-link-btn {
    width: 100%; height: 44px; justify-content: center;
  }
  .gate-meta { gap: 8px; }
  .gate-meta span { height: 28px; font-size: 11px; padding: 0 10px; }
  .gate-strip { padding-top: 4px; }
  .gate-strip-inner {
    grid-template-columns: 1fr 1fr; gap: 0; padding: 4px;
  }
  .gate-strip-inner > div {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(16,35,28,.05);
  }
  .gate-strip-inner > div:nth-child(odd) {
    border-right: 1px solid rgba(16,35,28,.05);
  }
  .gate-strip-inner b { font-size: 20px; }
  .gate-block { padding: 32px 0; }
  .gate-hd { margin-bottom: 16px; }
  .gate-hd h2 { font-size: 24px; }
  .gate-hd p { font-size: 14px; }
  .gate-grid-3, .gate-features, .gate-hh-grid { grid-template-columns: 1fr; gap: 10px; }
  .gate-grid-3 article, .gate-features > div, .gate-hh-card { padding: 16px; border-radius: 16px; }
  .gate-cta-panel { padding: 20px 16px; border-radius: 18px; gap: 14px; }
  .gate-cta-panel h2 { font-size: 22px; }
  .gate-cta-actions { width: 100%; }
  .gate-cta-actions .gate-cta.lg,
  .gate-cta-actions .gate-link-btn {
    flex: 1; min-width: 0; height: 42px; justify-content: center;
  }
  .gate-foot { padding: 12px 0 24px; }
  .gate-mobile-bar { display: flex; }
  .auth-shell {
    width: min(440px, calc(100% - 24px));
    padding: 28px 0 32px; justify-content: flex-start; min-height: auto;
  }
  .auth-card { padding: 22px 18px 20px; border-radius: 18px; }
  .auth-card h1 { font-size: 22px; }
  .auth-card .pay-types { grid-template-columns: 1fr 1fr; }
}

/* 社区首页 / 侧栏移动端补强 */
@media (max-width: 640px) {
  .cm-welcome { padding: 16px; border-radius: 16px; gap: 14px; }
  .cm-welcome-copy h1 { font-size: 22px; }
  .cm-welcome-actions .cm-btn { flex: 1; min-width: calc(50% - 4px); justify-content: center; }
  .cm-pulse { grid-template-columns: 1fr 1fr; }
  .cm-composer { grid-template-columns: 36px minmax(0,1fr) auto; padding: 10px 12px; gap: 10px; }
  .cm-composer-av, img.cm-composer-av { width: 36px; height: 36px; }
  .cm-composer span { font-size: 13px; }
  .cm-feed-toolbar { padding: 8px 10px; }
  .cm-tabs a { padding: 0 10px; font-size: 12px; }
  .cm-post { padding: 14px 12px; gap: 10px; }
  .site-aside { gap: 10px; }
  .aside-card { padding: 12px; }
  .vip-page { padding-bottom: 88px; }
  .vip-hero { padding: 22px 16px; border-radius: 16px; }
  .vip-hero-copy h1 { font-size: 26px; }
  .vip-section { padding: 16px; border-radius: 14px; }
  .vip-sec-hd h2 { font-size: 18px; }
  .user-page { padding: 12px 0 72px; gap: 10px; }
  .uc-hero { padding: 14px; border-radius: 14px; }
  .uc-hero-av, .uc-hero-av img { width: 56px; height: 56px; }
  .uc-hero h1 { font-size: 18px; }
  .uc-hero-stats { gap: 12px; margin-top: 8px; }
  .uc-hero-stats b { font-size: 14px; }
  .uc-hero-actions { gap: 6px; }
  .uc-action { flex: 1; min-width: calc(33% - 6px); height: 36px; padding: 0 8px; font-size: 12px; }
  .uc-tabs { border-radius: 12px; padding: 4px; gap: 4px; }
  .uc-tabs a { height: 34px; padding: 0 12px; font-size: 12px; }
  .uc-panel { padding: 14px; border-radius: 14px; }
  .uc-home-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .uc-home-card { padding: 14px 12px; }
  .uc-pts { gap: 6px; }
  .uc-pts-item { padding: 12px 6px; }
  .uc-pts-actions .pts-btn { max-width: none; width: 100%; }
  .user-form { max-width: none; }
  .avatar-edit { flex-direction: column; align-items: flex-start; }
  .user-form-actions { flex-direction: column; }
  .user-form-actions .btn-primary,
  .user-form-actions .btn-outline { width: 100%; justify-content: center; }
  .cm-aside-user .aside-logout { display: none; }
}

/* =========================================================
   社区首页系统 — 灵动信息流
   ========================================================= */
.cm-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease-spring);
  transition-delay: var(--d, 0s);
}
.cm-reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .cm-reveal { opacity: 1; transform: none; transition: none; }
}

.cm-home .site-content { gap: 14px; }

.cm-welcome {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(240px,.75fr);
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(37,99,235,.12);
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(37,99,235,.14), transparent 55%),
    radial-gradient(480px 180px at 100% 100%, rgba(14,165,233,.1), transparent 50%),
    linear-gradient(180deg, #fff, #f8faff);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
.cm-welcome::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(37,99,235,.06);
  animation: cmFloat 7s ease-in-out infinite;
}
@keyframes cmFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.cm-kicker {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand);
}
.cm-welcome-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
}
.cm-welcome-copy > p {
  margin: 10px 0 0; color: var(--ink2); font-size: 14px; max-width: 38em; line-height: 1.7;
}
.cm-welcome-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.cm-btn {
  height: 40px; padding: 0 16px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.cm-btn:hover { transform: translateY(-1px); }
.cm-btn:active { transform: translateY(0) scale(.98); }
.cm-btn-primary {
  background: var(--brand) !important; color: #fff !important;
  box-shadow: 0 8px 20px rgba(37,99,235,.28);
}
.cm-btn-primary:hover { background: var(--brand-hover) !important; color: #fff !important; }
.cm-btn-ghost {
  background: rgba(255,255,255,.8) !important; border-color: var(--line2) !important; color: var(--ink) !important;
}
.cm-btn-ghost:hover { border-color: #bfdbfe !important; color: var(--brand) !important; }

.cm-pulse {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center;
  position: relative; z-index: 1;
}
.cm-pulse-item {
  padding: 14px 12px; border-radius: 14px; text-align: center;
  background: rgba(255,255,255,.88); border: 1px solid rgba(37,99,235,.08);
  backdrop-filter: blur(8px);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease);
}
.cm-pulse-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.cm-pulse-item b {
  display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
.cm-pulse-item span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink3); }

.cm-sec-hd {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
}
.cm-sec-hd h2 { margin: 0; font-size: 15px; font-weight: 800; }
.cm-sec-hd span, .cm-sec-hd a { font-size: 12px; color: var(--ink3); font-weight: 600; }
.cm-sec-hd a:hover { color: var(--brand); }

.cm-circles {
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.cm-circle-rail { overflow: hidden; }
.cm-circle-track {
  display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px;
}
.cm-chip {
  height: 34px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center;
  background: #f3f5f8; border: 1px solid transparent;
  color: var(--ink2) !important; font-size: 13px; font-weight: 700;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.cm-chip:hover { background: #fff; border-color: #dbeafe; color: var(--brand) !important; }
.cm-chip.on {
  background: var(--brand-bg); border-color: #bfdbfe; color: var(--brand) !important;
}
.cm-aside-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.cm-aside-chips a {
  height: 30px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center;
  background: #f3f5f8; color: var(--ink2) !important;
  font-size: 12px; font-weight: 700;
}
.cm-aside-chips a:hover { background: var(--brand-bg); color: var(--brand) !important; }

.cm-composer {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto;
  gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); color: inherit !important;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cm-composer:hover {
  border-color: #bfdbfe; box-shadow: var(--shadow-md); transform: translateY(-1px); color: inherit !important;
}
.cm-composer-av, img.cm-composer-av {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.cm-composer span { color: var(--ink3); font-size: 14px; }
.cm-composer em {
  font-style: normal; height: 32px; padding: 0 14px;
  display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
}
.cm-composer.locked em { background: var(--warn); }

.cm-picks {
  padding: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.cm-pick-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px;
}
.cm-pick {
  display: block; padding: 14px; border-radius: 14px;
  background: linear-gradient(180deg, #f8faff, #fff);
  border: 1px solid var(--line); color: inherit !important;
  transition: transform .22s var(--ease-spring), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.cm-pick:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #bfdbfe; color: inherit !important;
}
.cm-pick-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cm-pick-av, img.cm-pick-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.cm-pick-top span { font-size: 12px; color: var(--ink3); font-weight: 600; }
.cm-pick h3 {
  margin: 0; font-size: 14px; font-weight: 750; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cm-pick-meta { display: flex; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--ink3); }

.cm-feed-shell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.cm-feed-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe;
}
.cm-tabs { display: flex; gap: 4px; padding: 3px; background: #eef1f6; border-radius: 12px; }
.cm-tabs a {
  height: 32px; padding: 0 14px; display: inline-flex; align-items: center;
  border-radius: 10px; color: var(--ink2) !important; font-size: 13px; font-weight: 700;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.cm-tabs a:hover { color: var(--ink) !important; }
.cm-tabs a.on {
  background: #fff; color: var(--brand) !important;
  box-shadow: 0 1px 3px rgba(17,24,39,.08);
}
.cm-board-chip {
  height: 28px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--brand-bg); color: var(--brand);
  font-size: 12px; font-weight: 700;
}

.cm-post {
  display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px;
  padding: 16px 16px 15px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.cm-post:last-child { border-bottom: 0; }
.cm-post:hover { background: #f9fbff; }
.cm-post-av, img.cm-post-av {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dbeafe;
}
.cm-post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px;
}
.cm-post-meta strong { font-size: 13px; color: var(--ink); }
.cm-post-meta > span { font-size: 12px; color: var(--ink3); }
.cm-board-link {
  height: 22px; padding: 0 8px; display: inline-flex; align-items: center;
  border-radius: 6px; background: #f3f4f6; color: var(--ink2) !important;
  font-size: 11px; font-weight: 700;
}
.cm-board-link:hover { color: var(--brand) !important; background: var(--brand-bg); }
.cm-badge {
  height: 20px; padding: 0 7px; display: inline-flex; align-items: center;
  border-radius: 6px; font-size: 11px; font-weight: 750;
}
.cm-badge.top { background: #fee2e2; color: #b91c1c; }
.cm-badge.gold { background: #fef3c7; color: #b45309; }
.cm-post-body { display: block; color: inherit !important; }
.cm-post-body h2 {
  margin: 0; font-size: 17px; font-weight: 800; line-height: 1.4;
  letter-spacing: -.02em; color: var(--ink);
  transition: color .2s var(--ease);
}
.cm-post-body:hover h2 { color: var(--brand); }
.cm-post-body p {
  margin: 8px 0 0; color: var(--ink2); font-size: 14px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cm-post-body p.is-lock { color: var(--warn); }
.cm-post-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px;
  font-size: 12px; color: var(--ink3);
}
.cm-post-foot a {
  margin-left: auto; color: var(--brand) !important; font-weight: 700;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.cm-post:hover .cm-post-foot a { opacity: 1; transform: none; }

.cm-empty {
  padding: 56px 20px; text-align: center;
}
.cm-empty strong { display: block; font-size: 16px; margin-bottom: 6px; }
.cm-empty p { margin: 0 0 16px; color: var(--ink3); font-size: 13px; }

.cm-hh-card {
  display: block; padding: 16px; border-radius: var(--radius-lg); color: #fff !important;
  background:
    radial-gradient(240px 120px at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease);
}
.cm-hh-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37,99,235,.28); color: #fff !important; }
.cm-hh-label { display: block; font-size: 11px; opacity: .75; font-weight: 700; letter-spacing: .06em; }
.cm-hh-card strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 800; }
.cm-hh-card em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; opacity: .85; }

.cm-member-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px 8px;
  margin-top: 10px;
}
.cm-member-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 0; color: inherit !important; text-align: center;
}
.cm-member-cell:hover { color: inherit !important; }
.cm-member-av, img.cm-member-av, div.cm-member-av {
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-bg); color: var(--brand);
  font-weight: 800; font-size: 14px; line-height: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dbeafe;
}
.cm-member-cell span {
  width: 100%; font-size: 11px; font-weight: 650; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cm-member-cell:hover span { color: var(--brand); }

.cm-board-list { margin-top: 4px; }
.cm-board-list li + li { border-top: 1px solid var(--line); }
.cm-board-list a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 10px 0; color: var(--ink) !important; font-size: 13px; font-weight: 600;
}
.cm-board-list a:hover { color: var(--brand) !important; }
.cm-board-list b { color: var(--ink3); font-weight: 700; font-size: 12px; }

@media (max-width: 900px) {
  .cm-welcome { grid-template-columns: 1fr; }
  .cm-pick-grid { grid-template-columns: 1fr; }
  .cm-post-foot a { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .cm-welcome { padding: 16px; border-radius: 16px; }
  .cm-pulse { grid-template-columns: repeat(2, 1fr); }
  .cm-post { grid-template-columns: 36px minmax(0,1fr); padding: 14px 12px; }
  .cm-post-av, img.cm-post-av { width: 36px; height: 36px; }
  .cm-post-body h2 { font-size: 15px; }
}

/* —— 风向标 —— */
.fx-page { display: flex; flex-direction: column; gap: 18px; }
.fx-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding: 22px 24px; border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(37,99,235,.14), transparent 55%),
    linear-gradient(135deg, #fff 0%, #f4f7fc 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.fx-kicker {
  margin: 0 0 6px; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); font-weight: 700;
}
.fx-hero h1 {
  margin: 0 0 8px; font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15;
}
.fx-hero-copy p:last-child { margin: 0; color: var(--ink2); max-width: 46ch; }
.fx-hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.fx-reward-tip {
  font-size: 12px; color: var(--ok); font-weight: 650;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  padding: 4px 10px; border-radius: 999px;
}
.fx-empty {
  text-align: center; padding: 56px 20px; border-radius: 16px;
  background: #fff; border: 1px dashed var(--line2);
}
.fx-empty strong { display: block; font-size: 18px; margin-bottom: 8px; }
.fx-empty p { color: var(--ink3); margin: 0 0 16px; }
.fx-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.fx-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  color: inherit !important; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.fx-card:hover {
  transform: translateY(-3px); border-color: #c7d2fe;
  box-shadow: var(--shadow-md); color: inherit !important;
}
.fx-card-media {
  position: relative; aspect-ratio: 16 / 10; background: #e8eef8; overflow: hidden;
}
.fx-card-media img { width: 100%; height: 100%; object-fit: cover; }
.fx-card-media.is-empty {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--brand); font-size: 42px; font-weight: 800;
}
.fx-top {
  position: absolute; top: 10px; left: 10px;
  font-style: normal; font-size: 11px; font-weight: 700;
  color: #fff; background: rgba(17,24,39,.72);
  padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px);
}
.fx-card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fx-card-body h2 {
  margin: 0; font-size: 16px; line-height: 1.35; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fx-card-body p {
  margin: 0; color: var(--ink2); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fx-card-meta {
  margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 12px;
  color: var(--ink3); font-size: 12px;
}
.fx-pager { margin-top: 8px; justify-content: center; }
.cm-home-pager {
  margin: 16px 12px 8px;
  justify-content: center;
  padding-bottom: 8px;
}
.cm-fx-home-grid {
  padding: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .cm-fx-home-grid { grid-template-columns: 1fr; padding: 10px; }
}

.fx-detail-page { max-width: 860px; }
.fx-detail {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow-sm);
}
.fx-detail-cover {
  margin: 8px 0 18px; border-radius: 14px; overflow: hidden;
  aspect-ratio: 21 / 9; background: #eef2ff;
}
.fx-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.fx-detail-hd h1 {
  margin: 0 0 14px; font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.02em; line-height: 1.25;
}
.fx-detail-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px;
}
.fx-author { display: flex; align-items: center; gap: 10px; }
.fx-author strong { display: block; font-size: 14px; }
.fx-author span { color: var(--ink3); font-size: 12px; }
.fx-av, img.fx-av {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-bg); color: var(--brand); font-weight: 700;
}
.fx-detail-body { font-size: 15px; line-height: 1.75; color: var(--ink); }
.fx-detail-body img { border-radius: 10px; margin: 12px 0; }
.fx-locked {
  text-align: center; padding: 40px 16px; border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff); border: 1px dashed #c7d2fe;
}
.fx-locked p { margin: 0 0 14px; color: var(--ink2); }

.fx-new-page { max-width: 760px; }
.fx-new-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow-sm);
}
.fx-new-card h1 { margin: 8px 0 6px; font-size: 26px; letter-spacing: -.02em; }
.fx-new-desc { margin: 0 0 18px; color: var(--ink2); }
.fx-form .form-group { margin-bottom: 14px; }
.fx-form label { display: block; margin-bottom: 6px; font-weight: 650; }
.fx-form input[type="text"],
.fx-form input:not([type]),
.fx-form input[type="file"],
.fx-form textarea {
  width: 100%; border: 1px solid var(--line2); border-radius: 10px;
  padding: 10px 12px; background: #fff; color: var(--ink);
}
.fx-form textarea { resize: vertical; min-height: 220px; line-height: 1.6; }
.fx-cover-preview {
 margin-top: 10px; border-radius: 12px; overflow: hidden;
 border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #f8fafc;
}
.fx-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.fx-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.uc-points-list .uc-list-item {
 display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.uc-points-delta { font-weight: 750; white-space: nowrap; text-align: right; }
.uc-points-delta.up { color: var(--ok); }
.uc-points-delta.down { color: var(--danger); }
.uc-points-delta small { display: block; color: var(--ink3); font-weight: 500; }

@media (max-width: 960px) {
 .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
 .fx-hero { flex-direction: column; align-items: flex-start; }
 .fx-hero-actions { align-items: flex-start; }
 .fx-grid { grid-template-columns: 1fr; }
 .fx-detail-meta { flex-direction: column; align-items: flex-start; }
 .fx-detail, .fx-new-card { padding: 16px; border-radius: 14px; }
}
