/* ============ 瓶安许愿池 · 设计系统 ============ */
:root {
  --primary: #2E6B5E;
  --primary-dk: #1F4A41;
  --ink: #22312E;
  --bg: #F4F8F6;
  --card: #FFFFFF;
  --tint: #EDF4F1;
  --gold: #BC943E;
  --gold-lt: #D9BE7F;
  --muted: #6E807B;
  --danger: #B33A3A;
  --shadow: 0 6px 24px rgba(31, 74, 65, .12);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #0E1E22; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}

/* 手机壳 */
.phone {
  position: relative; width: min(414px, 100vw); height: min(896px, 100vh);
  background: var(--bg); overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: 24px; box-shadow: 0 0 0 10px #16292E, 0 0 60px rgba(0,0,0,.6);
}
@media (max-width: 480px) { .phone { border-radius: 0; box-shadow: none; width: 100vw; height: 100vh; height: 100dvh; } }
.statusbar {
  height: 34px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; font-size: 12px; color: #CFE0DB; background: var(--primary-dk); letter-spacing: 1px;
}

/* ============ 视图切换 ============ */
.view { display: none; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 0 18px 96px; }
.view.active { display: block; animation: viewIn .28s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ 首页 ============ */
.hero { text-align: center; padding: 22px 0 6px; }
.hero-term {
  display: inline-block; font-size: 12px; color: var(--gold); border: 1px solid var(--gold-lt);
  padding: 3px 14px; border-radius: 999px; letter-spacing: 2px; margin-bottom: 10px; background: rgba(188,148,62,.07);
}
.hero-title { font-size: 34px; font-weight: 800; letter-spacing: 10px; color: var(--primary-dk); text-indent: 10px; }
.hero-sub { font-size: 12.5px; color: var(--muted); letter-spacing: 3px; margin-top: 6px; }

.pool-wrap { position: relative; text-align: center; padding: 12px 0 4px; }
.pool { position: relative; width: 218px; height: 218px; margin: 0 auto; }
.pool-avatar {
  position: absolute; inset: 21px; width: calc(100% - 42px); height: calc(100% - 42px);
  border-radius: 50%; object-fit: cover; z-index: 2;
  box-shadow: 0 10px 30px rgba(31,74,65,.35);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.035); } }
.pool-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold-lt);
}
.pool-ring.r2 { inset: 8px; border: 1px dashed rgba(46,107,94,.5); animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pool::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  width: 258px; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(46,107,94,.28), transparent 70%);
}
.pool-label { font-size: 12.5px; color: var(--muted); margin-top: 20px; }
.pool-label b { color: var(--primary); }

.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.mini-card {
  background: var(--card); border-radius: 14px; padding: 12px 6px; text-align: center; box-shadow: var(--shadow);
}
.mini-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.mini-num small { font-size: 12px; color: var(--muted); font-weight: 400; }
.mini-label { font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: 1px; }

