/* 素材玖年 SCJN · 1:1 会员首页 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
button, input { font: inherit; color: inherit; border: 0; background: none; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
.hidden { display: none !important; }

:root {
  --bg: #f3f0eb;
  --paper: #f7f5f1;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #9a958e;
  --line: #eeeae3;
  --gold: #c4a574;
  --gold-2: #b08a52;
  --ok: #3d9a5c;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #f3f0eb;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f3f0eb;
}

/* ===== 字标 素材玖年 / SCJN ===== */
.wordmark {
  display: grid;
  grid-template-columns: 1fr auto;
  width: max-content;
  line-height: 1;
}
.wm-cn {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ink);
}
.wm-en {
  grid-column: 2;
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  margin-top: 3px;
  padding-right: 1px;
}
.wm-sub {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 8px;
  letter-spacing: .42em;
  color: #b0aaa2;
  font-weight: 500;
}
.wordmark.lg .wm-cn { font-size: 32px; letter-spacing: .12em; }
.wordmark.lg .wm-en { font-size: 13px; }
.wordmark.lg .wm-sub { margin-top: 14px; font-size: 9px; }
.wordmark.sm .wm-cn { font-size: 18px; }
.wordmark.sm { margin: 0 auto 12px; }

/* ===== 顶栏 ===== */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 22px 8px;
  background: transparent;
}
.level-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px 0 10px;
  background: #2b2b2b;
  color: #f6f3ee;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
  margin-top: 2px;
  flex-shrink: 0;
}
.level-pill svg { width: 12px; height: 12px; color: var(--gold); }
.level-pill em { font-style: normal; font-weight: 500; }

main { padding: 10px 18px 118px; }

/* ===== 会员卡（卡面 + 三项数据一体） ===== */
.vip-shell {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(80,70,55,.07);
}
.vip-face {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 26px 24px 22px;
  background:
    linear-gradient(115deg, rgba(255,252,248,.88) 0 34%, rgba(255,255,255,.2) 62%, rgba(196,165,116,.16) 100%),
    url("assets/tier-paper.jpg") center / cover;
}
.vip-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  animation: shine 6s ease-in-out 1.4s infinite;
  pointer-events: none;
}
.vip-badge {
  position: absolute;
  top: 26px;
  right: 22px;
  font-size: 9px;
  letter-spacing: .32em;
  color: #c2bbb2;
  font-weight: 500;
}
.vip-mono {
  position: absolute;
  right: 16px;
  bottom: -6px;
  font-family: var(--serif);
  font-size: 78px;
  font-weight: 500;
  color: rgba(90,82,72,.07);
  line-height: 1;
  pointer-events: none;
  letter-spacing: .02em;
}
.vip-brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .18em;
}
.vip-en {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .38em;
  color: #8d877f;
  padding-left: 2px;
}
.vip-rule {
  display: block;
  width: 36px;
  height: 2px;
  margin: 14px 0 0;
  background: var(--gold);
}
.vip-no {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: #6f6a64;
}

