:root {
  --bg: #0b0d14;
  --bg2: #121526;
  --card: rgba(28, 32, 48, 0.72);
  --glass: rgba(255, 255, 255, 0.06);
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.55);
  --gold: #e8c27a;
  --gold2: #f3d9a4;
  --purple: #a78bfa;
  --blue: #60a5fa;
  --grad: linear-gradient(135deg, #c084fc, #60a5fa);
  --grad-warm: linear-gradient(135deg, #f3d9a4, #e8b86d);
  --danger: #ef4444;
  --radius: 18px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max: 480px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(232, 194, 122, 0.10) 0%, transparent 58%),
    radial-gradient(700px 360px at 50% 18%, rgba(18, 22, 34, 0.9) 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
#app {
  min-height: 100%;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(72px + var(--safe-bottom));
}
.page { display: none; min-height: 100vh; padding: 16px 20px 24px; animation: fade .28s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* splash — 仅 .active 时显示，避免盖住黄历页 */
#page-splash {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 0 !important; padding-bottom: 0 !important;
  background: #000;
  position: fixed; inset: 0; z-index: 90; max-width: var(--max); margin: 0 auto;
}
#page-splash.active {
  display: flex;
}
#page-splash .brand {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 26px; letter-spacing: .12em; font-weight: 400; color: #fff;
}
.logo-orbit {
  width: 96px; height: 96px; border-radius: 50%;
  border: 2.5px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(180deg, #c084fc 0%, #67e8f9 100%) border-box;
  box-shadow: 0 0 36px rgba(167, 139, 250, .45), 0 0 64px rgba(103, 232, 249, .15);
  position: relative; margin-bottom: 22px;
  animation: pulse 2s ease-in-out infinite;
}
.logo-orbit::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}
.logo-orbit::after {
  content: ""; position: absolute; inset: 26px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 28px; letter-spacing: .08em; }
.login-brand {
  text-align: center; font-size: 22px; margin-top: 4px;
  background: linear-gradient(135deg, var(--gold2), #fff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@keyframes pulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.04);} }

.nav-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; margin-bottom: 12px;
}
.nav-top .title { font-size: 17px; font-weight: 600; }
.icon-btn {
  width: 36px; height: 36px; border: 0; background: transparent; color: #fff;
  font-size: 22px; cursor: pointer; display: grid; place-items: center;
}

.hero-title { font-size: 28px; font-weight: 700; margin: 12px 0 6px; text-align: center; }
.hero-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.glass-card {
  background: var(--card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 8px 14px;
}
.field {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.field:last-child { border-bottom: 0; }
.field .ico { opacity: .7; width: 20px; text-align: center; }
.field input {
  flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font-size: 15px;
}
.field input::placeholder { color: rgba(255,255,255,.35); }
.code-btn {
  border: 0; border-radius: 999px; padding: 8px 12px; font-size: 12px; color: #fff;
  background: var(--grad); white-space: nowrap; cursor: pointer;
}
.code-btn:disabled { opacity: .5; cursor: not-allowed; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 999px; padding: 15px;
  font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 18px;
}
.btn-primary { background: var(--grad); color: #fff; }
.btn-warm { background: var(--grad-warm); color: #1a1208; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.1);
}
.link-row { text-align: center; margin-top: 16px; color: var(--muted); font-size: 14px; }
.link-row a { color: #fff; text-decoration: none; margin-left: 4px; }
.footer-links {
  position: absolute; left: 0; right: 0; bottom: 28px;
  text-align: center; font-size: 12px; color: var(--muted);
}
#page-login, #page-register { position: relative; padding-bottom: 72px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:active { color: var(--purple); }

.login-mode-tabs {
  display: flex; gap: 0; margin: 8px auto 14px; max-width: 280px;
  background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px;
  border: 1px solid rgba(255,255,255,.08);
}
.login-mode {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  font-size: 13px; padding: 9px 10px; border-radius: 999px; cursor: pointer;
}
.login-mode.on {
  color: #fff; background: var(--grad); font-weight: 600;
}
.login-pwd-only[hidden], .login-sms-only[hidden] { display: none !important; }
.footer-links a { color: var(--muted); text-decoration: none; }

/* tabs */
/* 底部固定 CTA：完善生辰 */
.cta-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(58px + var(--safe-bottom));
  width: 100%; max-width: var(--max);
  padding: 10px 16px 12px;
  z-index: 60;
  background: linear-gradient(180deg, transparent, rgba(8,10,16,.92) 28%, rgba(8,10,16,.98));
  pointer-events: none;
}
.cta-bar .btn {
  margin-top: 0;
  pointer-events: auto;
  box-shadow: 0 8px 28px rgba(232, 184, 109, .35);
}
body.has-cta #app {
  padding-bottom: calc(140px + var(--safe-bottom));
}
body.has-tabbar:not(.has-cta) #app {
  padding-bottom: calc(72px + var(--safe-bottom));
}
.quote-card {
  position: relative;
  background: rgba(232, 194, 122, .08);
  border: 1px solid rgba(232, 194, 122, .22);
  border-radius: 14px;
  padding: 18px 14px 14px;
  margin: 14px 0 8px;
}
.quote-label {
  position: absolute; top: -9px; left: 14px;
  font-size: 11px; color: var(--gold);
  background: #0b0d14; padding: 0 8px;
  letter-spacing: .06em;
}

.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: var(--max);
  display: flex; background: rgba(12,14,22,.92); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 8px 0 calc(8px + var(--safe-bottom)); z-index: 50;
}
.tabbar button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  font-size: 11px; padding: 6px; cursor: pointer;
}
.tabbar button.active { color: var(--gold); }
.tabbar .ico { display: block; font-size: 18px; margin-bottom: 2px; }

