/* ============================================================
   GOLDEN PAYROLL / 摸金校尉 · 实时计薪台
   纯 CSS，无外部字体、无图片资源、无框架
   ============================================================ */

:root{
  --gold-50:#FFFBEA;
  --gold-100:#FFF3C4;
  --gold-200:#FFE28A;
  --gold-300:#FFCE4D;
  --gold-400:#E5AE21;
  --gold-500:#BE8608;
  --gold-600:#8C5E04;
  --num-1:#FFFBE0;
  --num-2:#FFD75E;
  --num-3:#E0A412;
  --panel:rgba(26,18,4,.80);
  --panel-soft:rgba(48,34,8,.55);
  --line:rgba(255,214,102,.26);
  --line-soft:rgba(255,214,102,.13);
  --text:#FFF4D2;
  --text-strong:#FFFDF2;
  --muted:rgba(255,232,176,.62);
  /* 直接落在金色背景上的文字，需要深色才读得清 */
  --on-bg:#2E1F00;
  --on-bg-soft:rgba(46,31,0,.72);
  /* 锁屏版上部「时钟区」的高度；?gap=30~50 可调（数值为 vh，越大时钟越靠下） */
  --lock-gap:42vh;
  --shadow:0 24px 70px rgba(46,28,0,.34), inset 0 1px 0 rgba(255,255,255,.10);
  --radius:20px;
  --font:"Bahnschrift","DIN Alternate","HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",-apple-system,sans-serif;
  --mono:"Bahnschrift","DIN Alternate","Consolas","SF Mono","Roboto Mono",monospace;
}

