/* =====================================================================
   元契链 H5 全局样式  —— 东方禅意 / 宣纸留白 / 深靛蓝点缀
   ===================================================================== */

:root {
  --brand: #081951;                 /* 由站点设置动态覆盖 */
  --paper: #f7f4ec;
  --card: #ffffff;
  --ink: #2b2a26;
  --ink-2: #8a8578;
  --brown: #6b4a2b;
  --gold: #b08d4f;
  --line: #eeebe5;
  --danger: #a63d3d;
  --success: #3f7a52;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(60, 50, 30, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; }
.mono  { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.muted { color: var(--ink-2); }
.gold  { color: var(--gold); }
.center { text-align: center; }

a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

/* H5 卷轴式内容栏：移动端全宽，PC 居中 640 */
.shell {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------------- 顶部品牌区 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 236, .94);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar .brand { display: flex; flex-direction: column; line-height: 1.5; }
.topbar .brand .name { font-size: 19px; font-weight: 700; color: var(--brand); letter-spacing: 2px; }
.topbar .brand .slogan { font-size: 11px; color: var(--ink-2); letter-spacing: 1px; }
.topbar .icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 20px;
}

.hero {
  position: relative;
  padding: 22px 20px 6px;
  overflow: hidden;
}
.hero-text { position: relative; z-index: 1; }
.hero-globe {
  position: absolute;
  top: -18px;
  right: -34px;
  width: 132px;
  height: 132px;
  z-index: 0;
  pointer-events: none;
}
@media (min-width: 640px) {
  .hero-globe {
    top: -30px;
    right: calc(50% - 320px - 10px);
    width: 150px;
    height: 150px;
  }
}
.hero h1 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 27px;
  color: var(--brand);
  margin: 0 0 4px;
  letter-spacing: 3px;
}
.hero p { margin: 0; color: var(--ink-2); font-size: 13px; letter-spacing: 1px; }
.hero .rule { width: 40px; height: 2px; background: var(--gold); margin: 12px 0; }

/* ---------------- 搜索框 ---------------- */
.search-wrap { padding: 14px 20px 4px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 15px; color: var(--ink); min-width: 0; height: 40px;
}
.search-box button {
  border: 0; background: var(--brand); color: #fff;
  border-radius: 999px; padding: 0 18px; height: 38px; font-size: 14px;
}

/* ---------------- 绑定藏品入口 ---------------- */
.bind-entry { padding: 30px 20px; }
.bind-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; box-sizing: border-box;
  height: 48px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 15px; letter-spacing: 2px;
  box-shadow: var(--shadow);
}