/* profile */
.avatar-wrap { display: flex; flex-direction: column; align-items: center; margin: 12px 0 18px; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(180deg, #2a2f45, #151822);
  border: 3px solid #666; object-fit: cover;
  display: grid; place-items: center; font-size: 32px; color: #888;
}
.avatar.ring { border-color: transparent; box-shadow: 0 0 0 3px var(--ring, #C9B896); }
.day-pillar-v {
  display: inline-flex; flex-direction: column; align-items: center;
  line-height: 1.05; font-weight: 700; letter-spacing: 0;
}
.day-pillar-v i { font-style: normal; font-size: 28px; }
.home-avatar .day-pillar-v i { font-size: 24px; }
.persona-desc {
  margin-top: 8px; max-width: 280px; text-align: center;
  font-size: 12px; line-height: 1.65; color: var(--muted);
}
.wz-card .wz-title { font-weight: 600; margin-bottom: 10px; letter-spacing: .04em; }
.wz-chart {
  display: flex; flex-direction: column; gap: 0;
  padding: 2px 0 10px; border-bottom: 1px dashed rgba(255,255,255,.1);
  margin-bottom: 4px; overflow-x: auto;
}
.wz-row {
  display: grid; grid-template-columns: 36px repeat(4, 1fr); gap: 2px;
  text-align: center; align-items: center;
  min-height: 28px; padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.wz-row:last-child { border-bottom: 0; }
.wz-lab {
  font-size: 10px; color: var(--muted); text-align: left; letter-spacing: .02em;
}
.wz-cell { font-size: 12px; color: var(--text); min-height: 18px; }
.wz-cell.head { color: var(--muted); font-size: 11px; }
.wz-cell.ss { font-size: 11px; color: var(--gold2); }
.wz-cell.gan, .wz-cell.zhi { font-size: 22px; font-weight: 700; line-height: 1.2; }
.wz-cell.cang {
  font-size: 11px; color: var(--muted);
  display: flex; flex-direction: column; gap: 1px; align-items: center;
}
.wz-cell.cang span { line-height: 1.25; }
.wz-cell.cang em {
  font-style: normal; font-size: 9px; opacity: .7; margin-left: 1px;
}
.wz-cell.tiny { font-size: 10px; color: var(--muted); line-height: 1.3; }
.wz-cell.tiny.kw { color: #E85D4C; }
.wz-cell.shensha {
  font-size: 10px; color: var(--gold2);
  display: flex; flex-direction: column; gap: 1px; align-items: center; line-height: 1.25;
}
.wz-row.big .wz-cell { letter-spacing: .02em; }
.meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
  padding-bottom: 8px;
}
.meta-grid > div {
  background: rgba(255,255,255,.03); border-radius: 10px; padding: 10px 12px;
}
.meta-grid span { display: block; font-size: 11px; color: var(--muted); }
.meta-grid b { display: block; margin-top: 4px; font-size: 15px; color: var(--gold); font-weight: 600; }
.meta-grid em { display: block; margin-top: 2px; font-style: normal; font-size: 11px; color: var(--muted); }
.birth-line { font-size: 12px; color: var(--muted); margin-top: 6px; }
.wx-bars { display: flex; flex-direction: column; gap: 10px; }
.wx-bar-lab { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.wx-bar-lab b { color: var(--muted); font-weight: 500; }
.wx-bar-track {
  height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden;
}
.wx-bar-track i { display: block; height: 100%; border-radius: 99px; }
.section-block { margin-top: 12px; }
.section-block:first-child { margin-top: 0; }
.sec-title { font-size: 13px; margin-bottom: 8px; color: var(--text); }
.sec-title .muted { font-size: 11px; margin-left: 6px; }
.h-scroll {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.scroll-pill {
  flex: 0 0 auto; width: 78px; text-align: center;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 8px 6px;
}
.scroll-pill.on {
  border-color: rgba(232,194,122,.45);
  background: rgba(232,194,122,.08);
}
.sp-age { font-size: 10px; color: var(--muted); }
.sp-gz { margin: 4px 0; font-size: 18px; font-weight: 700; line-height: 1.1; }
.sp-gz i { font-style: normal; display: block; }
.sp-meta { font-size: 10px; color: var(--muted); line-height: 1.3; }
.dayun-pill { cursor: pointer; user-select: none; }
.dayun-pill:active { transform: scale(.97); }
.rel-block { display: flex; flex-direction: column; gap: 10px; }
.rel-row { display: flex; gap: 8px; align-items: flex-start; }
.rel-lab {
  flex: 0 0 36px; font-size: 11px; color: var(--muted); padding-top: 4px;
}
.rel-chips, .ss-tags { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.rel-chip, .ss-tag {
  font-size: 11px; padding: 4px 8px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06);
  color: var(--gold2);
}
.rel-chip.gan { border-color: rgba(92,173,110,.35); }
.rel-chip.zhi { border-color: rgba(74,155,199,.35); }
.rel-chip.he { border-color: rgba(232,194,122,.4); }
.ss-summary { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; }
.nickname { margin-top: 10px; font-size: 18px; font-weight: 600; }
.stat-card, .banner-card, .bazi-card {
  background: var(--card); border-radius: 16px; padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.06); margin-bottom: 12px;
}
.banner-card {
  background: var(--grad-warm); color: #3b2a12; display: flex; align-items: center; gap: 10px;
  font-weight: 600; cursor: pointer;
}
.banner-card span { margin-left: auto; }
.bazi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center;
  padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.1);
}
.bazi-grid .lab { color: var(--muted); font-size: 12px; }
.bazi-grid .val { margin-top: 4px; font-size: 16px; color: var(--gold); }
.bazi-row {
  display: flex; justify-content: space-between; padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 14px;
}
.bazi-row:last-child { border-bottom: 0; }
.muted { color: var(--muted); }
.placeholder-box {
  margin-top: 10px; padding: 28px; text-align: center; color: var(--muted);
  background: rgba(255,255,255,.03); border-radius: 12px; border: 1px dashed rgba(255,255,255,.1);
}
.dual-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* settings */
.menu-list .item {
  background: var(--card); border-radius: 14px; padding: 16px;
  margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; border: 1px solid rgba(255,255,255,.05);
}
.menu-list .item-sub {
  margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 400;
}

/* almanac */
.almanac-card {
  background: #f7f3ea; color: #1c1a17; border-radius: 20px; padding: 22px 18px;
  margin: 12px 0; box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.almanac-card .gz { display: flex; justify-content: space-around; font-size: 14px; margin-bottom: 16px; }
.almanac-card .big-day { text-align: center; font-size: 64px; font-weight: 700; line-height: 1; }
.almanac-card .big-day small { display: block; font-size: 16px; font-weight: 500; }
.yi-list { margin-top: 16px; font-size: 14px; line-height: 1.8; }

/* 首页顶部用户头像 */
#home-user { margin: 0; }
#home-user:empty { display: none; }
.home-user-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 0 8px;
}
.home-user-inline {
  margin: 4px 0 12px;
}
.home-stack {
  display: flex; flex-direction: column; gap: 14px;
}
.home-stack > .home-sec-title,
.home-stack > .home-sec-focus,
.home-stack > .home-user-card,
.home-stack > .personal-id,
.home-stack > .personal-head,
.home-stack > .score-row,
.home-stack > .outfit-card,
.home-stack > .fortune-grid,
.home-stack > .hours-card,
.home-stack > .quote,
.home-stack > .btn {
  margin-top: 0; margin-bottom: 0;
}
.home-user-card.is-guest { cursor: pointer; }
.personal-id {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 0 2px;
  background: transparent;
}
.personal-id .home-user-card,
.personal-id .home-user-inline {
  margin: 0; padding: 0;
}
.home-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: #141820;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 700; letter-spacing: .04em;
  color: var(--gold);
  box-shadow: 0 0 0 3px var(--ring, #C9B896);
  overflow: hidden;
}
.home-avatar.is-male { --ring: #4A9BC7; }
.home-avatar.is-female { --ring: #E85D4C; }
.home-avatar-default {
  font-size: 32px; font-weight: 400; color: #8a90a5;
}
.home-user-card.is-guest .home-avatar-default {
  box-shadow: 0 0 0 3px rgba(232,194,122,.35);
}
.home-avatar.has-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.home-nickname {
  margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--text, #f2f2f2);
}
.home-login-tip {
  margin-top: 4px; font-size: 12px; color: var(--muted);
}

/* 老黄历布局（参考 buyiju） */
.lhl-wrap { padding-bottom: 8px; }
.lhl-head {
  text-align: center; background: linear-gradient(180deg, #f8f1e3, #efe2c8);
  color: #2a2118; border-radius: 18px; padding: 18px 14px 16px; margin-bottom: 12px;
}
.lhl-solar { font-size: 13px; opacity: .75; }
.lhl-day { font-size: 56px; font-weight: 700; line-height: 1.05; margin: 6px 0; }
.lhl-day small { display: block; font-size: 14px; font-weight: 500; margin-top: 4px; }
.lhl-lunar { font-size: 15px; margin-top: 4px; }
.lhl-gz { font-size: 16px; font-weight: 600; margin-top: 8px; color: #8b4513; }
.lhl-meta { font-size: 12px; margin-top: 8px; opacity: .7; }
.lhl-yj {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
  align-items: stretch;
}
.lhl-yi, .lhl-ji {
  position: relative;
  border-radius: 18px;
  padding: 14px 12px 16px;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid transparent;
}
.lhl-yi {
  background:
    linear-gradient(165deg, rgba(46, 125, 50, .18), rgba(20, 28, 24, .92) 42%, rgba(16, 20, 18, .98));
  border-color: rgba(129, 199, 132, .22);
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
}
.lhl-ji {
  background:
    linear-gradient(165deg, rgba(198, 40, 40, .18), rgba(28, 18, 20, .92) 42%, rgba(16, 14, 16, .98));
  border-color: rgba(239, 154, 154, .22);
  box-shadow: 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
}
.yj-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}
.lhl-badge {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px; color: #fff;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}
.lhl-badge.yi {
  background: linear-gradient(145deg, #66bb6a, #2e7d32);
}
.lhl-badge.ji {
  background: linear-gradient(145deg, #ef5350, #c62828);
}
.yj-count {
  font-size: 11px; color: rgba(255,255,255,.45);
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.yj-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  max-height: 280px; overflow-y: auto;
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}
.yj-chips::-webkit-scrollbar { width: 3px; }
.yj-chips::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }
.yj-chip {
  display: inline-flex; align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px; line-height: 1.2;
  white-space: nowrap;
  letter-spacing: .02em;
}
.lhl-yi .yj-chip {
  color: #c8e6c9;
  background: rgba(76, 175, 80, .14);
  border: 1px solid rgba(129, 199, 132, .28);
}
.lhl-ji .yj-chip {
  color: #ffcdd2;
  background: rgba(244, 67, 54, .12);
  border: 1px solid rgba(239, 154, 154, .28);
}
.yj-empty {
  font-size: 13px; color: rgba(255,255,255,.35); padding: 12px 0;
}

@media (max-width: 360px) {
  .lhl-yj { gap: 8px; }
  .yj-chip { padding: 5px 8px; font-size: 11px; }
  .lhl-badge { width: 34px; height: 34px; font-size: 15px; }
}
.lhl-block {
  background: var(--card); border-radius: 14px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.06); margin-bottom: 10px;
}
.lhl-title {
  font-size: 13px; color: var(--gold); margin-bottom: 8px; font-weight: 600;
}
.lhl-row3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center;
}
.lhl-row3 em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.lhl-row3 b { font-size: 15px; color: var(--gold2); font-weight: 600; }
.lhl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-good, .tag-bad {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.tag-good { background: rgba(46,125,50,.2); color: #81c784; }
.tag-bad { background: rgba(198,40,40,.2); color: #ef9a9a; }
.lhl-lines { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.85); }
.lhl-pengzu { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.8); }

.fortune-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.score-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center;
}
.quote-plain {
  text-align: center; color: var(--gold2); font-size: 14px;
  letter-spacing: .04em; background: none; border: 0; padding: 4px 0;
  line-height: 1.6;
}
.fortune-grid .cell {
  background: rgba(255,255,255,.05); border-radius: 14px; padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.fortune-grid .n {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(232,194,122,.2);
  color: var(--gold); font-size: 12px; display: grid; place-items: center; margin-bottom: 8px;
}
.color-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.color-tags span {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; color: #fff;
}
.yi-ji { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yi-ji .box {
  border: 1px solid rgba(232,194,122,.35); border-radius: 12px; padding: 12px; font-size: 13px;
}
.quote {
  text-align: center; margin: 18px 0; color: var(--gold2); font-size: 14px;
  letter-spacing: .04em;
}
.personal-head { text-align: center; margin: 0; }
.personal-head h1 { font-size: 24px; color: var(--gold); }
.personal-head .gzline { display: none; }
.personal-meta {
  margin-top: 8px; font-size: 12px; color: var(--muted); line-height: 1.5;
  text-align: center; max-width: 92%;
}
.home-sec-title {
  font-size: 15px; font-weight: 600; color: var(--gold);
  letter-spacing: .06em; line-height: 1.4;
}
.home-sec-focus {
  font-size: 22px; font-weight: 700; color: #F3D59A;
  letter-spacing: .12em; text-align: center;
  text-shadow: none;
  line-height: 1.35;
}
.home-sec-focus::after {
  content: ''; display: block; width: 36px; height: 2px;
  margin: 8px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.fortune-text { margin-top: 6px; font-size: 13px; line-height: 1.55; }
.hours-card {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 14px 12px;
}
.hours-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 4px 10px; font-size: 14px; line-height: 1.4;
}
.page-disclaimer {
  margin: 20px 4px 8px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.65;
  color: rgba(255,255,255,.32);
  text-align: center;
}
.hours-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.hour-item {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 8px;
}
.hour-item.on {
  border-color: rgba(232,194,122,.5);
  background: rgba(232,194,122,.1);
}
.hour-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.hour-lv {
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--muted);
}
.hour-lv.good { color: #5CAD6E; background: rgba(92,173,110,.15); }
.hour-lv.bad { color: #E85D4C; background: rgba(232,93,76,.15); }
.hour-lv.mid { color: var(--gold2); background: rgba(232,194,122,.12); }
.hour-range { font-size: 10px; color: var(--muted); margin: 3px 0 4px; }
.hour-text { font-size: 11px; line-height: 1.45; color: var(--text); }
.outfit-card {
  background: rgba(20, 24, 34, 0.88);
  border: 1px solid rgba(232,194,122,.14);
  border-radius: 16px; padding: 14px;
}
.outfit-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; font-size: 14px;
}
.outfit-xiyong {
  font-size: 11px; color: var(--gold2);
  background: rgba(232,194,122,.1);
  border: 1px solid rgba(232,194,122,.18);
  border-radius: 999px; padding: 3px 9px;
}
.outfit-colors {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.outfit-pane {
  border-radius: 12px; padding: 10px 10px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  min-width: 0;
}
.outfit-pane.is-good {
  background: rgba(92,173,110,.08);
  border-color: rgba(92,173,110,.22);
}
.outfit-pane.is-bad {
  background: rgba(232,93,76,.07);
  border-color: rgba(232,93,76,.2);
}
.outfit-pane-title {
  font-size: 12px; font-weight: 600; margin-bottom: 8px;
}
.outfit-pane.is-good .outfit-pane-title { color: #5CAD6E; }
.outfit-pane.is-bad .outfit-pane-title { color: #E85D4C; }
.outfit-dots {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.color-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(255,255,255,.78);
  background: rgba(0,0,0,.22); border-radius: 999px;
  padding: 3px 8px 3px 4px;
}
.color-dot i {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); display: inline-block;
  flex: 0 0 auto;
}
.outfit-style {
  margin-top: 10px; padding: 10px 12px;
  border-radius: 12px;
  background: rgba(232,194,122,.06);
  border: 1px solid rgba(232,194,122,.12);
}
.outfit-style-lab {
  display: inline-block; font-size: 11px; color: var(--gold);
  margin-bottom: 4px; letter-spacing: .06em;
}
.outfit-style p {
  font-size: 13px; line-height: 1.55; color: var(--text); margin: 0;
}
.outfit-scenes {
  margin-top: 10px;
  display: grid; grid-template-columns: 1fr; gap: 6px;
}
.outfit-scene {
  display: grid; grid-template-columns: 36px 1fr; gap: 8px;
  align-items: start;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  font-size: 12px; line-height: 1.45;
}
.outfit-scene em {
  font-style: normal; color: var(--muted); padding-top: 1px;
}
.outfit-scene b { font-weight: 500; color: var(--text); }
.orbit-avatar {
  width: 110px; height: 110px; margin: 18px auto; border-radius: 50%;
  border: 2px solid rgba(232,194,122,.4);
  box-shadow: 0 0 0 12px rgba(232,194,122,.05), 0 0 0 24px rgba(232,194,122,.03);
  background: #222; display: grid; place-items: center; overflow: hidden;
}
.orbit-avatar .day-pillar-v i { font-size: 30px; }
.score-row .num { font-size: 28px; color: var(--gold); font-weight: 700; line-height: 1.2; }
.score-row .lab { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* forms birth */
.form-block { margin-bottom: 16px; }
.form-block label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.select-row { display: flex; gap: 8px; }
.select-row select, .form-select, .seg, .form-input {
  flex: 1; background: var(--card); color: #fff; border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px; font-size: 14px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-select-full { width: 100%; display: block; }
.form-input { width: 100%; box-sizing: border-box; }
.form-input::placeholder { color: rgba(255,255,255,.35); }
.form-tip { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.4; }
.seg-group { display: flex; gap: 8px; }
.seg {
  text-align: center; cursor: pointer; flex: 1;
}
.seg.on { border-color: var(--gold); color: var(--gold); background: rgba(232,194,122,.08); }

/* 生辰页顶部留白 */
#page-birth.page-birth {
  padding-top: 12px;
}
#page-birth .birth-body {
  padding-top: 18px;
}
#page-birth .nav-top {
  margin-top: 8px;
  margin-bottom: 8px;
}
.bazi-preview {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(232,194,122,.22);
  border-radius: 12px;
  padding: 14px 12px;
  min-height: 72px;
}
.birth-preview-tip { margin: 0; font-size: 13px; text-align: center; }
.bazi-preview-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.bazi-preview-pillars .lab {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.bazi-preview-pillars .gz {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
}
.bazi-preview-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* 设置页底部退出 */
#page-settings .menu-list { margin-top: 8px; }
.settings-footer {
  margin-top: 28px;
  padding-bottom: 12px;
}
.settings-footer .btn { margin-top: 0; }

/* feedback */
.feedback-body { padding-top: 8px; }
.feedback-textarea {
  min-height: 140px; resize: vertical; line-height: 1.5;
}
.feedback-history { margin-top: 22px; }
.feedback-hist-title {
  font-size: 14px; color: var(--gold); margin-bottom: 10px; font-weight: 600;
}
.feedback-item {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 12px; margin-bottom: 8px;
}
.feedback-item-top {
  display: flex; justify-content: space-between; font-size: 11px; color: var(--muted);
  margin-bottom: 6px;
}
.feedback-item-top .st { color: var(--gold2); }
.feedback-item-content { font-size: 13px; line-height: 1.5; color: var(--text); }
.feedback-item-reply {
  margin-top: 8px; font-size: 12px; line-height: 1.45; color: rgba(243,213,154,.85);
  padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.08);
}

/* consult */
.consult-card {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid rgba(232,194,122,.18);
  border-radius: 16px;
  padding: 18px 16px 16px;
  text-align: center;
}
.consult-title {
  font-size: 16px; font-weight: 600; color: #F3D59A;
  letter-spacing: .06em; margin-bottom: 14px;
}
.consult-qr-wrap {
  display: inline-block;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
}
.consult-qr {
  width: 168px; height: 168px; display: block; object-fit: contain;
}
.consult-tip {
  margin-top: 10px; font-size: 12px; color: var(--muted);
}

/* poster */
#page-poster.page-poster {
  padding-bottom: 28px;
  background:
    radial-gradient(700px 380px at 50% 8%, rgba(232,194,122,.08) 0%, transparent 55%),
    linear-gradient(180deg, #0a0e18 0%, #070a12 48%, #05070d 100%);
}
#page-poster #poster-box.poster-sheet {
  max-height: none;
}
#page-poster .poster-nav {
  margin-bottom: 4px;
}
#page-poster .poster-brand {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 18px; letter-spacing: .08em; color: var(--gold2);
  font-weight: 400;
}
.poster-sheet {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(232,194,122,.14);
  background: #080c14;
  color: #f5e6c8;
}
.poster-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.poster-bg-stars .poster-bg,
.poster-sheet.poster-bg-stars .poster-bg {
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(70, 90, 140, .35) 0%, transparent 55%),
    radial-gradient(500px 360px at 20% 40%, rgba(40, 60, 110, .22) 0%, transparent 60%),
    linear-gradient(180deg, #121a2e 0%, #0a101c 48%, #060910 100%);
}
.poster-sheet.poster-bg-deep .poster-bg {
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(50, 40, 90, .28) 0%, transparent 55%),
    linear-gradient(180deg, #0d111c 0%, #070a12 55%, #04060c 100%);
}
.poster-sheet.poster-bg-dawn .poster-bg {
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(232,194,122,.18) 0%, transparent 50%),
    linear-gradient(180deg, #1a1528 0%, #12101c 45%, #0a0c14 100%);
}
.poster-sheet.poster-bg-ink .poster-bg {
  background:
    radial-gradient(600px 400px at 70% 10%, rgba(90, 110, 130, .16) 0%, transparent 55%),
    linear-gradient(180deg, #15181f 0%, #0c0e14 50%, #07080c 100%);
}
.poster-sheet.poster-bg-custom .poster-bg,
.poster-sheet.has-custom-bg .poster-bg {
  background-image: var(--poster-bg-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) brightness(.92);
}
.poster-sheet.has-custom-bg .poster-stars { opacity: .35; }
.poster-stars {
  pointer-events: none;
  position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.4px 1.4px at 72% 16%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 84% 38%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.2px 1.2px at 62% 58%, rgba(255,255,255,.28), transparent),
    radial-gradient(1px 1px at 18% 72%, rgba(255,255,255,.25), transparent),
    radial-gradient(1.3px 1.3px at 90% 78%, rgba(255,255,255,.32), transparent);
  opacity: .85;
}
.poster-bg-fade {
  pointer-events: none;
  position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(6, 10, 18, .12) 28%,
    rgba(6, 10, 18, .45) 62%,
    rgba(6, 10, 18, .78) 100%
  );
}
.poster-body {
  position: relative;
  z-index: 3;
  padding: 22px 18px 20px;
}
.poster-hero { position: relative; text-align: center; }
.poster-title {
  margin: 4px 0 8px;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif;
  font-size: 28px; font-weight: 600; letter-spacing: .14em;
  color: #F3D59A;
  text-shadow: 0 0 28px rgba(232,194,122,.18);
}
.poster-gz {
  font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: .06em;
  margin-bottom: 8px;
}
.poster-orbit {
  position: relative;
  width: 220px; height: 188px;
  margin: 4px auto 10px;
  display: grid; place-items: center;
}
.poster-orbit-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
}
.poster-orbit-svg ellipse {
  fill: none;
  stroke: rgba(232,194,122,.38);
  stroke-width: 1.2;
}
.poster-orbit-svg circle {
  fill: #E8C27A;
  filter: drop-shadow(0 0 4px rgba(232,194,122,.55));
}
.poster-orbit-svg .p2 { fill: #7DD3C0; }
.poster-orbit-svg .p3 { fill: #F0A060; }
.poster-orbit-svg .p4 { fill: #E85D4C; }
.poster-orbit-svg .p5 { fill: #F3D59A; }
.poster-face {
  position: relative; z-index: 1;
  width: 86px; height: 86px; border-radius: 50%;
  background: #141820;
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--ring, #C9B896), 0 8px 28px rgba(0,0,0,.35);
  overflow: hidden;
}
.poster-face .day-pillar-v i { font-size: 26px; }
.poster-face-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.poster-face-fallback {
  font-size: 22px; color: var(--gold); font-weight: 600;
}
.poster-nick {
  margin: 4px 0 8px;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.poster-meta {
  margin: 0 8px 14px;
  font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.45);
}
.poster-scores {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.08));
  border-radius: 12px;
}
.poster-scores > div {
  position: relative;
  padding: 0 6px;
}
.poster-scores > div:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 12%; bottom: 12%;
  width: 1px; background: rgba(255,255,255,.12);
}
.poster-scores .lab {
  display: block; font-size: 11px; color: rgba(255,255,255,.5);
  margin-bottom: 4px;
}
.poster-scores b {
  display: block;
  font-size: 30px; line-height: 1.15; font-weight: 700;
  color: #F3D59A; font-variant-numeric: tabular-nums;
}
.poster-scores .sub {
  display: block; margin-top: 4px;
  font-size: 10px; color: rgba(255,255,255,.38);
}
.poster-sec {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.poster-sec-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 14px; color: #F3D59A;
}
.poster-sec-head span {
  font-size: 11px; color: var(--gold2);
  background: rgba(232,194,122,.1);
  border: 1px solid rgba(232,194,122,.16);
  border-radius: 999px; padding: 2px 8px;
}
.poster-colors {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.poster-pane {
  border-radius: 12px; padding: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  min-width: 0;
}
.poster-pane.is-good {
  background: rgba(92,173,110,.08);
  border-color: rgba(92,173,110,.2);
}
.poster-pane.is-bad {
  background: rgba(232,93,76,.07);
  border-color: rgba(232,93,76,.18);
}
.poster-pane-title {
  font-size: 12px; font-weight: 600; margin-bottom: 8px;
}
.poster-pane.is-good .poster-pane-title { color: #5CAD6E; }
.poster-pane.is-bad .poster-pane-title { color: #E85D4C; }
.poster-style {
  margin-top: 8px; padding: 10px 12px;
  border-radius: 12px;
  background: rgba(232,194,122,.06);
  border: 1px solid rgba(232,194,122,.12);
}
.poster-style > span {
  display: block; font-size: 11px; color: var(--gold); margin-bottom: 4px;
}
.poster-style p {
  margin: 0; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.88);
}
.poster-scenes {
  margin-top: 8px; display: grid; gap: 6px;
}
.poster-scenes > div {
  display: grid; grid-template-columns: 36px 1fr; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255,255,255,.03);
  font-size: 12px; line-height: 1.45;
}
.poster-scenes em {
  font-style: normal; color: rgba(255,255,255,.45);
}
.poster-scenes b { font-weight: 500; color: rgba(255,255,255,.88); }
.poster-fortune {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.poster-fcell {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px; padding: 10px;
}
.poster-fcell .n {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(232,194,122,.18); color: var(--gold);
  font-size: 11px; display: grid; place-items: center; margin-bottom: 6px;
}
.poster-fcell b {
  display: block; font-size: 13px; color: #F3D59A; margin-bottom: 4px;
}
.poster-fcell p {
  margin: 0; font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.65);
}
.poster-hours {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.poster-hour {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 8px;
}
.poster-hour-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.poster-hour-range {
  font-size: 10px; color: rgba(255,255,255,.4); margin: 3px 0 4px;
}
.poster-hour-text {
  font-size: 11px; line-height: 1.45; color: rgba(255,255,255,.78);
}
.poster-quote {
  margin: 18px 4px 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  text-align: center;
  font-size: 13px; line-height: 1.55;
  color: rgba(243,213,154,.92);
  letter-spacing: .04em;
}
.poster-brand-bar {
  margin-top: 18px;
  padding: 16px 14px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(8,12,20,.18) 55%, rgba(6,10,18,.28) 100%);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}
.poster-brand-text { min-width: 0; flex: 1; }
.poster-brand-name {
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px; color: #F3D59A; letter-spacing: .06em;
}
.poster-brand-domain {
  margin-top: 4px; font-size: 13px; color: rgba(255,255,255,.78);
}
.poster-brand-link {
  margin-top: 2px; font-size: 10px; color: rgba(255,255,255,.38);
  word-break: break-all;
}
.poster-disclaimer {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.55;
  color: rgba(255,255,255,.38);
  text-align: left;
}
.poster-qr {
  flex: 0 0 auto;
  text-align: center;
}
.poster-qr img {
  width: 72px; height: 72px; display: block;
  border-radius: 8px;
  background: #F6E7C5;
  padding: 4px;
  box-sizing: border-box;
}
.poster-qr-fallback {
  width: 72px; height: 72px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(246,231,197,.9); color: #2a2112;
  font-size: 10px;
}
.poster-qr span {
  display: block; margin-top: 4px;
  font-size: 10px; color: rgba(255,255,255,.45);
}
.poster-cta {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: linear-gradient(90deg, #E8C27A 0%, #F3D9A4 48%, #E8B86D 100%);
  box-shadow: 0 8px 24px rgba(232,194,122,.22);
  overflow: hidden;
}
.poster-cta button {
  flex: 1; border: 0; background: transparent;
  color: #2a2112; font-size: 14px; font-weight: 600;
  padding: 14px 8px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.poster-cta i {
  width: 1px; height: 16px;
  background: rgba(42,33,18,.28);
  flex: 0 0 auto;
}
.modal-poster-share {
  max-width: 360px;
  max-height: 88vh;
  overflow: auto;
  text-align: center;
}
.modal-poster-share .share-tip {
  font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px;
}
.share-preview-wrap {
  margin: 0 auto 14px;
  max-height: 52vh; overflow: auto;
  border-radius: 12px;
  background: #0a0e18;
  border: 1px solid rgba(255,255,255,.08);
  -webkit-overflow-scrolling: touch;
}
.share-preview-wrap img {
  width: 100%; height: auto; display: block;
  border-radius: 12px;
  /* 微信内允许长按呼出「保存图片」 */
  -webkit-touch-callout: default;
  pointer-events: auto;
  user-select: auto;
  -webkit-user-select: auto;
}
.share-actions {
  display: grid; gap: 8px;
}
#page-poster .poster-bg-btn {
  border: 1px solid rgba(232,194,122,.35);
  background: rgba(232,194,122,.08);
  color: var(--gold2);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.modal-poster-bg {
  max-width: 360px;
  max-height: 86vh;
  overflow: auto;
  text-align: left;
}
.modal-poster-bg h3 { text-align: center; }
.poster-bg-list {
  display: grid; gap: 8px;
  margin-top: 8px;
}
.poster-bg-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.poster-bg-item.is-default {
  border-color: rgba(232,194,122,.45);
  background: rgba(232,194,122,.08);
}
.poster-bg-use {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 10px;
  align-items: center;
  border: 0; background: transparent; color: inherit;
  text-align: left; cursor: pointer; padding: 0;
}
.poster-bg-use .preview {
  width: 56px; height: 40px; border-radius: 8px;
  grid-row: span 2;
}
.poster-bg-use .preview.stars { background: linear-gradient(180deg, #1a2540, #0a101c); }
.poster-bg-use .preview.deep { background: linear-gradient(180deg, #14101f, #070a12); }
.poster-bg-use .preview.dawn { background: linear-gradient(180deg, #2a2038, #12101c 60%, #1a1520); }
.poster-bg-use .preview.ink { background: linear-gradient(180deg, #22262e, #0c0e14); }
.poster-bg-use .preview.custom { background-color: #1a1f2c; }
.poster-bg-use .name {
  font-size: 13px; color: var(--text);
}
.poster-bg-use .tag {
  font-style: normal; font-size: 11px; color: var(--gold2);
}
.poster-bg-use .tag.muted { color: var(--muted); }
.poster-bg-del {
  border: 1px solid rgba(232,93,76,.35);
  background: rgba(232,93,76,.1);
  color: #E85D4C;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.poster-bg-upload { cursor: pointer; text-align: center; }

/* modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.show { display: flex; }
.modal {
  width: 100%; max-width: 320px; background: rgba(30,34,50,.95);
  border-radius: 18px; padding: 22px; border: 1px solid rgba(255,255,255,.08); text-align: center;
}
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 13px; margin-bottom: 16px; line-height: 1.5; }

.field-imgcode .imgcode {
  height: 36px; width: 100px; flex-shrink: 0; border-radius: 8px;
  object-fit: cover; cursor: pointer; background: #fff; margin-left: 6px;
}

.modal-policy {
  max-width: 360px; max-height: min(82vh, 640px);
  display: flex; flex-direction: column; text-align: left; padding: 18px 16px 14px;
}
.modal-policy h3 { text-align: center; margin-bottom: 10px; }
.policy-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 4px 12px; margin-bottom: 12px;
  font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.82);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  max-height: 52vh; text-align: left;
}
.policy-scroll h4 {
  margin: 14px 0 8px; font-size: 14px; color: #fff; font-weight: 600;
}
.policy-scroll h4:first-child { margin-top: 8px; }
.policy-scroll p { color: rgba(255,255,255,.78); font-size: 13px; margin: 0 0 8px; text-align: left; }
.policy-scroll .policy-meta { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.modal-policy .btn { width: 100%; margin-top: 8px; }
.toast {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; z-index: 200; display: none; max-width: 80%;
}
.toast.show { display: block; animation: fade .2s ease; }

@media (min-width: 768px) {
  body { background: #07080d; }
  #app {
    margin-top: 24px; margin-bottom: 24px; border-radius: 24px;
    box-shadow: 0 20px 80px rgba(0,0,0,.5); overflow: hidden;
    min-height: calc(100vh - 48px);
  }
}