.vip-figures {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0;
  padding: 16px 8px 18px;
  border-top: 1px solid #f0ece6;
}
.vip-figures > div {
  text-align: center;
  position: relative;
}
.vip-figures > div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: #e5e0d8;
}
.vip-figures em {
  display: block;
  font-style: normal;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.vip-figures span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

/* ===== 三张指标卡 ===== */
.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.metric {
  background: var(--white);
  border-radius: 16px;
  padding: 16px 6px 14px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(80,70,55,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metric svg {
  width: 22px; height: 22px;
  color: var(--gold-2);
  margin-bottom: 8px;
}
.metric strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.metric span {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.metric i {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-top: 10px;
  background: var(--gold);
  border-radius: 2px;
}

/* ===== 菜单 ===== */
.menu {
  margin-top: 14px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(80,70,55,.05);
  overflow: hidden;
}
.menu-item,
.profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
}
.menu-item:last-child,
.profile-row:last-child { border-bottom: 0; }
.menu-item svg {
  width: 20px; height: 20px;
  color: #3a3a3a;
  flex-shrink: 0;
}
.menu-item span { flex: 1; }
.menu-item b,
.store-side b {
  font-weight: 300;
  color: #d0cbc3;
  font-size: 22px;
  line-height: 1;
}
.profile-key { color: var(--muted); }
.profile-val { margin-left: auto; text-align: right; color: var(--ink); }

/* ===== 门店 ===== */
.store-block { margin-top: 26px; }
.sec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}
.sec-title {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::after {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}
.sec-row > svg { width: 18px; height: 18px; color: #b8b2aa; }
.store-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 6px 18px rgba(80,70,55,.05);
}
.store-photo {
  width: 58px; height: 58px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}
.store-photo img { width: 100%; height: 100%; object-fit: cover; }
.store-info { flex: 1; min-width: 0; }
.store-name { font-size: 13.5px; font-weight: 500; }
.store-addr {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.store-addr::before {
  content: "";
  width: 10px; height: 10px;
  flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4a574' stroke-width='2'><path d='M12 21s6.5-5.8 6.5-10.4a6.5 6.5 0 1 0-13 0C5.5 15.2 12 21 12 21z'/><circle cx='12' cy='10.4' r='2'/></svg>") center / contain no-repeat;
}
.store-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  align-self: stretch;
  padding: 2px 4px 2px 0;
}
.store-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--ok);
}
.store-status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.store-status.off { color: var(--muted); }
.store-status.off i { background: var(--muted); }

/* ===== 内页标题 ===== */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 6px 2px 16px;
}
.page-h {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .04em;
  position: relative;
  padding-bottom: 8px;
}
.page-h::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 22px;
  height: 3px;
  background: var(--gold-2);
  border-radius: 2px;
}
.page-head-en {
  text-align: right;
  color: #c5bfb6;
  padding-bottom: 8px;
}
.page-head-en span {
  display: block;
  font-size: 10px;
  letter-spacing: .28em;
}
.page-head-en em {
  display: block;
  font-style: normal;
  font-size: 11px;
  margin-top: 2px;
  letter-spacing: .2em;
}
.page-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.page-sub.center { text-align: center; }
.feed { display: flex; flex-direction: column; gap: 10px; }
.record-item {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(80,70,55,.05);
}
.rec-top { display: flex; justify-content: space-between; gap: 10px; }
.rec-amount { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.rec-amount.minus { color: var(--muted); }
.rec-meta { margin-top: 6px; font-size: 11px; color: var(--muted); }
.rec-tags { margin-top: 8px; }
.rec-tag {
  font-size: 10px;
  color: var(--gold-2);
  background: #f6efe4;
  border-radius: 999px;
  padding: 3px 8px;
}
.points-hero {
  background: var(--white);
  border-radius: 18px;
  text-align: center;
  padding: 36px 16px 28px;
  margin-bottom: 12px;
  box-shadow: 0 10px 28px rgba(80,70,55,.06);
}
.points-hero strong {
  display: block;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
}
.points-hero span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .16em;
}
.gold-rule {
  display: block;
  width: 36px; height: 1.5px;
  margin: 16px auto 0;
  background: var(--gold);
}
.coupon-feed { display: flex; flex-direction: column; gap: 10px; }
.coupon {
  display: flex;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(80,70,55,.05);
}
.coupon.exp { opacity: .45; }
.coupon-left {
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f6efe4;
  padding: 16px 8px;
}
.coupon-val { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--gold-2); }
.coupon-cond { font-size: 10px; color: var(--muted); }
.coupon-right { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.coupon-scope, .coupon-date { font-size: 11px; color: var(--muted); }
.coupon-status {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 10px;
  color: var(--gold-2);
  border: 1px solid #e6d5b8;
  border-radius: 999px;
  padding: 2px 8px;
}
.progress-card {
  background: var(--white);
  border-radius: 18px;
  padding: 18px 16px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(80,70,55,.05);
}
.level-line {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}
.lv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #b8b2aa;
  font-weight: 500;
}
.lv.on { color: var(--ink); }
.lv-ico {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-block;
  background: #ece8e2 center / 12px no-repeat;
}
.lv.silver .lv-ico {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8680' stroke-width='1.8'><path d='M5 18h14l-1.1-7.2L16 13l-4-7-4 7-1.9-2.2L5 18z'/></svg>");
}
.lv.gold .lv-ico {
  background-color: #f3eadc;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08a52' stroke-width='1.8'><path d='M5 18h14l-1.1-7.2L16 13l-4-7-4 7-1.9-2.2L5 18z'/></svg>");
}
.lv.black .lv-ico {
  background-color: #2b2b2b;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3eadc' stroke-width='1.8'><path d='M5 18h14l-1.1-7.2L16 13l-4-7-4 7-1.9-2.2L5 18z'/></svg>");
}
.lv.gold.on { color: var(--gold-2); }
.track {
  position: relative;
  margin-top: 14px;
  height: 4px;
  background: #eee9e2;
  border-radius: 99px;
}
.bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #d4b888, var(--gold-2));
  transition: width .8s ease;
  position: relative;
}
.bar::after {
  content: "";
  position: absolute;
  right: -7px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: #2b2b2b;
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.12);
}
.level-tip {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ===== 权益页 · 四档金属会员卡 ===== */
#page-benefit {
  position: relative;
}
.ben-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 4px 2px 18px;
}
.ben-title h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .06em;
}
.ben-title p {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .32em;
  color: #b8b2aa;
}
.ben-quote {
  text-align: right;
  font-size: 11px;
  line-height: 1.7;
  color: #b0aaa2;
  letter-spacing: .08em;
}
.tier-list { display: flex; flex-direction: column; gap: 12px; }
.tier-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  min-height: 132px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(70,60,45,.1);
}
.tier-card.ordinary {
  background:
    linear-gradient(90deg, rgba(255,255,255,.78) 0 42%, rgba(255,255,255,.35) 70%, rgba(255,255,255,.2) 100%),
    url("assets/card-ordinary.jpg?v=2") center / cover;
  color: #2a2a2a;
}
.tier-card.silver {
  background:
    linear-gradient(90deg, rgba(255,255,255,.62) 0 40%, rgba(255,255,255,.22) 72%, rgba(255,255,255,.1) 100%),
    url("assets/card-silver.jpg?v=2") center / cover;
  color: #1a1a1a;
}
.tier-card.gold,
.tier-card.black {
  color: #f6f1e8;
}
.tier-card.gold {
  background:
    linear-gradient(90deg, rgba(8,8,8,.72) 0 40%, rgba(8,8,8,.38) 70%, rgba(8,8,8,.22) 100%),
    url("assets/card-gold.jpg?v=2") center / cover;
}
.tier-card.black {
  background:
    linear-gradient(90deg, rgba(0,0,0,.7) 0 40%, rgba(0,0,0,.36) 70%, rgba(0,0,0,.2) 100%),
    url("assets/card-black.jpg?v=2") center / cover;
}
.tier-left {
  padding: 18px 8px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tier-crown {
  width: 28px; height: 28px;
  margin-bottom: 8px;
  color: #5c5852;
}
.tier-card.gold .tier-crown,
.tier-card.black .tier-crown { color: #d4b888; }
.tier-crown svg { width: 100%; height: 100%; display: block; }
.tier-card.gold .tier-slogan,
.tier-card.black .tier-slogan { color: #d4b888; opacity: .85; }
.tier-left h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .06em;
  text-shadow: 0 1px 8px rgba(0,0,0,.12);
}
.tier-card.gold .tier-left h3,
.tier-card.black .tier-left h3 {
  color: #f7f2ea;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.tier-en {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: .22em;
  opacity: .55;
}
.tier-slogan {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .08em;
  opacity: .7;
}
.tier-right {
  padding: 14px 14px 14px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tier-right-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tier-right-top > span:first-child {
  font-size: 12px;
  opacity: .75;
}
.tier-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #7a746c;
}
.tier-card.gold .tier-badge,
.tier-card.black .tier-badge {
  background: rgba(196,165,116,.18);
  color: #e8d7b0;
  border: 1px solid rgba(196,165,116,.35);
}
.tier-card.ordinary .tier-badge.now,
.tier-card.silver .tier-badge.now {
  background: rgba(255,255,255,.7);
  color: #8a7350;
}
.tier-ul { list-style: none; }
.tier-ul li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.55;
  opacity: .88;
}
.tier-ul svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  opacity: .75;
}
.tier-card.gold .tier-ul svg,
.tier-card.black .tier-ul svg { color: #d4b888; opacity: .9; }
.tier-wm {
  position: absolute;
  right: 10px;
  bottom: 4px;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: .18em;
  opacity: .12;
  pointer-events: none;
}
.tier-card.gold .tier-wm,
.tier-card.black .tier-wm { opacity: .16; color: #d4c4a0; }

.benefit-feed { display: flex; flex-direction: column; gap: 14px; }
.benefit-item {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78)),
    url("assets/tier-paper.jpg") center / cover;
  border-radius: 20px;
  padding: 18px 18px 16px 20px;
  box-shadow: 0 10px 28px rgba(80,70,55,.07);
}
.benefit-item::before {
  content: "";
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #d4c4a8;
}
.benefit-item.now::before { background: linear-gradient(180deg, #e0c48a, #b08a52); }
.benefit-item.gold::before { background: linear-gradient(180deg, #e8d3a4, #c4a574); }
.benefit-item.black::before { background: #1a1a1a; }
.benefit-item::after {
  content: attr(data-mark);
  position: absolute;
  right: 10px;
  bottom: -8px;
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 600;
  color: rgba(90,82,72,.05);
  line-height: 1;
  pointer-events: none;
}
.benefit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.bf-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  background: #f4eee4 center / 18px no-repeat;
}
.bf-ico.silver {
  background-color: #f0ece6;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8680' stroke-width='1.5'><rect x='3.2' y='6' width='17.6' height='12' rx='1.6'/><path d='M3.2 10h17.6'/></svg>");
}
.bf-ico.gold {
  background-color: #f6efe4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08a52' stroke-width='1.5'><path d='M5 18h14l-1.1-7.2L16 13l-4-7-4 7-1.9-2.2L5 18z'/></svg>");
}
.bf-ico.black {
  background-color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(26,26,26,.18);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f3eadc'><path d='M12 4.2 14.4 9.4 20 10.2l-4 3.8.9 5.4L12 16.8 7.1 19.4l.9-5.4-4-3.8 5.6-.8L12 4.2z'/></svg>");
}
.benefit-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .08em;
  flex: 1;
}
.benefit-tag { font-size: 11px; color: #b0aaa2; letter-spacing: .04em; }
.benefit-tag.now {
  color: var(--gold-2);
  background: transparent;
  border: 1px solid #e0c48a;
  border-radius: 999px;
  padding: 4px 10px;
}
.benefit-lines { margin: 12px 0 2px 52px; position: relative; z-index: 1; }
.benefit-line {
  font-size: 13px;
  color: #6f6a64;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.benefit-line b {
  color: var(--gold-2);
  font-weight: 500;
  margin-top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-2);
  font-size: 0;
  flex-shrink: 0;
}

.profile-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(80,70,55,.05);
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.profile-row:last-child { border-bottom: 0; }
.pf-ico {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: #8a8680;
}
.pf-ico svg { width: 20px; height: 20px; display: block; }
.logout-btn {
  width: 100%;
  height: 48px;
  margin-top: 22px;
  border-radius: 999px;
  border: 1px solid var(--gold-2);
  color: var(--gold-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: .12em;
  background: transparent;
}
.logout-btn svg { width: 18px; height: 18px; }
.ver { margin-top: 18px; text-align: center; font-size: 10px; color: #c0bbb4; letter-spacing: .16em; }
.empty-tip { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }

/* ===== 底栏 ===== */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: flex;
  background: rgba(247,245,241,.78);
  backdrop-filter: blur(10px);
  padding: 6px 0 calc(10px + env(safe-area-inset-bottom));
  z-index: 40;
}
.tab, .tab-code {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 0 2px;
  color: #c2bdb6;
  font-size: 10px;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--gold-2); }
.tab.active span {
  position: relative;
}
.tab.active span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  background: var(--gold-2);
  border-radius: 2px;
}
.tab-code { color: #b8b2aa; position: relative; }
.code-fab {
  position: absolute;
  top: -22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #1a1a1a;
  color: #f6f3ee;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 18px rgba(26,26,26,.18);
}
.code-fab svg { width: 22px; height: 22px; }
.tab-code > span:last-child { margin-top: 32px; }

/* ===== 登录 / 弹层 ===== */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 28px;
  background: var(--paper);
}
.login-inner { width: 100%; max-width: 320px; }
.login-inner .wordmark { margin: 0 auto 48px; }
.bind-avatar {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 24px;
}
.bind-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bind-title { text-align: center; font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.field {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}
.field input { width: 100%; outline: none; background: transparent; font-size: 16px; }
.field input::placeholder { color: #c0bbb4; }
.btn {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .12em;
}
.btn-ico { width: 20px; height: 20px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost {
  margin-top: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn-ghost.tight { margin-top: 16px; height: 42px; }
.btn-link { display: block; width: 100%; margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.hint { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); }

.mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(26,26,26,.4);
  display: grid; place-items: center;
  padding: 24px;
}
.sheet {
  width: 100%; max-width: 300px;
  background: var(--white);
  border-radius: 22px;
  padding: 28px 24px 22px;
  text-align: center;
}
.sheet-title { font-family: var(--serif); font-size: 18px; letter-spacing: .24em; }
.sheet-en { margin-top: 4px; font-size: 10px; letter-spacing: .28em; color: var(--muted); }
.qr {
  width: 196px; height: 196px;
  margin: 18px auto 0;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px;
  display: grid; place-items: center;
}
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
.sheet-phone { margin-top: 14px; font-family: var(--mono); font-size: 16px; letter-spacing: .14em; }
.sheet-tip { margin-top: 6px; font-size: 11px; color: var(--muted); }
.toast {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  z-index: 80;
  background: rgba(26,26,26,.92);
  color: #f6f3ee;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 999px;
}
