/* ==========================================================
   无双社区 — 界面参照 爱财社区（绿色系 · 卡片式 · 手机优先）
   主色 #31BC9D / 底色 #F4F5F7 / 卡片圆角 10px
   ========================================================== */

:root {
  --green: #31BC9D;
  --green-d: #27A88B;
  --green-l: #E8F8F3;
  --green-grad: linear-gradient(135deg, #40CFAC 0%, #2BB894 100%);
  --bg: #F4F5F7;
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-2: #666B73;
  --ink-3: #9AA0A6;
  --line: #F0F1F3;
  --line-2: #E8EAED;
  --radius: 10px;
  --radius-l: 14px;
  --tab-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
          "Microsoft YaHei", sans-serif;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 6px);
}
.app.no-tab { padding-bottom: env(safe-area-inset-bottom); }

@media (min-width: 680px) {
  body { background: #E9EBEF; }
  .app { box-shadow: 0 0 40px rgba(0, 0, 0, .06); }
}

/* ================= 顶部绿栏 ================= */
.gbar {
  background: var(--green);
  padding-top: env(safe-area-inset-top);
  position: sticky;
  top: 0;
  z-index: 60;
}
.gbar-top {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}
.gbar-av {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: #FFF4E6;
  display: grid; place-items: center;
  font-size: 19px; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.gbar-av .av {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 15px; font-weight: 700;
}
.gsearch {
  flex: 1; min-width: 0;
  height: 34px;
  background: #fff;
  border-radius: 999px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px;
  color: #B9BEC5; font-size: 13.5px;
}
.gsearch svg { flex: none; color: #B9BEC5; }
.gsearch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbar-more {
  flex: none; width: 26px; height: 34px;
  display: flex; align-items: center; justify-content: center; gap: 2.5px;
}
.gbar-more i {
  width: 4.5px; height: 4.5px; border-radius: 50%;
  background: #fff; display: block;
}

/* 频道标签 */
.gtabs {
  height: 44px;
  display: flex; align-items: stretch;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  padding: 0 6px;
}
.gtabs::-webkit-scrollbar { display: none; }
.gtab {
  flex: none;
  padding: 0 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 15px; color: rgba(255, 255, 255, .82);
  position: relative;
  white-space: nowrap;
}
.gtab.on { color: #fff; font-weight: 700; }
.gtab.on::after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 22px; height: 3px;
  border-radius: 2px;
  background: #fff;
}

/* ================= 通用卡片 ================= */
.card {
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 10px 10px;
  overflow: hidden;
}
.card-pad { padding: 14px; }
.card-hd {
  display: flex; align-items: center;
  padding: 13px 14px 4px;
  font-size: 16.5px; font-weight: 700;
}
.card-hd .more { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

/* 三栏入口 */
.trio { display: flex; padding: 14px 4px; }
.trio-item { flex: 1; text-align: center; padding: 2px 4px; position: relative; }
.trio-item + .trio-item::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.trio-t { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.trio-s { font-size: 12px; color: var(--ink-3); margin-top: 3px; }

/* 图标宫格 */
.igrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 4px;
  padding: 16px 8px;
}
.iitem {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  position: relative;
}
.sq {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; font-size: 19px; font-weight: 700;
  letter-spacing: -.5px;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .10);
}
.sq.sm { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
.iitem .lbl { font-size: 12px; color: #3A3F47; text-align: center; line-height: 1.3; }
.sq .dot-badge {
  position: absolute; top: -7px; right: -9px;
  height: 15px; padding: 0 5px;
  border-radius: 8px;
  background: #FF5A5A; color: #fff;
  font-size: 9.5px; font-weight: 600;
  display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.sq .dot-badge.orange { background: #FF9F43; }

/* ================= 帖子卡片 ================= */
.pcard {
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 10px 10px;
  padding: 13px 14px;
  display: block;
  position: relative;
}
.pcard:active { background: #FAFBFC; }
.pcard-row { display: flex; gap: 12px; }
.pcard-main { flex: 1; min-width: 0; }
.pcard-t {
  font-size: 16px; font-weight: 700; line-height: 1.45;
  color: var(--ink); letter-spacing: -.2px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}
.pcard-ex {
  margin-top: 5px;
  font-size: 13.5px; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-thumb {
  width: 82px; height: 82px; flex: none;
  border-radius: 8px; object-fit: cover;
  background: var(--line);
}
.pcard-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 9px;
  font-size: 12.5px; color: var(--ink-3);
  min-width: 0;
}
.pcard-meta .who { color: var(--ink-2); max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-meta .sep { width: 1px; height: 9px; background: var(--line-2); flex: none; }
.pcard-meta .tm { margin-left: auto; flex: none; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 16px; padding: 0 5px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600;
  background: var(--green-l); color: var(--green-d);
  flex: none;
}
.badge.hot { background: #FFF1E8; color: #F5773A; }
.badge.top { background: #FFECEC; color: #F05252; }

/* ================= 横幅 ================= */
.banner {
  margin: 0 10px 10px;
  height: 96px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, #56B3FF 0%, #3B7DED 55%, #2F5FD8 100%);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
  padding: 0 16px;
  color: #fff;
}
.banner::after {
  content: '';
  position: absolute; right: -30px; top: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}
.banner-txt { position: relative; z-index: 1; }
.banner-t { font-size: 21px; font-weight: 800; letter-spacing: -.5px; font-style: italic; }
.banner-s {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 5px; height: 20px; padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .22);
  font-size: 11px;
}
.banner-r {
  margin-left: auto; position: relative; z-index: 1;
  text-align: center; line-height: 1.15;
  font-size: 19px; font-weight: 800; font-style: italic;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

/* ================= 板块图标 ================= */
.blist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px 4px; padding: 16px 8px; }

/* 段落小标题（卡片外） */
.sec-t { padding: 6px 16px 8px; font-size: 15px; font-weight: 700; color: #2B2F36; }

/* ================= 底部导航 ================= */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 640px;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #EDEFF2;
  display: flex;
  align-items: center;
  z-index: 80;
}
.tb {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  height: 100%;
  font-size: 10.5px; color: #9AA0A6;
}
.tb.on { color: var(--green); }
.tb svg { width: 23px; height: 23px; }
.tb-mid { flex: none; width: 68px; display: flex; align-items: center; justify-content: center; }
.fab-send {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-grad);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(49, 188, 157, .42);
  margin-top: -14px;
}
.fab-send svg { width: 20px; height: 20px; }
.fab-send span { font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: .3px; }
.fab-send:active { transform: scale(.94); }

/* ================= 顶部导航（内页） ================= */
.navbar {
  background: var(--green);
  padding-top: env(safe-area-inset-top);
  position: sticky; top: 0; z-index: 60;
}
.navbar-in {
  height: 50px;
  display: flex; align-items: center;
  padding: 0 6px;
  position: relative;
}
.navbar .nb-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 16.5px; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.navbar .nb-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: #fff;
}
.navbar .nb-right { margin-left: auto; }

/* ================= 帖子详情 ================= */
.post-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 14px 8px;
}
.post-hd .av { width: 38px; height: 38px; font-size: 16px; }
.post-hd .info { min-width: 0; flex: 1; }
.post-hd .nm {
  display: flex; align-items: center; gap: 5px;
  font-size: 14.5px; font-weight: 600;
}
.post-hd .sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.pill {
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green-d);
  font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 3px;
  background: #fff;
  flex: none;
}
.pill.solid { background: var(--green); color: #fff; }

.post-t {
  padding: 2px 14px 0;
  font-size: 18px; font-weight: 700; line-height: 1.45;
  letter-spacing: -.2px;
  word-break: break-word;
}
.post-body {
  padding: 10px 14px 16px;
  font-size: 16px; line-height: 1.78;
  color: #2A2E35;
  word-break: break-word;
  white-space: pre-wrap;
}
.post-body a { color: #1E88E5; }
.post-body .art-img { width: 100%; border-radius: 8px; margin: 8px 0; }

.post-acts {
  display: flex; align-items: center;
  padding: 6px 6px 10px;
  border-top: 1px solid var(--line);
  margin: 0 14px;
}
.act {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13.5px; color: #6B7280;
  padding: 6px 0;
}
.act.on { color: var(--green-d); font-weight: 600; }
.act svg { width: 17px; height: 17px; }

.cm-hd {
  display: flex; align-items: center;
  padding: 14px 14px 10px;
  font-size: 16.5px; font-weight: 700;
}
.cm-hd .n { color: var(--green-d); font-size: 14px; margin-left: 4px; }
.cm-hd .sort { margin-left: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

.cm { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.cm:first-child { border-top: 0; }
.cm-main { flex: 1; min-width: 0; }
.cm-top { display: flex; align-items: center; gap: 6px; }
.cm-name { font-size: 13.5px; font-weight: 600; color: #4B5563; }
.cm-time { font-size: 11.5px; color: var(--ink-3); }
.cm-text {
  margin-top: 4px; font-size: 15px; line-height: 1.65; color: #2A2E35;
  word-break: break-word; white-space: pre-wrap;
}
.empty-mini { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.empty-mini .ic { font-size: 40px; margin-bottom: 10px; opacity: .5; }

/* 底部输入 */
.cmbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 640px;
  background: #fff;
  border-top: 1px solid #EFF1F3;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 75;
}
.cmbar-row { display: flex; align-items: center; gap: 8px; }
.cmbar input {
  flex: 1; height: 38px;
  background: #F5F6F7;
  border: 0; border-radius: 999px;
  padding: 0 16px;
  font-size: 14px; outline: none;
}
.cmbar-send {
  flex: none; color: var(--green-d); font-size: 15px; font-weight: 600;
  padding: 0 4px;
}
.cmbar-send:disabled { color: var(--ink-3); font-weight: 400; }
.cmbar-tools { display: flex; align-items: center; gap: 22px; padding: 8px 6px 0; color: #8B9299; }
.cmbar-tools svg { width: 21px; height: 21px; }

/* ================= 发帖 ================= */
.pub { padding: 10px 0 0; }
.pub-card { background: #fff; margin: 0 10px 10px; border-radius: var(--radius); padding: 14px; }
.pub-title {
  width: 100%; border: 0; outline: none;
  font-size: 17px; font-weight: 700; padding: 4px 0;
  background: none;
}
.pub-title::placeholder { color: #B9BEC5; font-weight: 600; }
.pub-ta {
  width: 100%; border: 0; outline: none; resize: none;
  min-height: 170px; font-size: 15.5px; line-height: 1.75;
  padding: 6px 0; background: none;
}
.pub-ta::placeholder { color: #B9BEC5; }
.pub-bar {
  display: flex; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px;
  color: #8B9299;
}
.pub-bar svg { width: 21px; height: 21px; }
.pub-bar .cnt { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.pub-board {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 4px; font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  color: #3A3F47;
  width: 100%;
}
.pub-board .v { margin-left: auto; color: var(--ink-3); font-size: 13.5px; display: flex; align-items: center; gap: 4px; }

.btn-main {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 46px; border-radius: 999px;
  background: var(--green-grad); color: #fff;
  font-size: 16px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(49, 188, 157, .3);
}
.btn-main:disabled { opacity: .5; box-shadow: none; }
.btn-main.sm { height: 38px; font-size: 14px; }

/* ================= 登录 ================= */
.login-page {
  min-height: 100dvh;
  background: linear-gradient(180deg, #E6F7F1 0%, #F4F9F7 30%, var(--bg) 58%);
  padding-top: env(safe-area-inset-top);
  padding-bottom: 30px;
}
.login-nav { height: 46px; display: flex; align-items: center; padding: 0 8px; }
.login-nav button { width: 38px; height: 38px; display: grid; place-items: center; color: #2A2E35; }
.login-brand { text-align: center; padding: 12px 20px 22px; }
.login-logo {
  width: 92px; height: 92px; margin: 0 auto 16px;
  border-radius: 24px;
  background: var(--green-grad);
  box-shadow: 0 8px 24px rgba(49, 188, 157, .28), 0 0 0 5px rgba(255, 255, 255, .7);
  display: grid; place-items: center;
  color: #fff; font-size: 40px; font-weight: 800;
}
.login-brand h1 { margin: 0 0 5px; font-size: 25px; font-weight: 800; letter-spacing: -.3px; }
.login-brand p { margin: 0; font-size: 13.5px; color: #8A9099; }
.login-card {
  background: #fff; margin: 0 14px; border-radius: 16px;
  padding: 20px 18px 18px;
  box-shadow: 0 6px 24px rgba(31, 60, 53, .07);
}
.login-card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.login-card .tip { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-3); }
.lrow {
  display: flex; align-items: center;
  height: 48px; background: #F5F6F7;
  border-radius: 10px; margin-bottom: 12px;
  overflow: hidden;
}
.lrow .pre {
  padding: 0 12px; font-size: 15px; color: #3A3F47; flex: none;
  position: relative;
}
.lrow .pre::after {
  content: ''; position: absolute; right: 0; top: 12px; bottom: 12px;
  width: 1px; background: #E3E6EA;
}
.lrow input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: none; outline: none;
  padding: 0 12px; font-size: 16px;
}
.lrow input::placeholder { color: #B9BEC5; font-size: 15px; }
.lrow .get { flex: none; padding: 0 14px; color: var(--green-d); font-size: 13.5px; font-weight: 600; }
/* 短信通道接通前的验证码提示条。用琥珀色而不是主色：
   它是「临时状态」，不该长得像正常功能的一部分，忘了关才危险。 */
.login-dev {
  margin: -4px 0 12px; padding: 8px 10px; border-radius: 8px;
  background: #FFF8E8; border: 1px solid #FFE1A6;
  font-size: 12px; line-height: 1.55; color: #8A5A00;
}
.login-dev b { font-size: 15px; letter-spacing: 2px; color: #B26A00; }
.lrow .get:disabled { color: #B9BEC5; font-weight: 400; }
.login-alt { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--green-d); font-weight: 600; }
.login-agree {
  display: flex; align-items: center; gap: 7px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: #8A9099;
}
.login-agree .ck {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid #C9CED6; flex: none;
  display: grid; place-items: center;
  font-size: 10px; color: transparent;
}
.login-agree .ck.on { border-color: var(--green); background: var(--green); color: #fff; }
.login-err {
  background: #FFECEC; color: #D93A3A;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; margin-bottom: 12px;
}

/* ================= 我的 ================= */
.me-hd { background: #fff; padding: 16px 16px 0; }
.me-top { display: flex; align-items: center; gap: 14px; }
.me-av {
  width: 66px; height: 66px; border-radius: 50%;
  background: #FFF4E6; display: grid; place-items: center;
  font-size: 34px; flex: none; overflow: hidden;
}
.me-av .av { width: 100%; height: 100%; font-size: 26px; }
.me-name { display: flex; align-items: center; gap: 7px; font-size: 21px; font-weight: 800; }
.me-lv {
  height: 19px; padding: 0 7px; border-radius: 4px;
  background: linear-gradient(135deg, #FFB74D, #FF9800);
  color: #fff; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center;
}
.me-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.me-arrow { margin-left: auto; color: #C9CED6; font-size: 18px; }
.me-stats { display: flex; padding: 18px 0 16px; }
.me-stat { flex: 1; text-align: center; }
.me-stat b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.5px; }
.me-stat span { font-size: 12.5px; color: var(--ink-3); }

.mgrid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px 2px;
  background: #fff;
  border-radius: var(--radius);
  margin: 0 10px 10px;
  padding: 18px 6px;
}
.mg {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 12px; color: #3A3F47;
}
.mg .ic { width: 26px; height: 26px; display: grid; place-items: center; }
.mg .ic svg { width: 25px; height: 25px; }

/* ================= 广场 ================= */
.notice {
  display: flex; align-items: center; gap: 8px;
  margin: 0 10px 10px;
  height: 40px; padding: 0 12px;
  background: #fff; border-radius: var(--radius);
  font-size: 13px; color: #6B7280;
  overflow: hidden;
}
.notice .ic { color: #F06292; flex: none; display: flex; }
.notice .txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice .x { color: #C9CED6; flex: none; }

.cgrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px 4px; padding: 18px 10px;
  background: #fff; margin: 0 10px 10px; border-radius: var(--radius);
}
.cg { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: #3A3F47; }
.cg .ci {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-grad);
  color: #fff; font-size: 22px; font-weight: 800;
  display: grid; place-items: center;
  position: relative;
}
.cg .ci .bd {
  position: absolute; top: -7px; right: -10px;
  height: 15px; padding: 0 5px; border-radius: 8px;
  background: #FF5A5A; color: #fff;
  font-size: 9px; font-weight: 700;
  display: grid; place-items: center;
}
.cg .ci .bd.hot { background: #FF9F43; }

.apply-card {
  background: #fff; margin: 0 10px 10px; border-radius: var(--radius);
  padding: 16px 14px; text-align: center;
}
.apply-card .t1 { font-size: 16.5px; font-weight: 800; }
.apply-card .t1 em { font-style: normal; color: var(--green-d); font-size: 13px; font-weight: 500; }
.apply-card .t2 { font-size: 13.5px; color: var(--green-d); margin: 5px 0 14px; }

.seg2 {
  display: flex; gap: 4px;
  background: #fff; margin: 0 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 6px 4px 0;
}
.seg2 a { flex: 1; text-align: center; padding: 8px 2px 10px; font-size: 14px; color: #6B7280; position: relative; }
.seg2 a.on { color: var(--ink); font-weight: 700; }
.seg2 a.on::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 2px; background: var(--green);
}

.agrid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; padding: 10px;
  background: #fff; margin: 0 10px 10px;
  border-radius: 0 0 var(--radius) var(--radius);
}
.acard { background: #FAFBFC; border-radius: 8px; padding: 10px; display: flex; gap: 9px; }
.acard .logo {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: #fff; display: grid; place-items: center;
  font-size: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .07);
}
.acard .an { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.acard .ad { font-size: 11.5px; color: var(--ink-3); line-height: 1.45; margin-top: 3px; }

/* 客服浮标 */
.cs-fab {
  position: fixed; right: 14px; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-grad);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(49, 188, 157, .4);
  z-index: 70;
}
.cs-fab .rd {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: #FF5A5A; border: 1.5px solid #fff;
}

/* ================= 消息 ================= */
.msg {
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px;
  border-bottom: 1px solid var(--line);
}
.msg:last-child { border-bottom: 0; }
.msg .mi {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-size: 20px; color: #fff;
}
.msg .mm { flex: 1; min-width: 0; }
.msg .mt { font-size: 15px; font-weight: 600; }
.msg .ms { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg .mtm { font-size: 11.5px; color: #C9CED6; flex: none; }

/* ================= 提示 / 骨架 ================= */
.toast-wrap {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%);
  z-index: 300; pointer-events: none;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  width: max-content; max-width: 80vw;
}
.toast {
  background: rgba(26, 26, 26, .9); color: #fff;
  font-size: 13.5px; padding: 10px 18px; border-radius: 8px;
  animation: tin .2s ease; text-align: center;
}
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.sk-card { background: #fff; border-radius: var(--radius); margin: 0 10px 10px; padding: 14px; }
.sk {
  height: 13px; border-radius: 6px;
  background: linear-gradient(90deg, #F0F1F3 25%, #F7F8F9 37%, #F0F1F3 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite;
  margin-bottom: 9px;
}
.sk.w70 { width: 70%; } .sk.w40 { width: 40%; } .sk.w50 { width: 50%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.empty { padding: 60px 24px; text-align: center; color: var(--ink-3); }
.empty .ic { font-size: 46px; opacity: .5; margin-bottom: 12px; }
.empty h3 { margin: 0 0 6px; font-size: 15px; color: #6B7280; font-weight: 600; }
.empty p { margin: 0; font-size: 13px; }

.loadmore { text-align: center; padding: 14px; font-size: 12.5px; color: var(--ink-3); }

/* 头像通用 */
.av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  color: #fff; font-size: 14px; font-weight: 700;
  user-select: none;
}
.av.sm { width: 28px; height: 28px; font-size: 12px; }

/* ================= 补充：详情页底部留白 ================= */
.app.has-cmbar { padding-bottom: calc(106px + env(safe-area-inset-bottom)); }

/* 帖子卡片 meta 里的小图标 */
.pcard-meta .n { display: inline-flex; align-items: center; gap: 3px; flex: none; }

/* 板块页二级 tab（白底卡片上的横向 tab） */
.sublist {
  display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none;
  background: #fff; margin: 0 10px; padding: 2px 14px 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.sublist::-webkit-scrollbar { display: none; }
.sublist a {
  flex: none; padding: 11px 0 12px; font-size: 14.5px; color: #6B7280;
  position: relative; white-space: nowrap;
}
.sublist a.on { color: var(--ink); font-weight: 700; }
.sublist a.on::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 2px; background: var(--green);
}
.sublist-wrap { background: #fff; margin: 0 10px 10px; border-radius: 0 0 var(--radius) var(--radius); padding-bottom: 2px; }

/* 底部弹出面板 */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .42);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: 100%; max-width: 640px; background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  animation: sup .22s cubic-bezier(.2, .8, .3, 1);
}
@keyframes sup { from { transform: translateY(100%); } to { transform: none; } }
.sheet-hd { padding: 14px 18px 10px; font-size: 15px; font-weight: 700; text-align: center; }
.sheet-hd p { margin: 4px 0 0; font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.sheet-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; font-size: 16px; color: #2A2E35;
  border-top: 1px solid var(--line); width: 100%;
}
.sheet-item.danger { color: #E5484D; }
.sheet-item.muted { color: var(--ink-3); }
.sheet-cancel { margin-top: 6px; border-top: 8px solid #F4F5F7; }

/* 搜索页 */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff; padding: 10px 12px;
  position: sticky; top: 0; z-index: 50;
}
.search-bar .box {
  flex: 1; height: 38px; background: #F5F6F7; border-radius: 999px;
  display: flex; align-items: center; gap: 7px; padding: 0 12px; color: var(--ink-3);
}
.search-bar input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14.5px; }
.search-bar .go { color: var(--green-d); font-size: 14.5px; font-weight: 600; flex: none; }

/* 用户页头部 */
.u-hd { background: #fff; padding: 20px 16px 16px; display: flex; align-items: center; gap: 14px; }
.u-hd .av { width: 62px; height: 62px; font-size: 25px; }
.u-name { font-size: 19px; font-weight: 800; }
.u-bio { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* 消息条目里的标题/副标题要各占一行 */
.msg .mm, .msg .mt, .msg .ms { display: block; }
/* 板块页二级 tab 底部留一点圆角，接帖子列表更自然 */
.sublist { margin-bottom: 10px; border-radius: var(--radius); }

/* 宫格列数变体（我的页：创作中心 4 列、会员中心 3 列，排两行更整齐） */
.mgrid.c4 { grid-template-columns: repeat(4, 1fr); }
.mgrid.c3 { grid-template-columns: repeat(3, 1fr); }

/* ================= 首页横幅（贴近参考站） ================= */
.banner { height: 104px; }
.banner-t {
  font-size: 27px; font-weight: 800; font-style: italic;
  letter-spacing: -1px; text-shadow: 0 2px 8px rgba(20, 50, 120, .28);
}
.banner-s {
  height: 22px; padding: 0 10px; border-radius: 11px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .5);
  font-size: 11.5px; letter-spacing: .5px;
}
.banner-r { font-size: 20px; }
.banner-r .brbox {
  position: relative; display: block;
  padding: 2px 9px 5px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  font-size: 20px; font-weight: 800; font-style: italic;
  line-height: 1.14; text-align: center; letter-spacing: 2px;
  text-shadow: 0 2px 6px rgba(20, 50, 120, .25);
}
.banner-r .brplus {
  position: absolute; top: -10px; right: -10px;
  width: 19px; height: 19px; border-radius: 50%;
  background: #FF5A5A; color: #fff;
  border: 2px solid #fff;
  font-size: 12px; font-style: normal; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

/* 宫格里的图标是线性白色图形 */
.sq svg { width: 24px; height: 24px; }

/* 帖子卡片 meta 去掉头像后的间距 */
.pcard-meta .who { max-width: 40%; }
.pcard-meta .n { color: var(--ink-3); }

/* ================= 黄金行情 ================= */
.gold-hero {
  margin: 10px; border-radius: 14px; padding: 18px 16px 16px;
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #4A4133 0%, #2C2A26 45%, #1B1A18 100%);
}
.gold-hero::after {
  content: ''; position: absolute; right: -40px; top: -55px;
  width: 175px; height: 175px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 94, .38), transparent 70%);
}
.gh-top { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .74); position: relative; z-index: 1; }
/* 上游名称带全角括号，390px 宽下会顶到时间那一栏，留给它可截断的空间 */
.gh-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #FFC45E; box-shadow: 0 0 0 3px rgba(255, 196, 94, .18); }
/* 休市时把小圆点熄掉，别让「行情在跳」的暗示留着 */
.gh-dot.off { background: rgba(255, 255, 255, .42); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.gh-tmr { margin-left: auto; flex: none; display: flex; align-items: center; gap: 6px; }
.gh-tm { font-size: 11.5px; color: rgba(255, 255, 255, .48); }
.gh-closed {
  font-size: 10.5px; font-weight: 600; line-height: 1; padding: 3px 6px;
  border-radius: 5px; background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .88);
}
.gh-price {
  margin-top: 10px; font-size: 42px; font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1;
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.gh-unit { font-size: 13px; font-weight: 500; margin-left: 6px; color: rgba(255, 255, 255, .58); letter-spacing: 0; }
.gh-chg {
  display: inline-flex; gap: 8px; margin-top: 9px;
  height: 24px; padding: 0 10px; border-radius: 12px;
  align-items: center; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .12); position: relative; z-index: 1;
}
.gh-chg.up { color: #FF8A8A; background: rgba(229, 72, 77, .24); }
.gh-chg.down { color: #5FD3A0; background: rgba(18, 161, 80, .22); }
.gh-cny {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; color: rgba(255, 255, 255, .7); position: relative; z-index: 1;
}
.gh-cny b { font-size: 21px; color: #FFD98A; font-weight: 800; margin: 0 2px; font-variant-numeric: tabular-nums; }
.gh-cny .fx { margin-left: 8px; color: rgba(255, 255, 255, .45); font-size: 11.5px; }

.gh-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; margin: 0 10px 10px;
  border-radius: var(--radius); padding: 14px 0;
}
.gh-cell { text-align: center; position: relative; }
.gh-cell + .gh-cell::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line);
}
.gh-cell span { display: block; font-size: 11.5px; color: var(--ink-3); }
.gh-cell b { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

.gold-card { background: #fff; margin: 0 10px 10px; border-radius: var(--radius); padding: 14px; }
.gc-hd { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.gc-hd .tag {
  font-size: 11px; font-weight: 600; color: var(--green-d);
  background: var(--green-l); padding: 1px 6px; border-radius: 4px;
}
/* 「已收盘 · 12-05 02:30」比原来的纯时刻长一截，窄屏别让它折行 */
.gc-hd .tm { margin-left: auto; flex: none; white-space: nowrap; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.gc-price { margin-top: 8px; font-size: 26px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.gc-price small { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.gc-price .up { color: #E5484D; }
.gc-price .down { color: #12A150; }
.gc-price .flat { color: var(--ink-2); }
.gc-row { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.purity { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.purity div { background: #FAF7F0; border-radius: 8px; padding: 10px 6px; text-align: center; }
.purity b { display: block; font-size: 16.5px; font-weight: 800; color: #8A6A2F; font-variant-numeric: tabular-nums; }
.purity span { font-size: 11.5px; color: #A08C68; }

.gold-foot {
  text-align: center; font-size: 11.5px; color: var(--ink-3);
  padding: 4px 24px 20px; line-height: 1.8;
}

/* ============ 手机查价 ============ */
.chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 12px 10px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap;
}
.chip i { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.chip.on i { color: rgba(255, 255, 255, .82); }

/* 查价中心的品类（手机 / 数码 / 酒水）：比品牌 chip 重一档，让人先看到「能查什么品类」 */
.cat-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 0 12px 8px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; color: var(--ink-2); white-space: nowrap;
}
.cat-tab i { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.cat-tab.on {
  background: var(--green-grad); border-color: transparent;
  color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(49, 188, 157, .3);
}
.cat-tab.on i { color: rgba(255, 255, 255, .85); font-weight: 400; }

.prow {
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 13px 14px;
  margin: 0 10px 8px; border-radius: var(--radius);
}
.pr-l { flex: 1; min-width: 0; }
.pr-t {
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.pr-v {
  font-style: normal; font-size: 10.5px; font-weight: 500;
  color: var(--green-d); background: var(--green-l);
  padding: 1px 5px; border-radius: 4px;
}
/* 副标题恢复「大盘 X 起」后变长了，窄屏要及时截断，
   否则会折成两行、把整行高度顶起来，右侧价格看着就不齐了 */
.pr-s { margin-top: 4px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-r { text-align: right; flex: none; }
.pr-r b {
  display: block; font-size: 18.5px; font-weight: 800; color: #E5484D;
  font-variant-numeric: tabular-nums; letter-spacing: -.3px;
}
.pr-r b::before { content: '¥'; font-size: 12px; margin-right: 1px; font-weight: 600; }
.pr-r span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }

/* 报价头卡 */
.q-hero {
  margin: 10px; padding: 18px 16px; border-radius: var(--radius);
  background: linear-gradient(140deg, #2EAE8E, #1B9276);
  color: #fff; position: relative; overflow: hidden;
}
.q-hero::after {
  content: ''; position: absolute; right: -34px; top: -46px;
  width: 150px; height: 150px; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
}
.qh-top { font-size: 13px; opacity: .85; position: relative; z-index: 1; }
.qh-price {
  margin-top: 6px; font-size: 40px; font-weight: 800;
  letter-spacing: -1.2px; line-height: 1.1;
  font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.qh-price small {
  font-size: 14px; font-weight: 500; margin-left: 5px;
  opacity: .82; letter-spacing: 0;
}
.qh-sub { margin-top: 4px; font-size: 12.5px; opacity: .82; position: relative; z-index: 1; }
/* 配色选择：颜色不同价不同，所以它就是价格的一部分，必须紧贴大价格，不能塞到下面卡片里 */
.q-colors {
  display: flex; gap: 7px; overflow-x: auto; margin-top: 13px;
  padding-bottom: 2px; position: relative; z-index: 1;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.q-colors::-webkit-scrollbar { display: none; }
.qcolor {
  flex: none; padding: 6px 11px; border-radius: 9px; text-align: center; line-height: 1.3;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
}
.qcolor i { display: block; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .8); }
.qcolor b { display: block; font-size: 13px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.qcolor.on { background: #fff; border-color: #fff; }
.qcolor.on i, .qcolor.on b { color: var(--green-d); }
.qh-mk {
  margin-top: 14px; padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 12.5px; position: relative; z-index: 1;
}
.qh-mk span { margin-left: 8px; opacity: .7; }

/* 小标题 */
.sec-hd {
  display: flex; align-items: center;
  font-size: 14.5px; font-weight: 700; margin-bottom: 10px;
}
.sec-hd .tm { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }

/* 成色档位 */
.grade { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.grade:first-of-type { border-top: 0; padding-top: 0; }
.grade:last-child { padding-bottom: 0; }
.g-l { flex: 1; min-width: 0; }
.g-l b { font-size: 14.5px; font-weight: 600; }
.g-l span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.g-r { font-size: 19px; font-weight: 800; color: #E5484D; font-variant-numeric: tabular-nums; }

/* 报价口径说明：这不是免责声明那种小灰字，是用户下单前必须看懂的一句边界，
   所以给正文级字号和行高，只是颜色压一档。 */
.q-scope {
  font-size: 13px; line-height: 1.75; color: var(--ink-2, #556);
  background: #F7F8FA; border-radius: 10px; padding: 11px 13px;
}
.q-scope b { color: var(--ink); }

/* 存储档位 */
.storages { display: flex; flex-wrap: wrap; gap: 8px; }
.st {
  height: 34px; padding: 0 14px; border-radius: 8px;
  background: #F5F6F7; border: 1px solid transparent;
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
}
.st.on { background: var(--green-l); border-color: var(--green); color: var(--green-d); font-weight: 700; }

/* 走势柱 */
.trend { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 10px; }
.tr-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; height: 100%;
}
.tr-v { font-size: 9.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tr-b { width: 100%; max-width: 24px; background: #C9E9E0; border-radius: 4px 4px 0 0; margin-top: 3px; }
.tr-col.on .tr-b { background: var(--green); }
.tr-col.on .tr-v { color: var(--green-d); font-weight: 700; }
/* 7 天里最高价那天用红色柱：客户最关心「什么时候卖最划算」，
   绿色只标了「今天」，看不出哪一天是这波的顶 */
.tr-col.hi .tr-b { background: #E5484D; }
.tr-col.hi .tr-v { color: #E5484D; font-weight: 700; }
.tr-d { font-size: 10px; color: var(--ink-3); margin-top: 5px; }

/* 通用按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px; margin-top: 14px;
  background: var(--green); color: #fff; border: 0;
  border-radius: 999px; font-size: 14.5px; font-weight: 600;
}

.gc-row .up { color: #E5484D; }
.gc-row .down { color: #12A150; }

.loadmore-btn {
  display: block; width: calc(100% - 20px); margin: 2px 10px 10px;
  background: #fff; border: 0; border-radius: var(--radius);
  padding: 13px; font-size: 13.5px; color: var(--green-d); font-weight: 600;
}

/* ==========================================================
   社区关系层：关注 / 粉丝 / 收藏 / 浏览 / 通知 / 签到
   ========================================================== */

/* 通栏按钮 */
.wide-btn {
  display: flex; align-items: center; justify-content: center;
  width: calc(100% - 32px); margin: 10px 16px;
  height: 42px; border: 0; border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: 15px; font-weight: 600;
}
.wide-btn:disabled { opacity: .55; }
.wide-btn.ghost {
  background: #fff; color: var(--green-d);
  border: 1px solid var(--green);
}

/* 三段切换（复用 seg2 观感，但独立命名便于落单独圆角） */
.seg3 {
  display: flex; gap: 4px;
  background: #fff; margin: 0 10px;
  border-radius: var(--radius);
  padding: 6px 4px;
}
.seg3 a { flex: 1; text-align: center; padding: 8px 2px; font-size: 14px; color: #6B7280; position: relative; border-radius: 8px; }
.seg3 a.on { color: var(--ink); font-weight: 700; background: var(--green-l); }

/* 用户主页：关注 / 粉丝 / 花贝 */
.u-fans {
  display: flex; background: #fff;
  padding: 4px 0 16px;
}
.u-fans a { flex: 1; text-align: center; }
.u-fans b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.u-fans span { font-size: 12.5px; color: var(--ink-3); }

/* 关注 / 粉丝行 */
.urow {
  display: flex; align-items: center; gap: 11px;
  background: #fff; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.urow:last-child { border-bottom: 0; }
.urow .av { width: 44px; height: 44px; font-size: 17px; }
.urow-m { flex: 1; min-width: 0; }
.urow-n { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.urow-s { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.urow-tag {
  font-size: 11px; color: var(--green-d);
  background: var(--green-l); border-radius: 999px;
  padding: 2px 7px; margin-right: 2px; flex: none;
}

/* 消息页：四个圆入口 */
.msg-circles {
  display: flex; padding: 14px 4px;
  margin: 10px 10px 8px;
}
.mc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; }
.mc-ic {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.mc-ic svg { width: 21px; height: 21px; }
.mc-dot {
  position: absolute; top: -3px; right: -5px;
  min-width: 17px; height: 17px; line-height: 17px;
  padding: 0 4px; border-radius: 999px;
  background: #F5333F; color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700;
  text-align: center; border: 1.5px solid #fff;
}
.mc-n { font-size: 12.5px; color: var(--ink-2); }

/* 通知行 */
.nt {
  display: flex; align-items: flex-start; gap: 11px;
  width: 100%; text-align: left;
  padding: 13px 14px; background: #fff;
  border: 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.nt:last-child { border-bottom: 0; }
.nt.unread { background: #FAFEFC; }
.nt-av .av { width: 40px; height: 40px; font-size: 15px; }
.nt-sys {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-l); color: var(--green-d);
}
.nt-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nt-l1 { font-size: 14px; color: #4A5058; line-height: 1.45; }
.nt-l1 b { color: var(--ink); font-weight: 600; }
.nt-l2 {
  font-size: 12.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nt-tm { font-size: 11.5px; color: #B4B9C0; }
.nt-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #F5333F; flex: none; margin-top: 6px;
}

/* 签到 */
.ck-hero {
  margin: 12px 10px;
  padding: 20px 16px 8px;
  border-radius: var(--radius-l);
  background: var(--green-grad);
  color: #fff; text-align: center;
}
.ck-top { font-size: 13px; opacity: .9; }
.ck-big { font-size: 46px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.ck-big i { font-size: 15px; font-style: normal; font-weight: 500; margin-left: 4px; opacity: .9; }
.ck-sub { font-size: 13px; opacity: .92; margin-top: 2px; }
.ck-nums { display: flex; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.28); }
.ck-nums div { flex: 1; }
.ck-nums b { display: block; font-size: 18px; font-weight: 700; }
.ck-nums span { font-size: 11.5px; opacity: .88; }

.ck-hd { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }
.ck-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.ck-d {
  aspect-ratio: 1 / 1; border-radius: 8px;
  display: grid; place-items: center;
  background: #F4F5F7; color: #9AA0A6;
  font-size: 12.5px;
}
.ck-d.on { background: var(--green); color: #fff; font-weight: 700; }
.ck-d.today { box-shadow: 0 0 0 2px rgba(49, 188, 157, .45); }
.ck-tip { font-size: 12px; color: var(--ink-3); margin-top: 12px; line-height: 1.6; }
.ck-link {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 10px 14px; font-size: 14px; color: #3A3F47;
}

/* 底栏未读红点 */
.tb-ic { position: relative; display: inline-flex; }
.tb-dot {
  position: absolute; top: -5px; right: -10px;
  min-width: 16px; height: 16px; line-height: 16px;
  padding: 0 4px; border-radius: 999px;
  background: #F5333F; color: #fff;
  font-size: 10px; font-style: normal; font-weight: 700;
  text-align: center; border: 1.5px solid #fff;
}

/* 我的评论列表 */
.mycm {
  display: block; background: #fff;
  padding: 13px 14px; border-bottom: 1px solid var(--line);
}
.mycm:last-child { border-bottom: 0; }
.mycm-t {
  font-size: 13px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mycm-dead {
  font-style: normal; font-size: 11px; color: #E5484D;
  background: #FDECEC; border-radius: 4px; padding: 1px 5px; margin-left: 6px;
}
.mycm-c {
  font-size: 14.5px; color: #2A2E35; line-height: 1.55;
  margin: 6px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mycm-m { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #B4B9C0; }
.mycm-go { margin-left: auto; color: var(--green-d); display: inline-flex; align-items: center; gap: 2px; }

/* ================= 站内消息 / IM ================= */
.im-menu { padding: 0; overflow: hidden; }
.im-row {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.im-row:last-child { border-bottom: 0; }
.im-row:active { background: #FAFBFC; }
.im-ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.im-av { width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; }
.im-av.sm { width: 32px; height: 32px; }
.im-av img, .im-av > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.im-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.im-t { font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.im-sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.im-n { font-size: 12.5px; color: var(--ink-3); flex: none; }
.im-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; flex: none;
  background: #F5455C; color: #fff; font-size: 11px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 500;
}
.im-grp-t {
  font-size: 12.5px; color: var(--ink-3); padding: 16px 4px 8px;
  display: flex; align-items: center;
}
.off-tag {
  font-size: 10px; font-style: normal; color: var(--green);
  background: var(--green-l); border-radius: 4px; padding: 1px 5px; font-weight: 500;
}
.off-tag.owner { color: #F0A020; background: #FEF6E7; }
.on-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  display: inline-block; margin-left: 2px;
}
.mini-btn {
  flex: none; font-size: 12.5px; padding: 5px 11px; border-radius: 15px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: #fff;
}
.mini-btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.mini-btn:active { opacity: .8; }
.link-btn { font-size: 12.5px; color: var(--green); background: none; padding: 0; }

/* 会话行 */
.cv-row {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
.cv-row:last-child { border-bottom: 0; }
.cv-row:active { background: #FAFBFC; }
.cv-av { width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden; }
.cv-av img, .cv-av > span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cv-av.grp {
  background: var(--green-l); color: var(--green); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.cv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cv-t { font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.cv-sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.cv-tm { font-size: 11.5px; color: var(--ink-3); }
.cv-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #F5455C; color: #fff; font-size: 11px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 500;
}
.im-empty-hint {
  padding: 30px 20px; text-align: center; font-size: 13px; color: var(--ink-3); line-height: 1.7;
}
.im-empty-hint a { color: var(--green); }

/* 聊天页 */
.im-page { padding: 14px 14px 86px; min-height: 50vh; }
.im-line { display: flex; gap: 8px; margin-bottom: 14px; align-items: flex-start; }
.im-line.me { flex-direction: row-reverse; }
.im-col { display: flex; flex-direction: column; gap: 4px; max-width: 74%; }
.im-line.me .im-col { align-items: flex-end; }
.im-who { font-size: 11.5px; color: var(--ink-3); padding-left: 2px; }
.im-bub {
  padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.55;
  background: #fff; color: var(--ink); word-break: break-word; white-space: pre-wrap;
  border-top-left-radius: 4px;
}
.im-line.me .im-bub { background: var(--green); color: #fff; border-top-left-radius: 14px; border-top-right-radius: 4px; }
.im-tm { font-size: 10.5px; color: var(--ink-3); padding: 0 3px; }
.im-sys {
  text-align: center; font-size: 12px; color: var(--ink-3);
  padding: 10px 20px; margin-bottom: 12px;
}
.im-warn {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom));
  max-width: 640px; margin: 0 auto; text-align: center;
  font-size: 12px; color: #B4791C; background: #FEF6E7; padding: 7px;
}
.im-inputbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-width: 640px; margin: 0 auto;
  display: flex; gap: 9px; align-items: center;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.im-inputbar input {
  flex: 1; height: 38px; border-radius: 19px; border: 0;
  background: #F4F5F7; padding: 0 15px; font-size: 14.5px; outline: none;
}
.im-inputbar input:disabled { opacity: .55; }
.im-sendbtn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.im-sendbtn:disabled { opacity: .45; }

/* 图片消息：气泡里放图，不套用 .im-bub 的白底和圆角，否则图外面会多一圈卡片边。
   宽度封顶 200px 是为了竖屏手机上一屏还能看见上下文，点开链接看原图。 */
.im-imgwrap { display: block; line-height: 0; border-radius: 12px; overflow: hidden; }
.im-img {
  max-width: 200px; max-height: 260px; width: auto; height: auto;
  border-radius: 12px; display: block; background: #F4F5F7;
}
.im-imgbtn {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2, #667); background: transparent;
}
.im-imgbtn:disabled { opacity: .4; }

/* 加好友 */
.adf-tip { font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin-bottom: 12px; }
.adf-bar { display: flex; gap: 9px; }
.adf-bar input {
  flex: 1; height: 40px; border-radius: 8px; border: 1px solid var(--line-2);
  background: #F8F9FA; padding: 0 13px; font-size: 14.5px; outline: none;
}
.adf-bar input:focus { border-color: var(--green); background: #fff; }
.adf-me { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.adf-me b { color: var(--ink); }

/* 建群选人 */
.gp-pick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.gp-chip {
  font-size: 13px; padding: 6px 13px; border-radius: 16px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: #fff;
}
.gp-chip.on { background: var(--green); border-color: var(--green); color: #fff; }

/* 站内信 */
.mail-item { padding: 14px 15px; border-bottom: 1px solid var(--line); position: relative; cursor: pointer; }
.mail-item:last-child { border-bottom: 0; }
.mail-item.unread::before {
  content: ''; position: absolute; left: 6px; top: 19px;
  width: 6px; height: 6px; border-radius: 50%; background: #F5455C;
}
.mail-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.mail-t { font-size: 14.5px; color: var(--ink); font-weight: 500; flex: 1; }
.mail-item.unread .mail-t { font-weight: 700; }
.mail-tm { font-size: 11.5px; color: var(--ink-3); flex: none; }
.mail-bd { font-size: 13px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.mail-bd.folded {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--ink-3);
}
.mail-more { font-size: 12px; color: var(--green); margin-top: 4px; }
.mail-from { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.sheet-item.primary { color: var(--green); font-weight: 600; }

/* ==========================================================
   特邀创作者专栏 · 导流商城 · 用户协议
   ========================================================== */

/* ---- 创作者专栏列表 ---- */
.cp-hero {
  margin: 10px 10px 0; padding: 16px 15px; border-radius: var(--radius-l);
  background: var(--green-grad); color: #fff;
}
.cp-hero h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; letter-spacing: .3px; }
.cp-hero p { margin: 0; font-size: 12.5px; opacity: .9; line-height: 1.6; }
.cp-hero .cp-n { margin-top: 10px; font-size: 11.5px; opacity: .82; }

.cp-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 10px 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.cp-tabs::-webkit-scrollbar { display: none; }

.cp-card {
  display: flex; gap: 12px; background: #fff;
  margin: 0 10px 8px; padding: 12px 13px; border-radius: var(--radius);
}
.cp-cover {
  width: 92px; height: 70px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, #E8F8F3, #D3F0E7);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--green-d); overflow: hidden;
}
.cp-cover img { width: 100%; height: 100%; object-fit: cover; }
.cp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cp-t {
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cp-s {
  margin-top: 5px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cp-meta { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); }
.cp-meta .cp-cate { color: var(--green-d); background: var(--green-l); padding: 1px 7px; border-radius: 999px; }
.cp-meta .cp-top { color: #E4572E; background: #FFF1EC; padding: 1px 7px; border-radius: 999px; }

/* ---- 创作者文章详情 ---- */
.cp-art { background: #fff; margin: 10px; padding: 18px 16px 24px; border-radius: var(--radius); }
.cp-art h1 { margin: 0 0 10px; font-size: 19px; line-height: 1.45; font-weight: 800; color: #1F2429; }
.cp-art-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3);
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.cp-art-cover {
  margin: 0 0 16px; border-radius: 10px; overflow: hidden; background: #F3F5F7;
}
.cp-art-cover img { display: block; width: 100%; max-height: 52vh; object-fit: cover; }
/* 正文由 richText() 生成真实标签，所以这里不能再留 white-space: pre-wrap，
   否则标签之间那些换行会变成空格，段间距离全部走形 */
.cp-art-body { font-size: 15px; line-height: 1.95; color: #33383F; word-break: break-word; }
.cp-art-body p { margin: 0 0 14px; }
.cp-art-body h2 { margin: 22px 0 10px; font-size: 17px; font-weight: 800; color: #1F2429; line-height: 1.5; }
.cp-art-body h3 { margin: 20px 0 8px; font-size: 15.5px; font-weight: 700; color: #1F2429; line-height: 1.55; }
.cp-art-body ul, .cp-art-body ol { margin: 0 0 14px; padding-left: 22px; }
.cp-art-body li { margin: 0 0 6px; }
.cp-art-body blockquote {
  margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--green);
  background: #F7FAF9; border-radius: 0 8px 8px 0; color: #4A5058; font-size: 14.5px;
}
.cp-art-body strong { color: #1F2429; font-weight: 700; }
.cp-art-body a { color: var(--green-d); text-decoration: underline; text-underline-offset: 2px; }
.cp-art-body .cp-img { display: block; max-width: 100%; height: auto; margin: 4px 0 16px; border-radius: 10px; }
.cp-fig { margin: 0 0 18px; }
.cp-fig img { display: block; width: 100%; height: auto; border-radius: 10px; background: #F3F5F7; }
.cp-fig figcaption {
  margin-top: 7px; text-align: center; font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
}
.cp-nav {
  background: #fff; margin: 0 10px 8px; border-radius: var(--radius); overflow: hidden;
}
.cp-nav-row {
  display: flex; gap: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink-2);
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.cp-nav-row:last-child { border-bottom: 0; }
.cp-nav-row .k { flex: none; color: var(--ink-3); font-size: 12.5px; }
.cp-nav-row .v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* ---- 导流商城 ---- */
.mall-hero {
  margin: 10px 10px 0; padding: 15px; border-radius: var(--radius-l);
  background: var(--green-grad); color: #fff;
}
.mall-hero h2 { margin: 0 0 3px; font-size: 16.5px; font-weight: 800; }
.mall-hero p { margin: 0; font-size: 12.5px; opacity: .9; }

.mall-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 10px 2px;
  scrollbar-width: none;
}
.mall-tabs::-webkit-scrollbar { display: none; }

.mall-card {
  display: flex; gap: 12px; background: #fff; align-items: flex-start;
  margin: 0 10px 8px; padding: 13px; border-radius: var(--radius);
}
.mall-ico {
  width: 48px; height: 48px; border-radius: 11px; flex: none;
  background: #F2F4F6; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--green-d); overflow: hidden;
}
.mall-ico img { width: 100%; height: 100%; object-fit: cover; }
.mall-main { flex: 1; min-width: 0; }
.mall-nm { display: flex; align-items: center; gap: 6px; }
.mall-nm b { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mall-bd {
  font-style: normal; font-size: 10.5px; color: #fff; padding: 1px 6px;
  border-radius: 4px; flex: none; background: #FF6B35;
}
.mall-adv { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.mall-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.mall-tag { font-size: 11px; color: var(--ink-3); background: #F5F6F8; padding: 1.5px 7px; border-radius: 4px; }
.mall-go {
  flex: none; align-self: center; font-size: 12.5px; font-weight: 600;
  color: var(--green-d); border: 1px solid var(--green); border-radius: 999px;
  padding: 5px 13px; background: var(--green-l); white-space: nowrap;
}
.mall-pr { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.mall-pr b { color: #E4572E; font-weight: 600; }

/* ---- 商城详情 ---- */
.mi-hero { display: flex; gap: 12px; margin: 10px; padding: 16px 14px; background: #fff; border-radius: var(--radius); align-items: center; }
.mi-ico {
  width: 56px; height: 56px; border-radius: 13px; flex: none; overflow: hidden;
  background: #F2F4F6; display: grid; place-items: center;
  font-size: 22px; font-weight: 700; color: var(--green-d);
}
.mi-ico img { width: 100%; height: 100%; object-fit: cover; }
.mi-hd { flex: 1; min-width: 0; }
.mi-nm { display: flex; align-items: center; gap: 7px; }
.mi-nm b { font-size: 17px; font-weight: 700; color: var(--ink); }
.mi-sub { margin-top: 5px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.mi-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 12px 10px; }

.mi-card { margin: 0 10px 10px; background: #fff; border-radius: var(--radius); padding: 4px 14px; }
.mi-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mi-row:last-child { border-bottom: 0; }
.mi-row span { color: var(--ink-3); flex: none; }
.mi-row b { font-weight: 600; color: var(--ink); text-align: right; }

.mi-sec { margin: 18px 14px 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.mi-sec::before { content: ''; display: inline-block; width: 3px; height: 13px; background: var(--green); border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.mi-p { margin: 0 14px 6px; font-size: 13.5px; line-height: 1.9; color: #3C4249; }
.mi-dim { color: var(--ink-3); font-size: 12.5px; }

.mi-rel { display: flex; gap: 10px; overflow-x: auto; padding: 2px 12px 6px; scrollbar-width: none; }
.mi-rel::-webkit-scrollbar { display: none; }
.mi-rel-card { flex: none; width: 76px; text-align: center; }
.mi-rel-card .mall-ico { margin: 0 auto 6px; width: 46px; height: 46px; }
.mi-rel-nm { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 底部申请条：留出刘海屏安全区，不然 iPhone 上按钮会被小白条压住 */
.mi-bar {
  position: sticky; bottom: 0; margin-top: 18px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, #fff 72%, rgba(255,255,255,0));
}
.mi-apply {
  display: block; text-align: center; padding: 13px; border-radius: 999px;
  background: var(--green-grad); color: #fff; font-size: 15.5px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(49,188,157,.32);
}
.mi-apply.off { background: #DDE1E6; color: #fff; box-shadow: none; }

/* ---- 用户协议 / 隐私政策 ---- */
.ag-wrap { background: #fff; margin: 10px; padding: 18px 16px 26px; border-radius: var(--radius); }
.ag-title { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: #1F2429; }
.ag-upd { font-size: 12px; color: var(--ink-3); margin-bottom: 16px; }
.ag-lead {
  font-size: 13.5px; line-height: 1.9; color: #4A5058;
  background: #F7F9FA; border-left: 3px solid var(--green);
  padding: 10px 12px; border-radius: 6px; margin: 0 0 18px;
}
.ag-ch { margin: 0 0 20px; }
.ag-ch:last-child { margin-bottom: 0; }
.ag-ch h3 {
  margin: 0 0 8px; font-size: 15px; font-weight: 700; color: #1F2429;
  padding-left: 9px; border-left: 3px solid var(--green); line-height: 1.4;
}
.ag-ch p { margin: 0 0 9px; font-size: 14px; line-height: 1.9; color: #3A3F47; }
.ag-ch p:last-child { margin-bottom: 0; }
.ag-ch ul { margin: 0 0 9px; padding-left: 20px; }
.ag-ch li { font-size: 14px; line-height: 1.9; color: #3A3F47; margin-bottom: 3px; }
.ag-ch b { color: #1F2429; font-weight: 600; }
.ag-switch { display: flex; gap: 8px; padding: 10px 10px 0; }

/* ---------------- 通知中心（#/notify 独立页） ---------------- */
.nt-tabs {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 12px 8px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nt-tabs::-webkit-scrollbar { display: none; }
.nt-n { font-style: normal; font-size: 10.5px; color: #F5333F; font-weight: 600; }
.chip.on .nt-n { color: #fff; }
.nt-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 6px;
}
.nt-count { font-size: 12px; color: var(--ink-3); }
.nt-list { margin: 0 10px; overflow: hidden; }

/* 消息页的通知入口行 */
.nt-entry { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 12px 14px; }
.nt-entry-ic {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: var(--green-l); color: var(--green-d);
  display: grid; place-items: center;
}
.nt-entry-t { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.nt-entry-n { font-size: 12px; color: #F5333F; }

/* ---------------- 我的认证 ---------------- */
.ct-hero { margin: 10px; padding: 16px; }
.ct-hero-t { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--ink); }
.ct-hero p { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
.ct-list { margin: 0 10px; }
.ct-card { padding: 14px; margin-bottom: 10px; }
.ct-hd { display: flex; align-items: flex-start; gap: 10px; }
.ct-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; }
.ct-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ct-tt b { font-size: 14.5px; color: var(--ink); }
.ct-tt span { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.ct-st { font-style: normal; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; flex: none; }
.ct-st.none { background: #F2F3F5; color: var(--ink-3); }
.ct-st.warn { background: #FFF4E2; color: #C97D0A; }
.ct-st.ok { background: var(--green-l); color: var(--green-d); }
.ct-st.bad { background: #FDECEC; color: #D9363E; }
.ct-info { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.ct-bad {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: #FDF3F3; color: #D9363E; font-size: 12.5px; line-height: 1.6;
}
.ct-ft { margin-top: 12px; display: flex; justify-content: flex-end; }
.btn-line {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--green);
  color: var(--green-d); font-size: 13px; font-weight: 600;
}

/* 认证表单 */
.cf-tip { margin: 12px 14px 8px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.cf-form { margin: 0 10px; padding: 4px 14px; }
.cf-row { display: flex; flex-direction: column; gap: 7px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cf-row:last-child { border-bottom: 0; }
.cf-row label { font-size: 13px; color: var(--ink-2); }
.cf-row label b { color: #E5484D; font-weight: 600; }
.cf-row input {
  height: 38px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: #FBFCFD;
  font-size: 14px; color: var(--ink);
}
.cf-row input:focus { outline: none; border-color: var(--green); background: #fff; }
.cf-hint { font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.cf-photo {
  width: 112px; height: 78px; border-radius: 10px; overflow: hidden;
  border: 1px dashed var(--line-2); background: #FBFCFD;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--ink-3); font-size: 12px;
}
.cf-photo img { width: 100%; height: 100%; object-fit: cover; }
.cf-ph-ic { display: flex; color: #C2C7CE; }
#cfSubmit { margin: 16px 10px 0; width: calc(100% - 20px); }
.cf-done { margin: 14px 10px; padding: 22px 16px; text-align: center; }
.cf-done-ic {
  width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--green-l); color: var(--green-d);
  display: grid; place-items: center;
}
.cf-done h3 { margin: 0 0 6px; font-size: 16px; }
.cf-done p { margin: 4px 0; font-size: 13px; color: var(--ink-2); }
.cf-muted { font-size: 12px !important; color: var(--ink-3) !important; }

/* ================= 会员等级 ================= */
/* 等级色是每级自己的（灰/绿/蓝/紫/金），所以颜色一律走内联变量，
   这里只负责版式。写死成主色的话，Lv5 的「传奇」看着跟 Lv2 一样。 */
.lv-hero {
  margin: 12px 10px 10px; padding: 16px;
  background: var(--card); border-radius: var(--radius-l);
}
.lv-top { display: flex; align-items: center; gap: 14px; }
.lv-badge {
  flex: none; width: 68px; height: 68px; border-radius: 18px;
  color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(26, 26, 26, .14);
}
.lv-badge b { font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: .3px; }
.lv-badge span { font-size: 11px; opacity: .92; }
.lv-meta { flex: 1; min-width: 0; }
.lv-sub { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.lv-nums { display: flex; gap: 16px; margin-top: 9px; font-size: 12px; color: var(--ink-3); }
.lv-nums b { font-size: 16px; font-weight: 650; color: var(--ink); margin-right: 3px; }
.lv-bar { height: 8px; border-radius: 4px; background: #F0F1F3; margin: 14px 0 6px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: 4px; transition: width .4s ease; }
.lv-bar-ft { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.lv-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.lv-row:last-child { border-bottom: 0; }
.lv-row.on { background: var(--green-l); }
.lv-row.off .lv-rname { color: var(--ink-3); }
.lv-dot {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600;
}
.lv-rname { flex: 1; font-size: 14px; min-width: 0; }
.lv-rmin { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lv-now {
  flex: none; font-style: normal; font-size: 11px; padding: 0 5px;
  color: var(--green-d); background: #fff;
  border: 1px solid var(--green); border-radius: 4px;
}
.lv-rule {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.lv-rule:last-child { border-bottom: 0; }
.lv-ract { font-size: 14px; }
.lv-ract i { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.lv-rexp { flex: none; font-size: 14px; color: var(--green-d); }
.lv-foot { padding: 14px 20px 24px; text-align: center; font-size: 11.5px; color: var(--ink-3); }

/* ================= 邀请好友 ================= */
.iv-hero {
  margin: 12px 10px 10px; padding: 18px 16px;
  border-radius: var(--radius-l);
  background: var(--green-grad); color: #fff;
}
.iv-t { font-size: 17px; font-weight: 600; }
.iv-s { margin-top: 3px; font-size: 12.5px; opacity: .9; }
.iv-nums { display: flex; margin-top: 15px; }
.iv-nums > div { flex: 1; text-align: center; }
.iv-nums > div + div { border-left: 1px solid rgba(255, 255, 255, .28); }
.iv-nums b { display: block; font-size: 22px; font-weight: 700; line-height: 1.2; }
.iv-nums span { font-size: 11.5px; opacity: .9; }
.iv-lab { font-size: 12.5px; color: var(--ink-3); }
/* user-select: all —— 邀请码是要念给人听、贴到聊天框里的，
   点一下能整段选中，比让人拖着选中间那段靠谱 */
.iv-code {
  padding: 8px 0 14px; text-align: center;
  font-size: 30px; font-weight: 700; letter-spacing: 6px;
  font-variant-numeric: tabular-nums; user-select: all;
}
.iv-btns { display: flex; gap: 10px; }
.iv-btns .wide-btn { flex: 1; width: auto; margin: 0; }
.iv-link-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2);
}
.iv-link {
  flex: 1; min-width: 0; font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.iv-copy-link {
  flex: none; padding: 3px 9px; font-size: 12px;
  color: var(--green-d); border: 1px solid var(--green); border-radius: 6px;
}
.iv-stat { display: flex; }
.iv-stat > div { flex: 1; padding: 14px 0; text-align: center; }
.iv-stat > div + div { border-left: 1px solid var(--line); }
.iv-stat b { display: block; font-size: 20px; font-weight: 700; }
.iv-stat span { font-size: 11.5px; color: var(--ink-3); }
.iv-rec {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.iv-rec:last-child { border-bottom: 0; }
.iv-rec-n {
  flex: 1; min-width: 0; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.iv-rec-t { flex: none; font-size: 11.5px; color: var(--ink-3); }
.iv-rules p { margin: 0 0 7px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.iv-rules p:last-child { margin-bottom: 0; }

/* ---------- 邀请页：钱包入口 + 记录状态 ---------- */
/* 可提现和待结算并排放在 hero 下面，是这页最该先看到的东西。
   数在账本的「分」里，到这一层已经换成元了 */
.iv-wallet {
  display: flex; align-items: center;
  margin: 0 10px 10px; padding: 12px 14px;
  background: var(--card); border-radius: var(--radius);
}
.ivw-cell { flex: 1; min-width: 0; }
.ivw-cell span { display: block; font-size: 11.5px; color: var(--ink-3); }
.ivw-cell b { font-size: 19px; font-weight: 700; }
.ivw-cell b.dim { font-size: 16px; font-weight: 600; color: var(--ink-3); }
.ivw-go { flex: none; font-style: normal; font-size: 12px; color: var(--ink-3); }

/* 金额和状态在同一行右侧。状态用底色区分，别只靠颜色深浅——
   灰阶屏和色弱用户分不出「已到账」和「未通过」的差别 */
.iv-rw { flex: none; font-size: 13.5px; font-weight: 600; }
.iv-st { flex: none; font-size: 11px; line-height: 1.5; padding: 1px 6px; border-radius: 4px; }
.iv-st.ok { color: var(--green-d); background: var(--green-l); }
.iv-st.wait { color: #B26A00; background: #FFF6E5; }
.iv-st.bad { color: #D9363E; background: #FDECEC; }
.iv-st.na { color: var(--ink-3); background: #F4F5F7; }

/* ================= 我的钱包 ================= */
.wl-hero {
  margin: 12px 10px 10px; padding: 20px 18px 18px;
  border-radius: var(--radius-l);
  background: var(--green-grad); color: #fff; text-align: center;
}
.wl-h-t { font-size: 12.5px; opacity: .9; }
.wl-h-n { margin-top: 3px; font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -.6px; }
.wl-h-s { margin-top: 8px; font-size: 11.5px; opacity: .88; }
.wl-btn {
  display: block; width: 100%; margin-top: 16px;
  height: 42px; line-height: 42px; border-radius: 21px;
  background: #fff; color: var(--green-d);
  font-size: 15px; font-weight: 600; text-align: center;
}
.wl-btn[disabled] { background: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); }
.wl-hint { margin-top: 8px; font-size: 11.5px; opacity: .85; }

.wl-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.wl-row:last-child { border-bottom: 0; }
.wl-l { flex: 1; min-width: 0; }
.wl-l b { display: block; font-size: 14px; font-weight: 600; }
.wl-l span {
  display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wl-r { flex: none; text-align: right; }
.wl-r b { font-size: 15px; font-weight: 700; color: var(--green-d); }
.wl-r b.out { color: var(--ink); }
/* 被撤销的那笔：数字划掉、颜色退到灰。它已经不在余额里了，
   还留着绿色等于骗人 */
.wl-r b.dead { color: var(--ink-3); font-weight: 600; text-decoration: line-through; }
.wl-r span { display: block; margin-top: 2px; font-size: 11px; }
.wl-r span.ok { color: var(--green-d); }
.wl-r span.wait { color: #B26A00; }
.wl-r span.bad { color: #D9363E; }

/* 提现面板。金额字号给到 28px：这是这个弹层唯一要人做的事，
   别让它淹没在说明文字里 */
.wd-wrap { padding: 4px 18px 14px; }
.wd-amt {
  display: flex; align-items: center; gap: 6px;
  height: 56px; padding: 0 14px; border-radius: 12px;
  background: #F5F6F7;
}
.wd-amt span { font-size: 22px; font-weight: 600; color: var(--ink-2); }
.wd-amt input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: none; outline: none;
  font-size: 28px; font-weight: 700; letter-spacing: -.5px;
}
.wd-quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wd-quick button {
  flex: 1; min-width: 56px; height: 34px; border-radius: 8px;
  background: #F5F6F7; font-size: 14px; color: #3A3F47;
}
.wd-quick button:active { background: var(--green-l); color: var(--green-d); }
.wd-note { margin-top: 12px; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }

/* 提现面板：收款账号与姓名 */
.wd-fields { margin-top: 14px; }
.wd-field {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 2px;
  border-bottom: 1px solid var(--line);
}
.wd-field > span { flex: none; width: 82px; font-size: 13px; color: var(--ink-2); }
.wd-field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: none; outline: none;
  font-size: 15px;
}
.wd-field input::placeholder { color: #B9BEC5; font-size: 13.5px; }
/* 姓名取自实名认证，锁住。灰底比灰色文字更能说明「这个改不了」 */
.wd-field input.lock { color: var(--ink-2); }

/* 邀请页顶部：未实名提醒。放在 hero 之上，因为它是「现在该去做的事」，
   比「邀请能得到什么」更靠前 */
.iv-warn {
  display: block; margin: 12px 10px 0; padding: 12px 14px;
  border-radius: var(--radius);
  background: #FFF7E6; border: 1px solid #FBE0B0;
}
.iw-t { font-size: 14px; font-weight: 600; color: #A35C00; }
.iw-s { margin-top: 3px; font-size: 12px; line-height: 1.6; color: #8A6A38; }
.iw-go { display: block; margin-top: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; color: #C67400; }

/* ---------- 行情帖（结构化卡片） ----------
   内容本身是纯文本，这里只是把它排成「行情日报」的样子：
   顶部是日期 + 三个数，中间按涨/跌/品牌分节，涨红跌绿（A 股习惯）。
   这一块不能撑破卡片：型号超长一律省略号，价格和涨跌列固定宽度。 */
.post-body.qp-body { white-space: normal; padding: 12px 12px 14px; }
.qp-top {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 12px;
  background: linear-gradient(135deg, #F1FBF8 0%, #E9F6F2 100%);
}
.qp-dl { flex: 1; min-width: 0; }
.qp-dl b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; }
.qp-dl i { font-style: normal; font-size: 11.5px; color: var(--green-d); }
.qp-kpi { display: flex; gap: 13px; flex: none; }
.qp-kpi div { text-align: center; }
.qp-kpi b {
  display: block; font-size: 17px; font-weight: 800; line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.qp-kpi i { font-style: normal; font-size: 10px; color: var(--ink-3); }
.qp-kpi .up b { color: #E5484D; }
.qp-kpi .dn b { color: #12A05C; }

.qp-sec { margin-top: 14px; }
.qp-sh {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  padding: 0 2px 4px;
}
.qp-sh::before { content: ''; width: 3px; height: 12px; border-radius: 2px; background: var(--green); }

.qp-r {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 2px; min-height: 40px;
}
.qp-r + .qp-r { border-top: 1px solid #F7F8FA; }
.qp-nm { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 5px; }
.qp-bg {
  /* 灰底小标签比描边清楚得多：10px 的细边框在手机上基本看不见。
     固定宽度是为了让「华为」「iQOO」「荣耀」后面的型号都从同一条竖线开始——
     标签宽窄不一的话，整个列表左边缘是参差的，一眼就不整齐。 */
  flex: none; width: 34px; text-align: center;
  font-size: 10.5px; color: var(--ink-2);
  background: #F4F5F7; border-radius: 4px;
  padding: 1px 0; line-height: 15px; transform: translateY(-1px);
}
.qp-md { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-st { flex: none; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.qp-pz {
  flex: none; font-size: 14.5px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.2px;
}
.qp-dt {
  flex: none; width: 50px; text-align: right;
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}
.qp-dt.up { color: #E5484D; }
.qp-dt.dn { color: #12A05C; }
.qp-tx { font-size: 13px; color: var(--ink-2); padding: 6px 2px; }

.qp-br { display: flex; align-items: center; gap: 8px; padding: 7px 2px; }
.qp-br + .qp-br { border-top: 1px solid #F5F6F8; }
.qp-bn { flex: none; width: 50px; font-size: 12.5px; color: var(--ink-2); }
.qp-bar { position: relative; flex: 1; height: 6px; background: #F2F4F6; border-radius: 3px; }
.qp-bar::after {
  content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px;
  width: 1px; background: var(--line-2);
}
.qp-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.qp-bar i.up { left: 50%; background: #E5484D; }
.qp-bar i.dn { right: 50%; background: #12A05C; }
.qp-bv {
  flex: none; width: 38px; text-align: right;
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.qp-bv.up { color: #E5484D; }
.qp-bv.dn { color: #12A05C; }
.qp-bc { flex: none; width: 72px; text-align: right; font-size: 10.5px; color: var(--ink-3); }

.qp-ft {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); line-height: 1.75;
}
.qp-cta {
  display: flex; align-items: center; justify-content: center;
  margin-top: 14px; height: 42px; border-radius: 10px;
  background: var(--green-l); color: var(--green-d);
  font-size: 13.5px; font-weight: 700;
}
.qp-cta:active { background: #DCF2EB; }
