/* =============================================================
   薪跳 SalaryBeat · 高光质感版
   设计语言：暖瓷白底 + 发丝描边 + 玻璃质感 + 大数字排版
   ============================================================= */

:root {
  --bg: #f5f6f8;
  --bg-2: #eef0f4;
  --card: #ffffff;
  --ink: #171a20;
  --ink-2: #575e6b;
  --ink-3: #9aa1ad;
  --line: rgba(23, 26, 32, .07);
  --line-2: rgba(23, 26, 32, .045);
  --fill: #eff1f5;
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow-sm: 0 1px 2px rgba(23, 26, 32, .04);
  --shadow: 0 1px 2px rgba(23, 26, 32, .04), 0 14px 36px -20px rgba(23, 26, 32, .18);
  --track: "tnum" 1;

  --accent: #ef3f47;
  --accent-2: #ff7a5c;
  --accent-deep: #d92b34;
  --accent-soft: rgba(239, 63, 71, .09);
  --accent-line: rgba(239, 63, 71, .26);
  --accent-glow: rgba(239, 63, 71, .35);
}

body[data-theme="green"] {
  --accent: #10a37f;
  --accent-2: #4bd6a9;
  --accent-deep: #0b8a6c;
  --accent-soft: rgba(16, 163, 127, .09);
  --accent-line: rgba(16, 163, 127, .26);
  --accent-glow: rgba(16, 163, 127, .32);
}

body[data-theme="gold"] {
  --accent: #de8a0b;
  --accent-2: #f7c948;
  --accent-deep: #c2740a;
  --accent-soft: rgba(222, 138, 11, .10);
  --accent-line: rgba(222, 138, 11, .30);
  --accent-glow: rgba(222, 138, 11, .32);
}

body[data-theme="purple"] {
  --accent: #7b61ff;
  --accent-2: #a78bfa;
  --accent-deep: #6547e8;
  --accent-soft: rgba(123, 97, 255, .09);
  --accent-line: rgba(123, 97, 255, .26);
  --accent-glow: rgba(123, 97, 255, .32);
}

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

html, body { margin: 0; padding: 0; background: var(--bg-2); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

button, input, select { font-family: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; }
input, select { font-size: 16px; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h3 { margin: 0; font-weight: 700; }
h2 { margin: 0; }
em { font-style: normal; }
i { font-style: normal; }

.num, .amount, .c-value, .status-clock, .hf-item em, .cum-value, b {
  font-variant-numeric: tabular-nums;
  font-feature-settings: var(--track);
}

/* ---------------- 外框 ---------------- */
.app {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(23, 26, 32, .10);
}

.app::before {
  content: "";
  position: absolute;
  top: -180px; left: 50%;
  width: 560px; height: 420px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, var(--accent-soft), transparent 72%),
    radial-gradient(closest-side at 70% 60%, rgba(123, 97, 255, .05), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ---------------- 顶栏 + 动态 Logo ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 246, 248, .78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.nav-inner {
  height: 56px;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 9px; }
.nav-titles { display: flex; flex-direction: column; line-height: 1.15; }
.nav-titles h1 { font-size: 16.5px; letter-spacing: .6px; }
.nav-titles span { font-size: 9px; color: var(--ink-3); letter-spacing: 1.6px; text-transform: uppercase; }

.logo {
  width: 34px; height: 34px;
  flex: none;
  animation: logoFloat 4.6s ease-in-out infinite;
}
.logo svg { width: 100%; height: 100%; display: block; }
.logo-lg { width: 62px; height: 62px; }

/* pathLength="1"，dash 用 1 做单位：和真实路径长度解耦，任何内核都不会算出相位错位 */
.logo-wave {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: logoDraw 3.4s cubic-bezier(.6, 0, .35, 1) infinite;
}

.logo-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: logoBlink 3.4s ease-in-out infinite;
}

@keyframes logoDraw {
  0% { stroke-dashoffset: 1; }
  38% { stroke-dashoffset: 0; }
  78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: .9; }
}

@keyframes logoBlink {
  0%, 34% { transform: scale(0); opacity: 0; }
  46% { transform: scale(1.5); opacity: 1; }
  60% { transform: scale(1); opacity: 1; }
  92% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* 电脑浏览器 / 微信内置浏览器：SVG 描边与缩放动画容易闪屏，直接定格成静态 logo */
.no-logo-anim .logo,
.no-logo-anim .logo-wave,
.no-logo-anim .logo-dot { animation: none !important; }
.no-logo-anim .logo-wave { stroke-dashoffset: 0 !important; opacity: 1 !important; }
.no-logo-anim .logo-dot { transform: none !important; opacity: 1 !important; }

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  46% { transform: translateY(-1.5px); }
  60% { transform: translateY(0); }
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform .14s;
}
.nav-btn:active { transform: scale(.9); }

/* ---------------- 视图 ---------------- */
.views { padding: 0 16px calc(112px + var(--safe-b)); position: relative; z-index: 1; }

.view { display: none; }
.view.is-active { display: block; animation: viewIn .32s cubic-bezier(.22, .9, .3, 1) both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- 游客加入引导（横幅 + 胶囊） ---------------- */
/* 顶部吸顶横幅：游客没完成引导也放行浏览，但这条一定显眼 */
.join-banner {
  position: sticky;
  top: 8px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
  padding: 13px 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  box-shadow: 0 10px 26px rgba(239, 63, 71, .32), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.jb-txt { flex: 1; min-width: 0; }
.jb-txt b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: .2px; }
.jb-txt span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.jb-cta {
  flex: none;
  border: 0;
  border-radius: 99px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-deep);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
  cursor: pointer;
  animation: jbPulse 1.9s ease-in-out infinite;
}
.jb-cta:active { transform: scale(.95); }
@keyframes jbPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 0, 0, .16); }
  50% { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0, 0, 0, .26); }
}
.jb-close {
  flex: none;
  border: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.jb-close:active { background: rgba(255, 255, 255, .36); }

/* 横幅被 ✕ 收起后：胶囊常驻在底栏上方，任何页面都能一眼看到 */
.join-fab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(86px + var(--safe-b));
  z-index: 70;
  border: 0;
  border-radius: 99px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--accent-deep));
  box-shadow: 0 8px 22px rgba(239, 63, 71, .4);
  cursor: pointer;
  animation: jbPulse 1.9s ease-in-out infinite;
}
.join-fab:active { transform: translateX(-50%) scale(.94); }

/* ---------------- 游客演示态 ---------------- */
/* 每个页面顶部的说明条：清楚交代「这不是你的数据」 */
.demo-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 9px 11px;
  border: 1px dashed rgba(215, 145, 35, .55);
  border-radius: 12px;
  background: rgba(255, 198, 92, .13);
  color: #8a5a00;
  font-size: 11px;
  line-height: 1.45;
}
.demo-strip b {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  background: #ffcc70;
  color: #5b3a00;
  letter-spacing: .2px;
}
.demo-strip span { flex: 1; min-width: 0; }
.demo-strip button {
  flex: none;
  border: 0;
  background: none;
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 0 2px 4px;
}
.demo-strip button:active { opacity: .6; }

/* 演示态的英雄卡：虚线描边 + 明显「演示」徽标，LIVE 换成演示 */
body.demo-mode .hero { outline: 2px dashed rgba(215, 145, 35, .55); outline-offset: -7px; }
body.demo-mode .hero-top .live:not(.demo-live) { display: none; }
.live.demo-live { color: #8a5a00; background: rgba(255, 204, 112, .32); }
.hero-demo-note {
  position: relative;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}
.hero-demo-note button {
  border: 0;
  background: none;
  padding: 0 2px;
  color: var(--accent-deep);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}
.demo-tag {
  display: inline-block;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  vertical-align: 2px;
  color: #8a5a00;
  background: #ffdb99;
}

/* 引导层右上角：游客可随时先去逛逛 */
.ob-close {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 4px;
  border: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.ob-close:active { background: var(--line-3, rgba(23, 26, 32, .18)); }

/* ---------------- 状态条 ---------------- */
.statusline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px 14px;
  min-height: 24px;
}

.status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 3.5px var(--accent-soft);
}

.status-quote {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .2px;
  transition: opacity .25s;
}

.status-clock {
  margin-left: auto;
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

/* ---------------- 英雄卡 ---------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #fdfdfe 0%, #ffffff 34%, #ffffff 100%);
  border: 1px solid rgba(255, 255, 255, .9);
  outline: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}

.hero-deco {
  position: absolute;
  top: -90px; right: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  opacity: .16;
  pointer-events: none;
}

.hero-top {
  display: flex; align-items: center; gap: 9px;
  position: relative;
}

.hero-label {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 2px;
  font-weight: 500;
}

.live {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 800; letter-spacing: 1.2px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px 3px 7px;
  border-radius: 99px;
}
.live i {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .3; transform: scale(.65); }
}

.amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0 2px;
  line-height: 1.05;
  position: relative;
}

.amount .cur {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.amount > span:last-child {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -2.6px;
  background: linear-gradient(120deg, var(--accent-2) 0%, var(--accent) 52%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.amount.long > span:last-child { font-size: 44px; letter-spacing: -1.8px; }
.amount.xlong > span:last-child { font-size: 34px; letter-spacing: -1.2px; }

.amount.pop > span:last-child { animation: numPop .38s cubic-bezier(.22, .9, .3, 1); }

@keyframes numPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

.bar {
  height: 8px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
  margin-top: 16px;
  position: relative;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .25s linear;
  position: relative;
  overflow: hidden;
}

.bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(220%); }
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .3px;
}

.phase { color: var(--accent); font-weight: 700; letter-spacing: .5px; }

.hero-foot {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line-2);
}

.hf-item { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hf-item em { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.hf-item span { font-size: 10px; color: var(--ink-3); letter-spacing: 1.5px; }
.hf-line { width: 1px; height: 28px; background: var(--line); margin: 0 16px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.hero-tags:empty { display: none; }
.hero-tags span {
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--fill);
  color: var(--ink-2);
  border: 1px solid transparent;
}
.hero-tags span.hot {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  border-color: var(--accent-line);
}

/* ---------------- 数据格 ---------------- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.cell {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 14px 16px 15px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-label { font-size: 10.5px; color: var(--ink-3); letter-spacing: 1.5px; font-weight: 500; }
.c-value { font-size: 21px; font-weight: 800; letter-spacing: -.7px; }
.c-value i { font-size: 10.5px; font-weight: 600; color: var(--ink-3); margin-left: 3px; letter-spacing: 0; }

/* ---------------- 发薪卡 ---------------- */
.payday-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(120deg, #fff, #fbfcfe);
  position: relative;
  overflow: hidden;
}
.payday-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.pd-left { display: flex; align-items: baseline; gap: 8px; }
.pd-label { font-size: 11px; color: var(--ink-3); letter-spacing: 1.4px; }
.pd-value { font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.pd-value i { font-size: 11px; color: var(--ink-3); margin-left: 3px; font-weight: 600; }
.pd-value.today { font-size: 17px; color: var(--accent); }
.pd-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.pd-right span { font-size: 11px; color: var(--ink-3); }
.pd-right em { font-size: 13px; font-weight: 800; color: var(--ink-2); }

/* 收入拆解 */
.rate-card { padding-bottom: 6px; }
.rate-grid { display: grid; grid-template-columns: 1fr 1fr; }
.rate-grid > div { padding: 11px 0 9px; display: flex; flex-direction: column; gap: 3px; }
.rate-grid > div:nth-child(odd) { padding-right: 14px; }
.rate-grid > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-2); }
.rate-grid > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
.rate-grid span { font-size: 10.5px; color: var(--ink-3); letter-spacing: 1.5px; }
.rate-grid b { font-size: 21px; font-weight: 800; letter-spacing: -.6px; }

/* ---------------- 卡片通用 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 17px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.card-head.mt { margin-top: 18px; }
.card-head h3 { font-size: 14.5px; letter-spacing: .2px; }
.muted { font-size: 11px; color: var(--ink-3); letter-spacing: .3px; }

.empty-card {
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  padding: 26px 16px;
  line-height: 1.9;
}

/* ---------------- 摸鱼 ---------------- */
.fish-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 17px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  transition: transform .14s, box-shadow .2s;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.fish-emoji { font-size: 21px; line-height: 1; }
.fish-btn-text { font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.fish-btn-tip { margin-left: auto; font-size: 10.5px; color: var(--ink-3); font-weight: 400; letter-spacing: .2px; }

.fish-btn:active { transform: scale(.98); }

.fish-btn.running {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px -14px var(--accent-glow);
}
.fish-btn.running .fish-btn-tip { color: rgba(255, 255, 255, .85); }
.fish-btn.running .fish-emoji { animation: swim 1.6s ease-in-out infinite; }

@keyframes swim {
  0%, 100% { transform: translateX(0) rotate(0); }
  50% { transform: translateX(4px) rotate(-7deg); }
}

.fish-list { margin-top: 8px; }
.fish-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-2);
}
.fish-list li:last-child { border-bottom: 0; }
.fish-list .fl-time { color: var(--ink-3); letter-spacing: .3px; }
.fish-list .fl-amt { margin-left: auto; font-weight: 800; color: var(--accent); }
.fish-list .fl-del { color: var(--ink-3); font-size: 15px; padding: 0 3px; opacity: .7; }
.fish-list .empty {
  justify-content: center;
  color: var(--ink-3);
  font-size: 12px;
  padding: 18px 0 6px;
  border: 0;
}

/* ---------------- 首页目标预览 ---------------- */
.mini-goal {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 17px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  position: relative; /* 目标选择 popover 的定位锚点 */
}
.mg-head-actions { display: flex; align-items: center; gap: 10px; }
.mg-pick {
  font-size: 11px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 3px 10px;
}
.mini-goal-picker {
  position: absolute;
  top: 52px;
  right: 16px;
  z-index: 5;
  width: min(268px, calc(100% - 32px));
  max-height: 258px;
  overflow-y: auto;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.mini-goal-picker button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  text-align: left;
}
.mini-goal-picker button.on { background: var(--accent-soft); color: var(--accent-deep); }
.mg-pick-emoji { font-size: 16px; line-height: 1; flex: none; }
.mg-pick-title { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mg-pick-state { font-size: 11px; color: var(--ink-3); flex: none; }
.mg-pick-empty { padding: 14px 10px; text-align: center; font-size: 11.5px; color: var(--ink-3); }
.mg-body { display: flex; gap: 14px; align-items: center; margin-top: 2px; }
.mg-emoji { font-size: 28px; line-height: 1; flex: none; }
.mg-info { flex: 1; min-width: 0; }
.mg-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; letter-spacing: .2px; }
.mg-bar { height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.mg-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 99px; transition: width .5s ease; }
.mg-sub { font-size: 11px; color: var(--ink-3); margin-top: 6px; letter-spacing: .3px; }

/* ---------------- 小贴士 ---------------- */
.tips-card { padding-bottom: 14px; }
.tip-main {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: .4px;
  font-weight: 600;
  position: relative;
  padding-left: 12px;
}
.tip-main::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}
.tip-list { border-top: 1px dashed var(--line); padding-top: 10px; }
.tip-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}
.tip-list .tag {
  flex: none;
  font-size: 9.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 6px;
  margin-top: 1px;
  letter-spacing: .5px;
}
.tip-list .tx { flex: 1; }