*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;padding:0;min-height:100%}
body{
  font-family:var(--font);
  color:var(--text);
  background-color:#B8860B;
  background-image:
    radial-gradient(1100px 760px at 10% 4%, rgba(255,250,208,.90), transparent 62%),
    radial-gradient(900px 720px at 92% 92%, rgba(122,76,0,.60), transparent 62%),
    radial-gradient(760px 620px at 62% 42%, rgba(255,226,128,.62), transparent 68%),
    linear-gradient(135deg,#6F4A06 0%,#BF8C10 17%,#F4D77B 37%,#E7B731 55%,#A67408 78%,#5C3D08 100%);
  background-attachment:fixed;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
body[data-theme="obsidian"]{
  background-color:#0B0903;
  background-image:
    radial-gradient(900px 640px at 14% 8%, rgba(212,160,30,.22), transparent 62%),
    radial-gradient(820px 700px at 86% 88%, rgba(180,120,0,.18), transparent 60%),
    linear-gradient(155deg,#100C04 0%,#1D1506 42%,#0A0803 100%);
  --panel:rgba(9,7,2,.78);
  --panel-soft:rgba(40,29,6,.48);
  --line:rgba(255,198,72,.24);
  --muted:rgba(255,226,160,.55);
  --on-bg:#FFF4D2;
  --on-bg-soft:rgba(255,232,176,.66);
  --shadow:0 24px 70px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,220,120,.08);
}
body[data-theme="champagne"]{
  background-color:#F7E9C0;
  background-image:
    radial-gradient(1000px 700px at 12% 6%, rgba(255,255,255,.92), transparent 62%),
    radial-gradient(900px 700px at 90% 90%, rgba(214,166,58,.34), transparent 62%),
    linear-gradient(150deg,#FFFBEC 0%,#F8E7B8 42%,#E7C87C 100%);
  --panel:rgba(255,252,240,.80);
  --panel-soft:rgba(255,248,224,.62);
  --line:rgba(150,102,0,.22);
  --line-soft:rgba(150,102,0,.10);
  --text:#4A3305;
  --text-strong:#2C1D00;
  --muted:rgba(74,51,5,.60);
  --on-bg:#3A2700;
  --on-bg-soft:rgba(58,39,0,.68);
  --num-1:#6B4700;
  --num-2:#A87400;
  --num-3:#D8A41A;
  --shadow:0 22px 60px rgba(140,100,20,.20), inset 0 1px 0 rgba(255,255,255,.7);
}

/* ---------- 背景氛围 ---------- */
#coin-rain{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;opacity:.72}
.grain{position:fixed;inset:0;pointer-events:none;z-index:0;opacity:.16;
  background-image:radial-gradient(rgba(255,255,255,.55) .5px, transparent .6px);
  background-size:4px 4px;mix-blend-mode:soft-light}
.ambient{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.ambient i{position:absolute;display:block;border-radius:50%;filter:blur(70px);opacity:.42;animation:drift 18s ease-in-out infinite alternate}
.ambient i:nth-child(1){width:44vw;height:44vw;left:-12vw;top:-14vw;background:radial-gradient(circle,#FFF6BE,transparent 70%)}
.ambient i:nth-child(2){width:38vw;height:38vw;right:-10vw;bottom:-16vw;background:radial-gradient(circle,#FFD25C,transparent 70%);animation-delay:-6s}
.ambient i:nth-child(3){width:30vw;height:30vw;left:48%;top:38%;background:radial-gradient(circle,#FFF0A8,transparent 72%);animation-delay:-11s}
@keyframes drift{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(3vw,-3vh,0) scale(1.12)}}

/* ---------- 布局骨架 ---------- */
.app{position:relative;z-index:2;max-width:1400px;margin:0 auto;padding:26px 34px 20px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:16px;border-bottom:1px solid var(--line-soft)}
.brand{display:flex;align-items:center;gap:14px;min-width:250px}
.brand-mark{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:13px;
  background:linear-gradient(145deg,#FFF3B0,#D8A319 48%,#8A5C04);
  box-shadow:0 6px 18px rgba(70,44,0,.35),inset 0 1px 2px rgba(255,255,255,.8);
  border:1px solid rgba(255,255,255,.42);transform:rotate(-6deg)}
.brand-mark span{font-family:var(--mono);font-size:25px;font-weight:800;color:#3B2600;transform:rotate(6deg)}
.brand-text h1{margin:0;font-size:18px;letter-spacing:.20em;font-weight:800;color:var(--on-bg)}
.brand-text p{margin:3px 0 0;font-size:11px;letter-spacing:.18em;color:var(--on-bg-soft)}
.clock-box{text-align:center;flex:1;padding:5px 20px 7px;border-radius:14px;
  background:var(--panel);border:1px solid var(--line-soft);backdrop-filter:blur(10px)}
.clock-meta{font-size:11.5px;letter-spacing:.14em;color:var(--muted)}
.clock-meta .dot{margin:0 8px;opacity:.6}
.clock-main{font-family:var(--mono);font-size:34px;font-weight:700;letter-spacing:.06em;line-height:1.18;
  font-variant-numeric:tabular-nums;
  background:linear-gradient(180deg,var(--num-1),var(--num-2) 55%,var(--num-3));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 2px 6px rgba(90,55,0,.28))}
.actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:250px}

.btn{font-family:var(--font);font-size:12.5px;letter-spacing:.04em;color:var(--text);cursor:pointer;
  padding:9px 14px;border-radius:10px;border:1px solid var(--line);background:var(--panel-soft);
  backdrop-filter:blur(8px);transition:.18s ease;white-space:nowrap}
.btn:hover{transform:translateY(-2px);border-color:var(--gold-200);box-shadow:0 8px 22px rgba(60,36,0,.22)}
.btn:active{transform:translateY(0)}
.btn-primary{background:linear-gradient(135deg,#F8DB7C,#D7A219);color:#3A2600;font-weight:800;border-color:rgba(255,255,255,.5)}
.btn-ghost{background:transparent;color:var(--muted)}
.icon-btn{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:transparent;
  color:var(--text);font-size:22px;line-height:1;cursor:pointer}
.icon-btn:hover{background:var(--panel-soft)}

/* ---------- 卡片 ---------- */
.main{margin-top:22px}
.card{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  backdrop-filter:blur(18px) saturate(1.2);box-shadow:var(--shadow);overflow:hidden}
.card::after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:linear-gradient(115deg,rgba(255,255,255,.10),transparent 26%,transparent 72%,rgba(255,220,120,.07))}
.card-title{margin:0 0 18px;font-size:13px;font-weight:700;letter-spacing:.12em;color:var(--text);
  display:flex;align-items:baseline;gap:10px}
.title-en{font-size:9.5px;letter-spacing:.18em;color:var(--muted);font-weight:500}
.card-title.second{margin-top:24px;padding-top:18px;border-top:1px solid var(--line-soft)}

/* ---------- Hero ---------- */
.hero{padding:28px 36px 24px}
.hero-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.eyebrow{font-size:12px;letter-spacing:.16em;color:var(--muted);display:flex;align-items:center;gap:9px}
.eyebrow .sep{opacity:.4}
.live-dot{width:7px;height:7px;border-radius:50%;background:#7CF0A8;box-shadow:0 0 0 0 rgba(124,240,168,.7);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(124,240,168,.7)}70%{box-shadow:0 0 0 9px rgba(124,240,168,0)}100%{box-shadow:0 0 0 0 rgba(124,240,168,0)}}
.pill{font-size:11.5px;padding:6px 13px;border-radius:999px;border:1px solid var(--line);
  background:var(--panel-soft);color:var(--text);letter-spacing:.08em;white-space:nowrap}
.hero-amount{display:flex;align-items:baseline;gap:14px;margin:6px 0 12px;cursor:pointer;user-select:none;
  font-family:var(--mono);font-variant-numeric:tabular-nums;line-height:1.06;
  transition:filter .2s ease}
.hero-amount:hover{filter:brightness(1.12)}
.hero-amount .currency{font-size:clamp(34px,4.4vw,62px);font-weight:600;color:var(--gold-200);opacity:.9}
.hero-amount .digits{font-size:clamp(62px,9.2vw,138px);font-weight:800;letter-spacing:-.035em;
  background:linear-gradient(178deg,var(--num-1) 4%,var(--num-2) 48%,var(--num-3) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 6px 18px rgba(80,48,0,.35));white-space:nowrap}
.hero-amount.tick .digits{animation:tick .12s ease-out}
@keyframes tick{0%{transform:translateY(2px);filter:brightness(1.35)}100%{transform:none}}
.hero-sub{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:26px}
.chip{font-family:var(--mono);font-size:12px;padding:7px 12px;border-radius:8px;color:var(--text);
  background:var(--panel-soft);border:1px solid var(--line-soft);font-variant-numeric:tabular-nums}
.chip.boss-only{color:var(--gold-100);border-color:rgba(255,190,60,.42)}

.progress-meta{display:flex;justify-content:space-between;font-size:11.5px;letter-spacing:.08em;color:var(--muted);margin-bottom:9px}
.progress-meta span:last-child{font-family:var(--mono);color:var(--text);font-size:13px}
.goldbar{position:relative;height:13px;border-radius:999px;background:rgba(0,0,0,.28);
  border:1px solid var(--line-soft);overflow:hidden;box-shadow:inset 0 2px 5px rgba(0,0,0,.3)}
body[data-theme="champagne"] .goldbar{background:rgba(120,84,0,.13);box-shadow:none}
.goldbar-fill{height:100%;width:0%;border-radius:999px;transition:width .5s linear;
  background:linear-gradient(90deg,#9A6A00,#F5CE55 45%,#FFF3B0 70%,#E0A412);
  box-shadow:0 0 16px rgba(255,210,90,.65)}
.goldbar-sheen{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.55) 48%,transparent 76%);
  transform:translateX(-110%);animation:sheen 4.5s ease-in-out infinite}
@keyframes sheen{0%{transform:translateX(-110%)}55%,100%{transform:translateX(110%)}}
.timeline{position:relative;height:30px;margin-top:6px;font-size:10px;color:var(--muted)}
.tl-line{position:absolute;left:0;right:0;top:8px;height:1px;background:var(--line-soft)}
.tl-mark{position:absolute;top:4px;transform:translateX(-50%);text-align:center;white-space:nowrap;font-family:var(--mono)}
.tl-mark::before{content:"";display:block;width:1px;height:8px;margin:0 auto 3px;background:var(--line)}
.tl-now{position:absolute;top:0;height:18px;width:2px;background:#FF6B4A;border-radius:2px;
  box-shadow:0 0 9px rgba(255,107,74,.9);transition:left .5s linear}
.tl-now::after{content:"NOW";position:absolute;top:-1px;left:6px;font-size:8px;letter-spacing:.1em;color:#FF9B80}

/* ---------- 网格卡片 ---------- */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.grid>.card{padding:22px 26px}
.tenure-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.tenure-cell{text-align:center;padding:14px 4px 12px;border-radius:12px;background:var(--panel-soft);border:1px solid var(--line-soft)}
.tenure-cell b{display:block;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:clamp(26px,3.2vw,44px);
  line-height:1.05;font-weight:800;letter-spacing:-.02em;
  background:linear-gradient(180deg,var(--num-1),var(--num-2) 60%,var(--num-3));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.tenure-cell small{display:block;margin-top:6px;font-size:10.5px;letter-spacing:.14em;color:var(--muted)}
.tenure-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;font-size:11.5px;color:var(--muted)}
.tenure-foot b{color:var(--text);font-family:var(--mono);font-weight:600}

.countdown-value{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:clamp(42px,5.6vw,76px);
  font-weight:800;letter-spacing:-.02em;line-height:1.05;
  background:linear-gradient(180deg,var(--num-1),var(--num-2) 55%,var(--num-3));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.countdown-note{margin-top:8px;font-size:12px;color:var(--muted);min-height:18px}
.quote-wrap{margin-top:20px;padding:13px 16px 13px 30px;position:relative;border-left:2px solid var(--gold-300);
  background:var(--panel-soft);border-radius:0 10px 10px 0;font-size:12.5px;line-height:1.7;color:var(--text)}
.quote-mark{position:absolute;left:9px;top:4px;font-size:26px;color:var(--gold-300);opacity:.7;font-family:serif}

.stat-list{margin:0;display:flex;flex-direction:column;gap:2px}
.stat-list>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:9px 0;
  border-bottom:1px dashed var(--line-soft)}
.stat-list>div:last-child{border-bottom:none}
.stat-list dt{font-size:12px;color:var(--muted);letter-spacing:.06em}
.stat-list dd{margin:0;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:18px;font-weight:700;color:var(--text)}
.stat-list .stat-highlight{margin-top:8px;padding:13px 14px;border-radius:10px;background:var(--panel-soft);border:1px solid var(--line)}
.stat-list .stat-highlight dt{color:var(--text);font-weight:700}
.stat-list .stat-highlight dd{font-size:24px;
  background:linear-gradient(180deg,var(--num-1),var(--num-2) 60%,var(--num-3));
  -webkit-background-clip:text;background-clip:text;color:transparent}

.fun-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.fun-list li{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:11px 13px;
  border-radius:10px;background:var(--panel-soft);border:1px solid var(--line-soft)}
.fun-list .k{font-size:11.5px;color:var(--muted)}
.fun-list .v{font-family:var(--mono);font-size:17px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
.fun-list .u{font-size:10px;color:var(--muted);margin-left:2px}
.week-chart{display:flex;align-items:flex-end;gap:9px;height:96px;padding-top:6px}
.wc-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.wc-bar{width:100%;max-width:40px;border-radius:6px 6px 3px 3px;min-height:5px;position:relative;
  background:linear-gradient(180deg,var(--gold-200),var(--gold-500));box-shadow:0 0 12px rgba(255,205,80,.22);
  transition:height .6s ease}
.wc-col.rest .wc-bar{background:var(--line);box-shadow:none;height:8px !important}
.wc-col.today .wc-bar{outline:2px solid var(--gold-100);outline-offset:2px}
.wc-label{font-size:10px;color:var(--muted);letter-spacing:.05em}
.wc-col.today .wc-label{color:var(--text);font-weight:700}

/* ---------- 节假日倒计时横条 ---------- */
.holiday-card{display:grid;grid-template-columns:minmax(0,1.1fr) auto minmax(0,1.15fr);
  gap:6px 24px;align-items:center;padding:12px 22px}
.hc-left .card-title{margin:0 0 6px}
.hc-name{font-size:21px;font-weight:800;letter-spacing:.06em;
  background:linear-gradient(180deg,var(--num-1),var(--num-2) 60%,var(--num-3));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.hc-meta{font-size:11.5px;color:var(--muted);margin-top:3px}
.hc-main{text-align:center;padding:0 8px;white-space:nowrap}
.hc-days{display:flex;align-items:baseline;justify-content:center;gap:6px;
  font-family:var(--mono);font-variant-numeric:tabular-nums;line-height:1}
.hc-days b{font-size:clamp(38px,3.9vw,60px);font-weight:800;letter-spacing:-.03em;
  background:linear-gradient(180deg,var(--num-1),var(--num-2) 60%,var(--num-3));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.hc-days span{font-size:15px;color:var(--text)}
.hc-precise{font-family:var(--mono);font-size:11.5px;color:var(--gold-200);margin-top:3px;letter-spacing:.05em}
.hc-right{min-width:0}
.hc-makeup{font-size:11.5px;color:var(--muted);margin-bottom:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hc-makeup.warn{color:var(--gold-200)}
.hc-year-list{display:flex;gap:5px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}
.hc-tag{flex:none;font-family:var(--font);font-size:10.5px;cursor:pointer;white-space:nowrap;
  padding:5px 9px;border-radius:7px;border:1px solid var(--line-soft);
  background:var(--panel-soft);color:var(--muted);transition:.15s ease}
.hc-tag i{font-style:normal;margin-left:5px;opacity:.7;font-size:9.5px}
.hc-tag:hover{border-color:var(--gold-200);color:var(--text)}
.hc-tag.past{opacity:.42}
.hc-tag.active{border-color:var(--gold-200);color:var(--text);
  background:linear-gradient(135deg,rgba(248,219,124,.28),rgba(215,162,25,.18))}
.hc-source{grid-column:1/-1;font-size:10px;color:var(--muted);opacity:.72;
  border-top:1px solid var(--line-soft);padding-top:7px;margin-top:2px}
.hc-back{margin-left:10px;font-family:var(--font);font-size:10px;cursor:pointer;
  padding:3px 9px;border-radius:6px;border:1px solid var(--line);
  background:var(--panel-soft);color:var(--text)}

.footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0 4px;font-size:11px;color:var(--on-bg-soft);letter-spacing:.04em}
kbd{font-family:var(--mono);font-size:10px;padding:2px 6px;border-radius:5px;border:1px solid var(--line);background:var(--panel-soft);color:var(--text)}

/* ---------- 抽屉 / 弹窗 ---------- */
.overlay{position:fixed;inset:0;background:rgba(12,8,0,.55);backdrop-filter:blur(3px);z-index:8}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(440px,100vw);z-index:9;
  background:linear-gradient(160deg,rgba(38,26,6,.98),rgba(18,13,3,.99));
  border-left:1px solid rgba(255,214,102,.32);box-shadow:-24px 0 70px rgba(20,12,0,.5);
  transform:translateX(102%);transition:transform .32s cubic-bezier(.22,.8,.25,1);
  display:flex;flex-direction:column;color:#FFF4D2}
.drawer.open{transform:none}
.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px 16px;border-bottom:1px solid rgba(255,214,102,.16)}
.drawer-head h2{margin:0;font-size:18px;letter-spacing:.08em;color:#FFF3C4}
.drawer-head p{margin:5px 0 0;font-size:11.5px;color:rgba(255,232,176,.6)}
.drawer-body{flex:1;overflow-y:auto;padding:6px 24px 24px}
.drawer-body fieldset{border:none;border-bottom:1px solid rgba(255,214,102,.12);margin:0;padding:18px 0 20px}
.drawer-body fieldset:last-child{border-bottom:none}
.drawer-body legend{font-size:12px;font-weight:700;letter-spacing:.14em;color:#FFD75E;padding:0 0 12px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:13px;font-size:11.5px;color:rgba(255,232,176,.72)}
.field:last-child{margin-bottom:0}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field input,.field select{width:100%;font-family:var(--mono);font-size:13px;color:#FFF8E1;padding:10px 12px;
  border-radius:9px;border:1px solid rgba(255,214,102,.24);background:rgba(0,0,0,.30);outline:none}
.field input:focus,.field select:focus{border-color:#FFD75E;box-shadow:0 0 0 3px rgba(255,215,94,.14)}
.field select{font-family:var(--font)}
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator{filter:invert(1) sepia(1) saturate(3) hue-rotate(2deg);opacity:.75;cursor:pointer}
.check{display:flex;align-items:center;gap:10px;font-size:12px;color:rgba(255,232,176,.82);margin:6px 0 14px;cursor:pointer}
.check input{width:16px;height:16px;accent-color:#E5AE21;cursor:pointer}
.week-picker{display:flex;gap:6px;flex-wrap:wrap}
.week-picker button{flex:1;min-width:44px;padding:9px 0;border-radius:8px;cursor:pointer;font-family:var(--font);font-size:11.5px;
  border:1px solid rgba(255,214,102,.24);background:rgba(0,0,0,.3);color:rgba(255,232,176,.7)}
.week-picker button.on{background:linear-gradient(135deg,#F8DB7C,#D7A219);color:#3A2600;font-weight:800;border-color:transparent}
.hint{font-size:11.5px;line-height:1.7;color:rgba(255,232,176,.58);margin:0 0 12px}
.drawer-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.drawer-btns .btn{text-align:center}
.drawer-foot{padding:14px 24px 20px;border-top:1px solid rgba(255,214,102,.16)}
.wide{width:100%;padding:12px;text-align:center;font-size:13px}

.modal{position:fixed;inset:0;z-index:12;display:grid;place-items:center;padding:24px;background:rgba(10,7,0,.72);backdrop-filter:blur(6px)}
.modal-box{width:min(780px,100%);max-height:86vh;display:flex;flex-direction:column;
  background:linear-gradient(160deg,rgba(40,28,7,.99),rgba(16,12,3,.99));
  border:1px solid rgba(255,214,102,.32);border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.6);color:#FFF4D2;overflow:hidden}
.modal-body{overflow-y:auto;padding:8px 26px 26px}
.modal-body section{padding:16px 0;border-bottom:1px solid rgba(255,214,102,.13)}
.modal-body section:last-child{border-bottom:none}
.modal-body h3{margin:0 0 10px;font-size:14px;letter-spacing:.08em;color:#FFD75E}
.modal-body p,.modal-body li{font-size:12.5px;line-height:1.85;color:rgba(255,240,205,.82)}
.modal-body ol,.modal-body ul{margin:8px 0;padding-left:20px}
.modal-body code{font-family:var(--mono);font-size:11.5px;padding:2px 6px;border-radius:5px;background:rgba(255,215,94,.12);color:#FFE28A}
.modal-body pre{font-family:var(--mono);font-size:11.5px;line-height:1.6;white-space:pre-wrap;word-break:break-all;
  padding:11px 13px;margin:8px 0;border-radius:9px;background:rgba(0,0,0,.42);border:1px solid rgba(255,214,102,.18);color:#FFE9A8}
.modal-body b{color:#FFF3C4}
.modal-body .hint{color:rgba(255,232,176,.58)}
.modal-body kbd{background:rgba(255,215,94,.12);border-color:rgba(255,214,102,.3)}

.toast{position:fixed;left:50%;bottom:34px;transform:translate(-50%,20px);z-index:20;opacity:0;pointer-events:none;
  padding:11px 20px;border-radius:11px;font-size:12.5px;letter-spacing:.04em;
  background:linear-gradient(135deg,#F8DB7C,#D7A219);color:#3A2600;font-weight:700;
  box-shadow:0 14px 36px rgba(40,24,0,.4);transition:.28s ease}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ---------- 锁屏版式：浏览器全屏专用 ----------
   上部留白区居中显示逐秒滚动的实时时钟，下部一行三块时间信息。
   不再为 Windows 系统时钟预留空白，也不再用于锁屏截图。 */
body.lock .app{max-width:none;min-height:100vh;padding:4vh 4vw;display:flex;flex-direction:column;justify-content:space-between;gap:3vh}
body.lock .actions,body.lock .footer,body.lock .brand-mark,body.lock .hero-sub .chip#fish-line,
body.lock .progress-block,body.lock .quote-wrap{display:none}
/* 上部时钟区：高度由 --lock-gap 决定，时钟在其中水平垂直居中。
   min() 给出安全上限，避免 gap 取大值时把卡片挤出视口。 */
body.lock .topbar{order:0;flex:0 0 auto;height:min(var(--lock-gap),50vh);flex-wrap:nowrap;
  border:none;padding:0;margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2vh}
body.lock .brand{order:2;min-width:0;text-align:center}
body.lock .brand-text h1{font-size:clamp(12px,1vw,18px);letter-spacing:.34em;color:var(--on-bg-soft)}
body.lock .brand-text p{font-size:clamp(10px,.8vw,14px);letter-spacing:.2em;color:var(--on-bg-soft)}
body.lock .clock-box{order:1;text-align:center;flex:none;background:transparent;border:none;padding:0;backdrop-filter:none}
body.lock .clock-meta{font-size:clamp(14px,1.25vw,24px);letter-spacing:.22em;color:var(--on-bg-soft)}
body.lock .clock-main{font-size:clamp(48px,10vw,190px);line-height:1.06;letter-spacing:.02em;
  background:none;-webkit-text-fill-color:var(--on-bg);color:var(--on-bg);
  filter:drop-shadow(0 4px 16px rgba(60,38,0,.22))}
body.lock .main{margin:0;order:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;gap:1.2vw;flex:none}
body.lock .grid{display:contents}
body.lock .card{background:rgba(22,15,3,.66);border-color:rgba(255,214,102,.30)}
/* 锁屏不展示赚了多少钱，只留三块时间信息 */
body.lock .hero{display:none}
body.lock .tenure-card{grid-column:1;grid-row:1}
body.lock .countdown-card{grid-column:2;grid-row:1}
body.lock .holiday-card{grid-column:3;grid-row:1}
body.lock .tenure-card,body.lock .countdown-card{padding:1.8vh 1.6vw;display:flex;flex-direction:column;justify-content:space-between}
body.lock .stats-card,body.lock .fun-card{display:none}
body.lock .tenure-grid{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
body.lock .tenure-cell{padding:8px 2px}
body.lock .tenure-cell b{font-size:clamp(30px,3.1vw,58px)}
body.lock .card-title{margin-bottom:1.2vh}
body.lock .countdown-value{font-size:clamp(36px,3.9vw,72px)}
body.lock #coin-rain{opacity:.35}

/* 锁屏节假日卡片：竖版，突出「还有多少天」 */
body.lock .holiday-card{display:flex;flex-direction:column;justify-content:space-between;
  align-items:stretch;gap:0;padding:1.8vh 1.6vw;grid-template-columns:none}
body.lock .hc-left .card-title{margin-bottom:1.2vh}
body.lock .hc-name{font-size:clamp(20px,1.8vw,32px)}
body.lock .hc-meta{font-size:12px;margin-top:6px}
body.lock .hc-main{text-align:left;padding:0;margin:1.4vh 0}
body.lock .hc-days{justify-content:flex-start;gap:8px}
body.lock .hc-days b{font-size:clamp(48px,5vw,92px)}
body.lock .hc-days span{font-size:22px}
body.lock .hc-precise{font-size:14px;margin-top:6px}
body.lock .hc-right{margin-top:auto}
body.lock .hc-makeup{font-size:12px;white-space:normal;margin-bottom:0}
body.lock .hc-year-list,body.lock .hc-source,body.lock .hc-back,body.lock .hc-makeup{display:none}

/* 静态锁屏截图：秒会定格成一张不会动的数字，直接隐藏，四格改三格 */
body.lock.nosec .tenure-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr}
body.lock.nosec .tenure-cell:last-child{display:none}
body.lock.nosec .tenure-cell b{font-size:clamp(34px,3.6vw,66px)}

/* ---------- 桌面端：一屏水平排版（左侧主金额 + 右侧 2x2 信息区） ---------- */
@media (min-width:1100px){
  html,body{height:100%}
  body:not(.lock) .app{height:100vh;max-width:1680px;display:flex;flex-direction:column;padding:18px 28px 12px}
  body:not(.lock) .topbar{flex:none;padding-bottom:12px}
  body:not(.lock) .main{flex:1;min-height:0;margin-top:14px;display:grid;
    grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);
    grid-template-rows:minmax(0,1fr) auto auto;gap:14px 16px}
  body:not(.lock) .hero{grid-column:1;grid-row:1}
  body:not(.lock) .holiday-card{grid-column:1/-1;grid-row:2}
  body:not(.lock) .footer{grid-column:1/-1;grid-row:3;flex:none;margin:0}

  body:not(.lock) .hero{display:flex;flex-direction:column;justify-content:space-between;padding:22px 28px}
  body:not(.lock) .hero-amount{margin:0}
  body:not(.lock) .hero-amount .digits{font-size:clamp(54px,6.6vw,108px)}
  body:not(.lock) .hero-amount .currency{font-size:clamp(30px,3.4vw,54px)}
  body:not(.lock) .hero-sub{margin:0}
  body:not(.lock) .progress-block{margin-top:10px}

  body:not(.lock) .grid{grid-column:2;grid-row:1;margin:0;min-height:0;display:grid;
    grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:14px}
  body:not(.lock) .grid>.card{padding:16px 18px;min-height:0;overflow:hidden;
    display:flex;flex-direction:column;justify-content:space-between}
  /* 收益总览：让 5 行数据均匀铺满卡片，避免标题下方留一大块空白 */
  body:not(.lock) .stats-card{justify-content:flex-start}
  body:not(.lock) .stat-list{flex:1;min-height:0;justify-content:space-between}
  body:not(.lock) .card-title{margin-bottom:8px}
  body:not(.lock) .card-title.second{margin-top:8px;padding-top:10px}
  body:not(.lock) .tenure-cell{padding:9px 3px 8px}
  body:not(.lock) .tenure-cell b{font-size:clamp(24px,2.3vw,38px)}
  body:not(.lock) .tenure-cell small{margin-top:4px}
  body:not(.lock) .tenure-foot{margin-top:10px}
  body:not(.lock) .countdown-value{font-size:clamp(34px,3.4vw,56px)}
  body:not(.lock) .quote-wrap{margin-top:10px;padding:9px 12px 9px 26px;font-size:11.5px}
  body:not(.lock) .stat-list>div{padding:5px 0}
  body:not(.lock) .stat-list dd{font-size:16px}
  body:not(.lock) .stat-list .stat-highlight{padding:9px 12px;margin-top:4px}
  body:not(.lock) .stat-list .stat-highlight dd{font-size:21px}
  body:not(.lock) .fun-list li{padding:8px 10px}
  body:not(.lock) .fun-list .v{font-size:15px}
  body:not(.lock) .week-chart{height:66px;padding-top:0}
}

/* 矮屏紧凑档：一屏排版下卡片高度会被压缩，这里同步收紧内部间距，
   避免「入职累计」等最后一行被 overflow:hidden 裁掉 */
@media (min-width:1100px) and (max-height:880px){
  body:not(.lock) .app{padding:10px 22px 8px}
  body:not(.lock) .topbar{padding-bottom:8px}
  body:not(.lock) .brand-mark{width:34px;height:34px}
  body:not(.lock) .brand-text h1{font-size:15px}
  body:not(.lock) .brand-text p{font-size:10px}
  body:not(.lock) .clock-main{font-size:clamp(22px,2.4vw,30px)}
  body:not(.lock) .clock-meta{font-size:10px}
  body:not(.lock) .btn{padding:6px 10px;font-size:11px}
  body:not(.lock) .main{margin-top:9px;gap:8px 14px}
  body:not(.lock) .grid{gap:9px}
  body:not(.lock) .grid>.card{padding:9px 13px}
  body:not(.lock) .card-title{margin-bottom:4px;font-size:11px}
  body:not(.lock) .card-title.second{margin-top:5px;padding-top:6px}
  body:not(.lock) .hero{padding:14px 20px}
  body:not(.lock) .hero-amount .digits{font-size:clamp(48px,5.6vw,88px)}
  body:not(.lock) .hero-sub{margin-top:6px}
  body:not(.lock) .progress-block{margin-top:6px}
  body:not(.lock) .tenure-cell{padding:4px 2px 3px}
  body:not(.lock) .tenure-cell b{font-size:clamp(20px,2vw,30px)}
  body:not(.lock) .tenure-cell small{font-size:9px;margin-top:1px}
  body:not(.lock) .tenure-foot{margin-top:4px;font-size:9.5px}
  body:not(.lock) .countdown-value{font-size:clamp(28px,2.8vw,44px)}
  body:not(.lock) .countdown-note{font-size:10px;margin-top:4px;min-height:14px}
  body:not(.lock) .quote-wrap{margin-top:6px;padding:5px 9px 5px 22px;font-size:10px;line-height:1.4}
  body:not(.lock) .quote-mark{font-size:18px;top:2px;left:7px}
  body:not(.lock) .stat-list{gap:0}
  body:not(.lock) .stat-list>div{padding:2px 0}
  body:not(.lock) .stat-list dt{font-size:10.5px}
  body:not(.lock) .stat-list dd{font-size:13.5px}
  body:not(.lock) .stat-list .stat-highlight{margin-top:2px;padding:5px 10px}
  body:not(.lock) .stat-list .stat-highlight dd{font-size:17px}
  body:not(.lock) .fun-list{gap:5px}
  body:not(.lock) .fun-list li{padding:5px 8px}
  body:not(.lock) .fun-list .k{font-size:10px}
  body:not(.lock) .fun-list .v{font-size:13px}
  body:not(.lock) .week-chart{height:44px}
  body:not(.lock) .holiday-card{padding:8px 16px}
  body:not(.lock) .hc-name{font-size:16px}
  body:not(.lock) .hc-meta{font-size:10px}
  body:not(.lock) .hc-days b{font-size:clamp(28px,3vw,44px)}
  body:not(.lock) .hc-days span{font-size:12px}
  body:not(.lock) .hc-precise{font-size:10px}
  body:not(.lock) .hc-tag{font-size:9.5px;padding:3px 6px}
  body:not(.lock) .hc-source{font-size:9px}
  body:not(.lock) .footer{font-size:10px}
}
/* 极矮窗口兜底：宁可允许滚动，也不把内容永久裁掉 */
@media (min-width:1100px) and (max-height:660px){
  body:not(.lock) .app{height:auto;min-height:100vh}
  body:not(.lock) .main{flex:none;grid-template-rows:minmax(290px,auto) auto auto}
  body:not(.lock) .grid{grid-template-rows:minmax(190px,auto) minmax(190px,auto)}
}

/* ---------- 响应式 ---------- */
@media (max-width:1099px){
  .app{padding:20px}
  .topbar{flex-wrap:wrap}
  .brand,.actions{min-width:0}
  .clock-box{order:3;flex-basis:100%;text-align:left}
  body.lock .app{--lock-gap:34vh}
  body.lock .clock-box{order:1;flex-basis:auto;text-align:center}
  .grid{grid-template-columns:1fr}
  .fun-list{grid-template-columns:repeat(4,1fr)}
  .holiday-card{grid-template-columns:1fr auto}
  .hc-right{grid-column:1 / -1}
  body.lock .main{grid-template-columns:1fr 1fr}
  body.lock .tenure-card{grid-column:1;grid-row:1}
  body.lock .countdown-card{grid-column:2;grid-row:1}
  body.lock .holiday-card{grid-column:1 / -1;grid-row:2}
}
@media (max-width:620px){
  .hero{padding:20px}
  .hero-amount{gap:8px}
  .hero-amount .digits{font-size:clamp(48px,13vw,80px)}
  .tenure-cell b{font-size:26px}
  .fun-list{grid-template-columns:1fr 1fr}
  .footer-right{display:none}
  body.lock .app{--lock-gap:26vh;padding:3vh 4vw;height:auto;min-height:100vh}
  body.lock .topbar{flex:none;height:var(--lock-gap)}
  body.lock .main{grid-template-columns:1fr}
  body.lock .tenure-card,body.lock .countdown-card,body.lock .holiday-card{grid-column:1;grid-row:auto}
  .holiday-card{grid-template-columns:1fr}
  .hc-main{text-align:left;padding:0}
  .hc-days{justify-content:flex-start}
}
@media (prefers-reduced-motion:reduce){
  .ambient i,.goldbar-sheen,.live-dot{animation:none}
}