.cta {
  display: block; width: 100%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, #3B8272 100%);
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 4px; text-indent: 4px;
  padding: 15px 0; border-radius: 999px; margin-top: 14px; box-shadow: 0 8px 20px rgba(46,107,94,.35);
  transition: transform .12s;
}
.cta:active { transform: scale(.97); }
.cta.small { padding: 10px 0; font-size: 14px; margin-top: 10px; letter-spacing: 2px; }
.cta.ghost { background: transparent; color: var(--muted); box-shadow: none; border: 1px solid #CBD9D4; }
.hint { text-align: center; font-size: 11px; color: #9AABA6; margin-top: 10px; letter-spacing: 1px; }

/* ============ 星河 ============ */
#view-river { padding: 0; position: relative; background: #10262C; }
#riverCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.river-head { position: relative; z-index: 3; text-align: center; padding: 46px 0 10px; }
.river-title { color: #F2EDE0; font-size: 24px; font-weight: 800; letter-spacing: 8px; text-indent: 8px; }
.river-sub { color: #8FB0A9; font-size: 12px; margin-top: 6px; letter-spacing: 2px; }
.river-bubbles { position: relative; z-index: 3; padding: 8px 16px 110px; display: flex; flex-direction: column; gap: 10px; }
.bubble {
  align-self: flex-start; max-width: 86%; cursor: pointer;
  background: rgba(255,255,255,.10); border: 1px solid rgba(217,190,127,.35);
  backdrop-filter: blur(6px); color: #EFEAD9; font-size: 13px; line-height: 1.5;
  padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  animation: floaty 5s ease-in-out infinite;
}
.bubble:nth-child(even) { align-self: flex-end; border-radius: 16px 16px 4px 16px; animation-delay: -2.4s; }
.bubble .g { display: block; font-size: 10.5px; color: var(--gold-lt); margin-bottom: 2px; letter-spacing: 1px; }
@keyframes floaty { 50% { transform: translateY(-7px); } }

/* ============ 瓶子页 ============ */
.sec-title { font-size: 21px; font-weight: 800; color: var(--primary-dk); letter-spacing: 3px; padding: 20px 0 4px; }
.sec-sub { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin: 2px 0 12px; }
.bottle-card {
  display: flex; gap: 14px; align-items: center; background: var(--card);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.bottle-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-lt); }
.bottle-gname { font-size: 16px; font-weight: 700; color: var(--primary-dk); }
.bottle-quote { font-size: 12px; color: var(--muted); margin: 6px 0 8px; }
.link-btn { background: none; border: none; color: var(--gold); font-size: 12.5px; cursor: pointer; padding: 0; letter-spacing: 1px; }

.open-card { background: linear-gradient(150deg, #16382F, #1F4A41); border-radius: var(--radius); padding: 18px; margin-top: 12px; text-align: center; color: #EAF3F0; }
.open-head { font-size: 13px; letter-spacing: 4px; color: var(--gold-lt); }
.open-count { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 8px 0 4px; letter-spacing: 2px; }
.open-desc { font-size: 11.5px; color: #A9C2BB; margin-bottom: 4px; }

.flip-stage { perspective: 900px; margin-top: 12px; }
.flip-card { position: relative; width: 132px; height: 182px; margin: 0 auto; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.flip-card.flipped { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.flip-face.front {
  background: linear-gradient(160deg, #24343B, #17262B); color: #EFEAD9; font-size: 26px; letter-spacing: 12px; text-indent: 12px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(217,190,127,.4);
}
.flip-face.back { background: var(--card); transform: rotateY(180deg); box-shadow: var(--shadow); border: 1px solid #EBDFC6; }
.flip-face.back img { width: 54px; height: 54px; }
.reveal-name { font-size: 20px; font-weight: 800; color: var(--primary-dk); letter-spacing: 4px; }
.reveal-bless { font-size: 12px; color: var(--gold); letter-spacing: 2px; }
.seal-mini {
  width: 40px; height: 40px; background: #C41E22; color: #FFF4E6; border-radius: 6px;
  font-size: 13px; line-height: 1.25; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700;
}

.flower-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flower-cell {
  background: var(--card); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow);
  border: 1px solid transparent; position: relative;
}
.flower-cell.got { border-color: var(--gold-lt); }
.flower-cell .dot { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; margin: 0 auto 6px; transform: rotate(-45deg); opacity: .22; }
.flower-cell.got .dot { opacity: 1; box-shadow: 0 4px 10px rgba(31,74,65,.2); }
.flower-cell .fname { font-size: 13px; font-weight: 700; color: var(--ink); }
.flower-cell .fsub { font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.flower-cell .cnt { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--gold); font-weight: 700; }

.checkin-card { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 14px; padding: 12px 14px; margin-top: 14px; box-shadow: var(--shadow); }
.checkin-info { font-size: 13.5px; color: var(--ink); }
.checkin-info span { display: block; font-size: 11.5px; color: var(--gold); margin-top: 2px; }
.checkin-card .cta.small { margin-top: 0; width: 92px; }
.rule-card { font-size: 11.5px; color: var(--muted); background: var(--tint); border-radius: 12px; padding: 10px 14px; margin-top: 12px; line-height: 1.7; }

/* ============ 九神 ============ */
.gods-list { display: flex; flex-direction: column; gap: 12px; }
.god-row {
  display: flex; align-items: center; gap: 13px; background: var(--card);
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer;
  transition: transform .12s;
}
.god-row:active { transform: scale(.98); }
.god-row img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.god-row .gname { font-size: 16px; font-weight: 800; color: var(--primary-dk); letter-spacing: 1px; }
.god-row .gname em { font-style: normal; font-size: 10px; color: var(--gold); border: 1px solid var(--gold-lt); border-radius: 6px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.god-row .gtheme { font-size: 12px; color: var(--muted); margin-top: 3px; }
.god-row .gbless { font-size: 11.5px; color: var(--gold); margin-top: 3px; letter-spacing: 1px; }
.god-row .go { margin-left: auto; color: var(--primary); font-size: 12px; letter-spacing: 1px; white-space: nowrap; }

/* ============ 节气 ============ */
.term-today {
  background: linear-gradient(150deg, #16382F, #1F4A41); border-radius: var(--radius);
  padding: 20px; color: #EAF3F0; text-align: center; margin-top: 6px;
}
.term-today .tname { font-size: 40px; font-weight: 800; letter-spacing: 14px; text-indent: 14px; color: #F5EFE0; }
.term-today .tdate { font-size: 12px; color: var(--gold-lt); letter-spacing: 2px; margin-top: 4px; }
.term-today .ttip { font-size: 12.5px; color: #A9C2BB; margin-top: 10px; }
.term-next { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0; letter-spacing: 1px; }
.season { margin-bottom: 14px; }
.season h4 { font-size: 13px; color: var(--primary); letter-spacing: 4px; margin: 10px 0 8px; font-weight: 700; }
.term-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.term-cell {
  background: var(--card); border-radius: 10px; text-align: center; padding: 9px 0;
  font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; border: 1px solid transparent;
}
.term-cell small { display: block; font-weight: 400; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.term-cell.now { background: var(--primary); color: #fff; border-color: var(--primary); }
.term-cell.now small { color: var(--gold-lt); }
.term-cell.past { opacity: .45; }

/* ============ 浮层 ============ */
.sheet { position: absolute; inset: 0; z-index: 40; display: none; }
.sheet.show { display: block; }
.sheet-mask { position: absolute; inset: 0; background: rgba(14,30,34,.55); backdrop-filter: blur(2px); animation: fadeIn .2s; }
.sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg);
  border-radius: 26px 26px 0 0; padding: 20px 20px 30px; max-height: 82%;
  overflow-y: auto; animation: up .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes up { from { transform: translateY(60px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet-title { text-align: center; font-size: 17px; font-weight: 800; color: var(--primary-dk); letter-spacing: 2px; margin-bottom: 16px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 18px; }

.step-gods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.step-gods .sg { text-align: center; cursor: pointer; padding: 8px 2px; border-radius: 14px; border: 2px solid transparent; transition: .15s; }
.step-gods .sg img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.step-gods .sg .n { font-size: 13px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.step-gods .sg .t { font-size: 10.5px; color: var(--muted); }
.step-gods .sg.sel { border-color: var(--gold); background: rgba(188,148,62,.08); }
.step-gods.small { grid-template-columns: repeat(3, 1fr); }

.picked-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.picked-line img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.picked-line span { font-size: 15px; font-weight: 700; color: var(--primary-dk); }
.picked-line b { font-size: 12px; color: var(--gold); font-weight: 400; }
textarea {
  width: 100%; height: 96px; border: 1.5px solid #CBD9D4; border-radius: 14px; padding: 12px;
  font-size: 15px; font-family: "KaiTi", "STKaiti", serif; background: #fff; color: var(--ink); resize: none; outline: none;
}
textarea:focus { border-color: var(--primary); }
.quick-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-list button {
  border: 1px solid #CBD9D4; background: #fff; color: var(--muted); font-size: 12.5px;
  border-radius: 999px; padding: 6px 13px; cursor: pointer;
}
.quick-list button:active { border-color: var(--gold); color: var(--gold); }
.coin-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; background: var(--tint); border-radius: 14px; padding: 10px 12px; font-size: 13px; color: var(--ink); }
.coin-row small { color: var(--muted); font-size: 11px; }
.coin-thumb { width: 44px; height: 44px; border-radius: 50%; }

/* 投币动画 */
.casting { position: absolute; inset: 0; z-index: 60; background: rgba(10,24,28,.92); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.casting[hidden], .flip-stage[hidden] { display: none; }
.cast-pool {
  position: absolute; bottom: 12%; left: 50%; transform: translateX(-50%);
  width: 250px; height: 90px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, rgba(78,138,124,.85), rgba(22,57,50,.9) 70%);
  box-shadow: 0 0 60px rgba(78,138,124,.5);
}
.cast-pool::before, .cast-pool::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(217,190,127,.55);
  animation: ripple 1.6s ease-out infinite;
}
.cast-pool::after { animation-delay: .8s; }
@keyframes ripple { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.cast-guard { position: absolute; top: 12%; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; animation: castGlow 1.2s ease infinite alternate; box-shadow: 0 0 50px rgba(217,190,127,.4); }
@keyframes castGlow { to { box-shadow: 0 0 90px rgba(217,190,127,.75); transform: scale(1.03); } }
.cast-coin { position: absolute; width: 62px; height: 62px; border-radius: 50%; top: 8%; animation: coinDrop 1.1s cubic-bezier(.55,0,.85,.4) forwards; }
@keyframes coinDrop {
  0% { top: 8%; transform: rotate(0) scale(1); }
  70% { top: 74%; transform: rotate(540deg) scale(.9); }
  82% { top: 70%; } 100% { top: 74%; opacity: 0; }
}
.cast-text { position: absolute; bottom: 4%; color: #EFEAD9; letter-spacing: 6px; font-size: 16px; animation: fadeIn 1s; }
.fx-petal { position: absolute; width: 26px; height: 26px; z-index: 5; animation: petalRise 1.8s ease-out forwards; }
@keyframes petalRise {
  0% { transform: translateY(0) rotate(0) scale(.5); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-46vh) rotate(300deg) scale(1.1); opacity: 0; }
}

/* 团扇许愿签 */
.fan-slip {
  position: relative; background: #FBF7EF; border-radius: 130px 130px 18px 18px; padding: 26px 22px 18px;
  box-shadow: var(--shadow); border: 1px solid #E8DCC2;
}
.fan-top { height: 120px; border-radius: 999px 999px 0 0; background: url("assets/bg_grid.jpg") center/cover; margin: -26px -22px 14px; border-bottom: 1px solid #E8DCC2; }
.fan-seal {
  position: absolute; right: 20px; top: 108px; width: 46px; height: 46px; background: #C41E22; color: #FFF4E6;
  border-radius: 7px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 15px; font-weight: 700; line-height: 1.2;
}
.fan-label { font-size: 12px; color: var(--muted); letter-spacing: 4px; margin-bottom: 8px; }
.fan-text { font-family: "KaiTi", "STKaiti", serif; font-size: 21px; line-height: 1.65; color: #3A3226; min-height: 70px; }
.fan-meta { font-size: 12px; color: var(--primary); margin-top: 10px; }
.fan-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: #A79B84; margin-top: 14px; }

/* 节气签 */
.term-slip { text-align: center; background: var(--card); border-radius: var(--radius); padding: 30px 20px; box-shadow: var(--shadow); }
.term-big { font-size: 46px; font-weight: 800; letter-spacing: 16px; text-indent: 16px; color: var(--primary-dk); font-family: "KaiTi", "STKaiti", serif; }
.term-poem { font-family: "KaiTi", "STKaiti", serif; font-size: 15px; color: var(--ink); margin: 12px 0 4px; line-height: 1.8; }
.term-bless { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--gold); border: 1px solid var(--gold-lt); border-radius: 999px; padding: 5px 18px; letter-spacing: 3px; }

/* ============ Tabbar ============ */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 78px; z-index: 30;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px);
  display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #E3EDE9;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #93A5A0; }
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab span { font-size: 10.5px; letter-spacing: 1px; }
.tab.active { color: var(--primary); font-weight: 700; }

/* toast */
.toast {
  position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%) translateY(20px);
  background: rgba(22,41,46,.92); color: #EFEAD9; font-size: 13px; letter-spacing: 1px;
  padding: 10px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .3s; z-index: 80; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 版本标识 */
.ver-tag {
  position: absolute; right: 14px; bottom: 84px;
  font-size: 10px; color: #A8B8B3; letter-spacing: 1px; pointer-events: none;
}

/* ============ V1.2 新增 ============ */
.charity-line { text-align: center; font-size: 11px; color: var(--gold); letter-spacing: 1px; margin-top: 6px; }
.charity-line b { font-size: 12px; }
.ghost-link {
  display: block; width: 100%; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13px; letter-spacing: 1px; margin-top: 10px; text-decoration: underline dotted;
}
.cta.gold { background: linear-gradient(135deg, #A8842F, #BC943E); }

/* 集字卡 */
.char-card { background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.char-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.char-tile {
  text-align: center; border: 1.5px dashed #D5E0DC; border-radius: 14px; padding: 12px 0 10px;
  background: repeating-linear-gradient(45deg, #FAFDFA, #FAFDFA 8px, #F2F7F4 8px, #F2F7F4 16px);
}
.char-tile .ch { font-family: "KaiTi", "STKaiti", serif; font-size: 40px; font-weight: 700; color: #C9D6D1; line-height: 1.1; }
.char-tile .cnt { font-size: 11px; color: var(--muted); margin-top: 3px; }
.char-tile.got { border: 1.5px solid var(--gold-lt); background: linear-gradient(160deg, #FFFDF6, #F7EFDC); }
.char-tile.got .ch { color: var(--primary-dk); text-shadow: 0 1px 0 #fff; }
.char-tile.got .cnt { color: var(--gold); font-weight: 700; }
.char-tip { font-size: 10.5px; color: #9AABA6; margin-top: 10px; line-height: 1.6; }
.char-card .cta.small { margin-top: 12px; }

/* 许愿凭证列表 */
.cert-list { display: flex; flex-direction: column; gap: 8px; }
.cert-row {
  display: flex; align-items: center; gap: 11px; background: var(--card);
  border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer;
}
.cert-row img { width: 40px; height: 40px; border-radius: 50%; }
.cert-row .c-main { flex: 1; min-width: 0; }
.cert-row .c-main b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.cert-row .c-main span { font-size: 10.5px; color: var(--muted); }
.cert-row .c-id { font-size: 10px; color: #B9A97E; letter-spacing: .5px; }
.cert-empty { font-size: 12.5px; color: var(--muted); text-align: center; padding: 18px 0; background: var(--tint); border-radius: 14px; }
.open-card .cta.small { margin-top: 10px; }
.open-card .cta.small + .cta.small { margin-top: 8px; }
.char-drop { text-align: center; font-size: 12.5px; color: var(--gold); letter-spacing: 2px; margin-top: 10px; min-height: 18px; }
.fan-cert { font-size: 10.5px; color: #A79B84; margin-top: 6px; letter-spacing: .5px; }

/* 庆祝层 */
.celebrate { position: absolute; inset: 0; z-index: 70; background: rgba(12,26,30,.88); display: flex; align-items: center; justify-content: center; }
.celebrate[hidden] { display: none; }
.cele-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cele-card {
  position: relative; z-index: 2; width: 78%; background: linear-gradient(165deg, #FFFDF6, #F4EBD6);
  border-radius: 24px; padding: 30px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  border: 1px solid var(--gold-lt); animation: popIn .45s cubic-bezier(.2,1.4,.4,1);
}
@keyframes popIn { from { transform: scale(.7); opacity: 0; } }
.cele-avatar { width: 110px; height: 110px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 8px 24px rgba(188,148,62,.4); }
.cele-title { font-size: 26px; font-weight: 800; color: var(--primary-dk); letter-spacing: 6px; margin-top: 12px; }
.cele-desc { font-size: 13px; color: var(--muted); margin: 12px 0 18px; line-height: 1.8; }
@keyframes petalFall {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(85vh) rotate(340deg); opacity: 0; }
}

/* ============ V1.3 新增 ============ */
/* 语言切换 */
.lang-pill {
  position: absolute; right: 18px; top: 20px; z-index: 5;
  border: 1px solid var(--gold-lt); background: rgba(188,148,62,.06); color: var(--gold);
  font-size: 12px; letter-spacing: 1px; border-radius: 999px; padding: 4px 12px; cursor: pointer;
}
.hero { position: relative; }

/* 首页酒店横幅 */
.hotel-banner {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; cursor: pointer;
  background: linear-gradient(135deg, #16382F, #24523F); border-radius: 16px; padding: 12px 14px;
  box-shadow: var(--shadow); border: 1px solid rgba(217,190,127,.35);
}
.hotel-banner img { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold-lt); }
.hotel-banner b { display: block; font-size: 15px; color: #F2EDE0; letter-spacing: 1px; }
.hotel-banner span { display: block; font-size: 10.5px; color: #A9C2BB; margin-top: 3px; line-height: 1.5; }
.hotel-banner .go { margin-left: auto; color: var(--gold-lt); font-size: 12px; white-space: nowrap; }

/* 星河开关 */
.river-toggle {
  display: inline-flex; margin-top: 12px; border: 1px solid rgba(217,190,127,.5); border-radius: 999px; overflow: hidden;
}
.river-toggle button {
  background: none; border: none; color: #8FB0A9; font-size: 12px; padding: 6px 16px; cursor: pointer; letter-spacing: 1px;
}
.river-toggle button.on { background: rgba(217,190,127,.18); color: #F2EDE0; }
.river-note { font-size: 10.5px; color: #5F7E77; margin-top: 8px; letter-spacing: 1px; }

/* 好友互赠 */
.gift-tip { font-size: 11px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.gift-need { font-size: 13.5px; color: var(--ink); background: var(--tint); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.gift-need b { color: var(--primary-dk); letter-spacing: 4px; }
.gift-friends { display: flex; flex-direction: column; gap: 10px; }
.gift-row { display: flex; align-items: center; gap: 11px; background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.gift-row img { width: 44px; height: 44px; border-radius: 50%; }
.gf-info { flex: 1; }
.gf-info b { font-size: 14px; color: var(--ink); display: block; }
.gf-info span { font-size: 11px; color: var(--muted); }
.gf-acts { display: flex; gap: 6px; }
.pill {
  border: 1px solid var(--primary); background: #fff; color: var(--primary); font-size: 11.5px;
  border-radius: 999px; padding: 5px 11px; cursor: pointer; white-space: nowrap;
}
.pill.ghost { border-color: #CBD9D4; color: var(--muted); }
.gift-log { font-size: 11.5px; color: var(--gold); text-align: center; margin-top: 12px; }

/* V1.8 跨端赠字 */
.gift-code {
  background: #FFF7E6; border: 1px solid var(--gold-lt); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 10px; font-size: 12.5px; color: #7A5B1E; line-height: 1.7;
}
.gift-code b { letter-spacing: 2px; }
.gift-code .pill { margin-top: 8px; }
.gift-need-line { font-size: 13px; }
.gift-banner {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(135deg, #FFF7E6, #F7EFDC);
  border: 1.5px solid var(--gold-lt); border-radius: 16px;
  padding: 14px 16px; margin: 12px 0;
}
.gift-banner .gb-text { font-size: 13px; color: #7A5B1E; line-height: 1.6; }
.gift-banner .pill { align-self: flex-start; }

/* 酒店之旅 */
.hotel-sheet .sheet-body { max-height: 92%; }
.hotel-venue { text-align: center; font-size: 11.5px; color: var(--muted); margin: -6px 0 14px; letter-spacing: 1px; }
.hotel-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.hf { text-align: center; font-size: 10.5px; color: var(--ink); line-height: 1.6; background: var(--tint); border-radius: 12px; padding: 10px 2px; }
.hf i {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--primary); color: #fff; font-style: normal; font-size: 12px; margin-bottom: 4px;
}
.flip-card.sleeve { width: 150px; height: 208px; margin-bottom: 14px; }
.photo-frame {
  position: relative; width: 100%; height: 320px; border-radius: 18px; overflow: hidden;
  background: #10262C; box-shadow: var(--shadow); margin-bottom: 6px;
}
.photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.photo-avatar {
  position: absolute; left: 50%; top: 34px; transform: translateX(-50%);
  width: 132px; height: 132px; border-radius: 50%; border: 2.5px solid var(--gold-lt); object-fit: cover;
}
.photo-text { position: absolute; left: 0; right: 0; top: 186px; text-align: center; color: #F2EDE0; font-family: "KaiTi","STKaiti",serif; font-size: 16.5px; padding: 0 18px; }
.photo-seal {
  position: absolute; right: 16px; bottom: 40px; width: 40px; height: 40px; background: #C41E22; color: #FFF4E6;
  border-radius: 6px; display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; font-weight: 700; line-height: 1.2;
}
.photo-brand { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 9.5px; color: #8FB0A9; letter-spacing: 1px; }
.hotel-step .cta { margin-top: 12px; }

/* ============ V1.4 新增 ============ */
.duo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.mini-banner {
  background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow);
  cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 2px;
}
.mini-banner img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; margin-bottom: 2px; }
.mini-banner b { font-size: 12.5px; color: var(--primary-dk); }
.mini-banner span { font-size: 10px; color: var(--muted); }

.river-cloud {
  display: inline-block; margin-top: 8px; font-size: 10.5px; color: #8FB0A9;
  border: 1px dashed rgba(143,176,169,.5); border-radius: 999px; padding: 4px 12px;
}

/* 拍卡许愿 */
.tap-sub, .gal-sub { font-size: 11px; color: var(--muted); text-align: center; margin: -8px 0 12px; line-height: 1.6; }
.tap-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.tap-scroll::-webkit-scrollbar { display: none; }
.tap-mini {
  flex: 0 0 auto; text-align: center; cursor: pointer; padding: 6px 8px; border-radius: 12px; border: 2px solid transparent;
}
.tap-mini img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; display: block; }
.tap-mini span { font-size: 10px; color: var(--muted); display: block; margin-top: 3px; white-space: nowrap; }
.tap-mini.sel { border-color: var(--gold); background: rgba(188,148,62,.08); }
.tap-stage { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; margin: 4px 0 8px; }
.tap-reader {
  width: 96px; height: 96px; border-radius: 50%; border: 2px dashed var(--primary);
  display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 14px; letter-spacing: 2px;
}
.tap-reader.on { border-style: solid; border-color: var(--gold); color: var(--gold); animation: ripple 1.2s ease-out infinite; }
.tap-card {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; border-radius: 12px; object-fit: cover;
  transform: translate(-180%, -50%) rotate(-8deg); border: 2px solid #fff; box-shadow: var(--shadow);
  transition: transform 1.1s cubic-bezier(.5,0,.3,1), left 1.1s cubic-bezier(.5,0,.3,1);
}
.tap-card.tapping { left: 50%; transform: translate(-50%, -50%) rotate(0deg) scale(.86); }
.tap-note { font-size: 10px; color: #9AABA6; text-align: center; margin-top: 10px; line-height: 1.6; }

/* 3D 物料馆 */
.ring-stage { height: 220px; perspective: 900px; display: flex; align-items: center; justify-content: center; margin: 6px 0 4px; }
.ring { position: relative; width: 90px; height: 130px; transform-style: preserve-3d; transition: transform .1s linear; }
.ring-item {
  position: absolute; inset: 0; background: linear-gradient(165deg, #FFFFFF, #F0EBDD);
  border: 1px solid #E0D5B8; border-radius: 10px; padding: 6px 4px; text-align: center;
  box-shadow: 0 6px 16px rgba(31,74,65,.25); backface-visibility: hidden;
}
.ring-item img { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; }
.ring-item b { display: block; font-size: 10.5px; color: var(--primary-dk); margin-top: 3px; }
.ring-item span { display: block; font-size: 8.5px; color: var(--gold); }
.ring-ctl { display: flex; justify-content: center; gap: 12px; margin-bottom: 14px; }
.ring-ctl button {
  width: 44px; height: 32px; border-radius: 10px; border: 1px solid #CBD9D4; background: #fff;
  color: var(--primary); font-size: 15px; cursor: pointer;
}
.coin3d { width: 150px; height: 150px; margin: 8px auto 4px; perspective: 600px; cursor: pointer; }
.coin3d > div {
  position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3,.8,.3,1);
}
.coin3d.flipped > div { transform: rotateY(180deg); }
.coin-face { backface-visibility: hidden; }
.coin-face img { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 8px 24px rgba(188,148,62,.4); }
.coin-face.back { transform: rotateY(180deg); }

/* ============ V1.15 · 商城 / 会员中心（新中式：墨绿+宣纸+描金）============ */
.back-link {
  display: block; width: auto; margin: 14px 0 -6px; padding: 0;
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--muted); letter-spacing: 1px;
}
.back-link:active { opacity: .6; }

/* ---- 商城：宣纸浅底 ---- */
#view-mall { background: linear-gradient(180deg, #F7F2E7 0%, var(--bg) 42%); }
.mall-head { text-align: center; padding: 20px 0 4px; }
.mall-title { font-size: 24px; font-weight: 800; letter-spacing: 6px; color: #1F3B33; }
.mall-sub { font-size: 12px; color: #8A7A5C; letter-spacing: 2px; margin-top: 4px; }
.mall-wallet {
  display: flex; align-items: center; justify-content: space-between;
  margin: 14px 0 4px; padding: 10px 16px;
  background: #1F3B33; border-radius: 14px; box-shadow: var(--shadow);
}
.mw-coins { color: #F5F0E6; font-size: 12px; letter-spacing: 1px; }
.mw-coins b { font-size: 24px; color: #D9BE7F; margin-right: 6px; font-weight: 800; }
.mall-wallet .pill { background: rgba(217,190,127,.18); color: #D9BE7F; border: 1px solid rgba(217,190,127,.5); }
.mall-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 13px; padding: 30px 0; letter-spacing: 2px; }
.mall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.prod-card {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 16px 12px 12px; box-shadow: var(--shadow); text-align: center;
  border: 1px solid rgba(188,148,62,.16);
}
.prod-card.chars { border: 1px solid rgba(188,148,62,.55); background: linear-gradient(180deg, #FDF9EE, #fff); }
.prod-emoji { font-size: 40px; line-height: 1.2; filter: drop-shadow(0 4px 8px rgba(31,74,65,.18)); }
.prod-tag {
  position: absolute; top: 10px; left: 10px; font-size: 10px; color: #8A6A1F;
  background: rgba(217,190,127,.25); border: 1px solid rgba(188,148,62,.4);
  padding: 2px 8px; border-radius: 999px; letter-spacing: 1px;
}
.prod-name { font-size: 13.5px; font-weight: 700; color: #1F3B33; margin-top: 8px; line-height: 1.4; }
.prod-desc { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.5; min-height: 32px; }
.prod-price { margin-top: 6px; font-size: 12px; color: #8A7A5C; }
.prod-price b { color: #A87E2F; font-size: 18px; font-weight: 800; }
.prod-stock { font-size: 10.5px; color: #9AABA6; margin: 2px 0 8px; }
.order-row {
  display: flex; align-items: center; gap: 10px; background: var(--card);
  border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.or-emoji { font-size: 24px; }
.or-main { flex: 1; min-width: 0; }
.or-main b { display: block; font-size: 13px; color: var(--primary-dk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-main span { font-size: 10.5px; color: var(--muted); }
.or-status { font-size: 11px; padding: 3px 10px; border-radius: 999px; letter-spacing: 1px; }
.or-status.pending { color: #8A6A1F; background: rgba(217,190,127,.2); border: 1px solid rgba(188,148,62,.4); }
.or-status.done { color: #2E6B5E; background: rgba(46,107,94,.12); border: 1px solid rgba(46,107,94,.35); }

/* ---- 会员中心：墨绿深底头部 ---- */
#view-member { background: linear-gradient(180deg, #1F3B33 0%, #1F3B33 208px, var(--bg) 208px, var(--bg) 100%); }
.mem-hero {
  display: flex; align-items: center; gap: 12px; padding: 22px 4px 8px; position: relative;
}
.mem-avatar {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  border: 2px solid #D9BE7F; box-shadow: 0 8px 24px rgba(0,0,0,.35); flex: 0 0 auto;
}
.mem-info { flex: 1; min-width: 0; }
.mem-code { font-size: 11px; color: rgba(245,240,230,.75); letter-spacing: 1px; }
.mem-code b { color: #D9BE7F; font-size: 13px; letter-spacing: 3px; }
.mem-level { font-size: 22px; font-weight: 800; color: #F5F0E6; letter-spacing: 4px; margin-top: 4px; }
.mem-next { font-size: 10.5px; color: rgba(217,190,127,.85); margin-top: 2px; letter-spacing: 1px; }
.mem-ring { width: 74px; height: 74px; flex: 0 0 auto; }
.mem-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.ma-card {
  background: rgba(255,255,255,.09); border: 1px solid rgba(217,190,127,.28);
  border-radius: 14px; padding: 12px 6px; text-align: center; backdrop-filter: blur(4px);
}
.ma-card b { display: block; font-size: 22px; font-weight: 800; color: #D9BE7F; }
.ma-card span { font-size: 11px; color: rgba(245,240,230,.8); letter-spacing: 1px; }
.mem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.mg-item {
  background: var(--card); border-radius: 14px; padding: 12px 4px; text-align: center;
  box-shadow: var(--shadow); cursor: pointer; text-decoration: none;
}
.mg-item:active { transform: scale(.96); }
.mg-item i { font-style: normal; font-size: 22px; display: block; }
.mg-item span { font-size: 11px; color: var(--ink); letter-spacing: 1px; }
.badge-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.badge {
  text-align: center; background: var(--card); border-radius: 12px; padding: 8px 2px;
  opacity: .45; filter: grayscale(.7); border: 1px solid transparent;
}
.badge.got { opacity: 1; filter: none; border-color: rgba(188,148,62,.45); box-shadow: var(--shadow); }
.badge i { display: block; width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 4px; }
.badge span { font-size: 9.5px; color: var(--muted); display: block; }
.badge.chars b { display: block; font-size: 16px; color: var(--primary); line-height: 22px; height: 22px; font-family: "KaiTi","STKaiti",serif; }
.lv-row {
  display: grid; grid-template-columns: 76px 1fr 64px; align-items: center; gap: 8px;
  background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  border: 1px solid transparent; opacity: .55;
}
.lv-row.reached { opacity: 1; }
.lv-row.now { border-color: rgba(188,148,62,.6); box-shadow: var(--shadow); }
.lv-name { font-size: 14px; font-weight: 800; color: var(--primary-dk); letter-spacing: 2px; }
.lv-row.now .lv-name { color: #A87E2F; }
.lv-perk { font-size: 11px; color: var(--muted); line-height: 1.4; }
.lv-xp { font-size: 10px; color: #9AABA6; text-align: right; }
.ledger { background: var(--card); border-radius: 14px; padding: 4px 14px; box-shadow: var(--shadow); }
.led-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #EDF2F0; }
.led-row:last-child { border-bottom: none; }
.led-note { flex: 1; font-size: 12.5px; color: var(--ink); }
.led-row b { font-size: 14px; font-weight: 800; }
.led-row b.plus { color: #2E6B5E; }
.led-row b.minus { color: #A87E2F; }
.led-ts { font-size: 10px; color: #9AABA6; }
.led-empty { text-align: center; font-size: 12px; color: var(--muted); padding: 18px 0; }

/* ---- 兑换浮层 ---- */
.ex-prod { display: flex; gap: 12px; align-items: center; background: var(--tint); border-radius: 14px; padding: 12px; margin-top: 4px; }
.ex-emoji { font-size: 40px; }
.ex-info b { font-size: 14.5px; color: var(--primary-dk); }
.ex-info span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.ex-price { font-size: 12px; color: #8A7A5C; margin-top: 4px !important; }
.ex-price b { color: #A87E2F; }
.ex-mode-title { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin: 14px 0 8px; }
.ex-modes { display: flex; flex-direction: column; gap: 8px; }
.ex-mode {
  border: 1.5px solid #D8E2DE; border-radius: 12px; padding: 10px 14px; cursor: pointer;
}
.ex-mode.sel { border-color: var(--gold); background: rgba(188,148,62,.08); }
.ex-mode b { font-size: 13.5px; color: var(--primary-dk); display: block; }
.ex-mode span { font-size: 11px; color: var(--muted); }
.ex-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ex-form input {
  border: 1.5px solid #D8E2DE; border-radius: 12px; padding: 10px 14px; font-size: 14px;
  background: #fff; outline: none;
}
.ex-form input:focus { border-color: var(--gold); }
.ex-ok { text-align: center; padding: 18px 0 6px; }
.ex-ok-emoji { font-size: 48px; }
.ex-ok-title { font-size: 19px; font-weight: 800; color: var(--primary-dk); letter-spacing: 4px; margin-top: 6px; }
.ex-ok-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.ex-ok-code {
  margin-top: 10px; font-size: 13px; color: #A87E2F; letter-spacing: 1px;
  background: rgba(188,148,62,.1); border: 1px dashed rgba(188,148,62,.5);
  border-radius: 10px; padding: 8px 10px;
}

/* ============ V1.16 · 愿望寄存详情 + 共创投稿 ============ */
.remind-banner {
  margin: 6px 4px 10px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(188,148,62,.14), rgba(46,107,94,.10));
  border: 1px solid rgba(188,148,62,.4); border-radius: 14px;
  font-size: 12.5px; color: #5E4A1E; display: flex; align-items: center; gap: 8px;
  cursor: pointer; animation: viewIn .3s ease;
}
.remind-banner b { color: #A87E2F; }
.remind-banner .go { margin-left: auto; color: #A87E2F; font-size: 16px; }

.cocreate-banner {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  background: linear-gradient(135deg, #1F3B33, #2E6B5E);
  border: 1px solid rgba(217,190,127,.45);
  border-radius: 16px; padding: 12px 14px; cursor: pointer;
  box-shadow: var(--shadow);
}
.cocreate-banner .cb-emoji { font-size: 26px; }
.cocreate-banner .cb-text { flex: 1; }
.cocreate-banner .cb-text b { display: block; font-size: 13.5px; color: #F5F0E6; letter-spacing: 1px; }
.cocreate-banner .cb-text span { display: block; font-size: 10.5px; color: rgba(245,240,230,.65); margin-top: 2px; }
.cocreate-banner .cb-go { color: #D9BE7F; font-size: 20px; }

/* 心情标签 */
.mood-label { font-size: 12px; color: var(--muted); margin: 12px 0 8px; letter-spacing: 1px; }
.mood-label small { color: #9AABA6; font-size: 10.5px; }
.mood-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mood-chip {
  border: 1.5px solid #D8E2DE; background: #fff; color: var(--ink);
  font-size: 12.5px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: all .15s;
}
.mood-chip.sel {
  border-color: var(--gold); background: rgba(188,148,62,.12);
  color: #8A6A1F; font-weight: 700; box-shadow: 0 3px 10px rgba(188,148,62,.18);
}

/* 寄存详情 */
.detail-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.detail-head img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--gold-lt); object-fit: cover; }
.detail-head .dh-main b { display: block; font-size: 14px; color: var(--primary-dk); }
.detail-head .dh-main span { font-size: 11px; color: var(--muted); }
.detail-status {
  margin-left: auto; font-size: 10.5px; padding: 3px 10px; border-radius: 999px;
  color: #2E6B5E; background: rgba(46,107,94,.12); border: 1px solid rgba(46,107,94,.3);
}
.detail-status.sealed { color: #8A6A1F; background: rgba(217,190,127,.2); border-color: rgba(188,148,62,.4); }
.detail-text {
  background: var(--tint); border-radius: 14px; padding: 14px 16px;
  font-size: 14.5px; line-height: 1.7; color: var(--ink);
  font-family: "KaiTi","STKaiti","Microsoft YaHei",serif;
}
.detail-mood { margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.detail-mood b { color: #8A6A1F; }
.timeline { margin-top: 14px; }
.tl-item { display: flex; gap: 10px; position: relative; padding-bottom: 14px; }
.tl-item::before {
  content: ""; position: absolute; left: 5px; top: 14px; bottom: 0;
  width: 1px; background: #DCE8E4;
}
.tl-item:last-child::before { display: none; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold-lt); flex: 0 0 auto; margin-top: 3px; }
.tl-item.now .tl-dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(188,148,62,.18); }
.tl-main b { display: block; font-size: 12.5px; color: var(--primary-dk); }
.tl-main span { font-size: 10.5px; color: var(--muted); }
.remind-box { margin-top: 4px; border-top: 1px dashed #DCE8E4; padding-top: 12px; }
.remind-box h4 { font-size: 12.5px; color: var(--primary-dk); letter-spacing: 1px; margin-bottom: 8px; }
.remind-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.remind-btns .pill { font-size: 11.5px; }
.remind-note { margin-top: 8px; font-size: 11px; color: var(--muted); }

/* 共创页 */
#view-cocreate { background: linear-gradient(180deg, #F7F2E7 0%, var(--bg) 40%); }
.cc-head { text-align: center; padding: 14px 0 6px; }
.cc-title { font-size: 24px; font-weight: 800; letter-spacing: 8px; color: #1F3B33; }
.cc-sub { font-size: 12px; color: #8A7A5C; letter-spacing: 2px; margin-top: 4px; }
.cc-term {
  display: inline-block; margin-top: 10px; font-size: 11.5px; color: #8A6A1F;
  border: 1px solid rgba(188,148,62,.5); background: rgba(188,148,62,.1);
  padding: 4px 14px; border-radius: 999px; letter-spacing: 2px;
}
.cc-form {
  background: #fff; border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); margin-top: 12px; border: 1px solid rgba(188,148,62,.18);
}
.cc-row { display: flex; gap: 8px; align-items: center; }
.cc-input {
  flex: 1; border: 1.5px solid #D8E2DE; border-radius: 12px;
  padding: 10px 14px; font-size: 13px; outline: none; background: #fff;
}
.cc-input:focus { border-color: var(--gold); }
.cc-img-preview { position: relative; margin-top: 10px; }
.cc-img-preview img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; display: block; }
.cc-img-preview .pill { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; border: none; }
.cc-textarea {
  width: 100%; margin-top: 10px; border: 1.5px solid #D8E2DE; border-radius: 12px;
  padding: 12px 14px; font-size: 13.5px; min-height: 74px; resize: none; outline: none;
  font-family: inherit;
}
.cc-textarea:focus { border-color: var(--gold); }
.cc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cc-quick button {
  border: 1px solid #DCE8E4; background: var(--bg); color: var(--muted);
  font-size: 11px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.cc-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 10.5px; color: var(--muted); line-height: 1.5; margin-top: 10px; }
.cc-agree input { margin-top: 2px; accent-color: var(--primary); }
.cc-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid rgba(188,148,62,.14);
  display: flex; flex-direction: column;
}
.cc-card .cc-img { width: 100%; height: 110px; object-fit: cover; display: block; }
.cc-card .cc-img.ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; background: linear-gradient(135deg, #EDF4F1, #F7F2E7);
}
.cc-card .cc-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.cc-card .cc-name { font-size: 10.5px; color: #A87E2F; letter-spacing: 1px; }
.cc-card .cc-txt { font-size: 12.5px; color: var(--ink); line-height: 1.5; margin-top: 3px; flex: 1; }
.cc-card .cc-foot { display: flex; align-items: center; margin-top: 8px; }
.cc-card .cc-votes { font-size: 10.5px; color: var(--muted); flex: 1; }
.cc-card .vote-btn {
  border: 1px solid rgba(188,148,62,.5); background: rgba(188,148,62,.1); color: #8A6A1F;
  font-size: 10.5px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.cc-card .vote-btn.on { background: var(--gold); color: #fff; border-color: var(--gold); }
.cc-card.mine { border-color: rgba(46,107,94,.4); }
.cc-badge { display: inline-block; font-size: 9px; color: #2E6B5E; border: 1px solid rgba(46,107,94,.4); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.cc-mine { }
.cc-mine-row {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.cc-mine-row .cc-m-txt { flex: 1; font-size: 12px; color: var(--ink); }
.cc-mine-row .cc-m-status { font-size: 10.5px; padding: 2px 10px; border-radius: 999px; color: #8A6A1F; background: rgba(217,190,127,.2); border: 1px solid rgba(188,148,62,.4); }
.cc-mine .led-empty { padding: 16px 0; }

/* ============ V1.16 · 纹样填色编辑器 ============ */
.draw-sheet .sheet-body { padding-bottom: 28px; }
.draw-tpls { display: flex; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.draw-tpl {
  flex: 1; border: 1.5px solid #D8E2DE; background: #fff; color: var(--muted);
  font-size: 12px; padding: 8px 4px; border-radius: 12px; cursor: pointer; text-align: center;
  letter-spacing: 1px;
}
.draw-tpl.sel { border-color: var(--gold); background: rgba(188,148,62,.1); color: #8A6A1F; font-weight: 700; }
.draw-stage { display: flex; justify-content: center; }
#drawCanvas {
  width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 14px;
  background: #FBF7EC; box-shadow: inset 0 0 0 1px #E8DFC8, var(--shadow);
  touch-action: none; cursor: crosshair;
}
.draw-palette { display: flex; justify-content: center; gap: 10px; margin: 12px 0 6px; }
.draw-color {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px #D8E2DE;
}
.draw-color.sel { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.1); }
.draw-tools { display: flex; gap: 10px; margin-top: 10px; }
.draw-tools .pill { flex: 1; text-align: center; padding: 10px 0; font-size: 13px; }
.pill.gold { background: rgba(188,148,62,.14); color: #8A6A1F; border: 1px solid rgba(188,148,62,.5); }
.draw-note { text-align: center; font-size: 10.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* V1.16 · 赛期筛选 */
.cc-filters { display: flex; gap: 8px; margin: -4px 0 12px; }
.cc-filter {
  border: 1.5px solid #D8E2DE; background: #fff; color: var(--muted);
  font-size: 11.5px; padding: 5px 14px; border-radius: 999px; cursor: pointer;
}
.cc-filter.on { border-color: var(--gold); background: rgba(188,148,62,.12); color: #8A6A1F; font-weight: 700; }