/* ---------------- 工友动态 ---------------- */
.feed-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.feed-list li:last-child { border-bottom: 0; }
.fd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fd-name { font-size: 11px; color: var(--ink-3); letter-spacing: .3px; }
.fd-text {
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fd-time { font-size: 10.5px; color: #b9c0ca; flex: none; }

/* ---------------- 记录页 ---------------- */
.month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}
.mnav {
  width: 32px; height: 32px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1;
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .12s;
}
.mnav:active { transform: scale(.88); }

.mood-card { padding-bottom: 15px; }
.mood-row { display: flex; gap: 6px; margin-bottom: 10px; }
.mood-row button {
  flex: 1;
  height: 42px;
  border-radius: 14px;
  background: var(--fill);
  font-size: 20px;
  line-height: 1;
  transition: all .16s cubic-bezier(.22, .9, .3, 1);
}
.mood-row button.on {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.6px var(--accent);
  transform: translateY(-2px) scale(1.04);
}

.cal-card { padding-bottom: 17px; }

.cal-sum {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.cal-sum div { display: flex; flex-direction: column; gap: 3px; }
.cal-sum span { font-size: 10px; color: var(--ink-3); letter-spacing: 1.2px; }
.cal-sum b { font-size: 18px; font-weight: 800; letter-spacing: -.4px; }
.cal-sum b i { font-size: 10.5px; color: var(--ink-3); font-weight: 600; margin-left: 2px; }

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 15px 0 7px;
  font-size: 10px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: 1px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-cell {
  aspect-ratio: 1 / 1.18;
  border-radius: 11px;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  position: relative;
}
.cal-cell .d { font-size: 12px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; }
.cal-cell .m { font-size: 8.5px; color: var(--ink-3); letter-spacing: -.1px; position: relative; z-index: 1; }
.cal-cell .mf {
  position: absolute;
  right: 3px; bottom: 2px;
  font-size: 8px;
  line-height: 1;
  opacity: .9;
  z-index: 1;
}
.cal-cell.blank { background: transparent; }
.cal-cell.rest { background: transparent; }
.cal-cell.rest .d { color: #c4cad3; font-weight: 500; }
.cal-cell.lv1::before, .cal-cell.lv2::before, .cal-cell.lv3::before, .cal-cell.lv4::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: var(--accent);
}
.cal-cell.lv1::before { opacity: .10; }
.cal-cell.lv2::before { opacity: .20; }
.cal-cell.lv3::before { opacity: .32; }
.cal-cell.lv4::before { opacity: .46; }
.cal-cell.lv3 .d, .cal-cell.lv4 .d { color: var(--accent-deep); font-weight: 800; }
.cal-cell.lv3 .m, .cal-cell.lv4 .m { color: var(--accent-deep); opacity: .75; }
.cal-cell.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cal-cell.today .d { color: var(--accent); font-weight: 800; }
/* 带薪休假：浅绿底 + 金额正常显示，和真正不计薪的休息日区分 */
.cal-cell.is-holiday, .cal-cell.is-holiday.rest { background: rgba(16, 163, 127, .10); }
.cal-cell.is-holiday::before { background: #10a37f; opacity: .10; }
.cal-cell.is-holiday .d { color: #0b8a6c; font-weight: 700; }
.cal-cell.is-holiday .m { color: #0b8a6c; opacity: .85; }

.cal-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 13px;
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: .5px;
}
.cal-legend i { width: 10px; height: 10px; border-radius: 3.5px; display: block; background: var(--accent); }
.cal-legend .lv1 { opacity: .10; }
.cal-legend .lv2 { opacity: .20; }
.cal-legend .lv3 { opacity: .32; }
.cal-legend .lv4 { opacity: .46; }
.cal-legend span { margin-left: 5px; }

.rank li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line-2);
}
.rank li:last-child { border-bottom: 0; }
.rank .rk {
  width: 22px; height: 22px;
  border-radius: 8px;
  background: var(--fill);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
  display: grid; place-items: center;
  flex: none;
}
.rank li:nth-child(1) .rk { background: var(--accent); color: #fff; }
.rank li:nth-child(2) .rk { background: var(--accent-soft); color: var(--accent); }
.rank li:nth-child(3) .rk { background: var(--fill); color: var(--ink-2); }
.rank .rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .rv { color: var(--ink-3); }
.rank .empty { justify-content: center; color: var(--ink-3); border: 0; padding: 16px 0 6px; }

/* ---------------- 目标页 ---------------- */
.cum-card {
  background: linear-gradient(125deg, var(--accent-2) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  color: #fff;
  border-radius: 26px;
  padding: 21px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px var(--accent-glow);
  margin-bottom: 14px;
}
.cum-card::before {
  content: "";
  position: absolute;
  top: -70px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.cum-card::after {
  content: "";
  position: absolute;
  bottom: -80px; left: -40px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cum-label { font-size: 11px; opacity: .88; letter-spacing: 2.5px; position: relative; }
.cum-value { display: block; font-size: 40px; font-weight: 800; letter-spacing: -1.6px; margin: 6px 0 12px; position: relative; }
.cum-meta { display: flex; gap: 18px; font-size: 11.5px; opacity: .9; position: relative; }
.cum-meta em { font-weight: 800; font-size: 13.5px; }

.goal-sort-bar { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px; }
.goal-sort-bar label { font-size: 11px; color: var(--ink-3); letter-spacing: .4px; flex: none; }
#goalSort {
  font: inherit;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 10px;
  max-width: 158px;
}
.goal-sort-tip { font-size: 11px; color: var(--ink-3); letter-spacing: .2px; }
.goal-surprise-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}
.goal-surprise-toggle input { accent-color: var(--accent); }

.goal-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 17px 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.goal-card.dragging { opacity: .55; box-shadow: 0 12px 26px -14px rgba(23, 26, 32, .35); transform: scale(.99); }
.goal-top { display: flex; align-items: center; gap: 11px; }
.goal-drag { font-size: 16px; line-height: 1; color: var(--ink-3); cursor: grab; user-select: none; padding: 2px 1px; }
.goal-drag:active { cursor: grabbing; }
.goal-emoji { font-size: 26px; line-height: 1; }
.goal-name { font-size: 14.5px; font-weight: 700; flex: 1; min-width: 0; letter-spacing: .2px; }
.goal-del { color: var(--ink-3); font-size: 16px; padding: 2px 4px; opacity: .6; }
.goal-bar { height: 7px; border-radius: 99px; background: var(--fill); overflow: hidden; margin: 13px 0 9px; }
.goal-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .5s ease; }
.goal-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); letter-spacing: .3px; }
.goal-meta b { color: var(--ink-2); font-weight: 800; }
.goal-card.done .goal-bar i { background: linear-gradient(90deg, #34c98a, #10a37f); }
.goal-card.done::before {
  content: "已达成";
  position: absolute;
  top: 16px; right: 44px;
  font-size: 10px;
  color: #0b8a6c;
  background: rgba(16, 163, 127, .1);
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 记录页目标列表：两列小方块（首页 #miniGoal 大卡不受影响） */
.goal-list .goal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.goal-list .goal-card { margin-bottom: 0; padding: 12px 11px; border-radius: 14px; overflow: hidden; }
.goal-list .goal-top { gap: 6px; }
.goal-list .goal-drag { font-size: 13px; padding: 0; }
.goal-list .goal-emoji { font-size: 20px; flex: none; }
.goal-list .goal-name {
  font-size: 12.5px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}
.goal-list .goal-del { font-size: 14px; padding: 0 2px; flex: none; }
.goal-list .goal-bar { height: 6px; margin: 10px 0 7px; }
.goal-list .goal-meta { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; line-height: 1.35; letter-spacing: 0; }
.goal-list .goal-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goal-list .goal-card.done::before { display: none; } /* 小方块里改为状态文字，避免压住删除按钮 */
.goal-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.goal-pager button {
  font-size: 11.5px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--fill);
  color: var(--ink-2);
}
.goal-pager button:disabled { opacity: .35; }
.goal-pager span { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.goal-done-toggle {
  display: block;
  margin: 12px auto 0;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .2px;
}
.goal-done-toggle:hover { color: var(--accent); }

.emoji-pick { display: flex; gap: 8px; margin-bottom: 6px; }
.emoji-pick button {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: var(--fill);
  font-size: 18px;
  transition: all .15s;
}
.emoji-pick button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-1px); }

.line-input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 13px 0;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.line-input::placeholder { color: #b9bfc9; }
.line-input.sm { border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; font-size: 13px; background: #fff; }
.mt10 { margin-top: 10px; }

.line-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0 4px;
  font-size: 13px;
  color: var(--ink-2);
}
.line-amount {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 8px 13px 7px;
  box-shadow: var(--shadow-sm);
}
.line-amount i { color: var(--accent); font-weight: 700; font-size: 14px; }
.line-amount input {
  width: 96px;
  border: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  outline: none;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.line-amount input::placeholder { color: #c4cad3; font-weight: 600; }

/* 存钱目标攒钱比例：创建时设定，沿用金额行/预设按钮的视觉语言 */
.goal-ratio-picks {
  margin-left: auto;
  display: flex;
  flex: 1 1 auto;
  max-width: 232px;
  gap: 5px;
}
.goal-ratio-picks button {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  padding: 0 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: all .15s;
}
.goal-ratio-picks button.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.goal-ratio-input { padding: 7px 9px 6px; }
.goal-ratio-input input { width: 76px; font-size: 15px; }
.goal-ratio-desc { margin: 1px 0 2px; font-size: 11px; line-height: 1.65; color: var(--ink-3); }
.goal-daily-row #goalDaily { margin-left: auto; width: 18px; height: 18px; accent-color: var(--accent); }
.goal-daily-desc { margin: 1px 0 2px; font-size: 11px; line-height: 1.65; color: var(--ink-3); }
.goal-ratio-badge {
  flex: none;
  padding: 3px 4px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.goal-daily-badge {
  flex: none;
  padding: 3px 4px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
/* 首页小目标文案带比例后缀时不折成竖排：主体省略，比例后缀常驻 */
#mgSub { display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; }
#mgSub .mg-sub-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mgSub .mg-sub-ratio { flex: none; color: var(--accent-deep); font-weight: 700; white-space: nowrap; }

.primary-btn {
  width: 100%;
  height: 47px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 16px;
  box-shadow: 0 16px 30px -16px var(--accent-glow);
  transition: transform .14s;
}
.primary-btn:active { transform: scale(.98); }
.primary-btn:disabled { opacity: .5; box-shadow: none; }

.ghost-btn {
  flex: none;
  height: 38px;
  padding: 0 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  background: #fff;
  font-weight: 600;
}
.ghost-btn.wide { width: 100%; height: 44px; margin-top: 10px; }

/* 节假日导入：从全宽描边按钮改成卡片底部的一行浅色引导条 */
.import-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 11px;
  line-height: 1.55;
  color: var(--ink-3);
}
.import-bar[hidden] { display: none; }
.import-bar > span { flex: 1; min-width: 0; }
.import-bar .link-btn { flex: none; white-space: nowrap; font-size: 11.5px; }

.mini-btn {
  flex: none;
  height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.mini-btn.ghost { background: var(--fill); color: var(--ink-2); }

/* ---------------- 我的 ---------------- */
.profile { display: flex; align-items: center; gap: 13px; padding: 17px 18px; }

.avatar {
  width: 54px; height: 54px;
  border-radius: 18px;
  flex: none;
  padding: 0;
  background: transparent;
  overflow: hidden;
  transition: transform .16s;
}
.avatar:active { transform: scale(.94); }
.avatar .av { width: 100%; height: 100%; border-radius: 18px; font-size: 26px; }

.av {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #ff8a80, #ef3f47);
  overflow: hidden;
  flex: none;
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-sm { width: 36px; height: 36px; font-size: 17px; border-radius: 12px; }
.av-md { width: 46px; height: 46px; font-size: 24px; border-radius: 15px; }
.av-lg { width: 66px; height: 66px; font-size: 32px; border-radius: 22px; }

.hue0 { background: linear-gradient(135deg, #ff9a90, #ef3f47); }
.hue1 { background: linear-gradient(135deg, #7ee8b2, #10a37f); }
.hue2 { background: linear-gradient(135deg, #ffd479, #de8a0b); }
.hue3 { background: linear-gradient(135deg, #b7a6ff, #7b61ff); }
.hue4 { background: linear-gradient(135deg, #8fd3ff, #2b7fff); }
.hue5 { background: linear-gradient(135deg, #ffb3d1, #f2518f); }

.profile-info { flex: 1; min-width: 0; }
/* 昵称改成纯文字展示，编辑统一收进「编辑资料」弹层 */
.nick-text {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  width: 100%;
  padding: 0;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bio-input {
  border: 0;
  background: transparent;
  font-size: 11.5px;
  color: var(--ink-3);
  width: 100%;
  outline: none;
  padding: 1px 0 2px;
}
.profile-sub { font-size: 10.5px; color: #b3bac4; letter-spacing: .3px; }
.edit-btn {
  flex: none;
  font-size: 11.5px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 11px;
  border-radius: 10px;
  font-weight: 700;
}

.free-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(120deg, rgba(16, 163, 127, .08), rgba(16, 163, 127, .02));
  border: 1px solid rgba(16, 163, 127, .18);
}
.fb-emoji { font-size: 18px; line-height: 1.4; }
.free-banner div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.free-banner b { font-size: 12.5px; color: #0b8a6c; letter-spacing: .2px; }
.free-banner span { font-size: 11px; color: var(--ink-2); line-height: 1.65; }
.free-banner .link-btn { color: #0b8a6c; flex: none; align-self: center; }

.form { padding: 16px 18px; }
.field { display: block; }
.f-label { display: block; font-size: 10.5px; color: var(--ink-3); letter-spacing: 1.8px; }
.f-input { display: flex; align-items: baseline; gap: 3px; margin-top: 3px; }
.f-input i { font-size: 18px; font-weight: 700; color: var(--accent); }
.f-input input {
  border: 0;
  background: transparent;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--ink);
  width: 100%;
  outline: none;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

.field-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line-2);
}
.field-row:first-child { border-top: 0; padding-top: 3px; }
.f-value { font-size: 16px; font-weight: 700; }
.f-select {
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.time-hit {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.chips {
  display: flex;
  gap: 6px;
  background: var(--fill);
  padding: 4px;
  border-radius: 16px;
}
.chips button {
  flex: 1;
  height: 36px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  transition: all .18s cubic-bezier(.22, .9, .3, 1);
}
.chips button.on {
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(23, 26, 32, .10);
  transform: translateY(-0.5px);
}
/* 固定工作日：明确告诉用户这排星期几可点；未选中态也做成可见的可点控件 */
.daychips-hint { margin: 9px 2px 6px; font-size: 11px; line-height: 1.5; color: var(--ink-3); }
#dayChips button { min-width: 0; padding: 0 2px; white-space: nowrap; }
#dayChips button:not(.on) {
  background: rgba(120, 130, 145, .08);
  box-shadow: inset 0 0 0 1px var(--line);
}
#dayChips button:not(.on):hover { background: var(--accent-soft); color: var(--accent); }

.sub-block { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .3px;
}
.link-btn { font-size: 11px; color: var(--accent); font-weight: 700; padding: 2px 0; letter-spacing: .5px; }
.link-btn.danger { color: #d9534f; display: block; margin: 12px auto 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tags span {
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.tags span i { margin-left: 5px; opacity: .5; }
.tags .empty { background: transparent; color: var(--ink-3); padding-left: 0; font-weight: 400; }
/* 日期超过 8 个时的展开/收起：小字、低视觉重量，不抢日期标签 */
.tags .tag-more {
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 2px;
  letter-spacing: 0;
}
.tags .tag-more:hover { color: var(--accent); }

/* 请假类型 */
.leave-chips { flex-wrap: wrap; gap: 5px; }
.leave-chips button {
  flex: 1 1 calc(33.33% - 5px);
  min-width: 0;
  height: auto;
  padding: 8px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border-radius: 12px;
  background: transparent;
}
.leave-chips button b {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -.2px;
  white-space: nowrap;
}
.leave-chips button i {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .2px;
}
.leave-chips button.on {
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 26, 32, .10);
  transform: none;
}
.leave-chips button.on b { color: var(--accent); font-weight: 800; }
.leave-chips button.on i { color: var(--accent); opacity: .65; }

.tags span.leave-tag {
  background: var(--fill);
  color: var(--ink-2);
  border-left: 3px solid var(--lc, #9aa1ad);
  padding-left: 8px;
  display: inline-flex;
  align-items: center;
}
.tags span.leave-tag.now { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.hidden-date { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }

/* 考勤日期面板：日期输入必须真实可见、可聚焦，不能用 0 尺寸/透明度隐藏 */
.date-modal {
  position: fixed;
  z-index: 120;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 0 0 100vmax rgba(15, 17, 22, .42), var(--shadow);
}
.date-modal[hidden] { display: none; }
.date-modal header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.date-modal header b { font-size: 15px; letter-spacing: .3px; }
.date-modal .modal-close { font-size: 15px; color: var(--ink-3); padding: 4px 6px; }
.date-modal > label { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }
.date-modal input[type="date"] {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fill);
  color: var(--ink);
  font-size: 15px;
}
.date-modal input[type="date"]:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }
.dm-kind { display: flex; gap: 8px; margin-top: 13px; }
.dm-kind[hidden] { display: none; }
.dm-kind label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
}
.dm-kind label:has(input:checked) { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.dm-kind input { accent-color: var(--accent); }
.dm-hint { min-height: 18px; margin: 10px 0 4px; font-size: 11px; line-height: 1.6; color: #d9534f; }
.dm-hint:empty { display: none; }
.tags span.unpaid-tag {
  background: rgba(217, 83, 79, .10);
  color: #d9534f;
  box-shadow: inset 0 0 0 1px rgba(217, 83, 79, .18);
}
.tags span.unpaid-tag em { font-style: normal; font-size: 10px; margin-right: 4px; opacity: .85; }

.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.themes button {
  padding: 14px 2px 11px;
  border-radius: 16px;
  background: var(--fill);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-2);
  position: relative;
  transition: all .18s cubic-bezier(.22, .9, .3, 1);
}
.themes button i {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--dot);
  display: block;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .12), inset 0 2px 3px rgba(255, 255, 255, .5);
}
.themes button.on {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 4px 14px rgba(23, 26, 32, .08);
  color: var(--accent);
  font-weight: 700;
  transform: translateY(-2px);
}
.themes button.on::after {
  content: "✓";
  position: absolute;
  top: 5px; right: 7px;
  font-size: 9px;
  color: var(--accent);
  font-weight: 800;
}

.seg {
  display: flex;
  gap: 5px;
  background: var(--fill);
  padding: 4px;
  border-radius: 16px;
}
.seg button {
  flex: 1;
  height: 40px;
  border-radius: 13px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  transition: all .18s cubic-bezier(.22, .9, .3, 1);
}
.seg button em { font-size: 10.5px; opacity: .7; margin-left: 2px; }
.seg button.on {
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(23, 26, 32, .10);
}

.mode-desc {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.7;
  letter-spacing: .2px;
}

.slider {
  width: 100%;
  height: 28px;
  accent-color: var(--accent);
  background: transparent;
}

.raise-row { display: flex; align-items: center; gap: 10px; }
.raise-row .slider { flex: 1; }
.raise-row b { font-size: 14px; color: var(--accent); font-weight: 800; min-width: 48px; text-align: right; }
.raise-out {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
  background: linear-gradient(120deg, var(--accent-soft), transparent 80%);
  border-radius: 14px;
  padding: 11px 14px;
  letter-spacing: .3px;
}
.raise-out em { color: var(--accent); font-weight: 800; }

/* 开关 */
.switch {
  width: 46px; height: 28px;
  border-radius: 99px;
  background: #dfe3ea;
  position: relative;
  transition: background .2s;
  flex: none;
}
.switch i {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .2s cubic-bezier(.22, .9, .3, 1);
}
.switch.on { background: var(--accent); }
.switch.on i { transform: translateX(18px); }

.achv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.achv {
  border-radius: 14px;
  background: var(--fill);
  padding: 11px 4px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all .2s;
}
.achv .ai { font-size: 22px; line-height: 1.1; }
.achv .an { font-size: 9.5px; color: var(--ink-2); line-height: 1.35; }
.achv.locked { opacity: .5; }
.achv.locked .ai { filter: grayscale(1); }
.achv.unlocked { background: var(--accent-soft); }
.achv.unlocked .an { color: var(--accent); font-weight: 700; }

/* 迁移卡 */
.migrate-card { transition: box-shadow .4s; }
.migrate-card.flash { box-shadow: 0 0 0 2px var(--accent-line), 0 16px 40px -20px var(--accent-glow); }
.migrate-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--fill);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
}
.migrate-code b {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--accent);
  transition: filter .2s;
}
.migrate-code b.blurred { filter: blur(5px); user-select: none; }
.migrate-actions { display: flex; gap: 8px; flex: none; }

.list-links { padding: 6px 18px; }
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0;
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
}
.link-row:last-child { border-bottom: 0; }
.link-row em { color: var(--ink-3); }

.footer-note {
  text-align: center;
  font-size: 11px;
  color: #b3bac4;
  line-height: 2;
  padding: 16px 0 4px;
  letter-spacing: 1px;
}
.footer-note span { font-size: 10px; opacity: .8; }

/* ---------------- 工友页 ---------------- */
.my-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(125deg, #fff, #fbfcfe);
}
.mcc-main { display: flex; flex-direction: column; gap: 1px; }
.mcc-label { font-size: 10px; color: var(--ink-3); letter-spacing: 1.6px; }
.mcc-code { font-size: 26px; font-weight: 800; letter-spacing: 5px; color: var(--accent); }
.mcc-hint { font-size: 10.5px; color: var(--ink-3); }

.search-result { margin-top: 6px; }
.sr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
}
.sr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-main b { font-size: 13.5px; }
.sr-main span { font-size: 10.5px; color: var(--ink-3); }
.mini-hint { font-size: 11.5px; color: var(--ink-3); padding: 10px 0; margin: 0; }
.mini-hint.center { text-align: center; }

.friend-seg { margin: 4px 0 14px; }

.friend-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 15px;
  margin-bottom: 10px;
}
.fc-main { flex: 1; min-width: 0; }
.fc-top { display: flex; align-items: center; gap: 6px; }
.fc-top b { font-size: 14px; letter-spacing: .2px; }
.fc-state { margin-left: auto; font-size: 10px; color: var(--ink-3); display: flex; align-items: center; gap: 3px; }
.online {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, .15);
}
.fc-bar { height: 5px; border-radius: 99px; background: var(--fill); overflow: hidden; margin: 8px 0 7px; }
.fc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .5s; }
.fc-meta { display: flex; gap: 10px; font-size: 10px; color: var(--ink-3); }
.fc-act {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 13px;
  background: var(--accent-soft);
  font-size: 17px;
  transition: transform .14s;
}
.fc-act:active { transform: scale(.88); }

.badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #f04438;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.req-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
}
.req-name { flex: 1; font-size: 13px; font-weight: 600; }

.conv-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  margin-bottom: 9px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.cv-main { flex: 1; min-width: 0; }
.cv-top { display: flex; align-items: baseline; gap: 8px; }
.cv-top b { font-size: 13.5px; }
.cv-top span { margin-left: auto; font-size: 10px; color: #b9c0ca; }
.cv-last {
  font-size: 11.5px;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-list .empty {
  display: block;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  padding: 24px 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hint-note {
  text-align: center;
  font-size: 10.5px;
  color: #b3bac4;
  line-height: 1.9;
  padding: 8px 12px 0;
  letter-spacing: .3px;
}

/* 推荐工友 */
.suggest-card { padding-bottom: 15px; }
.suggest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: linear-gradient(180deg, #fbfcfe, #fff);
  border: 1px solid var(--line-2);
  border-radius: 17px;
  padding: 14px 10px 11px;
  text-align: center;
}
.sg-item b {
  font-size: 12.5px;
  margin-top: 3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sg-item > span:not(.av) { font-size: 9.5px; color: var(--ink-3); letter-spacing: .2px; }
.sg-item .mini-btn {
  width: 100%;
  margin-top: 7px;
  height: 28px;
  font-size: 11.5px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* 月薪排行 */
.salary-rank li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.salary-rank li:last-child { border-bottom: 0; }
.salary-rank .sr-rank {
  width: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-3);
  flex: none;
}
.salary-rank .sr-rank.top { font-size: 15px; }
.salary-rank .sr-name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-tag {
  display: inline-block;
  font-size: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 1px 5px;
  margin-left: 5px;
  font-weight: 700;
  vertical-align: 1px;
}
.salary-rank .sr-salary {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.2px;
}
.salary-rank li.me .sr-name { color: var(--accent); font-weight: 700; }
.salary-rank li.me .sr-salary { color: var(--accent); }
.salary-rank .empty {
  justify-content: center;
  color: var(--ink-3);
  font-size: 12px;
  padding: 16px 0 6px;
  border: 0;
}

/* ---------------- 底栏 ---------------- */
.tabbar {
  position: fixed;
  bottom: calc(10px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  display: flex;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, .8);
  outline: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 7px 5px;
  box-shadow: 0 12px 36px -12px rgba(23, 26, 32, .22);
  z-index: 30;
}
.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #a8aeb9;
  transition: color .2s, background .2s, transform .2s;
  border-radius: 16px;
  padding: 5px 0 4px;
  margin: 0 1px;
  position: relative;
}
.tabbar svg { width: 21px; height: 21px; }
.tabbar span { font-size: 9px; letter-spacing: .4px; font-weight: 600; }
.tabbar button.on {
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.tabbar button.on span { font-weight: 800; }
.tab-dot {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -20px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: #f04438;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}
.tab-dot[hidden] { display: none; }

/* ---------------- 提示 / 弹层 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(112px + var(--safe-b));
  transform: translate(-50%, 10px);
  background: rgba(23, 26, 32, .92);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 99px;
  opacity: 0;
  pointer-events: none;
  transition: all .28s cubic-bezier(.22, .9, .3, 1);
  z-index: 90;
  max-width: 78vw;
  text-align: center;
  line-height: 1.5;
  letter-spacing: .3px;
  box-shadow: 0 16px 40px -12px rgba(23, 26, 32, .4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 17, 22, .42); backdrop-filter: blur(3px); animation: fadeIn .22s ease; }
.modal-body {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: 30px 30px 0 0;
  padding: 18px 16px calc(22px + var(--safe-b));
  max-height: 88vh;
  overflow-y: auto;
  animation: sheetUp .34s cubic-bezier(.22, .9, .3, 1);
  box-shadow: 0 -20px 60px rgba(23, 26, 32, .2);
}
.modal-body::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 34px; height: 4px;
  border-radius: 99px;
  background: rgba(23, 26, 32, .14);
  transform: translateX(-50%);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- 目标达成惊喜：全屏沉浸彩带雨，不复用 #modal ---------------- */
.goal-party { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.gp-mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 122, 92, .42), transparent 44%),
    linear-gradient(165deg, rgba(24, 20, 32, .88), rgba(12, 16, 24, .95));
  backdrop-filter: blur(6px);
  animation: fadeIn .22s ease;
}
.gp-confetti { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.gp-confetti span {
  position: absolute;
  top: -24px;
  width: 7px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, .25);
  animation: gpFall 3.2s linear infinite;
}
@keyframes gpFall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift, 0px), 110vh, 0) rotate(720deg); }
}
.gp-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 100%;
  overflow-y: auto;
  padding: 16px 10px calc(18px + var(--safe-b));
  text-align: center;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .38);
  animation: gpPop .42s cubic-bezier(.22, .9, .3, 1);
}
@keyframes gpPop { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
.gp-emoji {
  font-size: clamp(72px, 20vw, 138px);
  line-height: 1;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35));
  animation: gpBounce 1.1s ease-in-out infinite alternate;
}
@keyframes gpBounce {
  from { transform: translateY(0) rotate(-6deg) scale(1); }
  to { transform: translateY(-16px) rotate(6deg) scale(1.08); }
}
#gpTitle {
  margin: 14px 0 10px;
  font-size: clamp(38px, 10.5vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  color: #fff3c4;
  background: linear-gradient(100deg, #fff3c4 0%, #ffd166 38%, #ffffff 68%, #ff9b8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 26px rgba(255, 90, 70, .45));
}
.gp-desc {
  max-width: 420px;
  margin: 0 auto 22px;
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.8;
  color: rgba(255, 255, 255, .94);
}
.gp-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 430px;
  margin: 0 auto 18px;
  padding: 11px 14px;
  text-align: left;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.gp-opt input { flex: none; margin-top: 2px; accent-color: #ffd166; }
#gpOk {
  display: block;
  max-width: 280px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .4);
  background: linear-gradient(100deg, rgba(255, 209, 102, .95), rgba(255, 122, 92, .95));
  color: #2a1a12;
  font-weight: 800;
  box-shadow: 0 16px 36px -14px rgba(255, 140, 90, .8);
  backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: reduce) {
  .gp-confetti span, .gp-emoji, .gp-card { animation: none; }
}

.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px 14px; }
.modal-head h3 { font-size: 15.5px; letter-spacing: .3px; }
.modal-close { color: var(--ink-3); font-size: 15px; padding: 5px; }
.modal-content img { width: 100%; border-radius: 18px; display: block; box-shadow: var(--shadow); }
.modal-hint { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 12px; letter-spacing: .3px; }

/* 摸鱼结算 */
.result-card { text-align: center; padding: 26px 18px; }
.rc-emoji { font-size: 40px; line-height: 1.1; }
.rc-sub { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.rc-amount { font-size: 38px; font-weight: 800; color: var(--accent); letter-spacing: -1.4px; margin: 6px 0 4px; }
.rc-tip { font-size: 11.5px; color: var(--ink-3); }

/* 头像编辑 */
.av-preview { display: flex; justify-content: center; padding: 6px 0 18px; }
.avatar-pick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 8px; }
.avatar-pick button {
  aspect-ratio: 1;
  border-radius: 13px;
  background: var(--fill);
  font-size: 20px;
  line-height: 1;
  transition: all .15s;
}
.avatar-pick button.on {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.6px var(--accent);
  transform: translateY(-1px);
}
.hue-pick { display: flex; gap: 9px; margin-top: 9px; }
.hue-pick button {
  width: 30px; height: 30px;
  border-radius: 50%;
  transition: transform .15s, box-shadow .15s;
}
.hue-pick button:nth-child(1) { background: linear-gradient(135deg, #ff9a90, #ef3f47); }
.hue-pick button:nth-child(2) { background: linear-gradient(135deg, #7ee8b2, #10a37f); }
.hue-pick button:nth-child(3) { background: linear-gradient(135deg, #ffd479, #de8a0b); }
.hue-pick button:nth-child(4) { background: linear-gradient(135deg, #b7a6ff, #7b61ff); }
.hue-pick button:nth-child(5) { background: linear-gradient(135deg, #8fd3ff, #2b7fff); }
.hue-pick button:nth-child(6) { background: linear-gradient(135deg, #ffb3d1, #f2518f); }
.hue-pick button.on {
  transform: scale(1.12);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink);
}

/* 加油 */
.cheer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cheer-grid button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 13px;
  border-radius: 15px;
  background: var(--card);
  border: 1px solid var(--line-2);
  text-align: left;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}
.cheer-grid button em { font-size: 18px; flex: none; }
.cheer-grid button.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* 好友主页 */
.fd-head { display: flex; align-items: center; gap: 13px; padding: 4px 4px 14px; }
.fd-nick { font-size: 18px; font-weight: 800; display: block; letter-spacing: .3px; }
.fd-sub { font-size: 11px; color: var(--ink-3); display: block; margin-top: 2px; }
.fd-bio { font-size: 12px; color: var(--ink-2); margin: 0 4px 12px; line-height: 1.7; }
.fd-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 14px 16px;
}
.fd-stats div { display: flex; flex-direction: column; gap: 2px; }
.fd-stats span { font-size: 10px; color: var(--ink-3); letter-spacing: 1.2px; }
.fd-stats b { font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.fd-week {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 74px;
  margin-top: 14px;
  padding: 0 6px;
}
.wb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wb i { width: 100%; max-width: 22px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); display: block; }
.wb span { font-size: 9px; color: var(--ink-3); }
.fd-mood {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 15px;
  padding: 11px 14px;
  font-size: 15px;
}
.fd-mood span { font-size: 12px; color: var(--ink-2); margin-left: 6px; }
.fd-achv { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; padding: 0 2px; }
.achv-chip {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 17px;
}
.fd-actions { margin-top: 16px; }
.fd-actions .primary-btn { margin-top: 0; }

/* ---------------- 私信面板 ---------------- */
.chat {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  animation: chatIn .28s cubic-bezier(.22, .9, .3, 1);
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { transform: translateX(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
}
.chat-back {
  width: 34px; height: 34px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--fill);
  color: var(--ink-2);
}
.chat-title { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.chat-title b { font-size: 15px; }
.chat-title span { font-size: 10.5px; color: var(--ink-3); }
.chat-cheer {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px 12px;
  border-radius: 12px;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.chat-empty { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 40px; }
.chat-day { text-align: center; font-size: 10px; color: var(--ink-3); margin: 6px 0 2px; }
.chat-bubble {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
  word-break: break-word;
}
.chat-bubble.mine {
  align-self: flex-end;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
}
.chat-bubble.cheer {
  background: linear-gradient(120deg, #fff5e6, #fff);
  border: 1px solid rgba(222, 138, 11, .25);
  color: #8a5a00;
  font-weight: 600;
}
.chat-bubble.cheer.mine { background: linear-gradient(120deg, #fff5e6, #ffe9c9); color: #8a5a00; }
.chat-bubble.cheer em { font-size: 15px; margin-right: 5px; }
.chat-sys {
  align-self: center;
  font-size: 10.5px;
  color: var(--ink-3);
  background: rgba(23, 26, 32, .05);
  padding: 5px 12px;
  border-radius: 99px;
  max-width: 80%;
  text-align: center;
}
.chat-foot {
  display: flex;
  gap: 9px;
  padding: 10px 14px calc(12px + var(--safe-b));
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid var(--line-2);
}
.chat-input {
  flex: 1;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}
.chat-send {
  flex: none;
  height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}

/* ---------------- 首次引导 ---------------- */
.ob {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  justify-content: center;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .3s;
}
.ob[hidden] { display: none; }
.ob.on { opacity: 1; }
.ob.hide { opacity: 0; pointer-events: none; }

.ob-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + var(--safe-b));
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ob-dots { display: flex; gap: 6px; justify-content: center; padding: 4px 0 26px; }
.ob-dots i {
  width: 24px; height: 3px;
  border-radius: 99px;
  background: rgba(23, 26, 32, .1);
  transition: background .25s, width .25s;
}
.ob-dots i.on { background: var(--accent); width: 30px; }

.ob-step { display: none; flex: 1; }
.ob-step.is-on { display: block; animation: obIn .34s cubic-bezier(.22, .9, .3, 1); }
@keyframes obIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ob-hero { display: flex; justify-content: center; padding: 10px 0 20px; }
.ob-title { font-size: 25px; font-weight: 800; letter-spacing: -.6px; line-height: 1.3; }
.ob-sub { font-size: 12.5px; color: var(--ink-3); margin: 7px 0 20px; line-height: 1.75; }
.ob-tip { font-size: 11px; color: var(--ink-3); margin-top: 14px; line-height: 1.7; }

.ob-free {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(120deg, rgba(16, 163, 127, .09), rgba(16, 163, 127, .02));
  border: 1px solid rgba(16, 163, 127, .18);
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 20px;
}
.ob-free b { font-size: 12.5px; color: #0b8a6c; }
.ob-free span { font-size: 11.5px; color: var(--ink-2); line-height: 1.7; }
.ob-free span em { color: var(--accent); font-weight: 800; letter-spacing: 1px; }
.ob-free-2 { margin: 18px 0 0; }

.ob-field { margin-bottom: 20px; }
.ob-field > span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 1.6px; margin-bottom: 8px; }
.ob-field input {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s;
}
.ob-field input:focus { border-color: var(--accent-line); }

.ob-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
  border-bottom: 2px solid var(--accent-line);
  padding: 4px 2px 10px;
}
.ob-big i { font-size: 26px; font-weight: 800; color: var(--accent); }
.ob-big input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.6px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 0;
}
.ob-big input::placeholder { color: #d5dae2; }

.ob-quick { display: flex; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.ob-quick button {
  flex: 1;
  min-width: 64px;
  height: 38px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  transition: all .16s;
}
.ob-quick button.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }

.ob-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.ob-time {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
}
.ob-time span { font-size: 10.5px; color: var(--ink-3); letter-spacing: 1.4px; }
.ob-time input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  padding: 0;
  width: 100%;
  letter-spacing: -.4px;
}

.ob-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ob-chips button {
  flex: 1;
  min-width: 62px;
  height: 38px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .16s;
}
.ob-chips button.on { background: var(--accent-soft); color: var(--accent); font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--accent); }

.ob-days { margin-bottom: 22px; }

.ob-result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-result div {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}
.ob-result span { font-size: 10.5px; color: var(--ink-3); letter-spacing: 1.4px; }
.ob-result b { font-size: 21px; font-weight: 800; letter-spacing: -.6px; }

.ob-foot {
  display: flex;
  gap: 10px;
  padding-top: 26px;
  margin-top: auto;
}
.ob-back {
  flex: none;
  width: 96px;
  height: 47px;
  border-radius: 16px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}
.ob-next { flex: 1; margin-top: 0; }

/* ---------------- 加载 ---------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 1px;
  transition: opacity .35s;
}
.boot.hide { opacity: 0; pointer-events: none; }
.boot-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 金币雨特效 ---------------- */
.coin {
  position: fixed;
  z-index: 25;
  font-size: 15px;
  pointer-events: none;
  animation: coinUp 1.5s ease-out forwards;
}
@keyframes coinUp {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-120px) scale(1.15) rotate(20deg); }
}

body.crazy .hero-deco { animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: .16; }
  50% { transform: scale(1.14); opacity: .26; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (min-width: 520px) {
  body { padding: 20px 0; }
  .app { border-radius: 34px; min-height: calc(100dvh - 40px); }
  .nav { border-radius: 34px 34px 0 0; }
  .chat { top: 20px; bottom: 20px; border-radius: 30px; overflow: hidden; }
}

/* 时间行的可点击指示 */
.field-row .chev {
  font-size: 15px;
  color: #c3c9d3;
  margin-left: 9px;
  font-weight: 400;
}
.field-row:active .chev { color: var(--accent); }

/* 月历上的请假标记 */
.cal-cell .lvd {
  position: absolute;
  left: 5px; top: 5px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lc, #9aa1ad);
  z-index: 1;
}

.cal-leave {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.cal-leave b { color: var(--accent); font-weight: 800; }

/* 月历上的加班标记（菱形，和请假的圆点区分） */
.cal-cell .otd {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: #e8a020;
  transform: rotate(45deg);
  z-index: 1;
}

/* 首页「今天加班」按钮 */
.ot-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1px dashed var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: background .18s, transform .12s;
}
.ot-btn:active { background: var(--accent-line); transform: scale(.99); }
.ot-btn[hidden] { display: none; }

/* 记加班弹窗 */
.ot-editor { padding-top: 4px; }
.ot-dur { display: flex; align-items: center; gap: 7px; }
.ot-dur input {
  width: 66px;
  height: 48px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  outline: none;
  padding: 0;
}
.ot-dur input:focus { border-color: var(--accent-line); }
.ot-dur em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ot-editor .mini-hint { padding: 0 0 14px; }
.ot-editor .primary-btn { margin-top: 4px; }

/* 6 个底部入口时收紧一点 */
.tabbar svg { width: 20px; height: 20px; }
.tabbar span { font-size: 8.5px; letter-spacing: .2px; }
.tabbar button { padding: 5px 0 3px; margin: 0; }

/* ---------- 计薪方式切换 ---------- */
.pay-seg { margin-bottom: 14px; }
.pay-seg button { font-size: 12px; }
.f-sub {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0;
  margin-top: 3px;
}

/* ---------- 首页计件录件条 ---------- */
.piece-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 7px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.piece-bar[hidden] { display: none; }
.piece-bar .pb-btn {
  width: 52px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  transition: transform .1s, background .16s;
}
.piece-bar .pb-btn.plus {
  flex: 1;
  width: auto;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  letter-spacing: .5px;
}
.piece-bar .pb-btn:active { transform: scale(.95); }
.piece-bar .pb-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}
.piece-bar .pb-mid b {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.piece-bar .pb-mid span { font-size: 9.5px; color: var(--ink-3); }

/* ---------- 成就分类 + 分页 ---------- */
.achv-cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}
.achv-cats::-webkit-scrollbar { display: none; }
.achv-cats button {
  flex: none;
  padding: 6px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px;
  white-space: nowrap;
}
.achv-cats button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}
.achv-cats button em {
  font-style: normal;
  opacity: .65;
  margin-left: 3px;
  font-size: 10px;
}
.achv-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.achv-pager[hidden] { display: none; }
.achv-pager .pg-btn {
  flex: 1;
  padding: 9px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
}
.achv-pager .pg-btn:disabled { opacity: .38; }
.achv-pager .pg-info {
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* 目标并进记录页后，表单收在卡片里 */
.goal-add { margin-top: 14px; }
.goal-add .primary-btn { margin-top: 10px; }

/* 月历计件角标：跟在金额下面，件数一眼可见 */
.cal-cell .qty {
  font-size: 8px;
  line-height: 1;
  color: var(--accent);
  font-weight: 800;
  opacity: .8;
  position: relative;
  z-index: 1;
  letter-spacing: -.2px;
}

/* ---------- 外快 ---------- */
.extra-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  transition: background .16s, transform .1s;
}
.extra-bar:active { background: var(--fill); transform: scale(.995); }
.extra-bar .eb-label {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .6px;
}
.extra-bar b {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.extra-bar em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  margin-left: auto;
}
.extra-bar .eb-plus {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.extra-list { list-style: none; margin: 0; padding: 0; }
.extra-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.extra-list li:last-child { border-bottom: none; }
.extra-list .ex-day {
  flex: none;
  font-size: 10.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.extra-list .ex-tag {
  flex: none;
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 9.5px;
  background: color-mix(in srgb, var(--ec, #9aa1ad) 14%, #fff);
  color: var(--ec, #9aa1ad);
  font-weight: 700;
}
.extra-list .ex-title {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.extra-list .ex-amt {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.extra-list .ex-del {
  flex: none;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--fill);
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1;
}
.extra-list .empty {
  padding: 14px 0;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  border: none;
}
.ghost-btn.wide { width: 100%; margin-top: 10px; }

.ex-editor .chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ex-editor .chip-row button {
  padding: 7px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--ink-2);
}
.ex-editor .chip-row button.on {
  background: color-mix(in srgb, var(--ec, #7b61ff) 14%, #fff);
  border-color: color-mix(in srgb, var(--ec, #7b61ff) 42%, #fff);
  color: var(--ec, #7b61ff);
  font-weight: 700;
}

/* hidden 属性优先于组件自身的 display，避免「切换计薪方式后残留输入框」 */
[hidden] { display: none !important; }

/* ============ 考勤：请假 / 加班弹层里的类型与倍率 ============ */
.chip-row.leave-pick,
.chip-row.ot-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.leave-pick button,
.ot-rates button {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .15s, border-color .15s, color .15s;
}
.leave-pick button i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 500;
}
.leave-pick button.on,
.ot-rates button.on {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border-color: color-mix(in srgb, var(--accent) 40%, #fff);
  color: var(--accent);
}
.leave-pick button.on i { color: var(--accent); opacity: .7; }
.tags span.leave-tag em.ot-rate {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
  margin-left: 5px;
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(232, 160, 32, .12);
}
.cal-cell.prestart { opacity: .45; }
.cal-cell.prestart .m { color: var(--ink-3); }

/* ============ 首页摸鱼卡 v2：实时到账 + 今日/本月/累计 ============ */
.fish-head h3 { display: flex; align-items: center; gap: 8px; }
.fish-level {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 2px 7px;
  border-radius: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.fish-live {
  margin-top: 10px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255, 255, 255, .92));
  border: 1px solid var(--accent-line);
}
.fl-live-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-deep, var(--accent));
  letter-spacing: 1px;
}
.fl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: flPulse 1.1s ease-in-out infinite;
}
@keyframes flPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.8); }
}
.fl-live-amt {
  display: block;
  margin: 2px 0 4px;
  font-size: 38px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.fl-live-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.fish-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 10px;
}
.fish-grid > div {
  background: var(--fill);
  border-radius: 13px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: center;
}
.fish-grid span { font-size: 10.5px; color: var(--ink-3); letter-spacing: .6px; }
.fish-grid b {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}
.fish-grid em { font-style: normal; font-size: 10px; color: var(--ink-3); }
.fish-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.fish-presets button {
  flex: 1;
  padding: 8px 4px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: transform .12s, border-color .15s, color .15s;
}
.fish-presets button.ghost { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.fish-presets button:active { transform: scale(.96); }

/* ============================================================
   摸鱼 v7：到点自动收工 + 摸鱼小手机 + 4 个小玩法
   ============================================================ */

/* 新增组件里带 display:flex 的，hidden 必须压得住 */
.fish-cap-row[hidden], .fish-phone[hidden], .fp-lock[hidden], .fp-home[hidden],
.fp-coin-app[hidden], .fp-luck[hidden], .fp-notice[hidden], .fp-stamp[hidden],
.boss-overlay[hidden], .fish-mini-tick[hidden] { display: none !important; }

/* 卡头小胶囊：到点自动收工 */
.fish-cap-hint {
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  padding: 2px 8px;
  white-space: nowrap;
  letter-spacing: .3px;
}

/* 摸鱼按钮：下班后的「今天收工了」（只做视觉，点下去由服务端给友好文案） */
.fish-btn.done {
  background: var(--fill);
  border-style: dashed;
  border-color: var(--line);
  color: var(--ink-2);
  opacity: .62;
}

/* 实时行第三项：距自动收工 */
#fishLiveCap { color: var(--accent-deep, var(--accent)); font-weight: 700; }

/* 上限进度条：已摸秒数 / 可摸秒数 */
.fish-cap-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.fish-cap-bar { flex: 1; height: 3px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.fish-cap-bar i { display: block; height: 100%; width: 0; min-width: 2px; background: var(--accent); border-radius: 99px; }
.fish-cap-text {
  font-size: 10px;
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: .2px;
}

/* 摸鱼记录的「自动收工」小标签 */
.fish-list .fl-auto {
  font-size: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  padding: 1px 6px;
  white-space: nowrap;
  flex: none;
}

/* ---------------- 玩具条：次级入口，主按钮仍是上面的红色大块 ---------------- */
.fish-toy-bar { display: flex; gap: 8px; margin: 10px 0 4px; }
.fish-toy-bar button {
  flex: 1;
  min-height: 44px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  touch-action: manipulation;
  transition: transform .12s, opacity .15s;
}
.fish-toy-bar button:active { transform: scale(.96); }
.fish-toy-bar button:disabled { opacity: .38; }

/* ---------------- 摸鱼小手机（组件级深色令牌，不污染全局） ---------------- */
.fish-phone { display: flex; flex-direction: column; align-items: center; margin: 12px 0 2px; }
.fp-device {
  --fp-frame: #23262e;
  --fp-screen: #10131a;
  --fp-screen-2: #1b2030;
  --fp-ink: #f2f4f8;
  --fp-ink-2: rgba(242, 244, 248, .62);
  --fp-line: rgba(255, 255, 255, .10);
  position: relative;
  width: 208px;
  height: 356px;
  border: 6px solid var(--fp-frame);
  border-radius: 34px;
  background: var(--fp-frame);
  box-shadow: var(--shadow);
}
.fp-notch {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 62px;
  height: 13px;
  border-radius: 0 0 11px 11px;
  background: var(--fp-frame);
  z-index: 6;
}
.fp-screen {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: var(--fp-screen);
  color: var(--fp-ink);
  overflow: hidden;
}

/* 状态栏：金额是 #fishLiveAmt 的镜像 */
.fp-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 24px 12px 5px;
  font-size: 10px;
  color: var(--fp-ink-2);
  z-index: 5;
  touch-action: manipulation;
}
.fp-clock { font-variant-numeric: tabular-nums; }
.fp-money {
  margin-left: auto;
  color: var(--fp-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.fp-money.bump { animation: fpBump .13s ease; }
@keyframes fpBump { 50% { transform: scale(1.1); } }
.fp-icons { display: flex; align-items: flex-end; gap: 3px; }
.fp-icons i { width: 3px; background: var(--fp-ink-2); border-radius: 1px; }
.fp-icons i:nth-child(1) { height: 4px; }
.fp-icons i:nth-child(2) { height: 7px; }
.fp-icons i:nth-child(3) {
  width: 11px;
  height: 7px;
  border-radius: 2px;
  border: 1px solid var(--fp-ink-2);
  background: none;
}

/* 锁屏 */
.fp-lock {
  position: absolute;
  inset: 40px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  text-align: center;
}
.fp-lock-time {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.fp-lock-amt { font-size: 11px; color: var(--fp-ink-2); letter-spacing: .4px; }
.fp-unlock {
  margin-top: 12px;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 99px;
  border: 1px solid var(--fp-line);
  background: var(--fp-screen-2);
  color: var(--fp-ink);
  font-size: 11px;
  letter-spacing: 1px;
  touch-action: manipulation;
}

/* 收工印章 */
.fp-stamp {
  border: 2px solid var(--accent-2);
  color: var(--accent-2);
  border-radius: 9px;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 3px;
  transform: rotate(-12deg);
  opacity: .92;
}
.fp-stamp.go { animation: fpStamp .18s ease-out; }
@keyframes fpStamp {
  from { transform: rotate(-12deg) scale(2.4); opacity: 0; }
  to { transform: rotate(-12deg) scale(1); opacity: .92; }
}

/* 桌面 */
.fp-home { position: absolute; inset: 40px 0 0; display: flex; flex-direction: column; padding: 6px 12px; }
.fp-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; margin-top: 10px; }
.fp-apps button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border-radius: 12px;
  background: none;
  color: var(--fp-ink-2);
  font-size: 9.5px;
  touch-action: manipulation;
}
.fp-apps button:active { transform: scale(.94); }
.fp-apps em {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--fp-screen-2);
  border: 1px solid var(--fp-line);
  font-size: 21px;
}
.fp-quote {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin: 6px 0;
  font-size: 10.5px;
  color: var(--fp-ink-2);
}
.fp-quote span { white-space: nowrap; animation: fpQuote 8s linear both; }
@keyframes fpQuote {
  from { transform: translateX(70%); }
  to { transform: translateX(-120%); }
}
.fp-homebar {
  align-self: center;
  width: 96px;
  height: 22px;
  padding: 8px 0;
  border: 0;
  border-radius: 99px;
  background: var(--fp-ink-2);
  background-clip: content-box;
  touch-action: manipulation;
}

/* 金币雨 */
.fp-coin-app { position: absolute; inset: 40px 0 0; display: flex; flex-direction: column; padding: 6px 10px 8px; }
.fp-coin-stage {
  position: relative;
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--fp-line);
  background: var(--fp-screen-2);
  overflow: hidden;
  touch-action: manipulation;
}
/* 掉落的金币：只动 transform，不动 top/left */
.fp-coin {
  position: absolute;
  top: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  font-size: 22px;
  will-change: transform;
  touch-action: manipulation;
}
.fp-coin-time {
  margin-top: 6px;
  text-align: center;
  font-size: 10.5px;
  color: var(--fp-ink-2);
  font-variant-numeric: tabular-nums;
}
.fp-coin-combo {
  min-height: 17px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--accent-2);
}
.fp-coin-earned {
  margin-bottom: 2px;
  text-align: center;
  font-size: 10px;
  color: var(--fp-ink-2);
  font-variant-numeric: tabular-nums;
}
.fp-coin-close {
  align-self: center;
  min-height: 40px;
  margin-top: 6px;
  padding: 0 26px;
  border-radius: 99px;
  border: 1px solid var(--fp-line);
  background: var(--fp-screen-2);
  color: var(--fp-ink);
  font-size: 11.5px;
  touch-action: manipulation;
}

/* 减弱动效下的静态金币：看得见、点得着，90ms 缩放反馈 */
.fp-coin-static {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--fp-screen);
  border: 1px solid var(--fp-line);
  color: var(--fp-ink);
  display: grid;
  place-items: center;
  font-size: 26px;
  touch-action: manipulation;
  transition: transform .09s ease;
}
.fp-coin-static em {
  font-size: 9px;
  color: var(--fp-ink-2);
  letter-spacing: 1px;
}
.fp-coin-static.hit { transform: scale(.92); }

/* 金币雨双口径：投影分（纯娱乐）与真实工资分开显示 */
.fpc-proj {
  display: block;
  font-size: 9.5px;
  color: var(--fp-ink-2);
  font-variant-numeric: tabular-nums;
}
.fpc-real {
  display: block;
  font-size: 10.5px;
  color: var(--fp-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* 今日手气 */
.fp-luck {
  position: absolute;
  inset: 40px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  text-align: center;
}
.fp-luck-card {
  width: 126px;
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  border: 1px solid var(--fp-line);
  background: var(--fp-screen-2);
  color: var(--fp-ink);
  font-size: 34px;
  touch-action: manipulation;
}
.fp-luck-card.done {
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-color: var(--accent-line);
  font-size: 12px;
}
.fp-luck-card.done b { font-size: 12px; color: var(--accent-2); letter-spacing: 0; line-height: 1.3; }
.fp-luck-today { display: block; font-size: 9.5px; color: var(--fp-ink-2); font-variant-numeric: tabular-nums; }
.fp-luck-today[hidden] { display: none; }
.fp-luck-card.done em { font-size: 10.5px; color: var(--fp-ink-2); }
.fp-luck-card.flip { animation: fpFlip .4s ease; }
@keyframes fpFlip {
  from { transform: rotateY(180deg); }
  to { transform: rotateY(0); }
}
.fp-luck-text { max-width: 172px; margin: 0; font-size: 10px; line-height: 1.6; color: var(--fp-ink-2); }
.fp-luck-draw {
  min-height: 40px;
  padding: 0 24px;
  border-radius: 99px;
  border: 1px solid var(--fp-line);
  background: var(--fp-screen-2);
  color: var(--fp-ink);
  font-size: 11.5px;
  touch-action: manipulation;
}

/* 通知中心 */
.fp-notice {
  position: absolute;
  inset: 40px 0 0;
  z-index: 4;
  padding: 6px 10px;
  background: var(--fp-screen);
  overflow-y: auto;
  animation: fpSlide .18s ease-out;
}
.fp-notice li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--fp-line);
  font-size: 10.5px;
  color: var(--fp-ink-2);
}
.fp-notice li span { font-variant-numeric: tabular-nums; }
.fp-notice li em { flex: 1; color: var(--fp-ink); }
.fp-notice li:first-child { animation: fpIn .18s ease-out; }
@keyframes fpIn {
  from { transform: translateY(-8px); opacity: 0; }
}
@keyframes fpSlide {
  from { transform: translateY(100%); }
}

.fp-phone-hint {
  margin: 8px 0 0;
  text-align: center;
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: .5px;
}

/* ---------------- 老板来了：全屏伪装（冷灰白 + 等宽表格） ---------------- */
/* z-index 200：必须压过全屏鱼缸(130)、捞一网(140)、老板键提示(150)，
   否则在游戏里按老板键，伪装页会被挡在下面 —— 那就等于没有老板键 */
.boss-overlay { position: fixed; inset: 0; z-index: 200; display: flex; padding: 20px; background: var(--bg); }
.boss-sheet {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.boss-overlay.on .boss-sheet { animation: fadeIn .18s ease; }
.boss-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 62px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .3px;
}
#bossProgress {
  position: relative;
  flex: none;
  width: 104px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
#bossProgress i {
  position: absolute;
  inset: 0;
  background: var(--ink-2);
  transform: scaleX(0);
  transform-origin: left;
}
.boss-overlay.on #bossProgress i { animation: bossBar 2s linear forwards; }
@keyframes bossBar { to { transform: scaleX(1); } }
.boss-grid {
  display: grid;
  grid-template-columns: 1.52fr 1.22fr .5fr .6fr .78fr;
  grid-template-rows: auto;
  grid-auto-rows: minmax(21px, 1fr);
  align-content: start;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-family: ui-monospace, Menlo, Consolas, "PingFang SC", monospace;
  font-size: 11px;
  color: var(--ink-2);
}
.boss-grid b {
  padding: 0 0 7px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .2px;
}
.boss-grid span {
  display: flex;
  align-items: center;
  padding: 0 0 0 6px;
  border-bottom: 1px solid rgba(0, 0, 0, .055);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.boss-grid > :nth-child(5n + 1) { padding-left: 0; }
/* 数量与合价右对齐，单位居中 —— 表格的默认读法 */
.boss-grid > :nth-child(5n + 3) { text-align: center; justify-content: center; }
.boss-grid > :nth-child(5n + 4),
.boss-grid > :nth-child(5n + 5) { text-align: right; justify-content: flex-end; }
/* 最后一行是合计，加一条上框线压住 */
.boss-grid > :nth-last-child(-n + 5) {
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.boss-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, Menlo, Consolas, "PingFang SC", monospace;
  font-size: 10.5px;
  color: var(--ink-3);
}
.boss-tabs b { color: var(--ink); font-weight: 700; }
.boss-tabs em { margin-left: auto; font-style: normal; white-space: nowrap; }
.boss-hint {
  margin-top: auto;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .5px;
}
.boss-back {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-3);
  font-size: 10px;
  touch-action: manipulation;
}

/* ---------------- 飘字层 + 迷你实时条（防遮挡） ---------------- */
.fish-fx { position: fixed; inset: 0; z-index: 88; pointer-events: none; overflow: hidden; }
.fp-float {
  position: absolute;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
  color: var(--accent);
  transform: translate(-50%, -50%);
  animation: fpFloatUp 1.2s ease-out forwards;
}
.fp-float.mid { font-size: 19px; }
@keyframes fpFloatUp {
  0% { opacity: 0; transform: translate(-50%, -40%) scale(.7); }
  15% { opacity: 1; transform: translate(-50%, -70%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -240%) scale(1.08); }
}
.fish-mini-tick {
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 26;
  pointer-events: none;
  padding: 6px 15px;
  border-radius: 99px;
  background: rgba(23, 26, 32, .92);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 组件级深色适配：系统开了深色也不白底白字 */
@media (prefers-color-scheme: dark) {
  .fp-device {
    --fp-frame: #0c0e13;
    --fp-screen: #0b0d12;
    --fp-screen-2: #151a24;
  }
}

/* 窄屏：小手机缩一档，图标字号跟着降 */
@media (max-width: 360px) {
  .fp-device { width: 180px; height: 308px; border-radius: 29px; }
  .fp-screen { border-radius: 24px; }
  .fp-lock-time { font-size: 36px; }
  .fp-apps em { width: 38px; height: 38px; font-size: 19px; }
  .fp-coin { width: 40px; height: 40px; font-size: 20px; }
  .fish-toy-bar button { font-size: 11px; }
}

/* 减弱动效：翻牌 / 印章 / 滑入 / 飘字全部跳过，只留数字变化 */
@media (prefers-reduced-motion: reduce) {
  .fp-money.bump, .fp-stamp.go, .fp-luck-card.flip, .fp-quote span,
  .fp-notice, .fp-notice li, .fp-float { animation: none !important; }
}

/* 卡头四样东西（标题+徽章+本月+胶囊）在手机宽度必挤：全局允许换行、标题不拆字；
   ≤560 收起「本月」文案（三格里已有），记录行同步收紧 */
.fish-head { flex-wrap: wrap; row-gap: 6px; }
.fish-head h3 { white-space: nowrap; flex: none; }
@media (max-width: 560px) {
  .fish-head .muted { display: none; }
  .fish-list li { gap: 6px; font-size: 12px; }
  .fish-list .fl-time { flex: none; }
  .fish-list .fl-auto { font-size: 8.5px; padding: 1px 4px; }
}


/* =============================================================
   鱼缸（电子宠物）+ 捞一网（三消）
   水体是这一块唯一的冷色，用来和暖白卡片拉开层次；
   所有「容器」仍然走发丝描边 + 内发光，不引入深色面板。
   ============================================================= */

:root {
  --water-1: #e8f6fd;
  --water-2: #cbe9f8;
  --water-3: #a9d8f1;
  --water-ink: #2b6b8c;
  --sand-1: #f6ecd9;
  --sand-2: #eadcc2;
  --fish-1: #ff9a6c;
  --fish-2: #ff6f45;
  --fish-3: #ffd0b8;
  --tank-line: rgba(43, 107, 140, .16);
}

/* ---------------- 首页：鱼缸卡片 ---------------- */
.tank-head { align-items: center; }
.tank-lv {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .3px;
  vertical-align: 1px;
}
.tank-shell {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px 3px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tank-shell i { font-style: normal; font-size: 12px; }
.tank-shell b { font-size: 12.5px; color: var(--ink); }

.tank-preview {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin: 2px 0 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.tank-preview:active .tp-tank { transform: scale(.985); }

.tp-tank {
  position: relative;
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--tank-line);
  background: linear-gradient(180deg, var(--water-1), var(--water-3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -14px 22px -18px rgba(43, 107, 140, .5);
  transition: transform .18s ease;
}
.tp-water {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .85), transparent 62%);
  pointer-events: none;
}
.tp-sand {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 16px;
  background: linear-gradient(180deg, var(--sand-1), var(--sand-2));
  border-radius: 50% 50% 0 0 / 26% 26% 0 0;
}
.tp-decor { position: absolute; inset: 0; pointer-events: none; }
.tp-decor i {
  position: absolute;
  bottom: 7px;
  font-size: 15px;
  font-style: normal;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .08));
  transform-origin: 50% 100%;
  animation: decorSway 5.5s ease-in-out infinite;
}
.tp-fish {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 62px;
  height: 48px;
  margin: -24px 0 0 -31px;
  animation: tpFloat 4.2s ease-in-out infinite;
}
@keyframes tpFloat {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50%      { transform: translate(3px, -5px) rotate(2deg); }
}

.tp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tp-name-row { display: flex; align-items: center; gap: 6px; }
.tp-name-row b { font-size: 14.5px; color: var(--ink); letter-spacing: -.2px; }
.tp-word {
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--fill);
  color: var(--ink-3);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.tank-preview .tp-say {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tp-bars { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.tp-bars span {
  display: grid;
  grid-template-columns: 26px 1fr 22px;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}
.tp-bars i { font-style: normal; color: var(--ink-3); }
.tp-bars u {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
  text-decoration: none;
}
.tp-bars s {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--fish-1), var(--fish-2));
  text-decoration: none;
  transition: width .45s cubic-bezier(.2, .9, .3, 1);
}
.tp-bars b {
  font-size: 10px;
  text-align: right;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.tank-quick { display: flex; gap: 8px; margin-top: 12px; }
.tank-quick button {
  flex: 1;
  height: 38px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .12s ease, background .15s ease;
}
.tank-quick button:active { transform: scale(.975); }
.tank-quick .tank-enter {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.tank-quick .tank-game { color: var(--water-ink); border-color: var(--tank-line); background: var(--water-1); }

/* ---------------- 小鱼本体（两处复用） ---------------- */
.fsvg { display: block; width: 100%; height: 100%; overflow: visible; }
.fsvg .fs-tail { transform-origin: 84px 50px; animation: fsTail 1.9s ease-in-out infinite; }
.fsvg .fs-body { animation: fsBob 2.6s ease-in-out infinite; transform-origin: 52px 50px; }
@keyframes fsTail { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes fsBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.fsvg .fs-tail path { fill: var(--fish-2); }
.fsvg .fs-body > ellipse:first-child { fill: var(--fish-1); }
.fsvg .fs-fin { fill: var(--fish-2); opacity: .92; }
.fsvg .fs-belly { fill: var(--fish-3); opacity: .55; }
.fsvg .fs-eye { fill: #2b2d33; }
.fsvg .fs-glint { fill: #fff; }
.fsvg .fs-blush { fill: #ff6d8a; opacity: .3; }
.fsvg .fs-mouth { fill: none; stroke: #c9452c; stroke-width: 2.4; stroke-linecap: round; opacity: .55; }

/* 睡着了：整体变慢、眼睛闭上 */
.tank-sleeping .fsvg .fs-tail,
.tank-sleeping .fsvg .fs-body { animation-duration: 5.2s; }
.tank-sleeping .fsvg .fs-eye { transform: scaleY(.18); transform-origin: 34px 43px; }
.tank-sleeping .fsvg .fs-glint { opacity: 0; }
.tank-sleeping .fsvg { filter: saturate(.72) brightness(.98); }

/* 蔫了：颜色发灰、动作变小 */
.tank-gloomy .fsvg { filter: saturate(.45) brightness(.97); }

/* ---------------- 鱼缸全屏 ---------------- */
.tank-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 0 0 calc(10px + var(--safe-b));
}
.tank-overlay[hidden] { display: none !important; }

.tk-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-2);
}
.tk-back {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.tk-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tk-title b { font-size: 15px; color: var(--ink); letter-spacing: -.2px; }
.tk-title span { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* 全屏里的老板键：和返回键一样大的圆按钮，安静地待在钱包左边 */
.tk-boss,
.gm-boss {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s;
}
.tk-boss:active,
.gm-boss:active { transform: scale(.92); }
.gm-boss { border-color: var(--tank-line); background: #fff; }
.tk-wallet {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px 5px 9px;
  border-radius: 99px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tk-wallet i { font-style: normal; font-size: 12px; }

.tk-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tk-stage {
  position: relative;
  flex: none;
  height: 232px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--tank-line);
  background: linear-gradient(180deg, var(--water-1) 0%, var(--water-2) 56%, var(--water-3) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -18px 30px -22px rgba(43, 107, 140, .55),
    var(--shadow);
}
.tk-water {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 46% at 50% -4%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(60% 30% at 82% 12%, rgba(255, 255, 255, .55), transparent 70%);
  pointer-events: none;
}
.tk-caustic {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(102deg, rgba(255, 255, 255, .5) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(76deg, rgba(255, 255, 255, .34) 0 2px, transparent 2px 34px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 62%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 62%);
  opacity: .5;
  animation: caustic 9s linear infinite;
  pointer-events: none;
}
@keyframes caustic {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-26px, 0, 0); }
}

/* 缸底沙 + 摆设 */
.tk-deep { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; pointer-events: none; }
.tk-deep::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: 0;
  height: 34px;
  background: linear-gradient(180deg, var(--sand-1), var(--sand-2));
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
}
.tk-decor-item {
  position: absolute;
  bottom: 16px;
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(43, 107, 140, .18));
  animation: decorSway 5.5s ease-in-out infinite;
  transform-origin: 50% 100%;
  /* 缸底沙子是 .tk-deep 的 ::after，默认会盖在摆件上面；提到上层让摆件真正露出来 */
  z-index: 3;
}
@keyframes decorSway {
  0%, 100% { transform: rotate(calc(var(--dr, 0deg) - 3deg)); }
  50%      { transform: rotate(calc(var(--dr, 0deg) + 3deg)); }
}

/* 气泡 */
.tk-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tk-bubbles i {
  position: absolute;
  bottom: -12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
  animation: bubbleUp 6.4s linear infinite;
}
@keyframes bubbleUp {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .95; }
  88%  { opacity: .7; }
  100% { transform: translate3d(14px, -218px, 0) scale(1.05); opacity: 0; }
}

/* 鱼 */
.tk-fish {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132px;
  height: 104px;
  margin: -58px 0 0 -66px;
  animation: tkSwim 6.4s ease-in-out infinite;
  /* 提到独立合成层，避免和水波/文字的模糊层互相重绘导致桌面端疯狂闪动 */
  will-change: transform;
  transform: translateZ(0);
}
@keyframes tkSwim {
  0%   { transform: translate(-24px, 2px) rotate(-3deg) scaleX(1); }
  46%  { transform: translate(26px, -8px) rotate(3deg) scaleX(1); }
  50%  { transform: translate(26px, -8px) rotate(0deg) scaleX(-1); }
  96%  { transform: translate(-24px, 2px) rotate(-1deg) scaleX(-1); }
  100% { transform: translate(-24px, 2px) rotate(-3deg) scaleX(1); }
}
.tk-wear {
  position: absolute;
  font-style: normal;
  line-height: 1;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18));
  pointer-events: none;
}
.tk-wear.tk-hat { top: -8px; left: 27%; font-size: 28px; transform: translateX(-50%) rotate(-8deg); }
.tk-wear.tk-body { top: 46%; left: 41%; font-size: 23px; }

.tk-word {
  position: absolute;
  left: 14px;
  top: 12px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .92);
  color: var(--water-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .3px;
}
.tk-say {
  position: absolute;
  left: 50%;
  /* 抬到沙带（74px）之上、鱼之下：状态提示是「鱼在说话」，压在缸底摆件上既挡装饰又不像话。
     摆件最高（城堡 34px + bottom 22px）顶到 ~56px，84px 起步保证 0~5 个摆件都不被遮。 */
  bottom: 84px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 5px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 18px -12px rgba(43, 107, 140, .6), inset 0 0 0 1px rgba(255, 255, 255, .8);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tk-sleep {
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: 20px;
  animation: zzz 2.6s ease-in-out infinite;
}
@keyframes zzz {
  0%   { transform: translateY(0) scale(.9); opacity: .3; }
  50%  { transform: translateY(-6px) scale(1.05); opacity: 1; }
  100% { transform: translateY(-12px) scale(1.1); opacity: 0; }
}

/* 五条属性 */
.tk-bars { flex: none; display: flex; flex-direction: column; gap: 7px; }
.tk-bar {
  display: grid;
  grid-template-columns: 30px 1fr 28px;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.tk-bar span { color: var(--ink-3); }
.tk-bar u {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--fill);
  overflow: hidden;
  text-decoration: none;
  box-shadow: inset 0 1px 2px rgba(23, 26, 32, .05);
}
.tk-bar s {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  text-decoration: none;
  transition: width .5s cubic-bezier(.2, .9, .3, 1), background .3s ease;
}
.tk-bar b {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tk-bar[data-k="hunger"] s  { background: linear-gradient(90deg, #ffb27a, #ff8a4c); }
.tk-bar[data-k="mood"] s    { background: linear-gradient(90deg, #ffd36e, #ffb020); }
.tk-bar[data-k="intimacy"] s{ background: linear-gradient(90deg, #ffa1b8, #ff6d8a); }
.tk-bar[data-k="energy"] s  { background: linear-gradient(90deg, #a8c8ff, #6f9bff); }
.tk-bar[data-k="water"] s   { background: linear-gradient(90deg, #9fe3f5, #4fc3e8); }
.tk-bar.low s { background: linear-gradient(90deg, #ff9a9a, #ff5c5c) !important; }
.tk-bar.low b { color: #e0443f; }

/* 五个动作 */
.tk-actions {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.tk-actions button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 0 8px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .12s ease, background .15s ease;
}
.tk-actions button:active,
.tk-actions button.press { transform: scale(.94); background: var(--fill); }
.tk-actions button.cd { opacity: .5; filter: grayscale(.4); cursor: not-allowed; }
.tk-actions button.cd span { color: var(--ink-3); }
.tk-actions button:disabled { pointer-events: none; }
.tk-actions em { font-style: normal; font-size: 18px; line-height: 1; }
.tk-actions span { font-size: 10.5px; font-weight: 700; color: var(--ink-2); }
.tk-actions button.sleeping { background: #eef2f7; }

/* 三个页签 */
.tk-tabs {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 加了「外观」后是 4 个，写 3 会把最后一个挤到第二行 */
  gap: 4px;
  padding: 3px;
  border-radius: 13px;
  background: var(--fill);
}
.tk-tabs button {
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.tk-tabs button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 26, 32, .1);
}

.tk-panes { flex: 1; min-height: 0; }
.tk-pane { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.tk-pane[hidden] { display: none !important; }
.tk-pane-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .2px;
}
.tk-pane-sub i { font-style: normal; color: var(--ink-3); font-weight: 700; }

.tk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tk-grid-shop { grid-template-columns: repeat(2, 1fr); }

.tk-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 88px;              /* 同一行卡片等高，文字不会互相挤 */
  padding: 10px 6px 9px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .12s ease, border-color .16s ease;
}
.tk-item:active { transform: scale(.955); }
.tk-item em {
  display: block;
  flex: none;
  width: 100%;
  height: 28px;
  font-style: normal;
  font-size: 24px;
  line-height: 28px;
}
/* 名称最多两行、描述最多两行，各自有固定行高：长名字不会撞到价格 */
.tk-item b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  width: 100%;
  min-height: 15px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
  overflow-wrap: anywhere;
}
.tk-item s {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  width: 100%;
  min-height: 13px;
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--ink-3);
  text-align: center;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.tk-item .tk-qty {
  position: absolute;
  top: 5px;
  right: 6px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}
.tk-item.on { border-color: var(--accent-line); background: var(--accent-soft); }
.tk-item.on b { color: var(--accent); }
.tk-item.dis { opacity: .58; }
/* 以前贴在卡片底部、正好压住价格那行字；改成右上角的小角标 */
.tk-item.dis::after {
  content: '买不起';
  position: absolute;
  top: 5px;
  right: 6px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--fill);
  color: var(--ink-3);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}
.tk-item.owned em { filter: saturate(1); }
.tk-item .tk-tag {
  position: absolute;
  top: 5px;
  left: 6px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--fill);
  color: var(--ink-3);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 13px;
}
.tk-empty {
  grid-column: 1 / -1;
  padding: 18px 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* 外观：颜色色板 + 种类缩略图 */
.tk-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 2px 10px;
}
.tk-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px -2px rgba(43, 107, 140, .45), inset 0 0 0 1px rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: transform .12s ease;
  position: relative;
}
.tk-swatch:active { transform: scale(.92); }
.tk-swatch.on { border-color: var(--accent); transform: scale(1.08); }
.tk-swatch.on::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.tk-grid-look { grid-template-columns: repeat(2, 1fr); }
.tk-kind .tk-kind-svg {
  width: 64px;
  height: 50px;
  display: block;
  margin: 0 auto;
}
.tk-kind .tk-kind-svg .fsvg { width: 100%; height: 100%; }
.tk-kind.on { border-color: var(--accent-line); background: var(--accent-soft); }
.tk-kind.on b { color: var(--accent); }

.tk-shop-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.tk-shop-tabs button {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.tk-shop-tabs button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* 飘字 */
.tk-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.tk-float {
  position: absolute;
  left: 50%;
  top: 42%;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 22px -12px rgba(23, 26, 32, .5);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: tkFloat 1.5s cubic-bezier(.2, .8, .3, 1) forwards;
}
.tk-float.big { font-size: 16px; }
@keyframes tkFloat {
  0%   { opacity: 0; transform: translate(-50%, 4px) scale(.86); }
  22%  { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  72%  { opacity: 1; transform: translate(-50%, -26px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(.96); }
}

/* ---------------- 捞一网（散堆消除） ---------------- */
.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f4fafe 0%, #e4f2fb 46%, #cfe6f6 100%);
  padding: 0 0 calc(6px + var(--safe-b));
}
.game-overlay[hidden] { display: none !important; }

.gm-top {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 8px;
}
.gm-back {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  border: 1px solid var(--tank-line);
  background: #fff;
  color: var(--water-ink);
  cursor: pointer;
}
.gm-stage-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; }
.gm-stage-info b {
  flex: none;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--water-ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .3px;
}
.gm-stage-info span {
  font-size: 11px;
  color: rgba(43, 107, 140, .78);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gm-stage-info em {
  flex: none;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 1px var(--tank-line);
  color: var(--water-ink);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.gm-wallet {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px 5px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px var(--tank-line);
  color: var(--water-ink);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.gm-wallet i { font-style: normal; }

/* 两个字渔篓（本关重点收集） */
.gm-orders {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 0 14px 8px;
}
.gm-order {
  position: relative;
  flex: 1;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 0 0 22px 22px;
  border: 1px solid var(--tank-line);
  border-top: 0;
  background: linear-gradient(180deg, #ffffff, #eef7fd);
  box-shadow: inset 0 -8px 12px -10px rgba(43, 107, 140, .5);
}
.gm-order i {
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .1));
}
.gm-order b {
  font-size: 11px;
  font-weight: 800;
  color: var(--water-ink);
  font-variant-numeric: tabular-nums;
}
.gm-order.done { background: linear-gradient(180deg, #ffffff, #e6f8ee); }
.gm-order.done::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #14a06a;
}
.gm-order.locked { opacity: .42; }
.gm-order.locked::after {
  content: '未解锁';
  position: absolute;
  inset: auto 0 6px;
  font-size: 9px;
  color: var(--water-ink);
  text-align: center;
}

/* 台面（暂存条） */
.gm-tray {
  flex: none;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 14px 8px;
}
.gm-tray i {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 0 0 1px rgba(43, 107, 140, .16);
  font-size: 24px;
  font-style: normal;
  line-height: 1;
  transition: background .15s ease, box-shadow .15s ease;
}
.gm-tray i.filled {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(43, 107, 140, .26), 0 2px 6px -3px rgba(43, 107, 140, .5);
}
.gm-tray i.filled span { animation: trayPop .26s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes trayPop {
  0%   { transform: scale(.3) rotate(-14deg); }
  100% { transform: scale(1) rotate(0); }
}
.gm-tray i.pop { animation: trayClear .36s ease forwards; }
@keyframes trayClear {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.2); background: #d9f7e7; }
  100% { transform: scale(.5); opacity: 0; }
}
.gm-tray.warn i { background: rgba(255, 224, 224, .78); box-shadow: inset 0 0 0 1px rgba(224, 68, 63, .3); }

/* 锅（鱼缸） */
.gm-pond {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 10px;
  padding: 10px;
}
.gm-pond::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    radial-gradient(76% 62% at 50% 22%, rgba(255, 255, 255, .95), transparent 66%),
    linear-gradient(180deg, #eaf7fe 0%, #cfe9f8 58%, #b3d9f0 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .95),
    inset 0 -26px 40px -30px rgba(43, 107, 140, .75),
    0 0 0 7px #ffffff,
    0 0 0 8px rgba(43, 107, 140, .14),
    0 18px 34px -26px rgba(43, 107, 140, .9);
}
.gm-water {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(104deg, rgba(255, 255, 255, .5) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(74deg, rgba(255, 255, 255, .3) 0 2px, transparent 2px 40px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .75), transparent 72%);
  opacity: .42;
  animation: caustic 11s linear infinite;
}
.gm-tiles { position: absolute; inset: 10px; }

/* 牌面 54px：小手机上也能一眼看清是什么鱼；比 40px 那版明显"占地方"，
   再配合 app.js 里同层 46px 的网格间距，视觉上就是一张张摞着的 */
.gm-tile {
  position: absolute;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: none;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  filter: drop-shadow(0 3px 4px rgba(43, 107, 140, .34));
  transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
  transition: transform .16s ease, opacity .2s ease, filter .2s ease;
  will-change: transform;
}
.gm-tile span {
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff) drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff);
}
.gm-tile.locked {
  filter: grayscale(.6) brightness(.94) opacity(.66);
  cursor: default;
}
.gm-tile.tap { transform: rotate(var(--rot, 0deg)) scale(calc(var(--sc, 1) * .8)) !important; }
.gm-tile.leaving {
  opacity: 0;
  transform: rotate(var(--rot, 0deg)) scale(.4);
  pointer-events: none;
}

/* 道具条 */
.gm-tools {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 14px 2px;
}
.gm-tools button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 0 5px;
  border-radius: 16px;
  border: 1px solid rgba(43, 107, 140, .16);
  background: #fff;
  box-shadow: 0 3px 8px -5px rgba(43, 107, 140, .7);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .12s ease;
}
.gm-tools button:active { transform: scale(.95); }
.gm-tools em { font-style: normal; font-size: 19px; line-height: 1; }
.gm-tools span { font-size: 9.5px; font-weight: 700; color: var(--water-ink); }
.gm-tools .gm-cost {
  margin-top: 1px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(43, 107, 140, .1);
  color: rgba(43, 107, 140, .78);
  font-size: 8.5px;
  font-weight: 800;
  line-height: 13px;
  text-decoration: none;
}
.gm-tools button.paid .gm-cost { background: var(--accent-soft); color: var(--accent); }
.gm-tools button.armed { box-shadow: 0 0 0 2px var(--accent-line), 0 3px 8px -5px rgba(43, 107, 140, .7); }
#gmResRevive {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
#gmResRevive[hidden] { display: none !important; }
#gmResRevive b { font-size: 14px; }
.gm-tools button.used { opacity: .38; pointer-events: none; }
.gm-tools button.used::after {
  content: '用过';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, .6);
  font-size: 10px;
  font-weight: 800;
  color: var(--water-ink);
}

/* 开局 / 结算 */
.gm-start, .gm-result {
  position: absolute;
  inset: 0;
  /* 牌是 inline z-index（0~260）且不在独立层里，弹层必须压得比它高，
     否则结算卡片会被一大堆鱼盖住 —— 之前写 9 就是这么翻车的 */
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(240, 249, 254, .88);
  backdrop-filter: blur(10px);
}
.gm-start[hidden], .gm-result[hidden] { display: none !important; }
.gm-start > div, .gm-result-card { width: 100%; max-width: 330px; }
.gm-start b {
  display: block;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--water-ink);
  text-align: center;
}
.gm-start p {
  margin: 12px 0 20px;
  font-size: 12px;
  line-height: 1.95;
  color: rgba(43, 107, 140, .86);
  text-align: center;
}
.gm-start p b { color: var(--water-ink); font-size: 12px; letter-spacing: 0; }
#gmStartBtn {
  display: block;
  width: 170px;
  height: 46px;
  margin: 0 auto;
  border: 0;
  border-radius: 99px;
  background: var(--water-ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 14px 26px -16px rgba(43, 107, 140, .95);
}
.gm-start em {
  display: block;
  margin-top: 12px;
  font-size: 10.5px;
  font-style: normal;
  color: rgba(43, 107, 140, .6);
  text-align: center;
}
.gm-result-card {
  padding: 22px 20px 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 48px -28px rgba(23, 26, 32, .5), inset 0 0 0 1px var(--line);
  text-align: center;
}
.gm-result-card > b { display: block; font-size: 19px; color: var(--ink); letter-spacing: -.2px; }
.gm-result-card > p { margin: 8px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.gm-res-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 14px 0 4px;
  padding: 6px 15px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}
.gm-res-reward[hidden] { display: none !important; }
.gm-res-reward i { font-style: normal; }
.gm-res-stats {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .2px;
}
.gm-res-stats:empty { display: none; }
#gmResAgain {
  width: 100%;
  height: 44px;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--water-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
#gmResBack {
  width: 100%;
  height: 40px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------------- 首次进入的老板键提示 ---------------- */
/* 提示卡片居中显示，不用箭头：玩具栏在摸鱼卡下面，
   不同机型滚出来的位置对不上，箭头指错地方比不指更糟 */
.coach {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: rgba(23, 26, 32, .38);
  backdrop-filter: blur(2px);
  animation: coachIn .22s ease;
}
.coach[hidden] { display: none !important; }
@keyframes coachIn { from { opacity: 0; } to { opacity: 1; } }
.coach-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 48px -24px rgba(23, 26, 32, .55);
  animation: coachPop .28s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes coachPop {
  from { transform: translateY(12px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.coach-card b { display: block; font-size: 14.5px; color: var(--ink); letter-spacing: -.2px; }
.coach-card p { margin: 7px 0 12px; font-size: 12px; line-height: 1.75; color: var(--ink-2); }
.coach-card button {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.coach-arrow { display: none; }

/* 小屏兜底 */
@media (max-height: 700px) {
  .tk-stage { height: 196px; }
  .tk-body { gap: 8px; padding-top: 10px; }
  .tk-bar { grid-template-columns: 28px 1fr 26px; gap: 7px; }
  .tk-actions button { padding: 7px 0 6px; }
  .tk-actions em { font-size: 16px; }
}
@media (max-height: 640px) {
  .tk-stage { height: 168px; }
  .tk-bars { gap: 5px; }
  .tk-bar u { height: 6px; }
}

/* ============ 捞一网：关卡按钮 + 选关面板 ============ */
.gm-level-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gm-level-btn b {
  flex: none;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--water-ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}
.gm-level-btn i {
  font-style: normal;
  font-size: 10px;
  color: var(--water-ink);
  opacity: .65;
  line-height: 1;
}
.gm-level-btn:active b { transform: scale(.95); }
.gm-start-lv {
  display: block;
  margin: 12px auto 0;
  padding: 5px 14px;
  border: 0;
  background: none;
  color: rgba(43, 107, 140, .78);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
}
.gm-start-lv:active { opacity: .6; }

.gm-levels {
  position: absolute;
  inset: 0;
  z-index: 600;          /* 压在开局/结算层（500）之上 */
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 48, 68, .55);
  backdrop-filter: blur(6px);
}
.gm-levels[hidden] { display: none !important; }
.gm-levels-card {
  width: 100%;
  max-width: 330px;
  max-height: 86%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 48px -22px rgba(23, 26, 32, .55);
  text-align: center;
}
.gm-levels-card > b {
  display: block;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 1px;
}
.gm-levels-info {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink-2);
}
.gm-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 15px 0 12px;
}
.gm-lv {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  padding: 6px 2px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gm-lv b { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.gm-lv s {
  font-size: 8.5px;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}
.gm-lv.on { border-color: var(--accent-line); background: var(--accent-soft); }
.gm-lv.on b { color: var(--accent); }
.gm-lv.lock { opacity: .42; cursor: default; }
.gm-levels-note {
  margin: 0 0 14px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--ink-3);
}
#gmLevelPickClose {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ============ 时间快选：全点按，不用手机滚轮 ============ */
.time-hit { cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent; }
.field-col { flex-direction: column; align-items: stretch; gap: 10px; }
.field-col .f-label { font-size: 11px; color: var(--ink-3); letter-spacing: .6px; }
.f-chips button { font-size: 11.5px; font-weight: 600; }
.f-hint { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.ob-time-val {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  text-align: left;
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ob-time-val::after { content: ' ▾'; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.ob-time-val:active { color: var(--accent); }
.ob-time-line {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ob-time-line:active { border-color: var(--accent-line); }

.timepick {
  position: fixed;
  inset: 0;
  z-index: 300;                 /* 压过引导层 150、老板键 200 */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(18, 25, 36, .48);
  backdrop-filter: blur(4px);
}
.timepick[hidden] { display: none !important; }
.tp-card {
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px calc(18px + var(--safe-b, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--card, #fff);
  box-shadow: 0 -20px 50px -24px rgba(23, 26, 32, .5);
}
.tp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tp-head b { display: block; font-size: 16px; color: var(--ink); }
.tp-head span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--ink-3); line-height: 1.5; }
#tpCancel {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 99px;
  background: var(--fill);
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
}
.tp-value {
  margin: 14px 0 12px;
  font-size: 38px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.tp-label { margin: 12px 0 8px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .8px; }
.tp-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.tp-quick button, .tp-grid button {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--card, #fff);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tp-quick button.on, .tp-grid button.on {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.tp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 8px; }
.tp-grid button { height: 34px; font-size: 12px; }
.tp-mins { margin-bottom: 14px; }
.tp-ok {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
}
.tp-ok:active { opacity: .85; }

/* =============================================================
   本轮新增组件：真翻页 / 客服 / 推荐 4 人 / 流水 / 游戏大厅 /
   鱼记忆 / 合成大鱼 / 串门 / 明信片 / 补偿 / 昵称备选
   ============================================================= */

/* ---------- 真翻页 ---------- */
.pg-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.pg-bar .pg-btn {
  padding: 6px 11px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--card); color: var(--ink-2); font-size: 11.5px; cursor: pointer;
}
.pg-bar .pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.pg-bar .pg-info { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.gm-lv-pager { border-top: 0; margin: 10px 0 4px; }

/* ---------- 推荐 4 人：4 列紧凑小卡，外框高度基本不变 ---------- */
.sg-shuffle {
  margin-left: auto; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink-2); font-size: 10.5px; padding: 3px 8px; border-radius: 8px;
}
.suggest-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sg-item { padding: 9px 4px 8px; border-radius: 11px; gap: 2px; }
.sg-item .av { width: 28px; height: 28px; font-size: 15px; }
.sg-item b { font-size: 10.5px; margin-top: 2px; }
.sg-item > span:not(.av) { font-size: 8.5px; }
.sg-item .mini-btn { margin-top: 4px; height: 23px; font-size: 10px; padding: 0 2px; }
.suggest-card .card-head { flex-wrap: wrap; }

/* ---------- 唯一标识 / 官方客服 / 后台入口 ---------- */
.unique-card { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.unique-card .uc-left { display: flex; align-items: baseline; gap: 8px; }
.unique-card .uc-left span { font-size: 11px; color: var(--ink-3); }
.unique-card .uc-left b { font-size: 17px; letter-spacing: 1.5px; color: var(--water-ink, #2f6a6a); }
.unique-card p { margin: 0; font-size: 11px; color: var(--ink-3); }

.service-card { display: flex; align-items: center; gap: 12px; }
.sv-av { position: relative; flex: none; }
.sv-av > span { display: block; width: 48px; height: 48px; border-radius: 50%; background: #eef4f1; display: grid; place-items: center; font-size: 26px; }
.sv-av .av { width: 48px; height: 48px; }
.sv-badge {
  position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%);
  font-style: normal; font-size: 8.5px; white-space: nowrap;
  color: #6a4d12; background: linear-gradient(180deg, #ffe9a8, #e7bd5d);
  border: 1px solid #c99b38; border-radius: 6px; padding: 1px 5px;
  box-shadow: 0 2px 4px rgba(90, 60, 10, .22);
}
.sv-main { flex: 1; min-width: 0; }
.sv-main b { font-size: 14px; }
.sv-main span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.sv-main span em { font-style: normal; letter-spacing: 1px; color: var(--ink-2); }
.sv-main p { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-2); }
.sv-btn { flex: none; width: auto; height: 38px; padding: 8px 12px; font-size: 12px; }
.official-badge {
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .2px;
  color: #6a4d12; background: linear-gradient(180deg, #ffe9a8, #e7bd5d);
  border: 1px solid #c99b38; border-radius: 5px; padding: 1px 4px;
  vertical-align: middle; margin-left: 4px;
}
/* 我的页快捷入口：不再把卡片内边距清 0（之前行内容会顶到圆角边线，显脏）。
   这里保留卡片自身 18px 内边距，行左右再留 2px、上下放宽，分隔线内缩不顶边，整体更干净。 */
.quick-links { padding: 3px 18px; }
.quick-links .link-row {
  display: flex; align-items: center; justify-content: space-between;
  border: 0; border-bottom: 1px solid var(--line-2); background: none;
  width: 100%; text-align: left; padding: 15px 2px;
  color: var(--ink); font-size: 14.5px; line-height: 1.3;
  transition: background .15s;
}
.quick-links .link-row:last-child { border-bottom: 0; }
.quick-links .link-row:active { background: var(--line-2); }
.quick-links .link-row em {
  color: var(--ink-2); font-style: normal; font-size: 19px; line-height: 1;
  margin-left: 10px; flex: none;
}

/* ---------- 贝壳流水 ---------- */
.wallet-list ul { list-style: none; margin: 10px 0 0; padding: 0; }
.wallet-list li {
  display: grid; grid-template-columns: 78px 1fr 48px 62px; gap: 6px;
  align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 11px;
}
.wallet-list li:last-child { border-bottom: 0; }
.wl-date, .wl-bal { color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.wl-reason { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-plus { color: #2f8a62; text-align: right; }
.wl-minus { color: #b4564c; text-align: right; }
.wl-bal { text-align: right; }

/* ---------- 首页第三个按钮 ---------- */
.tank-quick .tank-report { color: var(--ink-2); border-color: var(--line-2); background: var(--card); font-size: 11px; }
.tank-quick button { font-size: 11.5px; padding: 0 4px; }

/* ---------- 好友卡片「去串门」 ---------- */
.fc-visit {
  margin-top: 6px; border: 0; background: none; padding: 0;
  color: var(--water-ink, #2f6a6a); font-size: 10.5px; text-align: left; cursor: pointer;
}
.gm-next-ico { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; }
.gm-next-ico .sb-spec { width: 18px; height: 18px; }
.gm-hall-btn {
  border: 1px solid var(--tank-line); background: rgba(255, 255, 255, .7);
  border-radius: 9px; font-size: 15px; padding: 4px 8px; color: var(--water-ink);
}
.gm-start-lv { font-size: 12px; }

/* ---------- 补偿卡片 / 昵称备选 ---------- */
.comp-card { text-align: center; padding: 6px 4px 4px; }
.comp-emoji { font-size: 38px; }
.comp-card b { display: block; font-size: 17px; margin: 8px 0 6px; }
.comp-card p { font-size: 12.5px; color: var(--ink-2); line-height: 1.75; margin: 0 0 10px; }
.comp-amount { font-size: 30px; font-weight: 800; color: #b5802f; margin: 6px 0 12px; }
.comp-card .primary-btn { width: 100%; }
.comp-card .link-btn { display: block; margin: 10px auto 0; }
.name-alts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.name-alts .ghost-btn { font-size: 12.5px; }

/* ---------- 游戏大厅 ---------- */
.hall-overlay {
  position: fixed; inset: 0; z-index: 145; overflow-y: auto;
  background: linear-gradient(170deg, #eef4f0, #dfeae6);
  padding: 22px 16px calc(30px + var(--safe-b));
}
.hall-overlay[hidden] { display: none !important; }
.hall-top { display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 0 auto 20px; }
.hall-top b { font-size: 19px; display: block; }
.hall-top span { font-size: 11.5px; color: var(--ink-3); }
.hall-back { border: 1px solid rgba(47, 106, 106, .3); background: rgba(255, 255, 255, .7); border-radius: 9px; width: 36px; height: 36px; font-size: 16px; }
.hall-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; max-width: 720px; margin: 0 auto; }
.hall-card {
  text-align: left; padding: 16px; border-radius: 13px; cursor: pointer;
  border: 1px solid rgba(90, 74, 52, .22);
  background-image: repeating-linear-gradient(96deg, rgba(60, 48, 30, .022) 0 1px, transparent 1px 8px), linear-gradient(160deg, #fbf7ec, #f2ece0);
  box-shadow: 0 12px 26px -22px rgba(31, 55, 58, .7);
}
.hall-card .hall-ico { display: block; width: 64px; height: 64px; margin-bottom: 10px; }
.hall-card .hall-ico .sb-spec { width: 64px; height: 64px; }
.hall-card b { display: block; font-size: 16px; }
.hall-card span { display: block; font-size: 11.5px; color: var(--ink-2); margin-top: 3px; }
.hall-card em { display: block; font-style: normal; font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
.hall-hint { max-width: 720px; margin: 18px auto 0; font-size: 11px; color: var(--ink-3); text-align: center; }

/* ---------- 鱼记忆 / 合成大鱼 ---------- */
.mini-overlay {
  position: fixed; inset: 0; z-index: 146; display: flex; flex-direction: column;
  background: linear-gradient(170deg, #eef4f0, #dfeae6);
}
.mini-overlay[hidden] { display: none !important; }
.mn-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mn-top b { font-size: 16px; display: block; }
.mn-top span { font-size: 11px; color: var(--ink-3); }
.mn-back, .mn-boss { border: 1px solid rgba(47, 106, 106, .3); background: rgba(255, 255, 255, .7); border-radius: 9px; width: 36px; height: 36px; font-size: 18px; }
.mn-boss { margin-left: auto; font-size: 15px; }
.mn-body {
  position: relative; flex: 1; min-height: 0; margin: 0 auto; width: 100%;
  max-width: 480px; padding: 10px 16px; display: grid; gap: 8px;
  align-content: center; overflow-y: auto;
}
.mn-body.mn-memory { grid-template-columns: repeat(4, 1fr); }
.mn-body.mn-merge { grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mn-cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(120, 100, 72, .45);
  background: linear-gradient(155deg, #fffdf6, #e6dcc3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 0 rgba(120, 100, 72, .4);
  display: grid; place-items: center; padding: 4px;
}
.mn-cell .sb-spec { width: 74%; height: 74%; }
.mn-cell .mn-back {
  position: absolute; inset: 0; border-radius: 8px;
  background: repeating-linear-gradient(48deg, rgba(47, 106, 106, .14) 0 3px, transparent 3px 9px), linear-gradient(160deg, #4a8c88, #2d6b6d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.mn-cell .mn-front { display: none; }
.mn-cell.flipped .mn-back { display: none; }
.mn-cell.flipped .mn-front { display: block; width: 100%; height: 100%; }
.mn-cell.done { opacity: .5; }
.mn-cell.mn-lv { background: linear-gradient(160deg, #fffdf6, #efe4cc); }
.mn-cell.mn-lv em { position: absolute; top: 3px; left: 4px; font-style: normal; font-size: 9px; color: var(--ink-3); }
.mn-cell.mn-lv.on { outline: 2px solid #d98d54; outline-offset: -2px; }
.mn-cell.mn-empty { background: rgba(47, 106, 106, .08); box-shadow: inset 0 0 0 1px rgba(47, 106, 106, .14); cursor: default; }
.mn-start, .mn-result {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center;
  padding: 20px; background: rgba(18, 52, 58, .42);
}
.mn-start[hidden], .mn-result[hidden] { display: none !important; }
.mn-start .gm-result-card, .mn-result .gm-result-card { width: min(340px, 100%); text-align: center; padding: 22px 20px; }
.mn-start b, .mn-result b { font-size: 19px; display: block; }
.mn-start p, .mn-result p { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin: 8px 0 14px; }
.mn-start button, .mn-result button {
  width: 100%; height: 42px; margin-top: 8px; border: 0; border-radius: 10px;
  background: #2f7a78; color: #fff; font-size: 13.5px; font-weight: 700;
}
.mn-result button:last-child { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.mn-start em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); margin-top: 10px; }
.gm-res-reward { margin: 8px 0; color: #b5802f; font-size: 22px; font-weight: 800; }
.gm-res-stats { font-size: 11px; color: var(--ink-3); margin-bottom: 10px; }

/* ---------- 串门 ---------- */
.visit-overlay { position: fixed; inset: 0; z-index: 135; display: grid; place-items: center; padding: 18px; background: rgba(16, 48, 56, .6); }
.visit-overlay[hidden] { display: none !important; }
.visit-sheet { width: min(400px, 100%); max-height: 86vh; overflow-y: auto; padding: 16px; border-radius: 13px; }
.visit-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.visit-head b { font-size: 15px; }
.visit-head button { border: 0; background: none; font-size: 18px; cursor: pointer; }
.visit-tank { position: relative; height: 190px; border-radius: 11px; overflow: hidden; border: 1px solid rgba(47, 106, 106, .3); }
.visit-empty { display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--ink-3); }
.visit-note { font-size: 11px; color: var(--ink-3); margin: 10px 0; line-height: 1.6; }
.visit-words { max-height: 160px; overflow-y: auto; }
.visit-word { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(90, 74, 52, .2); font-size: 12px; }
.visit-word span { color: var(--ink-3); font-size: 10.5px; flex: none; }
.visit-word b { flex: 1; font-weight: 600; }
.visit-word em { font-style: normal; color: var(--ink-3); font-size: 10px; flex: none; }
.visit-foot { display: flex; gap: 8px; margin-top: 12px; }
.visit-foot input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: #fffdf7; }
.visit-foot button { border: 0; border-radius: 9px; padding: 0 16px; background: #2f7a78; color: #fff; font-size: 12.5px; }

/* ---------- 今日战报明信片：与整站同一套白卡 / 发丝描边 / 主题强调色 ---------- */
.pc-overlay { position: fixed; inset: 0; z-index: 136; display: grid; place-items: center; padding: 16px; background: rgba(16, 26, 34, .58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pc-overlay[hidden] { display: none !important; }
.pc-sheet { width: min(380px, 100%); max-height: 92vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 0 24px 60px -18px rgba(16, 26, 34, .40); animation: pcIn .22s ease-out; }
@keyframes pcIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pc-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.pc-head b::before { content: ''; width: 4px; height: 15px; border-radius: 3px; background: var(--accent); }
.pc-head button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--fill); color: var(--ink-2); font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.pc-head button:active { transform: scale(.94); }
#postcardCanvas { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #eef2f3; }
.pc-hint { font-size: 11px; color: var(--ink-3); margin: 12px 2px; line-height: 1.6; text-align: center; }
.pc-actions { display: flex; gap: 10px; }
.pc-actions button { flex: 1; height: 42px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.pc-actions button:last-child { background: var(--fill); color: var(--ink-2); }
.pc-actions button:active { transform: translateY(1px); }

/* ---------- 移动端 390px 不溢出 ---------- */
@media (max-width: 400px) {
  .suggest-row { gap: 4px; }
  .sg-item { padding: 8px 2px 7px; }
  .sg-item b { font-size: 10px; }
  .wallet-list li { grid-template-columns: 64px 1fr 40px 54px; font-size: 10.5px; }
  .service-card { gap: 8px; }
  .sv-btn { padding: 7px 9px; font-size: 11px; }
  .mn-body.mn-memory { gap: 6px; }
  .mn-body.mn-merge { gap: 4px; }
  .tank-quick button { font-size: 10.5px; }
  .import-bar { flex-wrap: wrap; gap: 4px 8px; }
  .import-bar > span { flex: 1 1 100%; }
  .import-bar .link-btn { margin-left: auto; }
  #dayChips button { font-size: 13.5px; }
  .goal-list .goal-grid { gap: 8px; }
  .goal-list .goal-card { padding: 11px 9px; }
  .goal-list .goal-emoji { font-size: 18px; }
  .goal-list .goal-name { font-size: 12px; }
}

/* ==================== 小论坛 ==================== */
.forum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fh-main { flex: 1; min-width: 0; }
.fh-title { font-size: 15.5px; }
.fh-sub { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
/* 两个按钮成组靠右。primary-btn 自带 margin-top:16px，这里必须清掉，
   否则「发帖」会比铃铛低 16px（旧版不对齐的根因）。 */
.fh-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.fh-new { flex: none; width: auto; padding: 0 18px; height: 38px; margin-top: 0; }

/* 论坛消息中心（铃铛入口 + 弹层列表） */
.fh-msg {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fh-msg:active { background: var(--fill); }
.fh-msg svg { width: 18px; height: 18px; display: block; }
.fh-dot {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: #f04438;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  font-style: normal;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}
.fh-dot[hidden] { display: none; }
.fn-list { display: grid; gap: 8px; }
.fn-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.fn-item:active { background: var(--fill); }
.fn-item.unread { background: #f2f8f7; border-color: rgba(47, 106, 106, .22); }
.fn-ico { flex: none; width: 18px; height: 18px; display: grid; place-items: center; color: var(--ink-3); }
.fn-ico svg { width: 17px; height: 17px; display: block; }
.fn-item.unread .fn-ico { color: var(--accent-deep); }
.fn-item .av { flex: none; width: 30px; height: 30px; font-size: 15px; }
.fn-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fn-main b { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.4; word-break: break-word; }
.fn-main em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.fn-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f04438; }
.fn-more { margin-top: 4px; }
.fn-foot { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fn-foot .ghost-btn { width: auto; height: 36px; padding: 0 14px; margin-top: 0; }
.fn-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; -webkit-user-select: none; user-select: none; }
.fn-toggle input { width: 16px; height: 16px; }

.forum-list { display: block; }
.fm-card { padding: 14px 16px; cursor: pointer; }
.fm-card:active { background: var(--line-2); }
.fm-top { display: flex; align-items: center; gap: 9px; }
.fm-av { width: 34px; height: 34px; font-size: 18px; flex: none; }
.fm-who { flex: 1; min-width: 0; }
.fm-nick { display: flex; align-items: center; gap: 5px; min-width: 0; }
.fm-nick b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fm-who > span { display: block; font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.fm-del { flex: none; display: grid; place-items: center; border: 0; background: none; color: var(--ink-3); padding: 4px 2px; cursor: pointer; line-height: 1; }
.fm-del svg { width: 15px; height: 15px; display: block; }
.fm-del:active { color: var(--accent-deep); }

/* 官方 / 热 / 置顶 小标签 */
.fm-tag { flex: none; font-style: normal; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 5px; font-weight: 700; letter-spacing: .2px; }
.fm-tag.off { color: #fff; background: var(--accent); }
.fm-tag.hot { color: #fff; background: #ef5b45; }
.fm-tag.pin { color: #7a4b00; background: #ffd98a; }

.fm-body { margin: 9px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
/* 列表只露三行多，长文点进去看 */
.fm-body:not(.full) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.fm-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.fm-img { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--line-2); cursor: zoom-in; }
.fm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-foot { display: flex; align-items: center; gap: 12px; margin-top: 11px; font-size: 11.5px; color: var(--ink-3); }
.fm-count { display: inline-flex; align-items: center; gap: 4px; }
.fm-count svg { width: 13px; height: 13px; display: block; flex: none; }
.fm-open { margin-left: auto; color: var(--accent-deep); }

/* 点赞按钮 */
.fm-like { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-3); border-radius: 99px; padding: 3px 10px; font-size: 11.5px; line-height: 1.2; cursor: pointer; transition: transform .12s ease, background .18s ease, color .18s ease, border-color .18s ease; }
.fm-like b { font-weight: 700; font-size: 11.5px; }
.fm-like.on { color: #fff; background: #ef5b45; border-color: #ef5b45; }
.fm-like svg { width: 12px; height: 12px; display: block; flex: none; }
.fm-like:active { transform: scale(.94); }
.fm-like:disabled { opacity: .45; cursor: default; }
.fm-like.is-own { opacity: .55; cursor: default; border-style: dashed; }

/* 帖子详情里的操作条（官方：置顶 / 警告） */
.fm-dact { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.fm-dact .fm-like { padding: 5px 12px; }
.fm-act { border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); border-radius: 99px; padding: 4px 12px; font-size: 11.5px; cursor: pointer; }
.fm-act.warn { color: #c2410c; border-color: #f6c9a8; }
.fm-act:disabled { opacity: .5; }
.fm-cact { margin-left: 0; border: 0; background: none; color: var(--ink-3); font-size: 11px; padding: 2px 4px; cursor: pointer; }
.fm-cact.warn { color: #c2410c; }
.fm-warnbox { margin: 10px 0; padding: 10px; border-radius: 10px; background: var(--line-2); }
.fm-warnrow { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.fm-warnrow .ghost-btn, .fm-warnrow .primary-btn { width: auto; padding: 0 14px; height: 34px; font-size: 12.5px; margin-top: 0; }

.forum-more { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 6px; }
.forum-more .ghost-btn { width: 100%; height: 40px; }
.forum-more .ghost-btn:disabled { opacity: .55; }
.forum-more-tip { font-size: 11px; color: var(--ink-3); }

/* 发帖 / 评论弹层 */
.fm-textarea { width: 100%; min-height: 96px; resize: vertical; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; font-size: 14px; line-height: 1.6; font-family: inherit; color: var(--ink); background: var(--card); }
.fm-textarea.sm { min-height: 46px; }
.fm-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fm-thumb { position: relative; width: 70px; height: 70px; border-radius: 9px; overflow: hidden; }
.fm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; line-height: 18px; padding: 0; cursor: pointer; }
.fm-tools { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.fm-tools .ghost-btn { width: auto; padding: 0 14px; height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.fm-tools .ghost-btn svg { width: 14px; height: 14px; display: block; flex: none; }
.fm-detail { display: block; }
.fm-detail-post { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.fm-comments { padding: 4px 0; }
.fm-comment { display: flex; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); }
.fm-comment:last-child { border-bottom: 0; }
.fm-comment .fm-av { width: 28px; height: 28px; font-size: 15px; }
.fm-comment-main { flex: 1; min-width: 0; }
/* 三个操作按钮（删除 / 提醒 / 回复）同排：整行不换行，按钮与时间不收缩，
   只让昵称区 flex 收缩并省略，320px 小屏也不会错位或溢出。 */
.fm-cmeta { display: flex; align-items: center; gap: 7px; flex-wrap: nowrap; min-width: 0; }
.fm-cmeta .fm-nick { flex: 0 1 auto; min-width: 0; }
.fm-cmeta .fm-nick b { font-size: 12.5px; }
.fm-cmeta > span { flex: none; white-space: nowrap; font-size: 10.5px; color: var(--ink-3); margin-right: auto; }
.fm-cmeta .fm-cact { flex: none; white-space: nowrap; }
.fm-comment-main p { margin: 3px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.fm-comment-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.fm-comment-form .fm-textarea { flex: 1; }
.fm-comment-form .primary-btn { flex: none; width: auto; padding: 0 16px; height: 46px; }
.fm-big { display: block; width: 100%; border-radius: 10px; }

/* ---- 楼中楼：评论回复 ---- */
/* 缩进 + 左侧竖线，跟顶层评论区分；颜色全部走变量，深浅主题都可读 */
.fm-replies {
  margin: 2px 0 6px 36px;
  padding: 0 0 0 11px;
  border-left: 2px solid var(--line-2);
}
.fm-comment.rp { padding: 7px 0; gap: 7px; }
.fm-comment.rp:last-child { border-bottom: 0; }
.fm-comment.rp .fm-av { width: 24px; height: 24px; font-size: 13px; }
.fm-comment.rp .fm-comment-main p { font-size: 12.5px; }
.fm-comment.rp .fm-cmeta { gap: 6px; }
.fm-replyto { font-style: normal; color: var(--ink-2); font-size: 12px; margin-right: 4px; white-space: nowrap; }

/* 回复提示条：放在评论输入框上方，默认 hidden */
.fm-replybar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--fill); color: var(--ink-2); font-size: 11.5px;
}
.fm-replybar[hidden] { display: none; }
.fm-replybar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-replybar > button {
  flex: none; border: 0; background: none; color: var(--ink-3);
  font-size: 11.5px; padding: 2px 4px; cursor: pointer; white-space: nowrap;
}
.fm-replybar > button:active { color: var(--ink); }

/* 320px 小屏：三按钮同排不挤，缩进收窄给文字留空间 */
@media (max-width: 360px) {
  .fm-cmeta { gap: 5px; }
  .fm-cmeta .fm-cact { padding: 2px 3px; }
  .fm-replies { margin-left: 20px; padding-left: 8px; }
  .fm-comment.rp .fm-cmeta { gap: 4px; }
}

/* ============================================================
   本轮新增 · 纯净模式 / 小目标里程碑 / 上班足迹
   纯净模式的隐藏规则全部以 html.pure-mode 前缀并追加在文件末尾，
   避免被后面的组件规则覆盖；显隐只靠 CSS，不用 JS 改 hidden / remove。
   ============================================================ */

/* ---------- 顶部「退出纯净模式」：非纯净模式彻底不出现 ---------- */
html:not(.pure-mode) #btnExitPure { display: none !important; }
.pure-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  height: 34px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  white-space: nowrap;
  cursor: pointer;
}
.pure-exit:active { transform: scale(.96); }

/* ---------- 小目标里程碑：首页入口 / 配置弹层 / 轻量飘条 ---------- */
.ms-card .card-head { margin-bottom: 2px; }
.ms-card .link-row { padding: 8px 0 0; border-bottom: 0; }

.ms-head,
.ms-row { display: grid; grid-template-columns: 46px 1fr 92px 30px; gap: 6px; align-items: center; }
.ms-head { padding: 4px 0 2px; font-size: 10.5px; color: var(--ink-3); letter-spacing: .3px; }
.ms-rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; }
.ms-row input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  outline: none;
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}
.ms-row .ms-ic { text-align: center; }
.ms-row .ms-am { text-align: right; }
.ms-del {
  width: 30px; height: 30px;
  border: 0; border-radius: 9px;
  background: var(--fill); color: var(--ink-3);
  font-size: 12px; cursor: pointer;
}
.ms-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.ms-actions .ghost-btn { flex: 1; min-width: 92px; }
.ms-actions .primary-btn { flex: 1 1 100%; margin-top: 4px; }
.ms-actions .link-btn { flex: none; }

.ms-flash {
  position: fixed;
  left: 50%;
  top: calc(10px + env(safe-area-inset-top, 0px));
  z-index: 150;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 99px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -160%);
  transition: transform .32s cubic-bezier(.22, .9, .3, 1), opacity .32s;
}
.ms-flash.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 上班足迹：打卡编辑器 / 7×53 热力图 ---------- */
.fp-editor { padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.fp-editor-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--ink);
}
.fp-moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.fp-mood {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--fill); color: var(--ink-2); font-family: inherit; cursor: pointer;
}
.fp-mood b { font-size: 22px; line-height: 1.1; }
.fp-mood span { font-size: 10.5px; font-weight: 700; }
.fp-mood.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-deep); }
.fp-note {
  box-sizing: border-box; width: 100%; height: 40px;
  margin: 12px 0 4px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px; outline: none;
  background: var(--card); color: var(--ink); font-family: inherit; font-size: 13px;
}
.fp-sec { margin-top: 14px; }
.fp-scroll { overflow-x: auto; padding: 4px 0 8px; }
.fp-grid { display: flex; gap: 3px; width: max-content; }
.fp-col { display: flex; flex-direction: column; gap: 3px; }
.fp-cell {
  display: block; width: 10px; height: 10px; padding: 0;
  border: 0; border-radius: 2px; background: var(--fill);
}
button.fp-cell { cursor: pointer; }
.fp-cell.fp-future { opacity: .35; }
.fp-lv0 { background: var(--fill); }
.fp-lv1 { background: color-mix(in srgb, var(--accent) 22%, var(--fill)); }
.fp-lv2 { background: color-mix(in srgb, var(--accent) 42%, var(--fill)); }
.fp-lv3 { background: color-mix(in srgb, var(--accent) 65%, var(--fill)); }
.fp-lv4 { background: color-mix(in srgb, var(--accent) 88%, var(--fill)); }
.fp-legend {
  display: flex; align-items: center; gap: 4px;
  margin-top: 8px; font-size: 10.5px; color: var(--ink-3);
}
.fp-legend em { margin-left: auto; font-style: normal; }
.fp-foot { margin-top: 12px; }
.fp-foot .ghost-btn { width: 100%; }

/* ---------- 纯净模式：只留实时进账大数字 + 今日进度 ---------- */
html.pure-mode #btnShare,
html.pure-mode #joinBanner,
html.pure-mode #joinFab,
html.pure-mode .demo-strip,
html.pure-mode #fishCard,
html.pure-mode #tankCard,
html.pure-mode #feedCard,
html.pure-mode #miniGoal,
html.pure-mode .tips-card,
html.pure-mode #paydayCard,
html.pure-mode .rate-card,
html.pure-mode .grid,
html.pure-mode #extraBar,
html.pure-mode #otBtn,
html.pure-mode #pieceBar,
html.pure-mode #heroTags,
html.pure-mode .hero-deco,
html.pure-mode .hero-foot,
html.pure-mode .hero-top .live,
html.pure-mode #heroDemoNote,
html.pure-mode #heroDemoLive,
html.pure-mode #tabbar,
html.pure-mode #tabDot,
html.pure-mode #forumTabDot,
html.pure-mode #forumMsgBtn,
html.pure-mode #forumMsgDot,
html.pure-mode #milestoneCard,
html.pure-mode #milestoneSummary,
html.pure-mode #btnMilestoneCfg,
html.pure-mode #milestoneFlash,
html.pure-mode #btnFootprint,
html.pure-mode #bossOverlay,
html.pure-mode #tankOverlay,
html.pure-mode #gameOverlay,
html.pure-mode #hallOverlay,
html.pure-mode #miniOverlay,
html.pure-mode #visitOverlay,
html.pure-mode #postcardOverlay,
html.pure-mode #chat,
html.pure-mode #modal,
html.pure-mode #toast,
html.pure-mode #fishFxLayer,
html.pure-mode #fishMiniTick,
html.pure-mode #coachBoss,
html.pure-mode #ob,
html.pure-mode #timePick,
html.pure-mode .coin { display: none !important; }

/* 明显可见的退出入口 */
html.pure-mode #btnExitPure { display: inline-flex !important; }

/* 克制的排版：只做居中与留白，不加动画、不加装饰 */
html.pure-mode .views {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: calc(40px + var(--safe-b));
}
html.pure-mode .view.is-active { width: 100%; animation: none; }
html.pure-mode .statusline { justify-content: center; padding-bottom: 6px; }
html.pure-mode #hero {
  max-width: 520px;
  margin: 14px auto 0;
  padding: 30px 26px 26px;
  outline: 1px solid var(--line-2);
}
html.pure-mode .hero-top { justify-content: center; }
html.pure-mode .hero-label { text-align: center; }
html.pure-mode .amount { justify-content: center; }
html.pure-mode .bar-meta { justify-content: space-between; }

/* ============================================================
   官方公告弹窗（会员端）：复用现有 #modal / .primary-btn 外壳，
   只做克制的纸张排版（虚线分隔 + 继承字体），不新增现代卡片 / 渐变 / 阴影。
   追加在文件末尾，不触碰论坛 .fm-cmeta / .fm-replies / .fn-foot 及小屏媒体查询。
   ============================================================ */
.ann-box { width: 100%; }
.ann-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .3px;
  line-height: 1.5;
  word-break: break-word;
}
.ann-body {
  margin-top: 14px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-2);
  white-space: pre-wrap;      /* 保留公告正文里的换行 */
  word-break: break-word;     /* 长串英文 / URL 不撑破窄屏 */
  overflow-wrap: anywhere;
}
.ann-meta {
  margin-top: 12px;
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .3px;
  word-break: break-word;
}
.ann-foot { padding-top: 2px; }

/* 320px / 390px 小屏：父级 .modal-body 已 width:100% + max-width:480px + overflow-y:auto，
   .ann-box 用 100% + 全局 border-box，正文 white-space:pre-wrap + word-break 不会横向溢出，
   长文由 .modal-body 纵向滚动承载，弹窗不会溢出屏幕。 */
@media (max-width: 360px) {
  .ann-title { font-size: 15px; }
  .ann-body { font-size: 13px; padding: 12px 0; }
}

/* ---------------- 论坛：官方编辑帖子 / 评论附图（追加段，不覆盖上方既有定义） ---------------- */
/* 管理操作条：官方最多 置顶+取消置顶/警告/编辑 三按钮，窄屏允许换行而不是把中文挤竖 */
.fm-dact { flex-wrap: wrap; }
.fm-dact .fm-act { white-space: nowrap; }
.fm-dact #fmEditPost { color: #9a5b12; border-color: #f0d0a2; }

/* 评论附图按钮 + 提示：与 .fm-tools 同款，但不占整行 */
.fm-cmt-tools {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; min-width: 0;
}
.fm-cmt-tools .ghost-btn {
  flex: none; width: auto; height: 32px; padding: 0 12px; margin-top: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; white-space: nowrap;
}
.fm-cmt-tools .ghost-btn svg { width: 14px; height: 14px; display: block; flex: none; }
.fm-cmt-tools .ghost-btn:disabled { opacity: .5; }
.fm-cmt-tools .muted { flex: 1; min-width: 0; white-space: nowrap; font-size: 11px; }
.fm-cmt-thumbs:empty { display: none; }
.fm-cmt-thumbs .fm-thumb { width: 56px; height: 56px; }
.fm-thumb-wait {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 10px; font-style: normal; white-space: nowrap;
}

/* 评论里的图片：沿用帖子大图按钮结构，尺寸收一档，回复缩进内也不撑破 */
.cmt-imgs { max-width: 240px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-comment.rp .cmt-imgs { max-width: 210px; }

/* 390 / 360 窄屏：按钮与时间保持单行，图片改自适应宽度 */
@media (max-width: 390px) {
  .fm-dact { gap: 6px; }
  .fm-dact .fm-act { padding: 4px 10px; }
  .cmt-imgs { max-width: 100%; }
}
@media (max-width: 360px) {
  .fm-dact .fm-act { padding: 4px 8px; font-size: 11px; }
  .fm-cmt-tools .muted { font-size: 10px; }
  .fm-cmt-thumbs .fm-thumb { width: 48px; height: 48px; }
}
