/* 月下相遇 · 潮汐 Bingo —— 与实体任务卡同款视觉。
 *
 * 设计来源：婚礼Bingo任务卡.pdf——水彩夜空底 + 奶油卡面描金边 + 帆船/弯月/海浪。
 * 帆船、弯月、海浪、灯塔图均从卡片 PDF 抠取（art/ 目录），线上线下同一片海。
 */
:root {
  /* 夜空 */
  --sky-1: #1c3d6b;
  --sky-2: #10264a;
  --sky-3: #0b1c3a;
  /* 奶油卡面 */
  --cream: #f8f1de;
  --cream-2: #f0e6c9;
  /* 卡面文字 */
  --ink: #33415e;
  --ink-dim: #7c8ca6;
  /* 金 */
  --gold: #d9a83c;
  --gold-deep: #b5892a;
  --gold-light: #f0c96a;
  /* 天空上的文字 */
  --text: #f3ecd9;
  --text-dim: #b9c6da;
  --error: #e8865a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  /* A01 水彩航海整版背景，全站统一（首页的遮罩由 .page-home 自己加） */
  background: url("assets/tide-bingo/a01.jpg") top center / cover no-repeat fixed #0b3158;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  min-height: 100vh;
  position: relative;
}

/* 全站统一的轻深蓝遮罩：提可读性，水彩纹理仍然可见 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(6, 30, 58, .05) 0%,
    rgba(6, 30, 58, .16) 35%,
    rgba(6, 30, 58, .24) 70%,
    rgba(6, 30, 58, .30) 100%);
}

#app { max-width: 480px; margin: 0 auto; padding: 24px 16px 120px; position: relative; z-index: 1; }

.view { display: flex; flex-direction: column; align-items: center; }
.hidden { display: none !important; }

/* ---------- 登录页 ---------- */
.art-ship { width: 180px; margin: 12px 0 0; }
.art-seal { width: 190px; filter: drop-shadow(0 0 18px rgba(240, 201, 106, .4)); }
.title {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 34px; letter-spacing: 10px; color: var(--gold-light);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  margin-top: 4px;
}
.subtitle { color: #ccd8e6; font-size: 13px; margin-top: 6px; letter-spacing: 2px;
  text-shadow: 0 1px 6px rgba(6, 20, 40, .9); }

.code-input {
  margin-top: 32px;
  width: 220px; padding: 14px;
  font-size: 26px; text-align: center; letter-spacing: 12px;
  color: var(--gold-light);
  background: rgba(248, 241, 222, .08);
  border: 1px solid rgba(217, 168, 60, .55); border-radius: 12px;
  outline: none;
}
.code-input:focus { border-color: var(--gold-light); }
/* 占位提示不能跟着输入字号走——26px+12px 字距下「输入对方的四位编号」会溢出 */
.code-input::placeholder {
  font-size: 14px; letter-spacing: 1px; color: var(--text-dim);
}

.name-input {
  margin-top: 14px;
  width: 220px; padding: 12px;
  font-size: 17px; text-align: center; letter-spacing: 2px;
  color: var(--text);
  background: rgba(248, 241, 222, .08);
  border: 1px solid rgba(217, 168, 60, .4); border-radius: 12px;
  outline: none;
}
.name-input:focus { border-color: var(--gold-light); }
.name-input::placeholder { color: var(--text-dim); font-size: 13px; }