.section-title {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 20px 10px;
  font-family: "Noto Serif SC", serif;
  color: var(--brand);
  font-size: 16px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------- 卡片 / 藏品列表 ---------------- */
.list { padding: 0 16px; }
.treasure-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.treasure-card:active { transform: translateY(1px); }
.treasure-card .thumb {
  width: 74px; height: 74px; border-radius: 8px; object-fit: cover;
  background: var(--line); flex-shrink: 0;
}
.treasure-card .meta { min-width: 0; flex: 1; }
.treasure-card .meta .t-name { font-size: 16px; color: var(--ink); font-weight: 600; }
.treasure-card .meta .t-no { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.treasure-card .chev { color: var(--ink-2); font-size: 18px; }

.empty {
  text-align: center;
  padding: 64px 30px;
  color: var(--ink-2);
}
.empty .seal {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border: 1.5px solid var(--gold); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 30px; font-family: "Noto Serif SC", serif;
}
/* 全局 LOGO 基准尺寸：等比缩放，防止上传原图撑破布局 */
.site-logo {
  width: 48px; height: 48px; object-fit: contain; display: block;
}
.empty .site-logo {
  width: 72px; height: 72px; margin: 0 auto 16px;
}
.auth-logo{width:56px;height:56px;margin:0 auto 12px;display:block;}
.hero .auth-logo{border:none;}
.empty p { margin: 4px 0; }

/* ---------------- 表单 / 认证页 ---------------- */
.auth-wrap {
  max-width: 520px; margin: 0 auto; padding: 40px 16px;
}
.auth-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 28px;
  min-width: 300px;
}
.auth-card h2 {
  font-family: "Noto Serif SC", serif; color: var(--brand);
  margin: 0 0 4px; font-size: 21px; text-align: center; letter-spacing: 2px;
}
.auth-card .sub { text-align: center; color: var(--ink-2); font-size: 12px; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; font-size: 15px; color: var(--ink);
  background: #fdfcf9; outline: none; font-family: inherit;
  transition: border-color .2s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.input:focus { border-color: var(--brand); background: #fff; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.7; }

/* select 统一外观：微信 X5 / iOS WebView 默认会用原生样式覆盖，必须重置 appearance */
select.input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 38px;
  line-height: 1.4;
  background-color: #fdfcf9;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23081951' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}
select.input:focus { background-color: #fff; }
select.input option { color: var(--ink); background: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 46px; border: 0; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 16px; font-family: inherit;
  cursor: pointer; transition: opacity .2s ease-out, transform .2s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline {
  background: #fff; color: var(--brand); border: 1px solid var(--brand);
}
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); }
.btn-sm {width: auto; min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-sm2 {min-height: 36px; padding: 0 14px; font-size: 13px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-2); }

/* 提示条 */
.alert {
  position:relative;display:flex;align-items:flex-start;gap:10px;
  background:#ffffff;border:1px solid #eeebe5;border-radius:10px;
  padding:12px 40px 12px 14px;margin-bottom:14px;font-size:13px;line-height:1.55;
  box-shadow:0 1px 3px rgba(60,50,30,.06);overflow:hidden;
  animation:alertIn .25s ease-out;
}
.alert::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;}
.alert .alert-ico{flex-shrink:0;width:18px;height:18px;margin-top:1px;}
.alert .alert-msg{flex:1;min-width:0;word-break:break-word;}
.alert .alert-close{
  position:absolute;right:8px;top:8px;width:26px;height:26px;border:0;background:none;
  color:#9a958a;padding:4px;cursor:pointer;border-radius:6px;
}
.alert .alert-close:active{background:#f2ede1;}
.alert-error { color:#a63d3d; }
.alert-error::before { background:#a63d3d; }
.alert-success { color:#3f7a52; }
.alert-success::before { background:#3f7a52; }
@keyframes alertIn{from{opacity:0;transform:translateY(-4px);}to{opacity:1;transform:translateY(0);}}
@media (prefers-reduced-motion:reduce){.alert{animation:none;}}

/* ---------------- 详情页 Tabs ---------------- */
.detail-head { padding: 18px 20px 4px; }
.detail-head .d-name { font-family: "Noto Serif SC", serif; font-size: 22px; color: var(--brand); }
.no-copy {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 4px 8px; font-size: 12px; color: var(--ink-2); margin-top: 0;
  flex: 1 1 auto; min-width: 0;
}
.no-copy > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-copy .copy-btn { color: var(--brand); cursor: pointer; border: 0; background: none; font-size: 12px; flex-shrink: 0; white-space: nowrap; }

/* 编号行 + 藏品转让按钮 */
.no-line { display: flex; align-items: stretch; gap: 10px; margin-top: 8px; }
.transfer-btn {
  flex-shrink: 0; border: 0; cursor: pointer;
  background: var(--brand); color: #ffffff;
  font-size: 13px; letter-spacing: 1px;
  padding: 0 16px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px;
}
.transfer-btn:disabled { background: #b7b2a4; cursor: default; }
.transfer-btn:active:not(:disabled) { opacity: .88; }
.consign-tip { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.consign-tip a { color: var(--brand); }
.consign-price {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; color: var(--ink); margin: 4px 0 8px;
}
.consign-price .mono { color: var(--brand); font-weight: 700; }
.consign-price-note { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.link-copy {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  color: var(--brand); font-size: 12px; text-decoration: underline;
}

/* 结缘恭请按钮 */
.acquire-btn { width: 100%; margin-top: 14px; font-size: 15px; letter-spacing: 3px; min-height: 46px; }
.self-held-banner {
  width: 100%; box-sizing: border-box; margin-top: 14px; min-height: 46px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: #faf8f2; color: var(--ink-2);
  font-size: 14px; letter-spacing: 2px;
}

.tabs {
  position: sticky; top: 65px; z-index: 20;
  display: flex; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1; border: 0; background: none; padding: 13px 4px;
  font-size: 14px; color: var(--ink-2); position: relative;
  font-family: inherit; min-height: 46px;
}
.tabs button.active { color: var(--brand); font-weight: 600; }
.tabs button.active::after {
  content: ""; position: absolute; left: 28%; right: 28%; bottom: 0;
  height: 2px; background: var(--brand);
}

.tab-pane { display: none; padding: 16px; animation: fadeIn .25s ease-out; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.card-box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 16px 26px 16px; margin-bottom: 26px;
}
.card-box h3 {
  margin: 0 0 10px; font-size: 15px; color: var(--brand);
  font-family: "Noto Serif SC", serif;
  display: flex; align-items: center; gap: 8px;
}
.card-box h3::before { content: ""; width: 3px; height: 14px; background: var(--gold); border-radius: 2px; }

/* ---------------- 绑定藏品页 ---------------- */
.bind-wrap { padding: 20px 18px 32px; }
.bind-card .bind-title {
  margin: 0 0 8px; font-size: 18px; color: var(--brand);
  font-family: "Noto Serif SC", serif; letter-spacing: 1px;
}
.bind-tip { margin: 0 0 18px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.bind-form .field { margin-bottom: 40px; }
.bind-form .btn { margin-top: 20px; margin-bottom: 10px; }
.bind-form .lbl { display: block; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.inp {
  width: 100%; box-sizing: border-box;
  height: 46px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #faf8f2; font-size: 14px; color: var(--ink);
}
.inp:focus { outline: none; border-color: var(--brand); background: #fff; }
.btn-block { display: flex; align-items: center; justify-content: center; width: 100%; }
.bind-back { min-height: 46px; box-sizing: border-box; }

.apply-list { list-style: none; margin: 12px 0 0; padding: 0; }
.apply-item {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px; background: #faf8f2;
}
.apply-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.apply-no { font-size: 13px; color: var(--ink); word-break: break-all; }
.apply-time { margin-top: 6px; font-size: 11px; color: var(--ink-2); }
.apply-remark { margin-top: 8px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.apply-remark.wait-text { color: var(--brand); }
.badge {
  flex-shrink: 0; font-size: 11px; line-height: 1;
  padding: 5px 10px; border-radius: 999px;
}
.badge-wait { background: rgba(176,141,79,.16); color: #8a6a2f; }
.badge-ok   { background: rgba(63,122,82,.14); color: var(--success); }
.badge-off  { background: rgba(166,61,61,.12); color: var(--danger); }
.kv { display: flex; font-size: 13px; margin-bottom: 8px; }
.kv .k { width: 102px; color: var(--ink-2); flex-shrink: 0; }
.kv .v { color: var(--ink); flex: 1; }

/* 物证图 */
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.evidence-grid img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; background: #eee7d8; }
.evidence-grid img:first-child { grid-column: span 2; height: 200px; }

/* 价值 */
.value-big { font-size: 28px; color: var(--brand); font-weight: 700; letter-spacing: 1px; }
.disclaimer {
  font-size: 11px; color: #9a958a; line-height: 1.7;
  background: #faf8f2; border-radius: 8px; padding: 10px 12px; margin-top: 12px;
}

/* 价格联动 */
.crypto-desc { font-size: 12px; color: var(--ink-2); margin: 0 0 4px; line-height: 1.7; }
.crypto-row { display: flex; align-items: center; gap: 14px; padding: 16px 0 6px; }
.crypto-coin { width: 50px; height: 50px; flex-shrink: 0; color: var(--gold); opacity: 0.86 }
.crypto-coin svg { width: 100%; height: 100%; display: block; }
.crypto-main { flex: 1; min-width: 0; }
.crypto-name { font-size: 16px; font-weight: 700; color: var(--brand); }
.crypto-qty {
  font-size: 15px; color: var(--ink-2);
  word-break: break-all;
}
.crypto-dir { width: 30px; height: 30px; flex-shrink: 0; color: var(--gold); opacity: 0.6 }
.crypto-dir svg { width: 100%; height: 100%; display: block; }

/* ---------------- 时间轴 ---------------- */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 1.5px; background: var(--line);
}
.tl-item { position: relative; margin-bottom: 20px; }
.tl-item::before {
  content: ""; position: absolute; left: -22px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink-2);
}
.tl-item.current::before { background: var(--brand); border-color: var(--brand); }
.tl-item .tl-time { font-size: 12px; color: var(--ink-2); }
.tl-item .tl-type {
  display: inline-block; font-size: 11px; color: var(--brand);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; margin-left: 6px;
}
.tl-item .tl-flow { font-size: 14px; color: var(--ink); margin: 10px 0; display:flex; align-items:center; flex-wrap:wrap; gap:2px; }
.tl-item .tl-flow .arrow { color: var(--gold); margin: 0 6px; }
.tl-item .tl-flow .person { display:inline-flex; align-items:center; gap:6px; }
.tl-item .person-avatar {
  width:26px; height:26px; border-radius:50%; object-fit:cover;
  border:1px solid var(--line); flex:0 0 auto; background:#fff;
}
.tl-item .person-seed {
  display:inline-flex; align-items:center; justify-content:center;
  font-size:12px; color:var(--ink-2); background:#f1ece1;
}
.tl-item .tl-wish {
  font-size: 13px; color: #55504a; background: #faf8f2;
  border-left: 2px solid var(--gold); border-radius: 0 6px 6px 0;
  padding: 8px 10px; margin-top: 6px;
}
.tl-item .tl-imgs { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tl-item .tl-imgs img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.tl-item .holder-tag { font-size: 11px; color: #fff; background: var(--brand); border-radius: 4px; padding: 1px 6px; margin-left: 6px; }

/* 价值小时间轴 */
.vlog-item .v-amount { color: var(--brand); font-weight: 600; }
.vlog-item.current-dot::before { background: var(--gold); border-color: var(--gold); }

/* ---------------- 札记 ---------------- */
.note-card { margin-bottom: 14px; }
.note-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.note-head .who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.note-head .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.note-head .time { font-size: 11px; color: var(--ink-2); }
.quote {
  font-family: "Noto Serif SC", serif; font-style: italic;
  color: var(--ink-2); font-size: 13px; line-height: 1.8;
  border-left: 2px solid var(--gold); padding-left: 10px; margin-bottom: 10px;
}
.quote .qs { display: block; font-style: normal; font-size: 11px; margin-top: 4px; }
.note-text { font-size: 14px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.note-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.note-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

/* ---------------- 哲思句引导 ---------------- */
.sentence-box {
  background: linear-gradient(#fdfcf8, #faf6ec);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px;
}
.sentence-box .stext {
  font-family: "Noto Serif SC", serif; font-size: 16px; color: #4a463d; line-height: 1.8;
}
.sentence-box .ssource { font-size: 12px; color: var(--ink-2); margin-top: 6px; text-align: right; }
.sentence-actions { display: flex; gap: 10px; margin-top: 12px; }
.sentence-actions .btn { flex: 1; min-height: 40px; font-size: 13px; }

/* 图片上传组件 */
.uploader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.up-cell {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: #f2eee3;
}
.up-cell img { width: 100%; height: 100%; object-fit: cover; }
.up-cell .del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; border: 0;
  font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.add-cell {
  aspect-ratio: 1; border: 1.5px dashed #cfc7b4; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink-2); font-size: 12px; gap: 4px; background: #fdfcf8; cursor: pointer;
}
.add-cell span { font-size: 24px; color: var(--gold); }

/* 底部固定操作 */
.bottom-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
}
.bottom-actions-inner {
  max-width: 640px; margin: 0 auto;
  padding: 20px 16px; display: flex; gap: 10px;
}
.bottom-actions .btn { flex: 1; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(30,26,20,.45);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
  animation: fadeIn .2s ease-out;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 340px;
  padding: 22px 20px; text-align: center;
  animation: popIn .22s ease-out;
}
@keyframes popIn { from { transform: scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .m-icon { font-size: 40px; margin-bottom: 8px; }
.modal .m-icon.ok { color: var(--success); }
.modal .m-icon.bad { color: var(--danger); }
.modal h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.modal p { margin: 0 0 6px; font-size: 13px; color: var(--ink-2); word-break: break-all; }
.modal .hash-line { font-size: 11px; color: var(--ink-2); text-align: left; background:#faf8f2; border-radius:6px; padding:8px 10px; margin-top:8px; width:100%; box-sizing:border-box; overflow-wrap:anywhere; }
.modal .hash-row { margin: 4px 0; }
.modal .hash-label { display:inline-block; min-width:52px; color:var(--ink-2); margin-right:4px; }
.modal .hash-val { display:inline; word-break:break-all; overflow-wrap:anywhere; }
.forgot-modal .kefu-box { margin-top:10px; border-radius:6px; padding:12px 0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.forgot-modal .kefu-label { color:var(--ink-2); font-size:12px; }
.forgot-modal .kefu-val { font-size:13px; color:var(--brand); font-weight:600; }
.auth-foot .foot-sep { margin:0 8px; color:var(--ink-2); }
.modal .m-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .m-actions .btn { flex: 1; }

/* 图片灯箱 */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,12,8,.9); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 4px; }

/* 页脚客服 */
.foot-wrap {
  margin-top: auto;            /* flex 列中贴底：内容不满一屏时位于页面底部 */
  padding-top: 120px;           /* 背景条顶部与内容至少留 120px */
  width: 100%;
  max-width: 100%;
  min-width: 0;                /* 允许 flex 子项收缩，避免横向溢出 */
}
.foot-bar {
  margin: 0 16px;
  background: #faf8f2;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
}
.foot-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
.kefu-foot {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  text-align: center; font-size: 12px; color: var(--ink-2);
}
.wx-copy {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 2px; margin: 0; cursor: pointer;
  color: var(--brand); font-size: 12px; line-height: 1;
}
.wx-copy .wx-num { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.wx-copy .wx-copy-ic { opacity: .7; }
.wx-copy:active { opacity: .7; }
.kefu-foot-icp {
  margin-top: 2px;             /* 两条 footer 间距 */
  color: #9a958a; font-size: 10px;
}
.beian-a {
  color: #9a958a; text-decoration: none;
}
.beian-a:active, .beian-a:hover { color: var(--brand); text-decoration: underline; }
/* ICP / 公安备案同一行 */
.beian-line { gap: 14px; }
.beian-line .beian-item { display: inline-flex; align-items: center; white-space: nowrap; }
/* 图标 + 文字上下居中且不折行（含链接与纯文本两种承载元素） */
.beian-item .beian-a,
.beian-item .beian-txt {
  display: inline-flex; align-items: center; white-space: nowrap;
}
/* 公安备案官方标识 */
.beian-gongan-ic {
  width: 12px; height: 12px; margin-right: 3px;
  flex: 0 0 auto; object-fit: contain;
}
.toast {
  position: fixed; left: 50%; bottom: 110px; transform: translateX(-50%);
  background: rgba(30,26,20,.88); color: #fff; font-size: 13px;
  padding: 9px 16px; border-radius: 8px; z-index: 300; opacity: 0;
  transition: opacity .25s ease-out; pointer-events: none; max-width: 80%; text-align:center;
}
.toast.show { opacity: 1; }

/* 全局加载遮罩 */
.global-loading {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(247,244,236,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease-out;
}
.global-loading.show { opacity: 1; pointer-events: auto; }
.loading-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 30px; box-shadow: 0 4px 18px rgba(60,50,30,.12);
  max-width: 80vw;
}
.loading-spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid #e2dccb; border-top-color: var(--brand);
  animation: loading-spin .8s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--ink); text-align: center; line-height: 1.5; }
.btn.is-busy { opacity: .75; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation-duration: 1.6s; }
}

.profile-cell { position:relative; display:flex; align-items:center; gap:14px; padding: 18px 16px; }
.profile-cell .avatar-lg { width:56px;height:56px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px; }
.profile-id-block{min-width:0;}
.profile-name{font-size:18px;font-weight:600;}
.profile-id{font-size:12px;margin-top:1px;}

/* 站内信入口（身份卡右上角） */
.msg-entry{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:var(--brand);
  background:rgba(8,25,81,.06);text-decoration:none;}
.msg-entry:active{background:rgba(8,25,81,.12);}
.msg-entry .msg-badge{position:absolute;right:7px;bottom:7px;width:9px;height:9px;border-radius:50%;
  background:var(--danger,#a63d3d);border:1.5px solid #fff;box-sizing:content-box;}

.stat-row { display:flex; gap:10px; }
.stat-row .stat-box { flex:1; text-align:center; background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 6px; }
.stat-row .num { font-size:20px;color:var(--brand);font-weight:700; }
.stat-row .lbl { font-size:11px;color:var(--ink-2);margin-top:2px; }
.profile-stat{margin:14px 0;}

/* 市场行情波动 */
.market-card{margin-bottom:16px;}
.market-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;}
.market-title .block-h{margin-bottom:2px;}
.market-sub{font-size:11px;color:#8a8578;margin-left:2px;}
.market-change{display:flex;flex-direction:column;align-items:flex-end;gap:1px;white-space:nowrap;}
.market-pct{font-size:15px;font-weight:700;color:var(--brand);}
.market-change.is-down .market-pct{color:#a63d3d;}
.market-net{font-size:11px;color:#8a8578;font-variant-numeric:tabular-nums;}
.market-total{font-size:13px;color:#2b2a26;margin:6px 0 8px;font-variant-numeric:tabular-nums;}
.market-svg{display:block;}
.market-line{fill:none;stroke:var(--brand);stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;}
.market-area{fill:var(--brand);opacity:.08;stroke:none;}
.market-dot{fill:var(--brand);stroke:#fff;stroke-width:1;}
.market-empty{display:flex;align-items:center;justify-content:center;height:88px;font-size:12px;color:#9a958a;}

/* 常用功能区 */
.func-section{margin-top:2px;}
.block-h{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;margin:0 0 10px;color:#2b2a26;}
.func-list{padding:0;overflow:hidden;}
.func-item{position:relative;display:flex;align-items:center;gap:12px;padding:14px 16px;
  text-decoration:none;color:#2b2a26;border-bottom:1px solid var(--line);min-height:48px;}
.func-item:last-child{border-bottom:0;}
.func-item:active{background:#faf8f2;}
.func-ic{width:36px;height:36px;border-radius:9px;background:rgba(8,25,81,.03);color:var(--brand);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.func-name{font-size:15px;flex:1;min-width:0;}
.func-unread{font-size:12px;color:#fff;background:var(--danger,#a63d3d);border-radius:999px;
  padding:1px 8px;min-width:20px;text-align:center;}
.func-tag{font-size:12px;color:var(--gold,#b08d4f);border:1px solid var(--gold,#b08d4f);
  border-radius:999px;padding:1px 9px;}
.func-arrow{width:8px;height:8px;border-top:1.6px solid #b8b2a4;border-right:1.6px solid #b8b2a4;
  transform:rotate(45deg);flex:0 0 auto;}
.profile-logout{margin-top:22px;margin-bottom:24px;}

.profile-main{padding:20px 18px 30px 18px;}

/* 头像修改 */
.profile-cell img.avatar-lg{object-fit:cover;}
.avatar-pick-card{margin-top:4px;}
.avatar-grid{
  display:grid; grid-template-columns:repeat(5,1fr); gap:12px;
}
.avatar-option{
  position:relative; display:block; margin:0; cursor:pointer; border-radius:50%;
  border:2px solid transparent; padding:2px; transition:border-color .2s ease;
}
.avatar-option img{
  display:block; width:100%; height:auto; border-radius:50%;
}
.avatar-option input{position:absolute;opacity:0;width:0;height:0;}
.avatar-option.selected{border-color:var(--brand);}
.avatar-option:hover{border-color:var(--line);}
.avatar-option.selected:hover{border-color:var(--brand);}
.avatar-save-btn{margin-top:18px;width:100%;}

/* 头像编辑角标 */
.avatar-edit-wrap{position:relative;width:56px;height:56px;flex:0 0 auto;}
.avatar-edit-wrap .avatar-lg{width:56px;height:56px;}
.avatar-edit-btn{
  position:absolute; right:-2px; bottom:-2px;
  width:24px; height:24px; border-radius:50%;
  background:var(--brand); color:#fff; border:2px solid #fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0;
}
.avatar-edit-btn:active{opacity:.85;}
.avatar-form-actions{display:flex;gap:10px;margin-top:18px;}
.avatar-form-actions .btn{flex:1;width:auto;}
/* 札记头像图片适配 */
.note-head img.avatar{object-fit:cover;display:block;}

#avatarPickCard[hidden]{display:none !important;}

/* ---------- 用户等级 ---------- */
.level-line{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap;}
.level-tag{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;background:rgba(8,25,81,.08);color:var(--brand);font-size:12px;font-weight:500;}
.level-pending{font-size:12px;color:#b08d4f;}
.level-up-btn{border:1px solid var(--brand);background:#fff;color:var(--brand);border-radius:6px;font-size:12px;padding:3px 12px;min-height:26px;cursor:pointer;}
.level-up-btn:active{background:rgba(8,25,81,.06);}

/* 底部弹层（等级选择 / 权益） */
.sheet-mask{position:fixed;inset:0;background:rgba(30,28,22,.42);z-index:90;display:flex;align-items:flex-end;justify-content:center;animation:sheetFade .22s ease-out;}
.sheet-mask[hidden]{display:none;}
.sheet-box{width:100%;max-width:640px;background:#fff;border-radius:16px 16px 0 0;padding:16px 16px calc(20px + env(safe-area-inset-bottom));max-height:76vh;display:flex;flex-direction:column;animation:sheetUp .26s ease-out;}
.sheet-head{display:flex;align-items:center;justify-content:space-between;font-size:15px;font-weight:600;margin-bottom:12px;}
.sheet-close{border:0;background:none;color:#8a8578;padding:4px;cursor:pointer;}
.level-options{overflow:auto;display:flex;flex-direction:column;gap:10px;}
.level-opt{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #eeebe5;border-radius:10px;padding:11px 13px;}
.level-opt-main{display:flex;flex-direction:column;gap:4px;min-width:0;}
.level-opt-name{font-size:15px;font-weight:500;}
.benefit-sheet-body{font-size:14px;line-height:1.75;color:#2b2a26;background:#f7f4ec;border:1px solid #eeebe5;border-radius:10px;padding:13px;white-space:pre-wrap;overflow:auto;}
@keyframes sheetFade{from{opacity:0;}to{opacity:1;}}
@keyframes sheetUp{from{transform:translateY(24px);opacity:.6;}to{transform:translateY(0);opacity:1;}}
@media (prefers-reduced-motion:reduce){.sheet-mask,.sheet-box{animation:none;}}
.level-opt-main .linklike{background:none;border:0;padding:0;color:var(--brand);font-size:12px;text-align:left;cursor:pointer;text-decoration:none;}
.level-opt-main .linklike:active{text-decoration:underline;}
/* 等级说明列表 */
.level-desc-ct .level-opt-benefits{font-size:12px;line-height:1.6;color:#8a8578;}
.level-state{flex:none;font-size:12px;border-radius:999px;padding:4px 11px;white-space:nowrap;}
.level-state.is-reached{color:var(--brand);background:rgba(8,25,81,.07);border:1px solid rgba(8,25,81,.18);}
.level-state.is-locked{color:#9a958a;background:#f3f0e8;border:1px solid #e6e1d4;}

/* ---------- 首页藏品馆板块 ---------- */
.hall-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:30px 16px 6px;}
.hall-hero .hero-text{flex:1;}
.hall-more{flex-shrink:0;color:var(--brand);font-size:13px;text-decoration:none;padding-top:7px;}
.hall-more:active{opacity:.7;}
.hall-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 16px calc(24px + env(safe-area-inset-bottom));}
.hall-card{background:#fff;border:1px solid #eeebe5;border-radius:12px;overflow:hidden;text-decoration:none;color:#2b2a26;display:block;transition:transform .25s ease-out,box-shadow .25s ease-out;}
.hall-card:active{transform:translateY(1px);}
.hall-card-img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block;background:#f2ede1;}
.hall-card-name{font-size:14px;padding:9px 10px 2px;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.hall-card-price{font-size:13px;color:var(--brand);font-weight:700;padding:2px 10px 11px;}

/* 藏品馆列表页 */
.hall-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:14px 16px 16px;}
.hall-toolbar select{flex:1;min-width:130px;}
.hall-page-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:0 16px calc(24px + env(safe-area-inset-bottom));}
.hall-empty{text-align:center;color:#8a8578;padding:50px 20px;font-size:14px;line-height:1.8;}
.hall-empty-page{padding-bottom:calc(74px + env(safe-area-inset-bottom));}

/* 橱窗详情 */
.archive-wrap{margin:14px 16px 0;}
.window-gallery{display:flex;flex-direction:column;gap:12px;margin-bottom:14px;}
.window-gallery img{width:100%;border-radius:12px;border:1px solid #eeebe5;background:#f2ede1;display:block;}
.window-info{padding:18px;}
.window-name{font-family:"Noto Serif SC",serif;font-size:21px;font-weight:700;margin:0 0 6px;}
.window-price{color:var(--brand);font-weight:700;font-size:20px;margin-bottom:14px;}
.window-meta{border-top:1px solid #eeebe5;}
.window-meta > div{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #eeebe5;font-size:14px;}
.window-meta .muted{flex-shrink:0;}
.window-note{font-size:12px;line-height:1.7;margin:14px 0 0;}

/* 通用分区标题（左名称 / 右操作） */
.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 4px 10px;}
.section-head .section-title{
  display:flex;align-items:center;gap:8px;padding:0;
  font-family:"Noto Serif SC",serif;color:var(--brand);font-size:16px;
}
.section-head .section-title::after{content:"";flex:1;width:40px;height:1px;background:var(--line);}
.section-head .more-link{flex-shrink:0;align-self:center;line-height:1.4;}

/* topbar 品牌链接 */
.topbar .brand-link{flex:1;text-decoration:none;min-width:0;cursor:pointer;}
.topbar .brand-link:active .name{opacity:.75;}

/* ---------- 图形验证码 ---------- */
.captcha-row{display:flex; gap:10px; align-items:center;}
.captcha-input{flex:1; min-width:0; text-transform:uppercase; letter-spacing:1px;}
.captcha-img{
  flex-shrink:0; width:120px; height:42px; border:1px solid var(--line);
  border-radius:8px; background:#f7f4ec; cursor:pointer;
}

/* ---------- 站内信 ---------- */
.msg-main{flex:1;min-width:0;padding:18px 16px 28px;}
.msg-head-line{display:flex;align-items:baseline;gap:10px;margin:2px 2px 14px;}
.msg-unread-total{font-size:12px;color:var(--gold,#b08d4f);letter-spacing:1px;}

.msg-list{display:flex;flex-direction:column;gap:12px;padding:0;}
.msg-body{flex:1 1 auto;min-width:0;display:block;}
.msg-item{position:relative;display:flex;align-items:flex-start;gap:12px;padding:15px 16px;
  text-decoration:none;color:#2b2a26;background:#ffffff;border:1px solid var(--line);
  border-radius:12px;box-shadow:0 1px 3px rgba(60,50,30,.06);min-height:48px;
  transition:box-shadow .25s ease-out,transform .25s ease-out;}
.msg-item:active{box-shadow:0 2px 8px rgba(60,50,30,.1);}
.msg-item.unread{border-color:rgba(176,141,79,.35);}
.msg-ic{width:38px;height:38px;border-radius:50%;background:rgba(8,25,81,.07);color:var(--brand);
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;}
.msg-ic.unread{background:rgba(176,141,79,.16);color:var(--gold,#b08d4f);}
.msg-item-title{font-size:15px;font-weight:600;line-height:1.4;flex:1;min-width:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.msg-item.unread .msg-item-title{color:#211f1a;}
.msg-item-time{font-size:12px;color:var(--ink-2);margin-top:3px;flex:0 0 auto;white-space:nowrap;text-align:right;}
.msg-item-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;}
.msg-item-content{display:block;margin-top:6px;font-size:13px;line-height:1.7;color:var(--ink-2);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.msg-dot{width:8px;height:8px;border-radius:50%;background:#c4bfb2;
  flex:0 0 auto;margin-top:7px;}
.msg-item.unread .msg-dot{background:var(--danger,#a63d3d);}
.msg-title-read{font-weight:400;color:#57534a;}

.msg-detail-card{padding:20px 18px;margin-bottom:0;}
.msg-detail-title{font-size:19px;font-weight:700;line-height:1.5;margin:0;}
.msg-detail-time{font-size:12px;color:var(--ink-2);margin-top:8px;padding-bottom:14px;
  border-bottom:1px solid var(--line);}
.msg-detail-divider{display:none;}
.msg-detail-content{margin:16px 0 0;font-size:15px;line-height:1.9;color:#33312b;}
.msg-goto-btn,.msg-back-btn{width:100%;box-sizing:border-box;}
.msg-goto-btn{margin-top:20px;}
.msg-back-btn{margin-top:12px;}
.msg-empty{padding:60px 24px;text-align:center;color:var(--ink-2);}
.msg-empty .empty-ic{margin:0 auto 14px;width:54px;height:54px;border-radius:50%;
  background:rgba(8,25,81,.06);color:var(--brand);display:flex;align-items:center;justify-content:center;}
.msg-empty p{margin:0;font-size:14px;letter-spacing:1px;}

/* ---------- 修改密码 ---------- */
.pwd-tip{margin:0 0 18px;font-size:12px;color:var(--ink-2);line-height:1.7;}
.pwd-error{margin:0 0 14px;padding:9px 12px;font-size:13px;border-radius:8px;
  background:rgba(166,61,61,.1);color:var(--danger);line-height:1.6;}
.pwd-note{margin:14px 0 0;font-size:12px;color:var(--ink-2);text-align:center;}

/* ---------- 藏贝权益卡 ---------- */
.points-card{padding:4px 16px;}
.points-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:13px 0;border-bottom:1px solid var(--line);}
.points-row:last-of-type{border-bottom:none;}
.points-k{display:flex;align-items:center;gap:5px;font-size:14px;color:var(--ink);white-space:nowrap;}
.points-v{font-size:14px;color:var(--ink);text-align:right;line-height:1.5;}
.points-v.is-neg{color:var(--danger);}
.points-strong{color:var(--brand);font-weight:700;}
.points-help{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;
  padding:0;border:none;border-radius:50%;background:rgba(8,25,81,.08);color:var(--ink-2);cursor:pointer;
  transition:background .2s ease-out,color .2s ease-out;}
.points-help:hover{background:rgba(8,25,81,.14);color:var(--brand);}
.points-link{text-decoration:none;}
.points-arrow{display:inline-block;vertical-align:-3px;color:var(--ink-2);}
.points-redeem-btn{display:flex;align-items:center;justify-content:center;width:100%;margin:36px 0 20px;text-align:center;}
.points-note{margin:12px 0 4px;font-size:13px;color:var(--ink-2);text-align:center;}
.points-disclaimer{margin-top:10px;font-size:11px;color:var(--ink-2);line-height:2.6;text-align:center;}

/* 问号提示 toast 复用 .toast，这里给一个简易气泡 */
.points-pop{position:fixed;
  max-width:240px;padding:8px 12px;background:rgba(43,42,38,.94);color:#fff;
  font-size:12px;line-height:1.5;border-radius:8px;z-index:400;opacity:0;
  transition:opacity .25s ease-out;pointer-events:none;white-space:nowrap;}
.points-pop.show{opacity:1;}
.points-pop::after{content:"";position:absolute;top:-5px;left:24px;
  border:5px solid transparent;border-bottom-color:rgba(43,42,38,.94);border-top:0;}
.points-pop.pop-up::after{top:auto;bottom:-5px;
  border-bottom:0;border-top:5px solid rgba(43,42,38,.94);}

/* ---------- 通用表单（收付/兑领） ---------- */
.form-wrap{margin-top:4px;}
.form-card h3{margin:0 0 6px;}
.form-tip{margin:20px 0 6px;font-size:12px;color:var(--ink-2);line-height:1.6;}
.redeem-submit{margin-top:26px;}
.field{margin-bottom:14px;}
.field label{display:block;margin-bottom:6px;font-size:13px;color:var(--ink);}
.field input{width:100%;padding:11px 12px;font-size:15px;color:var(--ink);
  background:#fff;border:1px solid var(--line);border-radius:8px;box-sizing:border-box;}
.field input:focus{outline:none;border-color:var(--brand);}
.form-submit{display:flex;align-items:center;justify-content:center;width:100%;margin-top:6px;text-align:center;}
.form-errors{margin:0 0 14px;padding:9px 12px;font-size:13px;line-height:1.6;
  border-radius:8px;background:rgba(166,61,61,.1);color:var(--danger);}

/* ---------- 兑领页 ---------- */
.redeem-info{margin-bottom:14px;border:1px solid var(--line);border-radius:8px;overflow:hidden;}
.redeem-info-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;font-size:13px;color:var(--ink);border-bottom:1px solid var(--line);}
.redeem-info-row:last-child{border-bottom:none;}
.redeem-info-row span:first-child{color:var(--ink-2);}
.redeem-info-row strong{color:var(--brand);}
.empty-pay{text-align:center;}
.empty-pay p{margin:0 0 16px;font-size:14px;color:var(--ink);line-height:1.6;}
button:disabled{opacity:.5;cursor:not-allowed;}

/* ---------- 兑领记录 ---------- */
.redeem-record{padding:14px 16px;}
.redeem-record-top{display:flex;align-items:center;justify-content:space-between;}
.redeem-amount{font-size:16px;font-weight:700;color:var(--brand);}
.redeem-status{font-size:13px;}
.st-pending{color:var(--gold);}
.st-success{color:var(--success);}
.st-danger{color:var(--danger);}
.st-muted{color:var(--ink-2);}
.redeem-record-time{margin-top:6px;font-size:12px;color:var(--ink-2);}
.redeem-cancel-form{margin-top:12px;}
.redeem-cancel-form .btn{display:inline-block;}
.redeem-remark{margin-top:10px;font-size:13px;color:var(--danger);line-height:1.6;}

/* ---------- 空状态（通用） ---------- */
.empty-box{text-align:center;padding:40px 20px;}
.empty-ic{color:var(--ink-2);margin-bottom:10px;display:flex;justify-content:center;}
.empty-txt{margin:0;font-size:14px;color:var(--ink-2);}

/* 结缘报备 */
.referral-list{list-style:none;margin:0;padding:0;}
.referral-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,#eeebe5);}
.referral-item:last-child{border-bottom:none;}
.referral-item-main{display:flex;flex-direction:column;gap:3px;min-width:0;}
.referral-mobile{font-size:15px;color:var(--ink,#2b2a26);}
.referral-note{font-size:12px;color:var(--ink-2,#8a8578);}
.referral-time{font-size:11px;color:var(--ink-2,#8a8578);}
.referral-state{flex:none;font-size:12px;padding:2px 10px;border-radius:999px;}
.referral-state.is-pending{background:rgba(176,141,79,.12);color:#8a6a2f;}
.referral-state.is-dealt{background:rgba(8,25,81,.08);color:var(--brand);}
.referral-state.is-void{background:#f1efea;color:#9a958a;}
.referral-void-reason{list-style:none;padding:0 0 10px;font-size:12px;color:#9a958a;}

/* 权益中心 */
.points-rights-btn{margin-top:20px;margin-bottom:20px;}
.rights-tabs{display:flex;gap:8px;margin:14px 2px 12px;}
.rights-tab{flex:1;text-align:center;padding:9px 0;font-size:14px;border-radius:8px;background:#fff;color:var(--ink-2,#8a8578);border:1px solid var(--line,#eeebe5);transition:all .25s ease-out;}
.rights-tab.is-active{background:var(--brand);color:#fff;border-color:var(--brand);}
.rights-card{padding:4px 16px;}
.rights-list{list-style:none;margin:0;padding:0;}
.rights-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line,#eeebe5);}
.rights-item:last-child{border-bottom:none;}
.rights-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.rights-title{font-size:14px;color:var(--ink,#2b2a26);}
.rights-archive{font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:13px;}
.rights-sub{font-size:12px;color:var(--ink-2,#8a8578);}
.rights-time{font-size:11px;color:var(--ink-2,#8a8578);}
.rights-amount{flex:none;font-size:16px;font-weight:600;}
.rights-amount .is-pos{color:var(--brand);}
.rights-amount .is-neg{color:var(--danger,#a63d3d);}

/* 底部常驻 TabBar：满宽铺面 + 内层 640 居中 */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:90;background:#fff;border-top:1px solid #e4ddcc;padding-bottom:env(safe-area-inset-bottom);}
.tabbar-inner{max-width:640px;margin:0 auto;display:flex;}
.tabbar-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:7px 0 6px;color:#9a958a;transition:color .25s ease-out;min-height:54px;}
.tabbar-item.is-active{color:var(--brand);}
.tabbar-item.is-disabled{color:#c3bfb4;}
.tabbar-ic{position:relative;display:flex;}
.tabbar-label{font-size:11px;letter-spacing:.5px;}
.tabbar-badge{position:absolute;top:-5px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#a63d3d;color:#fff;font-size:10px;line-height:16px;text-align:center;}
/* 主内容底部留白，避免被 TabBar 遮挡；有 TabBar 的列表页 */
body.has-tabbar .shell{padding-bottom:64px;}

/* 等级说明 sheet 可滚动 + 底部留白，避免被 tabbar / 安全区遮挡 */
#levelSheet .level-options{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(28px + env(safe-area-inset-bottom));margin-bottom:-6px;}
#levelSheet .level-desc-opt:last-child{margin-bottom:6px;}

/* =====================================================================
   隐私与政策 / 站内文章 / 意见反馈
   ===================================================================== */
.art-list{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;}
.art-list li{border-bottom:1px solid var(--line);}
.art-list li:last-child{border-bottom:none;}
.art-list-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 20px 15px 16px;font-size:15px;color:var(--ink);}
.art-list-item::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--gold);opacity:.65;}
.art-list-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.art-list-arrow{flex:none;color:var(--ink-2);font-size:20px;line-height:1;}
.art-empty{padding:56px 20px;text-align:center;color:var(--ink-2);font-size:14px;}
.art-list-card ~ .btn{margin-top:20px;}
.profile-main.art-list-page{padding-bottom:30px;}

.art-detail{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px 20px;margin-bottom:18px;}
.art-detail-title{font-family:"Noto Serif SC","Songti SC",serif;font-size:21px;font-weight:700;color:var(--brand);margin:0 0 8px;letter-spacing:1px;line-height:1.4;}
.art-detail-meta{font-size:12px;color:var(--ink-2);margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid var(--line);}

/* Markdown 正文排版 */
.markdown-body{font-size:15px;line-height:1.85;color:var(--ink);word-break:break-word;}
.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{font-family:"Noto Serif SC","Songti SC",serif;color:var(--brand);line-height:1.4;margin:22px 0 10px;font-weight:700;}
.markdown-body h1{font-size:20px;}
.markdown-body h2{font-size:18px;}
.markdown-body h3{font-size:16px;}
.markdown-body h4,.markdown-body h5,.markdown-body h6{font-size:15px;}
.markdown-body h1:first-child,.markdown-body h2:first-child{margin-top:0;}
.markdown-body p{margin:10px 0;}
.markdown-body ul,.markdown-body ol{margin:10px 0;padding-left:24px;}
.markdown-body li{margin:4px 0;}
.markdown-body blockquote{margin:14px 0;padding:8px 14px;border-left:3px solid var(--gold);background:#faf7f0;color:var(--ink-2);border-radius:0 6px 6px 0;}
.markdown-body blockquote p{margin:4px 0;}
.markdown-body hr{border:none;border-top:1px solid var(--line);margin:20px 0;}
.markdown-body a{color:var(--brand);text-decoration:underline;text-underline-offset:2px;}
.markdown-body strong{font-weight:700;color:var(--ink);}

/* 意见反馈 */
.fb-form-card .form-tip{font-size:12px;color:var(--ink-2);margin:2px 0 14px;}
.fb-textarea{width:100%;min-height:150px;resize:vertical;line-height:1.7;}
.fb-uploader{margin-top:4px;}
.fb-previews{display:flex;flex-wrap:wrap;gap:10px;}
.fb-thumb{position:relative;width:76px;height:76px;border-radius:8px;overflow:hidden;border:1px solid var(--line);background:#f2efe8;}
.fb-thumb img{width:100%;height:100%;object-fit:cover;}
.fb-thumb-del{position:absolute;top:2px;right:2px;width:20px;height:20px;padding:0;border:none;border-radius:999px;background:rgba(43,42,38,.62);color:#fff;font-size:14px;line-height:18px;text-align:center;cursor:pointer;}
.fb-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:76px;height:76px;border:1px dashed #c9c2b2;border-radius:8px;color:var(--ink-2);cursor:pointer;background:#faf8f3;transition:border-color .2s,color .2s;}
.fb-add:active{border-color:var(--brand);color:var(--brand);}
.fb-add-ic{font-size:22px;line-height:1;}
.fb-add-txt{font-size:11px;}
.fb-upload-hint{font-size:11px;color:var(--ink-2);margin-top:8px;}

/* 登录 / 注册页弱法律行 */
.auth-legal{max-width:300px;margin:18px auto 0;text-align:center;font-size:12px;line-height:1.9;color:var(--ink-2);}
.auth-legal a{color:var(--ink-2);}
.auth-legal a:active{color:var(--brand);}
.auth-agree{font-size:12px;color:var(--ink-2);text-align:center;margin:0 0 12px;line-height:1.6;}
.auth-agree a{color:var(--brand);}

/* 反馈提交成功 */
.fb-done-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:48px 24px;text-align:center;margin-bottom:18px;}
.fb-done-ic{width:60px;height:60px;margin:0 auto 18px;border-radius:999px;background:#eef4ef;color:var(--success);display:flex;align-items:center;justify-content:center;font-size:30px;line-height:1;}
.fb-done-title{font-size:17px;font-weight:600;color:var(--ink);font-family:"Noto Serif SC","Songti SC",serif;margin-bottom:8px;}
.fb-done-sub{font-size:13px;color:var(--ink-2);}

/* ===== 联系我们页 ===== */
.contact-main { padding-top: 4px; }
.contact-hero { text-align: center; padding: 24px 16px 20px; }
.contact-title {
  margin: 0; font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 23px; color: var(--ink); letter-spacing: 3px; font-weight: 700;
}
.contact-title::after {
  content: ""; display: block; width: 36px; height: 2px;
  background: var(--gold); margin: 12px auto 0;
}
.contact-sub { margin: 12px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.9; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 3px rgba(60, 50, 30, .06);
  padding: 16px; margin-bottom: 14px;
}
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-item-head { margin-bottom: 12px; }
.contact-ic {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 999px;
  background: rgba(8, 25, 81, .06); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.contact-item-bd { flex: 1; min-width: 0; }
.contact-label { font-size: 12px; color: var(--ink-2); margin-bottom: 3px; letter-spacing: 1px; }
.contact-value {
  font-size: 15px; color: var(--brand); font-weight: 600;
  text-decoration: none; word-break: break-all;
}
.contact-value:active, .contact-value:hover { text-decoration: underline; }
.contact-tip { font-size: 12px; color: var(--ink-2); }
.contact-qr { display: flex; justify-content: center; padding: 4px 0 2px; }
.contact-qr-img {
  width: 190px; height: 190px; object-fit: contain; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px;
}
.contact-qr-empty {
  width: 190px; height: 190px; border: 1px dashed #cfc7b5; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #a89f8d; font-size: 12px; line-height: 2;
}
.contact-back { display: inline-flex; text-align: center; margin-top: 2px; }

/* 页脚版权信息行（版权信息 · 联系我们） */
.foot-dot { margin: 0 6px; color: #c4bfb2; }
.contact-link { color: var(--brand); text-decoration: none; }
.contact-link:active, .contact-link:hover { text-decoration: underline; }