/* ---------- 按钮（卡面金扣风：胶囊形 + 内描金 + 宋体） ---------- */
.btn {
  display: block; width: 260px; margin-top: 16px; padding: 13px;
  font-size: 16px; letter-spacing: 4px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  border-radius: 999px;
  cursor: pointer; text-align: center;
  transition: transform .08s ease, box-shadow .2s ease, opacity .15s;
}
.btn-gold {
  background: linear-gradient(180deg, #f3d77b 0%, #d9a938 100%);
  color: #16385c; font-weight: 700;
  border: 1px solid #fae7a7;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22), inset 0 1px 1px rgba(255, 255, 255, .55);
}
.btn-gold:active { transform: translateY(1px); box-shadow: 0 1px 6px rgba(0,0,0,.3), inset 0 0 0 1.5px rgba(255,244,214,.55); }
.btn-ghost {
  background: linear-gradient(180deg, rgba(26, 68, 107, .82), rgba(11, 43, 79, .88));
  color: #f1d47a;
  border: 1px solid rgba(225, 190, 100, .72);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .025), 0 3px 8px rgba(0, 0, 0, .16);
}
.btn-ghost:active { transform: translateY(1px); }
/* 奶油卡面上的幽灵按钮用墨色 */
.cream .btn-ghost, .modal-card .btn-ghost {
  background: transparent; color: var(--gold-deep);
  border-color: rgba(181, 137, 42, .6);
  box-shadow: none;
}
.btn-back {
  width: auto; margin: 0; padding: 7px 16px; letter-spacing: 1px;
  background: linear-gradient(180deg, rgba(26, 68, 107, .88), rgba(11, 43, 79, .92));
  color: #f1d47a;
  border: 1px solid rgba(225, 190, 100, .65);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  font-size: 14px;
}
.btn:active { opacity: .85; }
.btn[disabled] { opacity: .45; }

.error { color: var(--error); font-size: 14px; margin-top: 14px; min-height: 20px; text-align: center; }
.hint { color: #ccd8e6; font-size: 13px; margin-top: 14px; text-align: center;
  text-shadow: 0 1px 6px rgba(6, 20, 40, .9); }

.deck-badge {
  display: inline-block; margin-top: 12px; padding: 4px 14px;
  border: 1px solid var(--gold-deep); border-radius: 999px;
  color: var(--gold-light); font-size: 13px; letter-spacing: 2px;
}

.paused-banner {
  margin-top: 18px; padding: 16px 20px;
  border: 1px solid var(--gold-deep); border-radius: 14px;
  background: rgba(217, 168, 60, .14);
  color: var(--gold-light); font-size: 15px; line-height: 1.8; text-align: center;
}
.paused-banner b { color: var(--gold-light); }
.page-banner { width: 100%; margin: 0 0 18px; }

/* ---------- 宾客选择 ---------- */
.picker {
  margin-top: 20px; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  max-height: 320px; overflow-y: auto;
}
.picker-item {
  padding: 10px; border: 1px solid rgba(181, 137, 42, .5); border-radius: 10px;
  background: var(--cream); color: var(--ink); cursor: pointer;
  font-size: 14px;
}
.picker-item .code { color: var(--gold-deep); letter-spacing: 3px; font-size: 16px; }
.picker-item .meta { color: var(--ink-dim); font-size: 12px; }

/* ---------- 首页（A01 整版背景 + 素材按钮，视觉规范稿） ---------- */

/* 首页有自己的整版背景，全局月亮/海浪装饰让路 */
body[data-view="view-home"]::before,
body[data-view="view-home"]::after { display: none; }

.page-home {
  /* 顶出 #app 的内边距，让背景全幅 */
  margin: -24px -16px -120px;
  padding: 110px 5vw 60px;
  min-height: 100vh;
  /* A01 切成两段：天空钉页顶、海浪钉页底，切边烤入透明渐变溶进底色 */
  background:
    url("assets/tide-bingo/a01_top.webp") top center / 100% auto no-repeat,
    url("assets/tide-bingo/a01_bottom.webp") bottom center / 100% auto no-repeat,
    #1b3f63;
}
/* 轻深蓝遮罩：提升文字可读性，但水彩纹理必须仍然可见 */
.page-home::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(6, 30, 58, .05) 0%,
    rgba(6, 30, 58, .16) 35%,
    rgba(6, 30, 58, .24) 70%,
    rgba(6, 30, 58, .30) 100%);
}
.page-home > * { position: relative; z-index: 1; }

/* 欢迎登船：A08 四芒星左右点缀 */
.home-hello {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: rgba(244, 233, 207, .82);
  font-size: 18px; letter-spacing: .15em;
}
.home-hello .sparkle { width: 14px; height: 14px; object-fit: contain; }

/* 身份区：姓名 + 动态潮汐印记 + 编号 */
.home-identity {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.home-name {
  color: #f3d277; font-size: 30px; letter-spacing: 2px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}
.home-stamp {
  width: 50px; height: 50px; border-radius: 50%; object-fit: contain;
  box-shadow: 0 0 0 2px rgba(231, 190, 90, .65), 0 0 14px rgba(231, 190, 90, .3);
}
.home-code {
  color: #f3d277; font-size: 32px; letter-spacing: 3px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

/* 航程进度：A09 罗盘 + 描金轨道 */
.home-progress {
  margin-top: 42px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.progress-compass { width: 28px; height: 28px; object-fit: contain; }
.page-home .progress-wrap {
  width: min(66vw, 420px); height: 9px; border-radius: 999px;
  border: 1px solid rgba(231, 190, 90, .55);
  background: rgba(8, 38, 72, .65);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .3), 0 0 8px rgba(231, 190, 90, .08);
  overflow: hidden;
}
.page-home .progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #b88930, #f0cf73, #f8df97);
  transition: width .4s;
}
.page-home .progress-text {
  margin-top: 12px; text-align: center;
  color: #f4e9cf; font-size: 14px; letter-spacing: 2px;
}

/* 潮汐币区：A04 弯月 + 金额突出 */
.home-tokens {
  margin-top: 30px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tokens-moon { width: 24px; height: 24px; object-fit: contain; }
.tokens-label { color: #f4e9cf; font-size: 20px; letter-spacing: 1px; }
.tokens-amount {
  margin-top: 6px; text-align: center;
  color: #f0c95d; font-size: 26px;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}
.page-home .home-hint {
  color: rgba(244, 233, 207, .68); font-size: 13px; margin-top: 10px; text-align: center;
}
.page-home .paused-banner { margin: 18px auto 0; max-width: 320px; }

/* 五个主按钮：三栏布局（图标 | 文字 | 箭头），文字视觉居中 */
.menu {
  margin-top: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 17px;
}
.btn-nav {
  width: min(78vw, 520px); min-height: 68px;
  display: grid; grid-template-columns: 56px 1fr 40px; align-items: center;
  border-radius: 34px; cursor: pointer;
  background: linear-gradient(180deg, rgba(26, 68, 107, .82), rgba(11, 43, 79, .88));
  border: 1px solid rgba(225, 190, 100, .72);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .025), 0 3px 8px rgba(0, 0, 0, .16);
  color: #f1d47a; font-size: 17px; letter-spacing: 3px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.btn-nav .btn-icon { display: flex; justify-content: center; }
.btn-nav .btn-icon img { width: 34px; height: 34px; object-fit: contain; }
.btn-nav .btn-text { text-align: center; }
.btn-nav .btn-arrow {
  color: rgba(244, 215, 123, .8); font-size: 22px; text-align: center;
  font-family: serif;
}
.btn-nav:active { opacity: .85; transform: translateY(1px); }

/* 一级主按钮（我的 Bingo）：金色渐变 */
.btn-hero {
  background: linear-gradient(180deg, #f3d77b 0%, #d9a938 100%);
  border: 1px solid #fae7a7;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22), inset 0 1px 1px rgba(255, 255, 255, .55);
  color: #16385c; font-weight: 700;
}
.btn-hero .btn-arrow { color: rgba(22, 56, 92, .7); }

/* 底部：A10 分隔线 + 引导文案 */
.home-divider {
  width: 160px; margin-top: 52px; object-fit: contain;
  align-self: center;
}
.home-footer {
  margin-top: 18px; text-align: center;
  color: rgba(244, 233, 207, .9);
  font-size: 16px; line-height: 1.8; max-width: 80vw;
  text-shadow: 0 1px 10px rgba(6, 20, 40, .85);
}
.hello { color: var(--text-dim); margin-top: 40px; font-size: 14px; }
.name {
  color: var(--gold-light); font-size: 26px; margin: 8px 0 28px; letter-spacing: 2px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.name .stamp-img {
  width: 30px; height: 30px; border-radius: 50%;
  vertical-align: -6px; margin: 0 2px; display: inline-block;
  box-shadow: 0 0 12px rgba(240, 201, 106, .45);
}

.progress-wrap {
  width: 100%; height: 10px; border-radius: 5px;
  background: rgba(248, 241, 222, .12); overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  transition: width .4s;
}
.progress-text { margin-top: 10px; color: var(--text-dim); font-size: 14px; }
.tokens-line { margin-top: 18px; color: var(--gold-light); font-size: 16px; }
.menu { margin-top: 28px; }

/* ---------- 导航条 ---------- */
.nav {
  width: 100%; display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.nav-title {
  color: var(--gold-light); letter-spacing: 3px; font-size: 16px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}

/* ---------- Bingo 3×3：整张奶油卡 + 金边，就是手里的那张卡 ---------- */
.grid {
  width: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: var(--cream);
  border: 1.5px solid rgba(217, 168, 60, .65);
  border-radius: 16px; padding: 10px;
  box-shadow: 0 6px 24px rgba(4, 14, 30, .45);
}
.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(51, 65, 94, .35); border-radius: 10px;
  background: #fffdf6;
  padding: 6px; cursor: pointer;
  display: flex; flex-direction: column;
  overflow: hidden;
}
/* 金色序号圆——与实体卡同款 */
.cell .num {
  align-self: flex-start;
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: #3a2a08; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.cell .txt {
  margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--ink);
  font-family: "STZhongsong", "华文中宋", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
  text-shadow: 0 0 .5px currentColor;
  white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cell.done { background: #f5ead0; border-color: var(--gold-deep); }
.cell.done .txt { color: var(--ink-dim); }
.cell .stamp {
  position: absolute; right: 6px; bottom: 6px;
  width: 30px; height: 30px; border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.stamp-img { width: 100%; height: 100%; border-radius: 50%; display: block; }

/* ---------- 验证页 ---------- */
.card {
  width: 100%; padding: 20px;
  border: 1.5px solid rgba(217, 168, 60, .65); border-radius: 14px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 6px 24px rgba(4, 14, 30, .4);
}
.card-category { color: var(--gold-deep); font-size: 12px; letter-spacing: 2px; }
.card-text { margin-top: 10px; font-size: 17px; line-height: 1.7; white-space: pre-line;  font-family: "STZhongsong", "华文中宋", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
  text-shadow: 0 0 .5px currentColor; }

.result {
  margin-top: 20px; width: 100%; padding: 20px;
  border: 1.5px solid var(--gold-deep); border-radius: 14px;
  background: var(--cream); color: var(--ink);
  text-align: center;
  box-shadow: 0 6px 24px rgba(4, 14, 30, .4);
}
.result .ok-mark {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  box-shadow: 0 0 24px 4px rgba(217, 168, 60, .4);
}
.result .ok-title {
  color: var(--gold-deep); font-size: 17px; letter-spacing: 2px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.result .ok-detail { color: var(--ink-dim); font-size: 14px; margin-top: 8px; }
.result .ok-gain { color: var(--gold-deep); font-size: 15px; margin-top: 8px; }
.result .ok-hidden {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed rgba(181, 137, 42, .5);
  color: var(--ink); font-size: 14px; line-height: 1.7;
  white-space: pre-line; text-align: left;
}

/* ---------- 弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(6, 18, 38, .75);
  display: flex; align-items: center; justify-content: center;
}
.modal-card {
  width: min(340px, 88vw); padding: 24px;
  background: var(--cream); color: var(--ink);
  border: 1.5px solid rgba(217, 168, 60, .65); border-radius: 14px;
  max-height: 86vh; overflow-y: auto;
}
.modal-card .btn { width: 100%; }
.modal-card .card-category { color: var(--gold-deep); font-size: 12px; letter-spacing: 2px; }
.modal-card .hint { color: var(--ink-dim); }
.modal-card .error { color: #c2542a; }
.modal-keyword { margin-top: 12px; color: var(--gold-deep); font-size: 15px; }
.modal-photo {
  margin-top: 12px; width: 100%; border-radius: 10px;
  border: 1px solid rgba(51, 65, 94, .3);
}

/* ---------- 照片上传 ---------- */
.photo-preview { margin-top: 14px; }
.photo-preview img {
  width: 100%; max-height: 220px; object-fit: cover;
  border-radius: 10px; border: 1px solid rgba(217, 168, 60, .5);
}
label[for="verify-photo"] { cursor: pointer; }

/* ---------- 潮汐币页 ---------- */
.tokens-big {
  font-size: 52px; color: var(--gold-light); margin-top: 32px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.tokens-row {
  display: flex; gap: 48px; margin-top: 24px;
  color: #ccd8e6; font-size: 13px; text-align: center;
  text-shadow: 0 1px 6px rgba(6, 20, 40, .9);
}
.tokens-num { color: var(--text); font-size: 22px; }
.ledger { width: 100%; margin-top: 24px; }
.ledger-row {
  display: flex; justify-content: space-between; padding: 10px 6px;
  border-bottom: 1px solid rgba(248, 241, 222, .14); font-size: 14px;
}
.ledger-row .delta-pos { color: var(--gold-light); }
.ledger-row .delta-neg { color: var(--error); }

/* ---------- 潮汐阶梯 ---------- */
.ladder { width: 100%; margin-top: 16px; }
.ladder-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 9px 4px; font-size: 13px;
  border-bottom: 1px solid rgba(248, 241, 222, .14);
  color: #ccd8e6;
  text-shadow: 0 1px 6px rgba(6, 20, 40, .9);
}
.ladder-row .ladder-name { color: var(--text); min-width: 64px; }
.ladder-row .ladder-need { flex: 1; font-size: 12px; text-shadow: 0 1px 5px rgba(6, 20, 40, .85); }
.ladder-row .ladder-reward { color: var(--gold-light); font-size: 12px; }
.ladder-row.met .ladder-name,
.ladder-row.met .ladder-reward { color: var(--gold-light); }

/* ---------- 隐藏任务 ---------- */
.hidden-card {
  width: 100%; margin-top: 16px; padding: 16px;
  border: 1.5px solid rgba(217, 168, 60, .65); border-radius: 14px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 6px 24px rgba(4, 14, 30, .4);
}
.hidden-card .hidden-title {
  color: var(--gold-deep); font-size: 15px; letter-spacing: 1px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.hidden-card .hidden-text {
  margin-top: 8px; color: var(--ink); font-size: 14px;
  line-height: 1.8; white-space: pre-line;
  font-family: "STZhongsong", "华文中宋", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
  text-shadow: 0 0 .5px currentColor;
}
.secret-row { display: flex; gap: 8px; margin-top: 14px; }
.secret-input {
  flex: 1; padding: 10px; font-size: 15px; text-align: center; letter-spacing: 2px;
  color: var(--gold-deep); background: #fffdf6;
  border: 1px solid rgba(181, 137, 42, .5); border-radius: 10px; outline: none;
}
.secret-input:focus { border-color: var(--gold-deep); }

/* ---------- 守则（奶油整版，如卡背） ---------- */
.rules {
  width: 100%;
  background: var(--cream); color: var(--ink);
  border: 1.5px solid rgba(217, 168, 60, .65); border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 6px 24px rgba(4, 14, 30, .45);
}
.rules p {
  padding: 14px 4px; font-size: 15px; line-height: 1.8;
  font-family: "STZhongsong", "华文中宋", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
  text-shadow: 0 0 .5px currentColor;
  border-bottom: 1px solid rgba(51, 65, 94, .18);
}
.rules p:last-of-type { border-bottom: none; }
.rules b { color: var(--gold-deep); font-weight: 600; }
.rules h3 {
  margin-top: 22px; padding: 0 4px;
  color: var(--gold-deep); font-size: 16px; letter-spacing: 3px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.rules-title {
  margin: 8px 0 4px; text-align: center;
  color: var(--gold-deep); font-size: 22px; letter-spacing: 4px;
  font-family: "Songti SC", "STSong", "SimSun", serif;
}
.rules-lead { text-align: center; color: var(--ink) !important; }
.rules-note {
  color: var(--ink-dim); font-size: 14px !important;
  border: 1px dashed rgba(181, 137, 42, .55) !important;
  border-radius: 10px; margin: 6px 4px; padding: 12px !important;
}
.rules-symbols {
  display: flex; justify-content: center; gap: 14px;
  border-bottom: none !important;
}
.symbol-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--gold-deep); font-size: 12px; letter-spacing: 2px;
}
.symbol-item img { width: 44px; height: 44px; border-radius: 50%; }
.rules p.no-divider { border-bottom: none; }
.rules-teaser { margin-top: 30px; line-height: 1.9; }
.art-lighthouse { width: 120px; margin: 18px auto 4px; display: block; }

/* ---------- 工作人员页 ---------- */
.staff-link {
  display: inline-block; padding: 5px 14px; margin-top: 4px;
  color: rgba(244, 233, 207, .75); font-size: 12px; text-decoration: none;
  background: rgba(11, 43, 79, .75);
  border: 1px solid rgba(225, 190, 100, .35); border-radius: 999px;
}

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  flex: 1; padding: 10px; border: 1px solid rgba(217, 168, 60, .45); border-radius: 10px;
  background: rgba(248, 241, 222, .06); color: var(--text-dim); font-size: 15px;
  letter-spacing: 3px; cursor: pointer;
}
.tab.active { border-color: var(--gold-light); color: var(--gold-light); }

.staff-list { width: 100%; margin-top: 16px; max-height: 60vh; overflow-y: auto; }
.staff-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 11px 6px; font-size: 14px; cursor: pointer;
  border-bottom: 1px solid rgba(248, 241, 222, .14);
}
.staff-row:active { background: rgba(217, 168, 60, .1); }
.staff-meta { color: var(--text-dim); font-size: 13px; white-space: nowrap; }

.d-name { color: var(--gold-deep); font-size: 18px; margin-top: 4px; }
.d-tasks { margin-top: 12px; max-height: 34vh; overflow-y: auto; }
.d-task { padding: 8px 4px; border-bottom: 1px solid rgba(51, 65, 94, .15); }
.d-task-head { font-size: 13px; color: var(--ink-dim); }
.d-task.done .d-task-head { color: var(--gold-deep); }
.d-task-text { font-size: 12px; color: var(--ink-dim); margin-top: 2px; white-space: pre-line;  font-family: "STZhongsong", "华文中宋", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 700;
  text-shadow: 0 0 .5px currentColor; }
.d-task-meta { font-size: 13px; color: var(--gold-deep); margin-top: 4px; }
.d-task-meta a { color: var(--gold-deep); text-decoration: none; }

.redeem-row { display: flex; gap: 8px; margin-top: 16px; }
.redeem-input {
  flex: 1; padding: 10px; font-size: 15px; text-align: center;
  color: var(--gold-deep); background: #fffdf6;
  border: 1px solid rgba(181, 137, 42, .5); border-radius: 10px; outline: none;
}
.btn-small { width: auto !important; margin-top: 0 !important; padding: 10px 16px; }
.redeem-card {
  width: 100%; margin-top: 20px; padding: 16px;
  border: 1.5px solid rgba(217, 168, 60, .65); border-radius: 14px;
  background: var(--cream); color: var(--ink);
}

.photo-wall {
  width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.photo-card {
  border: 1px solid rgba(217, 168, 60, .5); border-radius: 10px; overflow: hidden;
  background: var(--cream); cursor: pointer;
}
.photo-card img { width: 100%; display: block; }
.photo-card .cap { padding: 8px 10px; font-size: 12px; color: var(--ink-dim); }
.photo-card .cap b { display: block; color: var(--gold-deep); font-size: 13px; margin-bottom: 2px; }
