/* 小确幸 · 样式 */
:root{
  --paper:#f5faf6;
  --paper-2:#fafdfb;
  --paper-3:#e2f0e7;
  --ink:#24352a;
  --ink-2:#4a5f53;
  --ink-3:#6b7f70;
  --line:#dcebe0;
  --line-2:#c9e0d2;
  --accent:#2d6a4f;
  --solid:#2d6a4f;
  --accent-soft:#d8f3dc;
  --green:#35785c;
  --gold:#59784a;
  --shadow:0 1px 2px rgba(45,106,79,.05), 0 8px 24px -12px rgba(45,106,79,.18);
  --r:14px;
  --r-lg:22px;
  --safe-b:env(safe-area-inset-bottom, 0px);
  /* 显示大小：viewscale.js 按屏幕尺寸写这两个值，整套 UI 等比缩放 */
  --ui-scale:1;
  --ui-inv:1;
  --serif:"Songti SC","Noto Serif SC","Source Han Serif SC",Georgia,"Times New Roman",serif;
  --sans:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
/* 整体等比放大：大屏手机上 1 个 CSS px 太小，缩放后字号、间距、圆角一起变大 */
html{zoom:var(--ui-scale,1)}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  background-image:
    radial-gradient(1200px 600px at 50% -20%, #fafdfb 0%, rgba(255,255,255,0) 65%),
    radial-gradient(800px 400px at 100% 100%, #d8f3dc 0%, rgba(238,248,240,0) 70%);
  background-attachment:fixed;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
input,textarea{font:inherit;color:inherit}
h1,h2,h3{font-family:var(--serif);font-weight:600;margin:0;letter-spacing:.01em}
p{margin:0}
#app{min-height:calc(100vh * var(--ui-inv,1));padding-bottom:40px}

/* ── 顶栏 ── */
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;height:58px;padding:0 16px;
  background:rgba(245,250,246,.82);backdrop-filter:saturate(140%) blur(12px);border-bottom:1px solid rgba(220,235,224,.7)}
.tb-back{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:var(--ink);transition:background .18s}
.tb-back:hover{background:rgba(36,53,42,.06)}
.tb-back svg{width:22px;height:22px}
.tb-brand{display:flex;align-items:center;gap:8px;font-family:var(--serif);font-size:17px;letter-spacing:.08em}
.tb-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.tb-title{flex:1;text-align:center;font-size:15px;color:var(--ink-2);font-family:var(--serif)}
.tb-right{min-width:34px;display:flex;justify-content:flex-end}
.tb-link{font-size:14px;color:var(--ink-2);padding:6px 8px;border-radius:8px}
.tb-link:hover{background:rgba(36,53,42,.05)}

.wrap{max-width:620px;margin:0 auto;padding:0 20px}
.wrap.narrow{max-width:480px}
.wrap-narrow{max-width:480px;margin:0 auto;padding:0 24px}

/* ── 通用按钮 ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;
  padding:12px 18px;font-size:15px;transition:transform .14s ease, background .18s, box-shadow .18s, opacity .18s}
.btn svg{width:18px;height:18px}
.btn-primary{background:var(--solid);color:#f5faf7;box-shadow:0 1px 0 rgba(255,255,255,.15) inset,0 8px 20px -10px rgba(36,53,42,.7)}
.btn-primary:hover:not(:disabled){transform:translateY(-1px);background:#22543d}
.btn-primary:active:not(:disabled){transform:translateY(0) scale(.995)}
.btn-primary:disabled{opacity:.32;cursor:not-allowed;box-shadow:none}
.btn-ghost{background:var(--paper-2);color:var(--ink);border:1px solid var(--line-2)}
.btn-ghost:hover{background:#ffffff}
.btn-block{display:flex;width:100%}
.btn-lg{padding:15px 26px;font-size:16px;border-radius:14px}
.link{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(45,106,79,.3);padding-bottom:1px}

/* ── A 欢迎 ── */
.hero{max-width:480px;margin:0 auto;padding:62px 26px 0;text-align:left}
.hero-mark{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:var(--solid);color:#f5faf7;margin-bottom:26px}
.hero-mark svg{width:24px;height:24px}
.hero h1{font-size:38px;letter-spacing:.12em;margin-bottom:14px}
.hero-sub{font-size:16px;color:var(--ink-2);margin-bottom:30px;line-height:1.75}
.hero-list{list-style:none;margin:0 0 26px;padding:0;display:grid;gap:11px}
.hero-list li{display:flex;gap:12px;align-items:baseline;font-size:15px;color:var(--ink-2)}
.hero-list li span{flex:none;width:22px;height:22px;border-radius:6px;background:var(--paper-3);color:var(--ink);
  font-size:12px;display:grid;place-items:center;font-family:var(--serif);align-self:center}
.hero-note{font-size:13.5px;color:var(--ink-3);line-height:1.8;padding-left:14px;border-left:2px solid var(--line-2);margin-bottom:34px}
.hero-foot{margin-top:18px;font-size:13.5px;color:var(--ink-3);text-align:center}
.agree-line{font-size:12.5px;color:var(--ink-3);line-height:1.9;text-align:center;margin-top:26px}
.agree-line .link{font-size:12.5px}

/* ── 底部卡片 ── */
#overlayRoot{position:fixed;inset:0;pointer-events:none;z-index:80}
.mask{position:absolute;inset:0;background:rgba(36,53,42,.34);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .24s ease;pointer-events:auto;display:flex;align-items:flex-end;justify-content:center}
.mask.in{opacity:1}
.sheet{width:100%;max-width:520px;background:var(--paper-2);border-radius:22px 22px 0 0;padding:22px 20px calc(22px + var(--safe-b));
  box-shadow:0 -12px 40px -20px rgba(36,53,42,.5);transform:translateY(18px);transition:transform .28s cubic-bezier(.2,.8,.25,1);
  max-height:88vh;overflow:auto}
.sheet-wide{max-width:600px}
.mask.in .sheet{transform:translateY(0)}
.sheet-hd{display:flex;align-items:flex-start;gap:12px;margin-bottom:6px}
.sheet-hd h2{flex:1;font-size:21px}
.sheet-x{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:var(--ink-3);flex:none}
.sheet-x:hover{background:rgba(36,53,42,.06)}
.sheet-x svg{width:18px;height:18px}
.sheet-sub{font-size:13.5px;color:var(--ink-3);line-height:1.8;margin-bottom:18px}
.sheet-foot{font-size:12.5px;color:var(--ink-3);text-align:center;margin-top:16px;line-height:1.8}
.doc-body{font-size:14px;color:var(--ink-2);line-height:1.9}
.doc-body p{margin-bottom:12px}

/* 登录 */
.auth-col{display:grid;gap:10px;margin-bottom:16px}
.btn-auth{justify-content:flex-start;gap:12px;background:var(--paper);border:1px solid var(--line);padding:14px 16px;font-size:15px}
.btn-auth:hover:not(:disabled){background:#ffffff;border-color:var(--line-2)}
.btn-auth:disabled{opacity:.4;cursor:not-allowed}
.is-muted{opacity:.45}
.btn-auth.is-muted:hover{background:var(--paper);border-color:var(--line)}
.btn-auth svg{width:22px;height:22px;color:var(--ink)}
.check-row{display:flex;align-items:center;gap:10px;padding:9px 4px;font-size:13.5px;color:var(--ink-2);cursor:pointer}
.check-row .box{width:18px;height:18px;border:1.5px solid var(--line-2);border-radius:5px;flex:none;position:relative;transition:.18s}
.check-row.on .box{background:var(--solid);border-color:var(--solid)}
.check-row.on .box::after{content:'';position:absolute;left:5px;top:1.5px;width:5px;height:9px;border:2px solid #ffffff;border-top:0;border-left:0;transform:rotate(42deg)}
.field{display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:14px 15px;margin-bottom:14px}
.field:focus-within{border-color:var(--ink-3);background:#ffffff}
.field input{flex:1;border:0;background:none;outline:none;font-size:16px;letter-spacing:.06em}
.field-hint{font-size:12px;color:var(--ink-3);flex:none}
.wx-card{display:flex;align-items:center;gap:13px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-bottom:16px}
.wx-avatar{width:42px;height:42px;border-radius:12px;background:var(--green);color:#ffffff;display:grid;place-items:center;font-family:var(--serif);font-size:19px}
.wx-card b{display:block;font-size:15px;font-weight:600}
.wx-card i{font-style:normal;font-size:12.5px;color:var(--ink-3)}
.code-row{display:flex;gap:12px;justify-content:center;margin:8px 0 22px}
.code-cell{width:52px;height:60px;border-radius:12px;background:var(--paper);border:1.5px solid var(--line);display:grid;place-items:center;font-size:24px;font-family:var(--serif)}
.code-cell.on{border-color:var(--ink);box-shadow:0 0 0 3px rgba(36,53,42,.05)}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.keypad button{height:52px;border-radius:12px;background:var(--paper);font-size:20px;font-family:var(--serif);transition:.12s}
.keypad button:active{background:var(--paper-3);transform:scale(.97)}

/* ── B1 主页 ── */
.eyebrow{font-size:12.5px;color:var(--ink-3);letter-spacing:.12em;margin-bottom:12px}
.card{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;box-shadow:var(--shadow)}
.label{display:block;font-size:13px;color:var(--ink-3);margin-bottom:9px;letter-spacing:.04em}
.ask textarea,.field-area textarea{width:100%;border:0;background:var(--paper);border-radius:12px;padding:14px 15px;outline:none;font-size:15.5px;line-height:1.75;resize:none;transition:.18s;border:1px solid transparent}
.ask textarea:focus,.field-area textarea:focus{background:#ffffff;border-color:var(--line-2)}
.ask textarea::placeholder,.field-area textarea::placeholder{color:#7d9184}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.chip{font-size:13px;color:var(--ink-2);background:var(--paper);border:1px solid var(--line);border-radius:99px;padding:6px 12px;transition:.16s}
.chip:hover{background:#ffffff;border-color:var(--line-2);color:var(--ink)}
.chip-sm{font-size:12.5px;padding:5px 10px}
.range-hd{display:flex;justify-content:space-between;align-items:baseline;margin:22px 0 12px;font-size:13px;color:var(--ink-3)}
.range-hd b{font-family:var(--serif);font-size:16px;color:var(--ink);letter-spacing:.04em}
.range-wrap{margin-bottom:22px}
input[type=range]{-webkit-appearance:none;width:100%;height:3px;border-radius:2px;outline:none;
  background:linear-gradient(90deg,#63c491,#3f9e6e var(--pct,45%),var(--line) var(--pct,45%))}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:var(--paper-2);
  border:1.5px solid var(--accent);box-shadow:0 2px 8px -2px rgba(45,106,79,.5);cursor:grab}
input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--paper-2);border:1.5px solid var(--accent)}
.range-ticks{display:flex;justify-content:space-between;font-size:11.5px;color:var(--ink-3);margin-top:9px}
.recent{margin:30px 0 0}
.recent h3{font-size:14px;color:var(--ink-3);font-weight:500;font-family:var(--sans);margin-bottom:10px;letter-spacing:.06em}
.recent-item{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;padding:12px 14px;border-radius:12px;transition:.16s}
.recent-item:hover{background:rgba(255,255,255,.8)}
.ri-q{font-size:14.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.ri-d{font-size:12px;color:var(--ink-3)}
.foot-note{font-size:12px;color:var(--ink-3);text-align:center;margin:34px 0 0;line-height:1.8}

/* ── B2 提问 ── */
.step-dots{display:flex;gap:6px;justify-content:center;padding:22px 0 6px}
.step-dots span{width:22px;height:3px;border-radius:2px;background:var(--line-2);transition:.3s}
.step-dots span.on{background:var(--ink);width:34px}
.step-dots span.done{background:var(--ink-3)}
.ask1{padding-top:26px}
.ask-from{font-size:13px;color:var(--ink-3);margin-bottom:16px;padding:10px 14px;background:rgba(255,255,255,.7);border-radius:10px;border-left:2px solid var(--line-2)}
.ask-from b{color:var(--ink-2);font-weight:500}
.ask-h{font-size:25px;line-height:1.45;margin-bottom:20px}
.rotor{height:64px;overflow:hidden;margin-bottom:20px;position:relative}
.rotor::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,var(--paper) 0%,rgba(245,250,246,0) 30%,rgba(245,250,246,0) 70%,var(--paper) 100%);pointer-events:none}
.rotor-line{display:flex;flex-direction:column;gap:2px;opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease}
.rotor-line.in{opacity:1;transform:translateY(0)}
.rp-text{font-family:var(--serif);font-size:19px;color:var(--ink);letter-spacing:.02em;line-height:1.5}
.rp-from{font-size:11.5px;color:var(--ink-3);letter-spacing:.06em}
.field-area{display:block;background:none;border:0;padding:0;margin:0 0 8px}
.field-area .field-hint{display:block;text-align:right;font-size:11.5px;color:var(--ink-3);margin-top:6px}
.ask1 .btn{margin-top:24px}

/* ── B3 brief ── */
.brief-card{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;margin-top:24px;box-shadow:var(--shadow)}
.brief-card .eyebrow{margin-bottom:10px}
.brief-line{font-size:14.5px;color:var(--ink-2);line-height:1.85;margin-bottom:6px}
.brief-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tag{font-size:12px;padding:4px 10px;border-radius:99px;background:var(--paper-3);color:var(--ink-2);letter-spacing:.03em}
.tag-good{background:#dbf2e0;color:var(--green)}
.tag-bad{background:#f8e7de;color:#a2563f}
.tag-mood{background:#eef8f0;color:var(--gold)}
.tag-range{background:transparent;border:1px solid var(--line-2)}
.verdict{margin-top:16px;border-radius:var(--r-lg);padding:18px 19px;border:1px solid #e3c9bb;background:#fbf0e9}
.verdict-scope{border-color:#cfe8d8;background:#f0faf3}
.verdict-h{display:flex;gap:9px;align-items:flex-start;font-size:15px;line-height:1.65;margin-bottom:8px}
.verdict-h svg{width:19px;height:19px;flex:none;color:var(--accent);margin-top:3px}
.verdict-say{font-size:14.5px;color:var(--ink-2);line-height:1.8;margin-bottom:14px;font-family:var(--serif)}
.verdict-dl{margin:0 0 14px;display:grid;gap:10px}
.verdict-dl > div{display:grid;grid-template-columns:72px 1fr;gap:10px}
.verdict-dl dt{font-size:12.5px;color:var(--ink-3);line-height:1.7}
.verdict-dl dd{margin:0;font-size:13.5px;color:var(--ink-2);line-height:1.7}
.verdict-pivot{font-size:12.5px;color:var(--ink-3);margin-bottom:9px}
.pivots{display:flex;flex-wrap:wrap;gap:8px}
.pivot{font-size:13px;background:#ffffff;border:1px solid #d0e9d9;border-radius:99px;padding:7px 13px;color:var(--ink-2);text-align:left}
.pivot:hover{border-color:var(--accent);color:var(--accent)}
.aid-entry{display:flex;align-items:center;gap:9px;width:100%;margin-top:16px;padding:12px 14px;border-radius:12px;
  background:#ffffff;border:1px dashed #d9bcaf;font-size:13.5px;color:var(--ink-2)}
.aid-entry svg{width:18px;height:18px;color:var(--accent)}
.aid-entry span{margin-left:auto;font-size:11.5px;color:var(--ink-3)}
.aid-entry:hover{border-color:var(--accent)}
.aid-list{display:grid;gap:9px}
.aid-item{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:13px 15px;border-radius:12px;background:var(--paper);border:1px solid var(--line);text-decoration:none;color:var(--ink)}
.aid-item b{font-size:14.5px;font-weight:600}
.aid-num{font-family:var(--serif);font-size:16px;color:var(--accent);grid-row:span 2;align-self:center}
.aid-item i{font-style:normal;font-size:12px;color:var(--ink-3)}
.ask2{margin-top:24px}
.ask2 .btn{margin-top:14px}
.shake{animation:shake .4s}
@keyframes shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}

/* ── B4 选日期 ── */
.range-title{font-size:24px;line-height:1.45;margin:18px 0 10px}
.range-sub{font-size:13.5px;color:var(--ink-3);line-height:1.8;margin-bottom:20px}
.cal{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r-lg);padding:14px;box-shadow:var(--shadow)}
.cal-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;padding:0 4px}
.cal-hd b{font-family:var(--serif);font-size:16px;letter-spacing:.05em}
.cal-nav{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:var(--ink-2)}
.cal-nav:hover{background:var(--paper-3)}
.cal-nav svg{width:18px;height:18px}
.cal-week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:11.5px;color:var(--ink-3);margin-bottom:6px}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.cal-cell{aspect-ratio:1/1.15;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border-radius:9px;transition:.14s;position:relative}
.cal-cell.blank{pointer-events:none}
.cal-cell .cd{font-size:14px;line-height:1.1}
.cal-cell .cg{font-size:9.5px;line-height:1.1;letter-spacing:.02em}
.cal-cell .cl{font-size:8.5px;color:var(--ink-3);line-height:1.1;transform:scale(.94)}
.cal-cell:hover{background:var(--paper-3)}
.cal-cell.today .cd{font-weight:700;color:var(--accent)}
.cal-cell.today::after{content:'';position:absolute;bottom:3px;width:3px;height:3px;border-radius:50%;background:var(--accent)}
.cal-cell.past{opacity:.34}
.cal-cell.inwin{background:rgba(82,183,136,.08)}
.cal-cell.sel{background:var(--solid);color:#f5faf7;box-shadow:0 6px 16px -8px rgba(36,53,42,.8)}
.cal-cell.sel .cd{color:#ffffff}
.cal-cell.sel .cg,.cal-cell.sel .cl{color:rgba(255,255,255,.8)}
.cal-cell.sel::after{display:none}
.range-pick{margin:16px 0}
.pick-empty{text-align:center;font-size:13px;color:var(--ink-3);padding:14px}
.pick-card{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--paper-2);border:1px solid var(--line);border-radius:14px;padding:14px 16px;animation:pop .24s ease}
@keyframes pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.pc-date b{display:block;font-family:var(--serif);font-size:17px;letter-spacing:.03em}
.pc-date span{font-size:12px;color:var(--ink-3)}
.pc-range{font-size:12px;color:var(--ink-3);text-align:right;flex:none}

/* ── C 日历页 ── */
.day-wrap{padding-top:6px;max-width:560px}
.day-q{font-size:14px;color:var(--ink-2);padding:12px 0 14px;line-height:1.7;font-family:var(--serif)}
.cal-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:0;scrollbar-width:none;margin:0 -20px;padding:0 20px}
.cal-strip::-webkit-scrollbar{display:none}
.month-card{flex:0 0 100%;width:100%;scroll-snap-align:center;background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px 14px 10px;box-shadow:var(--shadow);margin-right:10px}
.month-card:last-child{margin-right:0}
.mc-hd{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px;padding:0 4px;cursor:pointer}
.mc-hd b{font-family:var(--serif);font-size:17px;letter-spacing:.05em}
.mc-hd span{font-size:11.5px;color:var(--ink-3)}
.mc-week{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:11px;color:var(--ink-3);margin-bottom:5px}
.mc-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}
.mc-day{aspect-ratio:1/1.22;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:9px;position:relative;transition:.14s}
.mc-day .md{font-size:14.5px;line-height:1.15}
.mc-day .mg{font-size:9px;line-height:1.15;letter-spacing:.02em;opacity:.95}
.mc-day.inrange{background:rgba(45,106,79,.14)}
.mc-day.past{opacity:.3}
.mc-day.past.inrange{opacity:.42}
.mc-day.today .md{color:var(--accent);font-weight:700}
.mc-day:hover{background:var(--paper-3)}
.mc-day.sel{background:var(--solid)}
.mc-day.sel .md{color:#ffffff}
.mc-day.sel .mg{color:rgba(255,255,255,.82)}
.mc-day.pressed-long{transform:scale(.94)}
.mp-dot{position:absolute;bottom:4px;width:4px;height:4px;border-radius:50%;background:var(--accent)}
.mc-day.sel .mp-dot{background:#ffffff}
.strip-dots{display:flex;gap:6px;justify-content:center;padding:14px 0 4px}
.strip-dots .dot{width:6px;height:6px;border-radius:50%;background:var(--line-2);transition:.25s}
.strip-dots .dot.on{background:var(--ink);width:16px;border-radius:3px}

.info{padding:16px 0 6px}
.info-hd{margin-bottom:14px}
.info-hd h2{font-size:26px;letter-spacing:.06em}
.info-hd .gz{display:flex;gap:2px;font-size:32px;letter-spacing:.04em}
.info-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.blk{background:var(--paper-2);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin-bottom:11px}
.blk-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:12px}
.blk-h h3{font-size:15px;letter-spacing:.05em;font-weight:600}
.blk-sub{font-size:11.5px;color:var(--ink-3);text-align:right;flex:none;max-width:52%}
.blk-p{font-size:13px;color:var(--ink-2);line-height:1.85;margin-top:10px}
.god-track{position:relative;height:34px;display:flex;align-items:center;border-radius:8px;background:var(--paper);overflow:hidden;padding:0 6px;gap:1px}
.god-fill{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,rgba(82,183,136,.16),rgba(82,183,136,0));z-index:0;transition:width .4s}
.god-node{position:relative;z-index:1;flex:1;text-align:center;font-size:10px;color:var(--ink-3);line-height:1.2;letter-spacing:-.02em}
.god-node.on{color:var(--ink);font-weight:700;font-size:11.5px}
.god-node.on::after{content:'';position:absolute;left:50%;bottom:-6px;width:4px;height:4px;border-radius:50%;background:var(--accent);transform:translateX(-50%)}
.wx-row{display:flex;flex-wrap:wrap;gap:8px}
.wx-chip{font-size:12.5px;padding:5px 11px;border-radius:8px;background:var(--paper);color:var(--ink-2);border:1px solid var(--line)}
.wx-chip[style*="--c"]{border-left:3px solid var(--c);color:var(--ink)}
.yiji{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.yi,.ji{padding:11px 12px;border-radius:10px;background:var(--paper)}
.yi b,.ji b{display:block;font-family:var(--serif);font-size:13px;margin-bottom:4px;letter-spacing:.1em}
.yi b{color:var(--green)}
.ji b{color:var(--accent)}
.yi span,.ji span{font-size:12.5px;color:var(--ink-2);line-height:1.75}
.season-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sr{background:var(--paper);border-radius:10px;padding:10px 11px}
.sr span{display:block;font-size:11px;color:var(--ink-3);margin-bottom:3px}
.sr b{font-size:13.5px;font-weight:600;font-family:var(--serif)}
.hour-mini{display:flex;gap:5px;flex-wrap:wrap}
.hm{width:calc(100% / 12 - 4.6px);aspect-ratio:1/1;display:grid;place-items:center;border-radius:8px;background:var(--paper);font-size:12.5px;font-family:var(--serif);color:var(--ink-3)}
.hm-good{background:#dcf2e1;color:var(--green)}
.hm-bad{background:#f7ebe6;color:#a8634c}
.hm.fit{outline:1.5px solid var(--ink);outline-offset:-1.5px;font-weight:700;color:var(--ink)}
.blk .btn-block{margin-top:14px}
.plan-shown{border-color:var(--line-2);background:#f5faf7}
.plan-text{font-family:var(--serif);font-size:16px;line-height:1.7}
.ig-card{text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}
.ig-card span{display:block;font-size:11.5px;color:var(--ink-3);margin-bottom:3px}
.ig-card b{display:block;font-family:var(--serif);font-size:16px}
.ig-card i{font-style:normal;font-size:11.5px;color:var(--ink-3)}
.ig-card:hover{background:#ffffff}
.info-row{display:flex;gap:12px;font-size:13px;padding:8px 0;border-bottom:1px solid var(--line);line-height:1.75}
.info-row:last-of-type{border-bottom:0}
.ir-k{flex:none;width:64px;color:var(--ink-3);font-size:12.5px}
.ir-v{color:var(--ink-2)}
.info-note{font-size:12px;color:var(--ink-3);margin-top:12px;line-height:1.8}

.poem-bar{overflow:hidden;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin:16px 0 18px;
  mask-image:linear-gradient(90deg,transparent,#16241b 8%,#16241b 92%,transparent)}
.pb-inner{display:inline-flex;gap:44px;white-space:nowrap;font-family:var(--serif);font-size:14px;color:var(--ink-2)}
.pb-inner.run{animation:marquee 34s linear infinite}
.pb-item i{font-style:normal;font-size:11px;color:var(--ink-3);margin-left:9px}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}


/* ── D 收尾 ── */
.fin-hd{padding:26px 0 20px}
.fin-hd h2{font-size:25px;line-height:1.45;margin-bottom:10px}
.fin-hd p{font-size:13.5px;color:var(--ink-3);line-height:1.8}
.fin-plans{display:grid;gap:8px;margin-bottom:16px}
.fp{display:flex;align-items:center;gap:14px;background:var(--paper-2);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.fp-d{flex:none;width:64px}
.fp-d b{display:block;font-family:var(--serif);font-size:16px}
.fp-d i{font-style:normal;font-size:11px;color:var(--ink-3)}
.fp-t{font-size:13.5px;color:var(--ink-2);line-height:1.6}
.save-row{margin-bottom:30px}
.thanks{border-top:1px solid var(--line);padding-top:24px;padding-bottom:20px}
.thanks h3{font-size:17px;letter-spacing:.04em;margin-bottom:7px}
.thanks-sub{font-size:13px;color:var(--ink-3);line-height:1.8;margin-bottom:16px}
.amt-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:12px}
.amt{background:var(--paper-2);border:1px solid var(--line);border-radius:13px;padding:14px;text-align:left;transition:.16s}
.amt b{display:block;font-family:var(--serif);font-size:20px;margin-bottom:3px}
.amt i{font-style:normal;font-size:11.5px;color:var(--ink-3);line-height:1.5}
.amt:hover{border-color:var(--ink-3);transform:translateY(-1px)}
.amt-free b{font-size:17px}
.thanks-more{font-size:12.5px;color:var(--ink-3);border-bottom:1px dashed var(--line-2);padding-bottom:2px;margin:4px 0 12px}
.thanks-foot{font-size:11.5px;color:var(--ink-3);line-height:1.8}
.money-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.money-list li{display:grid;grid-template-columns:88px 1fr;gap:12px;font-size:13px;line-height:1.7;color:var(--ink-2)}
.money-list li b{color:var(--ink);font-weight:600}
.set-list{display:grid;gap:8px}
.set-item{display:flex;flex-direction:column;gap:2px;align-items:flex-start;padding:13px 15px;border-radius:12px;background:var(--paper);border:1px solid var(--line)}
.set-item b{font-size:14.5px}
.set-item i{font-style:normal;font-size:12px;color:var(--ink-3)}
.set-item:hover{background:#ffffff}

/* ── 吐司 ── */
#toastRoot{position:fixed;left:0;right:0;bottom:calc(28px + var(--safe-b));z-index:120;display:flex;justify-content:center;pointer-events:none}
.toast{background:rgba(36,53,42,.94);color:#f5faf7;font-size:13.5px;padding:10px 18px;border-radius:99px;
  box-shadow:0 10px 30px -12px rgba(0,0,0,.6);opacity:0;transform:translateY(10px);transition:.26s}
.toast.in{opacity:1;transform:translateY(0)}

/* ── 动画 ── */
.page > *{animation:rise .34s cubic-bezier(.2,.7,.3,1) both}
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms !important;transition-duration:.01ms !important}}

/* ── 窄屏 / 桌面 ── */
@media (max-width:400px){
  .cal-cell .cl{display:none}
  .mc-day .mg{font-size:8.5px}
  .amt-grid{grid-template-columns:1fr 1fr}
  .season-row{grid-template-columns:1fr 1fr}
}
@media (min-width:720px){
  .hero{padding-top:96px}
  .day-wrap{max-width:600px}
}


/* ══════════════════════════════════════════════════════════════
   APP SHELL · 移动端应用形态
   目标：整屏是一台手机（顶栏 + 可滚内容 + 底部操作条），
   而不是一张会无限往下滚的网页。全屏高度用 dvh，避开地址栏。
   ══════════════════════════════════════════════════════════════ */
html{height:100%;-webkit-text-size-adjust:100%}
body{
  height:100%;overflow:hidden;
  display:flex;justify-content:center;align-items:stretch;
  background:#ddf3e2;
  background-image:radial-gradient(120% 90% at 50% -10%,#f1faf4 0%,#def3e3 52%,#cfe8d8 100%);
  overscroll-behavior:none;
  -webkit-user-select:none;user-select:none;
}
input,textarea{-webkit-user-select:text;user-select:text}

/* 应用列：整屏高，宽度封顶，桌面上就是一台竖着的手机 */
#app.page{
  position:relative;display:flex;flex-direction:column;
  width:100%;max-width:440px;
  height:100vh;height:var(--app-h,100dvh);min-height:0;
  padding:0;overflow:hidden;background:var(--paper);
  box-shadow:0 0 0 1px rgba(45,106,79,.07),0 40px 100px -56px rgba(36,53,42,.6);
}

.page > .topbar{flex:none}
.page > .wrap{
  flex:1 1 auto;min-height:0;width:100%;max-width:none;margin:0;
  padding:2px 20px 20px;
  /* 横向用 clip 不用 hidden：两者裁剪边缘都落在 padding box（观感一样），
     但 clip 不创建横向滚动区——小计划页的侧牌要往两边渗出去，用 hidden 时
     它们会被算成 143px 的可滚动溢出（实测 scrollWidth 533 / clientWidth 390）。 */
  overflow-y:auto;overflow-x:clip;overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;scrollbar-width:none;
}
.page > .wrap::-webkit-scrollbar{display:none;width:0;height:0}
.page > .hero{
  flex:1 1 auto;min-height:0;width:100%;max-width:none;margin:0;
  padding:calc(30px + env(safe-area-inset-top,0px)) 24px 10px;
  overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;
  display:flex;flex-direction:column;
}
.page > .hero::-webkit-scrollbar{display:none}
.page > .hero::before,.page > .hero::after{content:'';flex:none;height:0}
.page > .hero::before{margin-top:auto}
.page > .hero::after{margin-bottom:auto}
.page > .wrap-narrow{
  flex:none;width:100%;max-width:none;margin:0;padding:0 24px 8px;
}

/* ── 顶栏：更薄、更透、点按区 44 ── */
.topbar{
  position:relative;z-index:30;flex:none;display:flex;align-items:center;gap:6px;
  height:calc(50px + env(safe-area-inset-top,0px));
  padding:env(safe-area-inset-top,0px) 10px 0;
  background:rgba(245,250,246,.9);
  -webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);
  border-bottom:1px solid rgba(220,235,224,.55);
  transition:border-color .2s ease,box-shadow .2s ease;
}
.topbar.is-scrolled{border-bottom-color:transparent;box-shadow:0 10px 18px -20px rgba(36,53,42,.9)}
.tb-back{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:var(--ink);transition:background .16s,transform .16s}
.tb-back:active{background:rgba(36,53,42,.06);transform:scale(.94)}
.tb-back svg{width:23px;height:23px}
.tb-brand{display:flex;align-items:center;gap:8px;font-family:var(--serif);font-size:17px;letter-spacing:.1em;padding-left:4px}
.tb-title{flex:1;text-align:center;font-family:var(--sans);font-size:16px;font-weight:600;color:var(--ink);letter-spacing:.01em}
.tb-right{min-width:44px;display:flex;justify-content:flex-end}
.tb-link{font-size:14px;color:var(--ink-2);padding:9px 12px;border-radius:12px;transition:background .16s}
.tb-link:active{background:rgba(36,53,42,.06)}

/* ── 底部操作条：真·常驻，不随内容滚走 ── */
.cta-dock{
  flex:none;position:relative;z-index:25;
  padding:10px 20px calc(10px + env(safe-area-inset-bottom,0px));
  background:var(--paper);
  border-top:1px solid rgba(220,235,224,.75);
  box-shadow:0 -14px 24px -26px rgba(36,53,42,.9);
}
.cta-dock .btn{width:100%}
.cta-dock .link{font-size:13px}
/* 备案号：法规要求页脚可见可点，别缩成看不见的小字 */
.cta-dock .icp-line{margin:8px 0 0;font-size:11.5px;line-height:1.6;text-align:center;color:var(--ink-3)}
.cta-dock .icp-line a{color:inherit;text-decoration:none}
.cta-dock .icp-line a:hover{text-decoration:underline}

/* ── 按钮：52 高、可按、按下有反馈 ── */
.btn{
  border-radius:16px;min-height:50px;padding:0 20px;
  font-size:16px;font-weight:600;letter-spacing:.01em;
  transition:transform .14s cubic-bezier(.2,.8,.3,1),background .18s,opacity .18s,box-shadow .18s;
}
.btn svg{width:19px;height:19px}
.btn-primary{background:linear-gradient(135deg,#63c491,#3f9e6e);color:#ffffff;box-shadow:0 6px 18px -8px rgba(82,183,136,.6),0 1px 0 rgba(255,255,255,.2) inset}
.btn-primary:active:not(:disabled){transform:scale(.972);background:linear-gradient(135deg,#5bbc88,#3b9367)}
.btn-primary:disabled{opacity:.3;box-shadow:none}
.btn-ghost{background:#fafdfb;border:1px solid var(--line-2);border-radius:16px}
.btn-ghost:active{transform:scale(.98);background:#ffffff}
.btn-lg{min-height:54px;font-size:16.5px;border-radius:17px}
.btn-block{display:flex;width:100%}

/* ── 卡片：去掉重描边，靠层次和留白 ── */
.card,.brief-card,.cal,.month-card{
  background:#fafdfb;border:1px solid rgba(45,106,79,.09);border-radius:20px;
  box-shadow:0 1px 2px rgba(36,53,42,.035),0 14px 30px -28px rgba(36,53,42,.6);
}
.card{padding:18px}
.label{font-size:13px;color:var(--ink-3);margin-bottom:8px;letter-spacing:.01em}

/* ── 输入 ── */
.ask textarea,.field-area textarea{
  font-size:16px;line-height:1.7;border-radius:14px;background:#fafdfb;
  border:1px solid rgba(45,106,79,.1);padding:14px 15px;
}
.ask textarea{min-height:92px}
.ask textarea:focus,.field-area textarea:focus{background:#ffffff;border-color:var(--line-2);box-shadow:0 0 0 3px rgba(45,106,79,.06)}
.field{min-height:54px;border-radius:14px;background:#fafdfb;border:1px solid rgba(45,106,79,.1)}
.field input{font-size:16px}

/* ── Chip：一行横滚，像筛选条 ── */
.card .chips{
  flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;
  margin:12px -18px 2px;padding:2px 18px 6px;
}
.card .chips::-webkit-scrollbar{display:none}
.chip{
  height:34px;display:inline-flex;align-items:center;padding:0 14px;flex:none;white-space:nowrap;
  font-size:13px;border-radius:99px;background:#fafdfb;border:1px solid rgba(45,106,79,.11);color:var(--ink-2);
  transition:transform .14s,background .16s,border-color .16s;
}
.chip:active{transform:scale(.95);background:var(--paper-3)}
.chip-sm{height:30px;font-size:12.5px;padding:0 12px}

/* ── 首屏 ── */
.page-welcome{background:var(--paper)}
.hero-mark{width:52px;height:52px;border-radius:16px;margin-bottom:24px;box-shadow:0 14px 24px -18px rgba(36,53,42,1)}
.hero-mark svg{width:26px;height:26px}
.hero h1{font-size:40px;line-height:1.2;letter-spacing:.04em;font-weight:700;margin-bottom:12px}
.hero-sub{font-size:16.5px;line-height:1.7;color:var(--ink-2);margin-bottom:26px}
.hero-list{gap:12px;margin-bottom:24px}
.hero-list li{font-size:15px;line-height:1.6;align-items:flex-start}
.hero-list li span{width:24px;height:24px;border-radius:8px;font-size:12.5px;margin-top:1px}
.hero-note{font-size:13.5px;line-height:1.85;padding-left:13px;border-left:2px solid var(--line-2);margin-bottom:8px}
.hero-foot{margin:14px 0 2px;font-size:13.5px;text-align:left}
.agree-line{font-size:12px;line-height:1.8;text-align:left;margin:2px 0 0;color:var(--ink-3)}

/* ── 主页 ── */
.eyebrow{font-size:12px;letter-spacing:.14em;color:var(--ink-3);margin-bottom:10px}
.range-hd{margin:20px 0 10px}
.range-hd b{font-family:var(--sans);font-size:17px;font-weight:700;letter-spacing:0}
.range-wrap{margin-bottom:18px;padding:4px 0}
input[type=range]{
  height:30px;border-radius:0;
  background:linear-gradient(90deg,#63c491,#3f9e6e var(--pct,45%),var(--line) var(--pct,45%)) center/100% 5px no-repeat;
}
input[type=range]::-webkit-slider-thumb{width:26px;height:26px;border:2px solid #ffffff;background:var(--accent);box-shadow:0 3px 10px -2px rgba(45,106,79,.55)}
input[type=range]::-moz-range-thumb{width:22px;height:22px;border:2px solid #ffffff;background:var(--accent)}
.range-ticks{font-size:11.5px;margin-top:2px}

/* ── 提问页 ── */
.ask1{padding-top:18px}
.ask-h{font-size:26px;line-height:1.45;margin-bottom:18px}
.rotor{height:70px}
.ask-from{font-size:13px;border-radius:12px;padding:11px 14px;background:rgba(255,255,255,.8)}
.step-dots{padding:16px 0 4px}
.field-area .field-hint{font-size:11.5px}

/* ── 终审 / 风险 ── */
.verdict{border-radius:18px;padding:17px 17px 15px}
.aid-entry{min-height:50px;border-radius:14px;background:#fafdfb}
.pivot{min-height:36px;display:inline-flex;align-items:center}
.pivots{gap:8px}

/* ── 选日期 ── */
.range-title{font-size:24px;line-height:1.45;margin:14px 0 8px}
.range-sub{font-size:13.5px;margin-bottom:16px}
.cal{padding:16px 14px 12px;border-radius:20px}
.cal-hd{margin-bottom:8px}
.cal-nav{width:40px;height:40px;border-radius:12px}
.cal-nav:active{background:var(--paper-3)}
.cal-week{font-size:11.5px;margin-bottom:4px}
.cal-grid{gap:2px}
.cal-cell{aspect-ratio:1/1;border-radius:.6875rem;min-height:2.75rem;transition:transform .14s,background .16s}
.cal-cell:active{transform:scale(.93)}
.cal-cell .cd{font-size:15px}
.cal-cell .cg{font-size:9.5px}
.cal-cell .cl{font-size:9px}
.cal-cell.inwin{background:rgba(82,183,136,.1)}
.cal-cell.sel{background:var(--solid);box-shadow:0 10px 18px -14px rgba(0,0,0,.9)}
.range-pick{margin:14px 0 2px}
.pick-card{border-radius:16px;background:#fafdfb;padding:14px 16px}

/* ── C 日历页 ── */
.day-q{font-size:14px;padding:10px 0 12px;line-height:1.65}
.cal-strip{margin:0 -20px;padding:0 20px 2px}
.month-card{padding:16px 12px 12px;border-radius:20px;margin-right:12px}
.mc-hd{margin-bottom:10px}
.mc-hd b{font-size:17px}
.mc-day{aspect-ratio:1/1.02;border-radius:.6875rem;min-height:2.75rem;transition:transform .14s,background .16s}
.mc-day:active{transform:scale(.92)}
.mc-day .md{font-size:15px}
.mc-day .mg{font-size:9.5px}
.mc-day.inrange{background:rgba(45,106,79,.16)}
.mc-day.sel{background:var(--solid);box-shadow:0 10px 18px -14px rgba(0,0,0,.9)}
.mp-dot{width:5px;height:5px;bottom:3px}
.strip-dots{padding:12px 0 2px}

/* 信息区：一屏一块，别堆成一堵墙 */
.info{padding:18px 0 4px}
.info-hd{margin-bottom:12px}
.info-hd h2{font-size:23px;letter-spacing:.04em}
.info-hd .gz{font-size:31px}
.blk{border-radius:18px;padding:16px;background:#fafdfb;border:1px solid rgba(45,106,79,.08);margin-bottom:10px}
.blk-h h3{font-size:15px}
.god-track{height:38px;border-radius:10px;background:var(--paper)}
.yi,.ji{border-radius:12px;padding:12px}
.season-row{gap:8px}
.sr{border-radius:12px;padding:11px}
.hm{border-radius:9px;font-size:13px}
.info-grid{gap:8px}
.ig-card{border-radius:14px;background:#fafdfb;border:1px solid rgba(45,106,79,.09)}
.ig-card:active{background:#ffffff}
.poem-bar{margin:14px 0 12px;padding:12px 0}

/* ── 计划卡 · 时辰滑轨 ──
   按 design/plan-sheet/bar-time.html 落地：白天一格一格切时辰，停住精调分钟。
   px 值照抄设计稿（390 宽），站点的 --ui-scale 会整体等比放大。 */
.ps-hd { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 0px; }
.ps-hd-main { flex: 1 1 auto; min-width: 0px; padding-top: 2px; }
.ps-date { font-family: var(--serif); font-size: 24px; line-height: 1.22; letter-spacing: .02em; color: var(--ink); }
.ps-date em { font-style: normal; font-family: var(--sans); font-size: 12.5px; color: #a8bcae; margin-left: 9px; letter-spacing: .08em; }
.ps-count { margin-top: 2px; font-size: 11px; color: #a8bcae; letter-spacing: .04em; }
.ps-del { margin-top: 14px; text-align: center; }
.ps-del-btn { background: none; border: 0px; padding: 6px 10px; font-size: 12.5px; color: #a2553d; letter-spacing: .02em; cursor: pointer; }
.ps-del-btn:active { opacity: .6; }
.ps-sub { display: flex; align-items: flex-end; gap: 12px; margin-top: 3px; }
.ps-lun { flex: 1 1 auto; min-width: 0px; font-size: 10.5px; color: #c3d3c9; letter-spacing: .1em; padding-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-time { display: flex; align-items: baseline; gap: 7px; flex: none; }
.ps-zhi { font-size: 10.5px; color: #a8bcae; letter-spacing: .12em; }
.ps-clock {
  font-family: var(--serif); font-size: 20px; line-height: 1.1; color: var(--solid);
  letter-spacing: .02em; font-variant-numeric: tabular-nums; transition: font-size .18s;
  white-space: nowrap;
}
.ps-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #bdcfc3;
  background: none; border: 0; margin: -3px -7px 0 0; flex: none; cursor: pointer; }
.ps-x svg { width: 13px; height: 13px; }

.ps-barwrap { margin-top: 22px; touch-action: none; user-select: none; -webkit-user-select: none; }
.ps-rail { position: relative; height: 22px; margin: 0px 10px; cursor: grab; touch-action: none; }
.ps-rail:active { cursor: grabbing; }
.ps-track { position: absolute; left: 0px; right: 0px; top: 9px; height: 4px; border-radius: 99px; background: #edf4ef; }
.ps-fill { position: absolute; left: 0px; top: 0px; bottom: 0px; border-radius: 99px; background: #cfe9dc; width: 0px; }
.ps-knob {
  position: absolute; top: 3px; left: 0px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: #ffffff; box-shadow: 0 0 0 2px var(--solid), 0 3px 8px -3px rgba(45,106,79,.6);
  transition: transform .3s cubic-bezier(.34,1.4,.56,1);
}
.ps-knob::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--solid); }
.ps-barwrap.is-fine .ps-knob { box-shadow: 0 0 0 2px var(--solid), 0 0 0 5px var(--paper-2), 0 3px 8px -3px rgba(45,106,79,.5); }

.ps-mticks { position: absolute; left: 0px; right: 0px; top: 9px; height: 4px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ps-mticks i { position: absolute; top: -4px; width: 1px; height: 6px; background: #dfece5; transform: translateX(-.5px); }
.ps-mticks i.b { height: 10px; top: -6px; background: #c2dbcd; }
.ps-barwrap.is-fine .ps-mticks { opacity: 1; }

.ps-scales { position: relative; height: 17px; margin: 6px 10px 0px; }
.ps-scale { position: absolute; inset: 0px; display: flex; align-items: flex-start; transition: opacity .18s; }
.ps-scale-z span { flex: 1 1 0px; text-align: center; font-size: 10.5px; color: #d6e2d9; letter-spacing: .02em; transition: color .2s; }
.ps-scale-z span.on { color: #8fb59e; }
.ps-scale-z span.p::after { content: ''; display: block; width: 3px; height: 3px; border-radius: 50%; background: #b9dcc9; margin: 4px auto 0px; }
.ps-scale-z span.on.p::after { background: #7fbb9c; }
.ps-scale-t { justify-content: space-between; color: #a8bcae; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .02em; opacity: 0; pointer-events: none; }
.ps-barwrap.is-fine .ps-scale-z { opacity: 0; visibility: hidden; }
.ps-barwrap.is-fine .ps-scale-t { opacity: 1; }

.ps-sec { margin-top: 22px; }
.ps-sec textarea {
  width: 100%; height: 68px; border: 1px solid #e5efe9; background: #ffffff; border-radius: 14px;
  padding: 11px 14px; font-size: 14.5px; line-height: 1.7; resize: none; outline: none;
  font-family: var(--sans); color: var(--ink); letter-spacing: .02em;
  transition: border-color .18s, box-shadow .18s;
}
.ps-sec textarea::placeholder { color: #b1c2b6; }
.ps-sec textarea:focus { border-color: #a8d8bf; background: #ffffff; box-shadow: 0 0 0 3px rgba(63,174,123,.09); }

/* 这颗按钮照设计稿：实心深绿 + 字距拉开，不用站点那支渐变 */
.ps-cta .btn {
  height: 50px; border-radius: 14px; background: var(--solid); color: #ffffff;
  font-size: 15.5px; font-weight: 500; letter-spacing: .2em; text-indent: .2em;
  box-shadow: 0 8px 18px -12px rgba(45,106,79,.9), inset 0 1px 0 rgba(255,255,255,.14);
}
.ps-cta .btn:hover:not(:disabled) { background: #255741; transform: none; }
.ps-cta .btn:active:not(:disabled) { background: #224f3b; transform: scale(.99); }
@media (max-height: 740px) {
  .ps-barwrap { margin-top: 16px; }
  .ps-sec { margin-top: 16px; }
  .ps-sec textarea { height: 64px; font-size: 13.5px; padding: 9px 12px; line-height: 1.6; }
  .ps-date { font-size: 22px; }
  .plan-cta { padding-top: 9px; padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px)); }
}

/* ── 计划卡 ── */
/* 底部这颗「把它放进这天」：吸底的是外面这层遮罩，按钮保持自己的绿色。
   以前遮罩写在这颗按钮自己身上，把 .btn-primary 的背景整块盖掉了 —— 白底白字。 */
.plan-cta{
  /* 吸在滚动区底边。原来靠负的 margin-bottom 去够底部的安全区，
     负 margin 会让贴着底的那一版整体沉到屏幕外 —— 小屏上按钮被切掉一截就是它。 */
  position:sticky;bottom:0;z-index:5;
  margin:16px -20px 0;
  padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));
  /* 渐隐在按钮上方就结束，按钮本身不会被半透明盖住 */
  background:linear-gradient(180deg,rgba(250,253,251,0),#fafdfb 18px);
}

/* ── 收尾 ── */
.fin-hd{padding:18px 0 18px}
.fin-hd h2{font-size:25px;line-height:1.4}
.fp{border-radius:16px;background:#fafdfb;padding:13px 15px}
.thanks{padding-top:22px;padding-bottom:6px}
.amt{min-height:78px;border-radius:16px;background:#fafdfb;padding:15px}
.amt b{font-size:22px}
.amt:active{transform:scale(.97);border-color:var(--ink-3)}
.amt-free b{font-size:17px}
.thanks-more{padding:2px 0}
.money-list li{font-size:13px}
.set-item{min-height:56px;border-radius:14px}

/* ── 底部卡片：抓握条 + 只滚内容 ── */
.mask{background:rgba(36,53,42,.42);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);align-items:flex-end}
.sheet{
  display:flex;flex-direction:column;
  max-width:440px;width:100%;
  max-height:calc(min(88dvh,760px) * var(--ui-inv,1));
  padding:0;border-radius:26px 26px 0 0;overflow:hidden;
  background:var(--paper-2);
  box-shadow:0 -24px 60px -30px rgba(32,48,38,.7);
  transform:translateY(100%);
  transition:transform .32s cubic-bezier(.32,.72,0,1);
}
.sheet-wide{max-width:440px}
.mask.in .sheet{transform:translateY(0)}
.sheet-grab{flex:none;height:24px;display:grid;place-items:center;touch-action:none;cursor:grab}
.sheet-grab i{width:38px;height:5px;border-radius:99px;background:#cee7d7}
.sheet-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  padding:2px 20px calc(18px + env(safe-area-inset-bottom,0px));
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.sheet-body::-webkit-scrollbar{display:none}
.sheet-hd{margin-bottom:4px}
.sheet-hd h2{font-size:21px;line-height:1.4}
.sheet-x{width:40px;height:40px;margin-right:-6px}
.sheet-x:active{background:rgba(36,53,42,.06)}
.sheet-sub{font-size:13.5px;margin-bottom:14px}
.doc-body{font-size:14.5px;line-height:1.85}

/* ── 吐司：抬到操作条上方 ── */
#toastRoot{bottom:calc(150px + env(safe-area-inset-bottom,0px));padding:0 16px}
#toastRoot.is-high{bottom:calc(324px + env(safe-area-inset-bottom,0px))}
.toast{font-size:14px;padding:11px 18px;border-radius:14px;max-width:100%;line-height:1.5}

/* ── 键盘 / 验证码 ── */
.code-cell{width:54px;height:62px;border-radius:14px}
.keypad button{height:56px;border-radius:14px;font-size:21px}
.keypad button:active{transform:scale(.96)}
.check-row{padding:11px 2px;font-size:13.5px;min-height:44px}
.check-row .box{width:20px;height:20px;border-radius:6px}

/* ── 焦点可见（键盘用户） ── */
.btn:focus-visible,.chip:focus-visible,.mc-day:focus-visible,.cal-cell:focus-visible,.amt:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px
}

/* ── 矮屏 / 窄屏 ── */
@media (max-height:700px){
  .hero{padding-top:calc(18px + env(safe-area-inset-top,0px))!important}
  .hero h1{font-size:34px}
  .hero-list li{font-size:14px}
}
@media (max-width:380px){
  .page > .wrap{padding-left:16px;padding-right:16px}
  .cal-strip{margin:0 -16px;padding:0 16px 2px}
  .cta-dock{padding-left:16px;padding-right:16px}
}
/* ══════════ 首页：底栏 + 计算时间 + 提问输入（tab 结构） ══════════ */
.home-wrap{display:flex;flex-direction:column;height:100%;padding:0 1.25rem .375rem}
.home-quiet{
  flex:1 1 auto;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;
  padding:.5rem 0 .25rem;min-height:0;
}

/* 四叶草：主页正中的记号，诗句就挂在它下面 */
.clover-mark{
  position:relative;width:3.75rem;height:3.75rem;margin:0 0 .625rem;
  display:grid;place-items:center;color:#46a87a;
}
.clover-mark::before{
  content:'';position:absolute;inset:-.5rem;border-radius:50%;
  background:radial-gradient(circle at 50% 46%, rgba(82,183,136,.14), rgba(82,183,136,0) 70%);
}
.clover-mark svg{
  position:relative;width:3.75rem;height:3.75rem;
  filter:drop-shadow(0 8px 18px rgba(82,183,136,.35));
  animation:clover-float 4.5s ease-in-out infinite;
}
@keyframes clover-float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}
.home-quiet .rotor{
  height:auto;min-height:5rem;margin:0;padding:0;border-left:0;
  width:100%;overflow:visible;
  display:flex;flex-direction:column;justify-content:center;
}
.home-quiet .rotor::after{display:none}
.home-quiet .rotor-line{gap:.25rem;align-items:center}
.home-quiet .rp-text{font-size:clamp(1.25rem,1.15rem + .35vw,1.375rem);line-height:1.62;color:var(--ink-2)}
.home-quiet .rp-from{font-size:.75rem;letter-spacing:.08em;color:var(--ink-3)}

/* 底栏
   这里是标签栏，不是操作条：两个 tab 常驻，切换「小确幸 / 小计划」 */
.tabbar{
  flex:none;display:flex;align-items:stretch;
  height:calc(54px + var(--safe-b));padding-bottom:var(--safe-b);
  background:rgba(255,255,255,.94);
  border-top:1px solid var(--line);
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
}
.tabbar .tab{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:10.5px;letter-spacing:.04em;color:var(--ink-3);
  transition:color .18s ease,transform .18s ease;
}
/* 两个图标同尺寸 22px：四叶草的画稿只占 64 盒子里的一部分，靠 ICON.cloverTab 内部放大补足重量 */
.tabbar .tab svg{width:22px;height:22px;transition:transform .18s ease}
/* 图标继承 tab 的颜色：选中深绿、未选中暗灰绿（和标签同色，不单独上色） */
.tabbar .tab:active{transform:scale(.94)}
.tabbar .tab.on{color:var(--accent)}
.tabbar .tab.on svg{transform:translateY(-1px)}

/* 输入区（最外层一块，上面浮着时间选择） */
.home-dock{flex:none;padding:.375rem 1rem .875rem;background:var(--paper)}
/* 选择计算时间 */
.time-card{
  background:var(--paper-2);border:1px solid var(--line-2);border-radius:16px;
  padding:.5rem .875rem .125rem;margin-bottom:.5rem;
  box-shadow:0 1px 1px rgba(45,106,79,.03);
}
.time-hd{display:flex;align-items:baseline;justify-content:space-between;font-size:.875rem;color:var(--ink-3);letter-spacing:.02em}
.time-hd b{font-size:1rem;font-weight:600;color:var(--ink);letter-spacing:.01em}
.time-card input[type=range]{margin:2px 0 0}
.time-card .range-ticks{font-size:.75rem;color:var(--ink-3);margin:0 2px .25rem;opacity:.8}

/* 写问题 */
.composer{
  display:flex;align-items:flex-end;gap:.5rem;
  background:var(--paper-2);border:1px solid var(--line-2);border-radius:22px;
  padding:.3125rem .375rem .3125rem 1rem;margin-bottom:.5rem;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.composer:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px rgba(45,106,79,.09)}
.composer textarea{
  flex:1;min-height:3rem;max-height:7rem;width:auto;
  border:0;background:transparent;border-radius:0;padding:.4375rem 0;
  font-size:.875rem;line-height:1.5;resize:none;outline:none;
}
.composer textarea:focus{background:transparent;box-shadow:none}
.composer textarea::placeholder{color:#7d9184}
.composer .send{
  flex:none;width:2.75rem;height:2.75rem;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#63c491,#3f9e6e);color:#ffffff;box-shadow:0 4px 12px -4px rgba(82,183,136,.6);
  transition:transform .16s ease,background .2s ease,opacity .2s ease;
}
.composer .send svg{width:20px;height:20px;transition:transform .18s ease}
/* 第二步时把箭头转 90°（↑ → →），提示「这一步是往下走」 */
.composer .send.is-next svg{transform:rotate(90deg)}
/* 按钮里的文案只给读屏/测试用，视觉上只有那颗箭头 */
.send-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;white-space:nowrap;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}
.composer .send:active{transform:scale(.93)}
.composer .send:disabled{background:var(--line-2);color:var(--paper-2);opacity:1}

/* ══════════ 小计划 ══════════ */
.page > .wrap.plans-wrap{padding:calc(.75rem + env(safe-area-inset-top,0px)) .5rem 1.25rem}
/* 小计划没有顶栏：设置缩成列表最底下的一行小字 */
.pl-foot{display:flex;justify-content:center;padding:1.25rem 0 .5rem}
.pl-setting{background:none;border:0;padding:.5rem .75rem;font:inherit;font-size:.75rem;letter-spacing:.04em;color:var(--ink-3);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pl-setting:active{color:var(--accent)}
.plans-sub{font-size:12.5px;color:var(--ink-3);margin:2px 0 16px;line-height:1.7}
.plan-item{
  display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;
  background:var(--paper-2);border:1px solid var(--line-2);border-radius:18px;
  padding:14px 16px;margin-bottom:10px;
  box-shadow:0 1px 2px rgba(45,106,79,.04);
  transition:transform .14s ease;
}
.plan-item:active{transform:scale(.988)}
.pi-q{font-size:15px;line-height:1.5;color:var(--ink)}
.pi-meta{font-size:11.5px;color:var(--ink-3);letter-spacing:.02em}
.pi-plan{
  margin-top:6px;padding-top:8px;border-top:1px dashed var(--line);
  font-size:12.5px;color:var(--green);line-height:1.6;
}
.plans-empty{text-align:center;padding:56px 10px 30px}
.pe-t{font-size:17px;color:var(--ink);margin-bottom:8px;font-family:var(--serif)}
.pe-s{font-size:13px;color:var(--ink-3);line-height:1.9;margin-bottom:24px}
.plans-empty .btn{max-width:200px;margin:0 auto}
.brief-q{
  font-family:var(--serif);font-size:17px;line-height:1.62;color:var(--ink-2);
  margin:-2px 0 13px;padding-left:13px;border-left:2px solid var(--line-2);
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
/* 顶栏里的四叶草，替掉原来的小圆点 */
.tb-dot.tb-clover{width:17px;height:17px;background:none;box-shadow:none;color:#46a87a;display:grid;place-items:center}
.tb-dot.tb-clover svg{width:17px;height:17px;display:block}
.tb-brand{letter-spacing:.1em}
/* ══════════ 提问区：输入是一张大白卡，选时间收成下面一条细条 ══════════
   原来「时间 + 输入」挤在同一张卡里，时间那条几乎和输入一样重。
   现在拆成两张：上面整张白卡只放输入（4.4rem 起，打字时自己长高），
   下面一条 34px 的细条只放「往后看多久 + 细轨」，谁的层级高一眼就看出来。 */
.ask-card{
  display:flex;flex-direction:column;gap:.5rem;
  margin-bottom:9px;
  background:none;border:0;box-shadow:none;
}
.ask-card .composer{
  order:1;
  background:var(--paper-2);border:1px solid var(--line-2);border-radius:20px;
  padding:.8125rem .8125rem .8125rem 1.0625rem;margin:0;
  min-height:0;
  box-shadow:0 14px 34px -26px rgba(36,88,62,.6),0 2px 8px -4px rgba(36,88,62,.10);
  transition:border-color .22s ease,box-shadow .22s ease;
}
.ask-card .composer:focus-within{
  border-color:#b9d9c6;
  box-shadow:0 14px 34px -24px rgba(36,88,62,.62),0 0 0 3px rgba(45,106,79,.08);
}
.ask-card .composer textarea{
  min-height:4.375rem;max-height:9rem;
  font-size:.9375rem;line-height:1.72;padding:.125rem 0;
}
.ask-card .composer textarea::placeholder{font-size:.875rem}
.ask-card .composer .send{width:2.5rem;height:2.5rem}
.ask-card .composer .send svg{width:18px;height:18px}
.ask-card .time-card{
  order:2;
  display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.875rem;
  margin:0;padding:.4375rem .875rem .4375rem .75rem;
  background:var(--paper-2);border:1px solid var(--line-2);border-radius:14px;
  box-shadow:0 1px 1px rgba(45,106,79,.03);
}
.ask-card .time-hd{
  display:flex;align-items:baseline;gap:.375rem;
  font-size:.75rem;color:var(--ink-3);margin:0;white-space:nowrap;letter-spacing:.02em;
}
.ask-card .time-hd b{font-size:.8125rem;font-weight:600;color:var(--ink)}
.ask-card .time-card .range-ticks{display:none}
.ask-card .time-card input[type=range]{margin:0;height:1.125rem;background-size:100% .1875rem}
.ask-card .time-card input[type=range]::-webkit-slider-thumb{width:1.125rem;height:1.125rem}
.ask-card .time-card input[type=range]::-moz-range-thumb{width:1.125rem;height:1.125rem}
/* ══════════ 欢迎页：登录内联在页面上 ══════════ */
.page > .wrap.welcome-wrap{padding-bottom:14px}
.welcome-wrap .hero{max-width:none;margin:0;padding:26px 0 0;text-align:left}
.welcome-wrap .hero-mark{
  width:46px;height:46px;border-radius:0;margin-bottom:16px;
  background:none;color:#46a87a;
  box-shadow:none;
}
.welcome-wrap .hero-mark svg{
  width:46px;height:46px;
  filter:drop-shadow(0 8px 18px rgba(82,183,136,.32));
}
.welcome-wrap .hero h1{font-size:32px;line-height:1.22;letter-spacing:.06em;margin-bottom:10px}
.welcome-wrap .hero-sub{font-size:14.5px;line-height:1.7;margin-bottom:18px}
.welcome-wrap .hero-list{gap:8px;margin-bottom:16px}
.welcome-wrap .hero-list li{font-size:13.5px;line-height:1.55}
.welcome-wrap .hero-list li span{width:22px;height:22px;border-radius:7px;font-size:11.5px;margin-top:1px}
.welcome-wrap .hero-note{font-size:12.5px;line-height:1.78;margin-bottom:0;padding-left:11px}
.login-block{
  margin-top:22px;padding-top:20px;
  border-top:1px solid var(--line);
  display:flex;flex-direction:column;
}
.login-hd{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:11px}
.login-hd b{font-size:13.5px;font-weight:600;letter-spacing:.04em;color:var(--ink)}
.login-hd i{font-style:normal;font-size:11.5px;color:var(--ink-3)}
.login-block .field{margin-bottom:9px;min-height:52px}
.field-ic{flex:none;display:grid;place-items:center;color:var(--ink-3)}
.field-ic svg{width:19px;height:19px}
.field input.is-ok{color:var(--green);letter-spacing:.18em}
.code-line{display:flex;gap:9px;align-items:stretch}
.code-line .field{flex:1;min-width:0;margin-bottom:0}
.btn-code{
  flex:none;min-height:52px;padding:0 14px;border-radius:14px;border:1px solid transparent;
  background:var(--paper-3);color:var(--ink-2);font-size:12.5px;white-space:nowrap;
  transition:transform .14s ease,opacity .2s ease;
}
.btn-code:not(:disabled):active{transform:scale(.97)}
.btn-code:disabled{opacity:.45}
.field-code{padding-right:8px}
.field-code input{letter-spacing:.22em}
.code-btn{
  flex:none;padding:9px 12px;border:0;border-bottom:0;border-radius:10px;
  background:var(--paper-3);color:var(--green);font-size:12.5px;white-space:nowrap;
  transition:transform .14s ease,opacity .2s ease;
}
.code-btn:not(:disabled):active{transform:scale(.96)}
.code-btn:disabled{opacity:.45;color:var(--ink-3)}
.login-tip{font-size:11.5px;line-height:1.7;color:var(--ink-3);margin:10px 2px 0;min-height:20px}
.login-tip.ok{color:var(--green)}
.or-line{display:flex;align-items:center;gap:11px;margin:15px 0 12px;color:var(--ink-3);font-size:11.5px}
.or-line::before,.or-line::after{content:'';flex:1;height:1px;background:var(--line-2)}
.welcome-wrap .hero-foot{margin:20px 0 4px;font-size:12.5px;text-align:center}
.cta-dock .agree-row{
  justify-content:center;padding:4px 0 10px;min-height:0;font-size:12px;color:var(--ink-3);
}
.agree-row .agree-tx{line-height:1.7}
.agree-row .link{font-size:12px;color:var(--green);padding:0 1px}
.agree-row.on .box{background:var(--accent);border-color:var(--accent)}

/* 矮屏（≤740px 高）把简介收紧一点，让登录区整块露出来 */
@media (max-height:740px){
  .welcome-wrap .hero{padding-top:16px}
  .welcome-wrap .hero-mark{width:38px;height:38px;border-radius:12px;margin-bottom:12px}
  .welcome-wrap .hero-mark svg{width:20px;height:20px}
  .welcome-wrap .hero h1{font-size:27px;margin-bottom:8px}
  .welcome-wrap .hero-sub{font-size:13.5px;margin-bottom:13px}
  .welcome-wrap .hero-list{gap:6px;margin-bottom:12px}
  .welcome-wrap .hero-list li{font-size:12.5px}
  .welcome-wrap .hero-note{font-size:12px}
  .login-block{margin-top:14px;padding-top:13px}
  .or-line{margin:11px 0 9px}
}

/* 主页没有顶栏了：自己补状态栏安全区，四叶草别顶到刘海里 */
.page > .wrap.home-wrap{padding-top:calc(6px + env(safe-area-inset-top,0px))}
/* 小计划顶栏是唯一还留着「设置」的地方 */
.topbar .tb-link{padding:6px 2px}


/* ═══════════ 小计划：三张月历牌叠放（甩牌换月，照参考 demo 的 calDeck 手感） ═══════════ */
.plans-wrap { padding-bottom: 18px; }

/* 牌桌：三张牌叠着，左右两张各露出约一条边。
   这里刻意不用 perspective / rotateY：一旦牌桌成了 3D 渲染上下文，五张带圆角阴影的大牌
   要在每帧做前后排序，低端机上是实打实的掉帧源；改成 2D 的 scale 之后观感几乎一样，
   但每一步都落在合成层的快路径上。 */
.pl-deck {
  position: relative;
  flex: 0 0 auto;
  /* 上方留 1.5rem 给「错落」上去的两张牌，牌桌本身不用裁 */
  height: 17.75rem;
  margin: .25rem 0 0;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.pl-card {
  position: absolute;
  inset: 1.75rem auto auto 50%;
  width: 87%;
  height: calc(100% - 2rem);
  margin-left: -43.5%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: .875rem .75rem .5rem;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--paper-2);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  /* 只让 transform / opacity 参与过渡：这两个属性走合成器，不动画时这张牌一个字都不用重画。
     边框色原来是 .2s 过渡——换月时前后两张牌的边框色在变，等于每帧把整张牌重画一遍。 */
  transition: transform .42s cubic-bezier(.22, .9, .3, 1), opacity .34s ease;
}
/* 侧牌压暗：铺一层薄纱代替 filter——filter 会让牌在缩放时每帧重新光栅化，手机上必掉帧 */
.pl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  /* 这层薄纱不给过渡：换槽位时它的透明度变了，一旦有过渡，牌面就会连着 450ms 每帧重画。 */
}
/* 错落：像一叠纸随手摞在一起——前牌最大、正着放；右牌往右上错开一点、逆时针歪 2.6°；
   左牌再高一点、顺时针歪，两张都缩一点，只从前面这张的上下两条边露出圆角和一点牌头。
   四个槽位的函数表必须完全一致（translate3d → rotate → scale），浏览器才按分量插值；
   函数表不一致会退化成解矩阵，过渡会「歪一下」。 */
.pl-card.is-front {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  border-color: var(--green);
  box-shadow: 0 18px 38px rgba(45,106,79, .22), 0 3px 10px rgba(45,106,79, .12);
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}
.pl-card.is-right {
  z-index: 4;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 6px 16px rgba(45,106,79, .09);
  transform: translate3d(8%, -14px, 0) rotate(-4deg) scale(.958);
}
.pl-card.is-left {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 6px 16px rgba(45,106,79, .07);
  transform: translate3d(-8%, -28px, 0) rotate(4deg) scale(.93);
}
.pl-card.is-right::after, .pl-card.is-left::after { opacity: .045; }
.pl-card.is-away {
  z-index: 1;
  will-change: auto;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -30px, 0) rotate(0deg) scale(.92);
}
.pl-deck.is-commit .pl-card { transition-duration: .42s, .34s; }
/* 没甩到位弹回去：原生轮播的弹回是 250ms 上下，跟换月用同一个时长会显得拖 */
.pl-deck.is-back .pl-card {
  transition-duration: .28s, .22s;
  transition-timing-function: cubic-bezier(.3, 1.06, .45, 1);
}
.pl-card.no-anim { transition: none !important; }
.pl-card:not(.is-front) .plc-cell,
.pl-card:not(.is-front) .plc-nav { pointer-events: none; }

/* 牌面 */
.plc-hd { display: flex; align-items: center; justify-content: space-between; margin: 0 1px .125rem; }
.plc-hd b { font-family: var(--serif); font-size: .875rem; letter-spacing: .02em; }
.plc-nav {
  width: 28px; height: 28px; border: 0; border-radius: 50%; background: none;
  color: var(--ink-3); display: grid; place-items: center;
}
.plc-nav svg { width: 14px; height: 14px; }
.plc-nav:active { background: var(--paper-3); }
.plc-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.plc-week span { text-align: center; font-size: .625rem; color: var(--ink-3); }
.plc-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 1px; flex: 1 1 auto; min-height: 0; }
.plc-cell {
  position: relative; border: 0; border-radius: 10px; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .8125rem; color: var(--ink); transition: background .15s, transform .1s;
}
.plc-cell.blank { visibility: hidden; }
.plc-cell.past { color: #a9c9b6; }
/* 当前这一问推演到的日子 */
.plc-cell.inrange { background: rgba(45,106,79, .13); }
/* 放了事的那天：主色浅底，压在范围底色之上 */
.plc-cell.has { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.plc-cell.today { box-shadow: inset 0 0 0 1px var(--line-2); }
.plc-cell.sel { background: var(--solid); color: #f5faf7; font-weight: 600; box-shadow: none; }
.plc-cell:active { transform: scale(.92); }
.plc-d { line-height: 1; }
.plc-dot {
  position: absolute; bottom: .3125rem; left: 50%; width: .25rem; height: .25rem;
  margin-left: -.125rem; border-radius: 50%; background: var(--accent);
}
.plc-cell.sel .plc-dot { background: #f5faf7; }
.plc-foot { margin: .25rem 1px 0; text-align: center; font-size: .6875rem; line-height: 1.3; color: var(--ink-3); }
.plc-foot.is-quote { font-family: var(--serif); font-size: .75rem; letter-spacing: .02em; color: var(--ink-2); }

.pl-day { margin-top: 10px; }
.pld-card { padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; }
.pld-hd { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.pld-hd b { font-family: var(--serif); font-size: 15.5px; }
.pld-hd span { font-size: 11.5px; color: var(--ink-3); }
.pld-plan { margin: 9px 0 0; font-size: 14.5px; line-height: 1.62; color: var(--ink); }
.pld-plan.muted { color: var(--ink-3); }
.pld-q { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); }
.pld-acts { margin-top: 10px; }

.pl-all { margin-top: 22px; }
.pl-h { margin: 0 2px 10px; font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
.pl-h i { font-style: normal; opacity: .7; margin-left: 3px; }

@media (max-height: 740px) {
  .pl-deck { height: 16.25rem; }
  .plc-grid { gap: 1px; }
}

/* 手机上关掉双击缩放后的点击高亮，甩牌时不要出现灰块 */
.pl-deck, .pl-card, .plc-cell { -webkit-touch-callout: none; }

/* ══════════ 首页对话流：AI 接着你的话说 ══════════ */
.talk{display:flex;flex-direction:column;gap:10px;padding:16px 0 6px}
.bubble{
  max-width:86%;padding:10px 13px;border-radius:16px;
  font-size:14.5px;line-height:1.74;letter-spacing:.01em;
  white-space:pre-wrap;word-break:break-word;
}
.bubble-user{
  align-self:flex-end;background:var(--accent);color:#f7fcfa;
  border-bottom-right-radius:6px;box-shadow:0 4px 14px -8px rgba(45,106,79,.85);
}
.bubble-ai{
  align-self:flex-start;background:var(--paper-2);
  border:1px solid var(--line-2);border-bottom-left-radius:6px;
  color:var(--ink);box-shadow:0 1px 2px rgba(45,106,79,.04);
}
.talk .verdict{align-self:stretch;max-width:none;margin:0}
.talk .pivots{margin-bottom:2px}
.talk-foot{display:flex;justify-content:center;padding:0 0 4px}
.talk-go{margin:0 0 9px}
.btn.talk-go.is-soft{
  background:var(--paper-2);color:var(--ink);border:1px solid var(--line-2);
  box-shadow:none;font-weight:600;
}
.btn.talk-go.is-soft:active{background:var(--paper-3, #e8f4ec)}

/* 「正在想」三点 */
.bubble.typing{display:flex;align-items:center;gap:5px;padding:14px 15px}
.bubble.typing i{
  width:6px;height:6px;border-radius:50%;background:var(--ink-3);opacity:.45;
  animation:talk-dot 1.15s infinite ease-in-out;
}
.bubble.typing i:nth-child(2){animation-delay:.16s}
.bubble.typing i:nth-child(3){animation-delay:.32s}
@keyframes talk-dot{
  0%,70%,100%{transform:translateY(0);opacity:.35}
  35%{transform:translateY(-4px);opacity:.85}
}
.home-wrap.has-talk .home-quiet{display:none}

/* 旧的阻断块收成一行，只留最新那条挡路 */
.risk-note{font-size:12px;color:var(--ink-3);padding:2px 4px 0;letter-spacing:.02em}

/* hidden 是属性，别被 .btn 的 display 盖掉 */
[hidden]{display:none !important}
/* 有对话时，气泡贴着输入框往上长；内容多了就正常滚 */
.home-wrap.has-talk{padding-top:calc(10px + env(safe-area-inset-top,0px))}
.home-wrap.has-talk .talk{margin-top:auto}


/* ══════════ 桌面 / 平板：留白放开（手机端才是紧凑的） ══════════ */
@media (min-width:600px){
  .home-wrap{padding:0 1.75rem .75rem}
  .home-quiet{padding:2rem 0 1.5rem}
  .clover-mark{width:5rem;height:5rem;margin-bottom:1rem}
  .clover-mark svg{width:5rem;height:5rem}
  .home-quiet .rotor{min-height:6rem}
  .home-quiet .rp-text{font-size:1.5rem}
  .home-quiet .rp-from{font-size:.8125rem}
  .home-dock{padding:.75rem 1.75rem 1.5rem}
  .ask-card{gap:.625rem}
  .ask-card .composer{padding:.9375rem .9375rem .9375rem 1.25rem}
  .ask-card .composer textarea{font-size:1rem;min-height:5rem;max-height:11rem}
  .ask-card .composer .send{width:2.75rem;height:2.75rem}
  .ask-card .time-card{padding:.5rem 1rem .5rem .875rem}
  .page > .wrap.plans-wrap{padding:calc(1.25rem + env(safe-area-inset-top,0px)) 1.5rem 2rem}
  .pl-deck{height:24rem;margin-top:.5rem}
  .pl-card{width:74%;margin-left:-37%}
  .pl-card{padding:.875rem .75rem .625rem}
  .plc-cell{font-size:.9375rem}
  .plc-hd b{font-size:1rem}
  .plc-foot{font-size:.75rem}
}

/* ── 小计划页：进场不做位移 ── */
/* .page > * 原来是统一 8px 上浮 + 淡入；歪着的牌边跟着位移会闪，看着像在抖。
   这一页只淡入，牌桌一出现就停在该在的位置。 */
.page-plans > .wrap { animation: rise-fade .26s ease both; }
@keyframes rise-fade { from { opacity: 0 } to { opacity: 1 } }

/* ── 「这叠牌可以左右拨」的提示 ── */
/* 只晃牌桌这一个元素、纯 transform，不碰五张牌各自的过渡 */
.pl-deck.is-hint { animation: deck-hint .84s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes deck-hint {
  0%, 100% { transform: translateX(0); }
  12% { transform: translateX(-16px); }
  30% { transform: translateX(10px); }
  48% { transform: translateX(-6px); }
  66% { transform: translateX(3px); }
  84% { transform: translateX(-1px); }
}

/* ══════════ 后续历史片段（seq 29873 原样复制） ══════════ */
.page > .wrap.plans-wrap { padding: calc(.75rem + env(safe-area-inset-top,0px)) .5rem 1.25rem; display: flex; flex-direction: column; }
.pl-day { flex: 0 0 auto; }
/* 底栏上方那条跑马灯：和底栏同底色连成一片；上下各一条 1px 的 --line 当收口
   （原来这里写着「border-top:0，把分隔线挪到上面一条」，现在两条都要） */
.pl-marquee { flex: 0 0 auto; overflow: hidden; padding: .4375rem 0 .375rem; background: rgba(255,255,255,.94); border-top: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.pl-marquee + .tabbar { border-top: 1px solid var(--line); }
/* 只有一行：放得下就居中静着，放不下才交给 JS 加上 .is-run 去滚 */
.pm-track { display: flex; justify-content: center; white-space: nowrap; font-family: var(--serif); font-size: .8125rem; line-height: 1.5; letter-spacing: .02em; color: var(--ink-3); }
.pm-track.is-in { animation: pm-in .3s ease both; }
.pm-track.is-run { width: max-content; justify-content: flex-start; gap: 2.25rem; animation: pm-in .3s ease both, marquee var(--pm-dur, 18s) linear infinite; will-change: transform; }
.pm-item i { margin-left: .5rem; font-style: normal; font-size: .6875rem; color: var(--ink-3); opacity: .78; }
@keyframes pm-in { from { opacity: 0; } to { opacity: 1; } }
.plans-sub { font-size: 12.5px; color: var(--ink-3); margin: 2px 0px 16px; line-height: 1.7; }
.plans-empty { text-align: center; padding: 56px 10px 30px; }
.pe-t { font-size: 17px; color: var(--ink); margin-bottom: 8px; font-family: var(--serif); }
.pe-s { font-size: 13px; color: var(--ink-3); line-height: 1.9; margin-bottom: 24px; }
.plans-empty .btn { max-width: 200px; margin: 0px auto; }
.brief-q { font-family: var(--serif); font-size: 17px; line-height: 1.62; color: var(--ink-2); margin: -2px 0px 13px; padding-left: 13px; border-left: 2px solid var(--line-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tb-dot.tb-clover { width: 17px; height: 17px; background: none; box-shadow: none; color: rgb(70, 168, 122); display: grid; place-items: center; }
.tb-dot.tb-clover svg { width: 17px; height: 17px; display: block; }
.tb-brand { letter-spacing: 0.1em; }
.ask-card { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 9px; background: none; border: 0px; box-shadow: none; }
.ask-card .composer { order: 1; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 0.8125rem 0.8125rem 0.8125rem 1.0625rem; margin: 0px; min-height: 0px; box-shadow: rgba(36, 88, 62, 0.6) 0px 14px 34px -26px, rgba(36, 88, 62, 0.1) 0px 2px 8px -4px; transition: border-color 0.22s, box-shadow 0.22s; }
.ask-card .composer:focus-within { border-color: rgb(185, 217, 198); box-shadow: rgba(36, 88, 62, 0.62) 0px 14px 34px -24px, rgba(45, 106, 79, 0.08) 0px 0px 0px 3px; }
.ask-card .composer textarea { min-height: 4.375rem; max-height: 9rem; font-size: 0.9375rem; line-height: 1.72; padding: 0.125rem 0px; }
.ask-card .composer textarea::placeholder { font-size: 0.875rem; }
.ask-card .composer .send { width: 2.5rem; height: 2.5rem; }
.ask-card .composer .send svg { width: 18px; height: 18px; }
.ask-card .time-card { order: 2; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.875rem; margin: 0px; padding: 0.4375rem 0.875rem 0.4375rem 0.75rem; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: rgba(45, 106, 79, 0.03) 0px 1px 1px; }
.ask-card .time-hd { display: flex; align-items: baseline; gap: 0.375rem; font-size: 0.75rem; color: var(--ink-3); margin: 0px; white-space: nowrap; letter-spacing: 0.02em; }
.ask-card .time-hd b { font-size: 0.8125rem; font-weight: 600; color: var(--ink); }
.ask-card .time-card .range-ticks { display: none; }
.ask-card .time-card input[type="range"] { margin: 0px; height: 1.125rem; background-size: 100% 0.1875rem; }
.ask-card .time-card input[type="range"]::-webkit-slider-thumb { width: 1.125rem; height: 1.125rem; }
.page > .wrap.welcome-wrap { padding-bottom: 14px; }
.welcome-wrap .hero { max-width: none; margin: 0px; padding: 26px 0px 0px; text-align: left; }
.welcome-wrap .hero-mark { width: 46px; height: 46px; border-radius: 0px; margin-bottom: 16px; background: none; color: rgb(70, 168, 122); box-shadow: none; }
.welcome-wrap .hero-mark svg { width: 46px; height: 46px; filter: drop-shadow(rgba(82, 183, 136, 0.32) 0px 8px 18px); }
.welcome-wrap .hero h1 { font-size: 32px; line-height: 1.22; letter-spacing: 0.06em; margin-bottom: 10px; }
.welcome-wrap .hero-sub { font-size: 14.5px; line-height: 1.7; margin-bottom: 18px; }
.welcome-wrap .hero-list { gap: 8px; margin-bottom: 16px; }
.welcome-wrap .hero-list li { font-size: 13.5px; line-height: 1.55; }
.welcome-wrap .hero-list li span { width: 22px; height: 22px; border-radius: 7px; font-size: 11.5px; margin-top: 1px; }
.welcome-wrap .hero-note { font-size: 12.5px; line-height: 1.78; margin-bottom: 0px; padding-left: 11px; }
.login-block { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.login-hd { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 11px; }
.login-hd b { font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.login-hd i { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.login-block .field { margin-bottom: 9px; min-height: 52px; }
.field-ic { flex: 0 0 auto; display: grid; place-items: center; color: var(--ink-3); }
.field-ic svg { width: 19px; height: 19px; }
.field input.is-ok { color: var(--green); letter-spacing: 0.18em; }
.code-line { display: flex; gap: 9px; align-items: stretch; }
.code-line .field { flex: 1 1 0%; min-width: 0px; margin-bottom: 0px; }
.btn-code { flex: 0 0 auto; min-height: 52px; padding: 0px 14px; border-radius: 14px; border: 1px solid transparent; background: var(--paper-3); color: var(--ink-2); font-size: 12.5px; white-space: nowrap; transition: transform 0.14s, opacity 0.2s; }
.btn-code:not(:disabled):active { transform: scale(0.97); }
.btn-code:disabled { opacity: 0.45; }
.field-code { padding-right: 8px; }
.field-code input { letter-spacing: 0.22em; }
.code-btn { flex: none; padding: 9px 12px; border: 0; border-bottom: 0; border-radius: 10px; background: rgb(240, 244, 241); color: var(--green); font-size: 12.5px; white-space: nowrap; transition: transform 0.14s ease, opacity 0.2s ease; }
.code-btn:not(:disabled):active { transform: scale(0.96); }
.code-btn:disabled { opacity: 0.45; color: var(--ink-3); }
.login-tip { font-size: 11.5px; line-height: 1.7; color: var(--ink-3); margin: 10px 2px 0px; min-height: 20px; }
.login-tip.ok { color: var(--green); }
/* 验证码那一行：输入框吃掉剩余宽度，「获取验证码」不许被挤成两行 */
.login-block .field-code { padding-right: 8px; gap: 6px; }
.login-block .field-code input { flex: 1 1 0%; min-width: 0; }
.login-block .field-code .code-btn { flex: 0 0 auto; min-width: 84px; text-align: center; }
.agree-doc-links { display: flex; gap: 14px; justify-content: center; margin: 4px 0 16px; font-size: 13px; }
.agree-doc-links .link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.or-line { display: flex; align-items: center; gap: 11px; margin: 15px 0px 12px; color: var(--ink-3); font-size: 11.5px; }
.or-line::before, .or-line::after { content: ""; flex: 1 1 0%; height: 1px; background: var(--line-2); }
.welcome-wrap .hero-foot { margin: 20px 0px 4px; font-size: 12.5px; text-align: center; }
.cta-dock .agree-row { justify-content: center; padding: 4px 0px 10px; min-height: 0px; font-size: 12px; color: var(--ink-3); }
.agree-row .agree-tx { line-height: 1.7; }
.agree-row .link { font-size: 12px; color: var(--green); padding: 0px 1px; }
.agree-row.on .box { background: var(--accent); border-color: var(--accent); }
@media (max-height: 740px) {
  .welcome-wrap .hero { padding-top: 16px; }
  .welcome-wrap .hero-mark { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 12px; }
  .welcome-wrap .hero-mark svg { width: 20px; height: 20px; }
  .welcome-wrap .hero h1 { font-size: 27px; margin-bottom: 8px; }
  .welcome-wrap .hero-sub { font-size: 13.5px; margin-bottom: 13px; }
  .welcome-wrap .hero-list { gap: 6px; margin-bottom: 12px; }
  .welcome-wrap .hero-list li { font-size: 12.5px; }
  .welcome-wrap .hero-note { font-size: 12px; }
  .login-block { margin-top: 14px; padding-top: 13px; }
  .or-line { margin: 11px 0px 9px; }
}
.page > .wrap.home-wrap { padding-top: calc(6px + env(safe-area-inset-top,0px)); }
.topbar .tb-link { padding: 6px 2px; }
.plans-wrap { padding-bottom: 18px; }
.pl-deck { position: relative; flex: 0 0 auto; height: 17.75rem; margin: 0.25rem 0px 0px; touch-action: pan-y; user-select: none; }
.pl-card { position: absolute; inset: 1.75rem auto auto 50%; width: 87%; height: calc(100% - 2rem); margin-left: -43.5%; box-sizing: border-box; display: flex; flex-direction: column; padding: 0.875rem 0.75rem 0.5rem; border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper-2); transform-origin: center center; opacity: 0; pointer-events: none; overflow: hidden; contain: layout paint; will-change: transform; -webkit-tap-highlight-color: transparent; transition: transform 0.42s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.34s; }
.pl-card::after { content: ""; position: absolute; inset: 0px; border-radius: inherit; background: var(--ink); opacity: 0; pointer-events: none; }
.pl-card.is-front { z-index: 5; opacity: 1; pointer-events: auto; border-color: var(--green); box-shadow: rgba(45, 106, 79, 0.22) 0px 18px 38px, rgba(45, 106, 79, 0.12) 0px 3px 10px; transform: translate3d(0px, 0px, 0px) rotate(0deg) scale(1); }
.pl-card.is-right { z-index: 4; opacity: 1; pointer-events: auto; box-shadow: rgba(45, 106, 79, 0.09) 0px 6px 16px; transform: translate3d(8%, -14px, 0px) rotate(-4deg) scale(0.958); }
.pl-card.is-left { z-index: 3; opacity: 1; pointer-events: auto; box-shadow: rgba(45, 106, 79, 0.07) 0px 6px 16px; transform: translate3d(-8%, -28px, 0px) rotate(4deg) scale(0.93); }
.pl-card.is-right::after, .pl-card.is-left::after { opacity: 0.045; }
.pl-card.is-away { z-index: 1; will-change: auto; opacity: 0; pointer-events: none; transform: translate3d(0px, -30px, 0px) rotate(0deg) scale(0.92); }
.pl-deck.is-commit .pl-card { transition-duration: 0.42s, 0.34s; }
.pl-deck.is-back .pl-card { transition-duration: 0.28s, 0.22s; transition-timing-function: cubic-bezier(0.3, 1.06, 0.45, 1); }
.pl-card.no-anim { transition: none !important; }
.pl-card:not(.is-front) .plc-cell, .pl-card:not(.is-front) .plc-nav { pointer-events: none; }
.plc-hd { display: flex; align-items: center; justify-content: space-between; margin: 0px 1px 0.125rem; }
.plc-hd b { font-family: var(--serif); font-size: 0.875rem; letter-spacing: 0.02em; }
.plc-nav { width: 28px; height: 28px; border: 0px; border-radius: 50%; background: none; color: var(--ink-3); display: grid; place-items: center; }
.plc-nav svg { width: 14px; height: 14px; }
.plc-nav:active { background: var(--paper-3); }
.plc-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.plc-week span { text-align: center; font-size: 0.625rem; color: var(--ink-3); }
.plc-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: minmax(0px, 1fr); gap: 1px; flex: 1 1 auto; min-height: 0px; }
.plc-cell { position: relative; border: 0px; border-radius: 10px; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.8125rem; line-height: 1.15; color: var(--ink); transition: background 0.15s, transform 0.1s; }
.plc-cell.blank { visibility: hidden; }
.plc-cell.past { color: rgb(169, 201, 182); }
.plc-cell.inrange { background: rgba(45, 106, 79, 0.13); }
.plc-cell.today { box-shadow: inset 0 0 0 1px var(--line-2); }
.plc-cell.has { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.plc-cell.sel { background: var(--solid); color: rgb(245, 250, 247); font-weight: 600; box-shadow: none; }
.plc-cell:active { transform: scale(0.92); }
.plc-d { line-height: 1; }
.plc-dot { position: absolute; bottom: 0.3125rem; left: 50%; width: 0.25rem; height: 0.25rem; margin-left: -0.125rem; border-radius: 50%; background: var(--accent); }
.plc-cell.sel .plc-dot { background: rgb(245, 250, 247); }
.plc-none { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0px; padding-bottom: 0.5rem; font-size: 0.8125rem; line-height: 1.4; color: var(--ink-3); letter-spacing: 0.02em; }
/* 月信息整块已删：这块只剩右边那一个「收起 / 展开月历」 */
.pl-month { padding: 0.5rem 0.25rem 0.125rem; }
.plc-cell.off { color: var(--ink-3); opacity: 0.5; }

/* 十二建除：12 个字排成两行，当天那个点亮；绿=宜、赭=忌、灰=平 */
.jc-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.jc-node { padding: 7px 0px; text-align: center; font-size: 13px; line-height: 1.2; letter-spacing: 0.04em; border-radius: 8px; background: var(--paper); color: var(--ink-3); }
.jc-node.t-good { color: var(--green); }
.jc-node.t-bad { color: rgb(162, 86, 63); }
.jc-node.t-flat { color: var(--ink-2); }
.jc-node.on { background: var(--accent); color: #f7fbf5; font-weight: 600; }
/* 点开一天时，软件对他说的那一段话 */
.word-blk { position: relative; margin: 2px 0px 18px; padding: 15px 16px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4)); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset; }

.word-hd { display: flex; align-items: center; height: 14px; margin-bottom: 9px; }
.word-mark { display: grid; place-items: center; width: 15px; height: 15px; color: var(--accent); opacity: 0.72; }
.word-mark svg { width: 15px; height: 15px; }
.word-p { font-family: var(--serif); font-size: 14.5px; line-height: 1.95; color: var(--ink); letter-spacing: 0.01em; }
.word-p + .word-p { margin-top: 6px; }
.word-close { color: var(--green); }
/* 第三轮「收束」：上半（只第一天）与下半（每天）分开两块，视觉上要分得开 */
.word-hd .word-tag { margin-left: auto; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.settle-upper { background: linear-gradient(180deg, rgba(45,106,79,.055), rgba(255,255,255,.4)); border-color: rgba(45,106,79,.16); }
.settle-upper .word-p { font-size: 14.5px; }
.settle-today-h { margin: 13px 0 7px; font-size: 11.5px; letter-spacing: .1em; color: var(--ink-3); }
.settle-today { margin: 0; padding: 0; list-style: none; }
.settle-today li { position: relative; padding-left: 16px; font-family: var(--serif); font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.settle-today li + li { margin-top: 4px; }
.settle-today li::before { content: ''; position: absolute; left: 3px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .55; }
.settle-lower { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.4)); }
.settle-why { margin-top: 7px; font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.settle-loading { font-size: 12.5px; color: var(--ink-3); }

/* 建除与值神合在一块：两行小标题 + 两条轨道 */
.js-row + .js-row { margin-top: 14px; }
.js-row-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.js-row-h b { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-2); }
.js-row-h span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.01em; }
.js-blk .blk-p b { font-weight: 600; color: var(--ink); margin-right: 2px; }
.god-node.huang { color: var(--green); }
.god-node.hei { color: rgb(162, 86, 63); }
.god-node.on.huang, .god-node.on.hei { color: var(--ink); }

.pl-day { margin-top: 10px; }
.pld-card { padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; }
.pld-hd { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.pld-hd b { font-family: var(--serif); font-size: 15.5px; }
.pld-hd span { font-size: 11.5px; color: var(--ink-3); }
.pld-plan { margin: 9px 0px 0px; font-size: 14.5px; line-height: 1.62; color: var(--ink); }
.pld-plan.muted { color: var(--ink-3); }
.pld-q { margin: 6px 0px 0px; font-size: 11.5px; color: var(--ink-3); }
.pld-acts { margin-top: 10px; }
.pl-fin-wrap { margin-top: 18px; }
@media (max-height: 740px) {
  .pl-deck { height: 16.25rem; }
  .plc-grid { gap: 1px; }
}
.pl-deck, .pl-card, .plc-cell { }
.talk { display: flex; flex-direction: column; gap: 10px; padding: 16px 0px 6px; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.74; letter-spacing: 0.01em; white-space: pre-wrap; word-break: break-word; }
.bubble-user { align-self: flex-end; background: var(--accent); color: rgb(247, 252, 250); border-bottom-right-radius: 6px; box-shadow: rgba(45, 106, 79, 0.85) 0px 4px 14px -8px; }
.bubble-ai { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line-2); border-bottom-left-radius: 6px; color: var(--ink); box-shadow: rgba(45, 106, 79, 0.04) 0px 1px 2px; }
.talk .verdict { align-self: stretch; max-width: none; margin: 0px; }
.talk .pivots { margin-bottom: 2px; }
.talk-foot { display: flex; justify-content: center; padding: 0px 0px 4px; }
.talk-hint { margin: 0px; font-size: 0.75rem; color: var(--ink-3); }
.bubble.typing { display: flex; align-items: center; gap: 5px; padding: 14px 15px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: 0.45; animation: 1.15s ease-in-out 0s infinite normal none running talk-dot; }
.bubble.typing i:nth-child(2) { animation-delay: 0.16s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.32s; }
@keyframes talk-dot { 
  0%, 70%, 100% { transform: translateY(0px); opacity: 0.35; }
  35% { transform: translateY(-4px); opacity: 0.85; }
}
.home-wrap.has-talk .home-quiet { display: none; }
.risk-note { font-size: 12px; color: var(--ink-3); padding: 2px 4px 0px; letter-spacing: 0.02em; }
[hidden] { display: none !important; }
.home-wrap.has-talk { padding-top: calc(10px + env(safe-area-inset-top,0px)); }
.home-wrap.has-talk .talk { margin-top: auto; }
@media (min-width: 600px) {
  .home-wrap { padding: 0px 1.75rem 0.75rem; }
  .home-quiet { padding: 2rem 0px 1.5rem; }
  .clover-mark { width: 5rem; height: 5rem; margin-bottom: 1rem; }
  .clover-mark svg { width: 5rem; height: 5rem; }
  .home-quiet .rotor { min-height: 6rem; }
  .home-quiet .rp-text { font-size: 1.5rem; }
  .home-quiet .rp-from { font-size: 0.8125rem; }
  .home-dock { padding: 0.75rem 1.75rem 1.5rem; }
  .ask-card { gap: 0.625rem; }
  .ask-card .composer { padding: 0.9375rem 0.9375rem 0.9375rem 1.25rem; }
  .ask-card .composer textarea { font-size: 1rem; min-height: 5rem; max-height: 11rem; }
  .ask-card .composer .send { width: 2.75rem; height: 2.75rem; }
  .ask-card .time-card { padding: 0.5rem 1rem 0.5rem 0.875rem; }
  .page > .wrap.plans-wrap { padding: calc(1.25rem + env(safe-area-inset-top,0px)) 1.5rem 2rem; }
  .pl-deck { height: 24rem; margin-top: 0.5rem; }
  .pl-card { width: 74%; margin-left: -37%; }
  .pl-card { padding: 0.875rem 0.75rem 0.625rem; }
  .plc-cell { font-size: 0.9375rem; }
  .plc-hd b { font-size: 1rem; }
  .plc-foot { font-size: 0.75rem; }
  .pq-text { font-size: 1.25rem; }
  .pq-from { font-size: 0.8125rem; }
}
.page-plans > .wrap { animation: 0.26s ease 0s 1 normal both running rise-fade; }
@keyframes rise-fade { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.pl-deck.is-hint { animation: 0.84s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0s 1 normal both running deck-hint; }
@keyframes deck-hint { 
  0%, 100% { transform: translateX(0px); }
  12% { transform: translateX(-16px); }
  30% { transform: translateX(10px); }
  48% { transform: translateX(-6px); }
  66% { transform: translateX(3px); }
  84% { transform: translateX(-1px); }
}

/* ══════════ 用户中心（主页右上角那枚按钮打开） ══════════ */
/* 主页没有顶栏，这枚按钮就浮在右上角，只占 36px，不给整页加一行空白 */
.home-top{ flex:none; display:flex; align-items:center; justify-content:space-between; padding:.25rem 0 .125rem; }
.back-spacer{ width:2.5rem; height:2.5rem; }
/* 返回首页：和小确幸右下角那颗发送键同一套形状/尺寸/阴影，只换颜色 */
.back-btn{
  flex:none; width:2.5rem; height:2.5rem; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#e4f1e9,#cfe5d8); color:var(--solid);
  box-shadow:0 4px 12px -4px rgba(82,183,136,.35);
  transition:transform .16s ease, background .2s ease, opacity .2s ease;
}
.back-btn svg{ width:20px; height:20px; }
.back-btn:active{ transform:scale(.93); }
.back-btn:disabled{ opacity:.5; }
.me-btn{
  width:2.25rem; height:2.25rem; border-radius:50%;
  display:grid; place-items:center; color:var(--ink-2);
  background:rgba(255,255,255,.86); border:1px solid var(--line);
  box-shadow:0 8px 20px -14px rgba(36,88,62,.6);
  transition:transform .18s ease, background .18s ease;
}
.me-btn svg{ width:1.125rem; height:1.125rem; }
.me-btn:active{ transform:scale(.94); }
.me-btn:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }

.page > .wrap.me-wrap{ padding:calc(.25rem + env(safe-area-inset-top,0px)) 1.25rem calc(1.25rem + env(safe-area-inset-bottom,0px)); }

/* 身份卡：头像 + 打码手机号 + 什么时候开始用 */
.me-card{
  display:flex; align-items:center; gap:.8125rem;
  padding:1rem; border-radius:18px;
  background:var(--paper-2); border:1px solid var(--line-2);
  box-shadow:0 16px 36px -30px rgba(36,88,62,.65);
}
.me-ava{
  flex:none; width:2.75rem; height:2.75rem; border-radius:50%;
  display:grid; place-items:center; background:var(--accent-soft); color:#46a87a;
}
.me-ava svg{ width:1.75rem; height:1.75rem; }
.me-id{ display:flex; flex-direction:column; gap:.1875rem; min-width:0; }
.me-id b{ font-size:1rem; letter-spacing:.02em; }
.me-id span{ font-size:.75rem; color:var(--ink-3); }

/* 三个数：记录 / 计划 / 有安排的日子 */
.me-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; margin-top:.625rem; }
.me-stat{
  display:flex; flex-direction:column; align-items:center; gap:.125rem;
  padding:.625rem .25rem; border-radius:14px;
  background:var(--paper-2); border:1px solid var(--line);
}
.me-stat b{ font-family:var(--serif); font-size:1.125rem; line-height:1.25; }
.me-stat span{ font-size:.6875rem; color:var(--ink-3); letter-spacing:.02em; }

.me-h{ margin:1.125rem .25rem .375rem; font-size:.75rem; letter-spacing:.06em; color:var(--ink-3); }
.me-group{ background:var(--paper-2); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.me-item{
  display:flex; align-items:center; gap:.75rem; width:100%;
  padding:.8125rem .875rem; border:0; background:none; text-align:left;
  transition:background .16s ease;
}
.me-item + .me-item{ border-top:1px solid var(--line); }
.me-item b{ font-size:.875rem; font-weight:500; }
.me-item i{ margin-left:auto; font-style:normal; font-size:.75rem; color:var(--ink-3); white-space:nowrap; }
.me-item em{ margin-left:auto; display:flex; color:var(--ink-3); }
.me-item em svg{ width:1rem; height:1rem; }
.me-item:active{ background:var(--accent-soft); }
.me-item.is-danger b{ color:#a2563f; }
.me-item.is-danger.is-armed{ background:#f8e7de; }
.me-item.is-danger.is-armed b{ color:#8f3b28; }

.me-foot{ margin:1.25rem .5rem 0; font-size:.6875rem; line-height:1.75; color:var(--ink-3); text-align:center; }
.me-icp{ margin:.35rem .5rem 1.5rem; font-size:.6875rem; line-height:1.75; color:var(--ink-3); text-align:center; }
.me-icp a{ color:inherit; text-decoration:none; }
.me-icp a:hover{ text-decoration:underline; }

@media (min-width:600px){
  .page > .wrap.me-wrap{ padding:1rem 1.75rem 2rem; }
  .me-card{ padding:1.25rem; }
  .me-item{ padding:.9375rem 1rem; }
}

/* ═══ 小计划页接住「挑日子」之后的三件事 ═══ */
/* 推算过的日子：日号下面挂这一天干支；点位挪到右上角，别和干支挤在一列 */
.plc-cell .plc-gz{ font-size:.5625rem; line-height:1; letter-spacing:.01em; margin-top:2px; opacity:.92; font-style:normal; }
.plc-cell.sel .plc-gz{ color:rgb(245,250,247) !important; opacity:.86; }
.plc-cell.past .plc-gz{ opacity:.5; }
.plc-foot { margin: 0.25rem 1px 0px; text-align: center; font-size: 0.6875rem; line-height: 1.3; color: var(--ink-3); }
.plc-cell .plc-dot{ top:.3125rem; right:.375rem; bottom:auto; left:auto; margin:0; width:.1875rem; height:.1875rem; }
.plc-cell.sel .plc-dot{ background:rgb(245,250,247); }

.pl-day-hint{ margin:.375rem .125rem 0; font-size:.78rem; line-height:1.75; color:var(--ink-3); text-align:center; }
.pl-day .info-hd .eyebrow{ font-size:.7rem; }
/* ═══ 纸感赞赏按钮（八号方案）═══
   双层细线 + 楷体拉开字距，右边一道竖线隔开写「¥5 起」。
   这一页最重的动作是中间那几件小事，赞赏只能是页脚那一行。 */
.tip-btn{
  position:relative; display:flex; width:100%; align-items:center; justify-content:center; gap:14px;
  margin:1rem 0 .375rem; padding:15px 18px; border-radius:4px;
  background:linear-gradient(180deg,#fbfdf9,#f4f9f2);
  border:1px solid rgba(45,106,79,.20);
  color:var(--ink); font-family:inherit; cursor:pointer; text-align:center;
  transition:background .18s, border-color .18s, transform .12s;
}
.tip-btn::before{
  content:''; position:absolute; inset:4px; border:1px solid rgba(45,106,79,.10);
  border-radius:2px; pointer-events:none; transition:border-color .18s;
}
.tip-btn:active{ transform:scale(.994); background:linear-gradient(180deg,#f7fbf4,#eef6ec); }
.tip-btn:active::before{ border-color:rgba(45,106,79,.16); }
.tip-btn .tt{ text-align:left; }
.tip-btn .tt b{
  display:block; font-family:var(--serif); font-size:15.5px; font-weight:600;
  letter-spacing:.2em; text-indent:.2em; line-height:1.3;
}
.tip-btn .tt i{
  font-style:normal; display:block; font-size:10px; margin-top:3px;
  letter-spacing:.1em; color:#93a89a;
}
.tip-btn .tip-price{
  font-family:var(--serif); font-size:15px; color:var(--solid); letter-spacing:.02em;
  padding-left:14px; border-left:1px solid rgba(45,106,79,.16); white-space:nowrap;
}

/* ── 赞赏面板 ── */
.tx-amts{ display:grid; grid-template-columns:repeat(2,1fr); gap:9px; margin:14px 0 12px; }
.tx-amt{
  background:var(--paper); border:1px solid var(--line); border-radius:14px;
  padding:13px 14px; text-align:left; cursor:pointer; transition:background .16s, border-color .16s, transform .12s;
}
.tx-amt b{ display:block; font-family:var(--serif); font-size:20px; margin-bottom:2px; font-weight:600; }
.tx-amt i{ font-style:normal; font-size:11px; color:var(--ink-3); line-height:1.5; }
.tx-amt:active{ transform:scale(.975); }
.tx-amt.on{ border-color:var(--solid); background:#eef7f1; }
.tx-amt.on b{ color:var(--solid); }
.tx-amt.is-free b{ font-size:16px; }
.tx-free{ display:none; margin-bottom:12px; }
.tx-free.on{ display:block; }
.tx-free-in{
  display:flex; align-items:center; gap:10px; padding:12px 14px;
  border:1px solid var(--line); border-radius:14px; background:#ffffff;
}
.tx-free-in span{ font-size:14px; color:var(--ink-3); }
.tx-free-in input{
  flex:1 1 auto; min-width:0px; border:0px; outline:none; background:none;
  font-family:var(--serif); font-size:20px; color:var(--ink);
}
.tx-free-in input::placeholder{ color:#b9cbbf; font-family:var(--sans); font-size:13px; }
.tx-confirm{
  display:block; width:100%; height:50px; border-radius:14px; border:0px;
  background:var(--solid); color:#ffffff; font-family:inherit; font-size:15.5px; font-weight:600;
  letter-spacing:.18em; text-indent:.18em; cursor:pointer;
  box-shadow:0 8px 18px -12px rgba(45,106,79,.9), inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .12s, background .18s, opacity .18s;
}
.tx-confirm:active:not(:disabled){ transform:scale(.99); background:#255741; }
.tx-confirm:disabled{ opacity:.4; box-shadow:none; cursor:not-allowed; }
.tx-foot{ margin:14px 0 0; font-size:11px; color:#93a89a; line-height:1.8; text-align:center; }
/* 谢谢那一屏 */
.tx-thanks{ text-align:center; padding:6px 0 4px; }
.tx-thanks .ic{
  width:46px; height:46px; margin:0 auto 14px; border-radius:50%;
  background:var(--accent-soft); display:grid; place-items:center; color:var(--solid);
}
.tx-thanks .ic svg{ width:22px; height:22px; }
.tx-thanks h3{ font-family:var(--serif); font-size:19px; font-weight:600; margin:0 0 8px; letter-spacing:.06em; }
.tx-thanks p{ margin:0 0 18px; font-size:12.5px; color:var(--ink-3); line-height:1.8; }


/* —— 牌头的「收起」入口：月份本身就是一个按钮 —— */
.plc-fold { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border: 0px; border-radius: 8px; background: none; color: inherit; }
.plc-fold b { font-family: var(--serif); font-size: 0.875rem; letter-spacing: 0.02em; }
.plc-fold svg { width: 12px; height: 12px; opacity: 0.5; }
.plc-fold-t { margin: 0 1px 0 6px; padding: 1px 7px; border-radius: 999px; background: var(--paper-3); color: var(--ink-3); font-size: 0.6875rem; line-height: 1.6; }
.plc-fold:active { background: var(--paper-3); }

/* 收起：还是这张牌，日历格子收走，换成一张「这个月」的信息卡 */
.pl-deck { transition: height 0.34s cubic-bezier(0.22, 0.9, 0.3, 1); }
.is-folded .pl-deck { height: 9.75rem; }
.is-folded .pl-card.is-front .plc-hd, .is-folded .pl-card.is-front .plc-week,
.is-folded .pl-card.is-front .plc-grid, .is-folded .pl-card.is-front .plc-foot { display: none; }
.is-folded .pl-card.is-right { transform: translate3d(6%, -6px, 0px) rotate(-3deg) scale(0.965); }
.is-folded .pl-card.is-left { transform: translate3d(-6%, -11px, 0px) rotate(3deg) scale(0.94); }
.is-folded .plc-fold svg { transform: rotate(180deg); }

/* 收起时已经选了某一天：卡上换成那天的信息，高度跟着缩 */
.is-dayfold .pl-deck { height: 9.75rem; }
.pcm-day { display: flex; flex-direction: column; height: 100%; }
.pcm-day .dc-card { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 0; border: 0; background: none; gap: 6px; }
.pcm-day .dc-card:active { transform: none; }
.pcm-day .dc-day { font-size: 1.5rem; line-height: 1; }
.pcm-day .dc-l1 { font-size: 0.75rem; line-height: 1.35; }
.pcm-day .dc-l2, .pcm-day .dc-l3 { font-size: 0.6875rem; line-height: 1.3; }
.pcm-day .dc-hint { display: none; }

/* 收起态那张「这个月」的卡：左边一个大月号，右边右对齐的三行小字，
   底下一条细进度 + 一句「已过几天」。整张卡上重下轻，和日卡同一套字号。 */
.pcm { display: flex; flex-direction: column; justify-content: center; height: 100%; text-align: center; -webkit-tap-highlight-color: transparent; }
.pcm-body { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.pcm-month { display: flex; align-items: flex-end; gap: 4px; }
.pcm-num { font-family: var(--serif); font-size: 2.5rem; line-height: 0.86; letter-spacing: -0.01em; }
.pcm-unit { font-family: var(--serif); font-style: normal; font-size: 0.9375rem; line-height: 1; color: var(--ink-2); margin-bottom: 4px; }
.pcm-meta { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; max-width: 100%; }
.pcm-l1 { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); letter-spacing: 0.01em; }
.pcm-l2 { font-size: 0.6875rem; line-height: 1.35; color: var(--ink-3); letter-spacing: 0.02em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 这个月走过多少：细条和那句小字并排，条短、字靠右，不各占一行 */
.pcm-prog { display: flex; align-items: center; gap: 9px; padding-top: 13px; }
.pcm-bar { flex: 1 1 auto; height: 3px; border-radius: 999px; background: rgba(31, 42, 33, 0.1); overflow: hidden; }
.pcm-bar > i { display: block; min-width: 3px; height: 100%; border-radius: 999px; background: var(--solid); }
.pcm-pt { flex: 0 0 auto; order: -1; font-size: 0.6875rem; line-height: 1; color: var(--ink-3); letter-spacing: 0.02em; white-space: nowrap; }
.pcm-pt b { font-weight: 600; font-size: 0.8125rem; color: var(--ink-2); }
/* 月历下面那一条：一个浅色框，里面套两粒胶囊——问题（点开能换）/ 收起展开 */
.month-top {
  /* 两粒胶囊同高：交给 flex 拉伸，别让各自的 padding / 内嵌小胶囊把高度撑出 2–4px 的差 */
  display: flex; align-items: stretch; gap: 5px; padding: 4px;
  border: 1px solid rgba(45, 106, 79, .08); border-radius: 999px;
  background: rgba(45, 106, 79, .05);
}
.fold-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; min-height: 36px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 0.75rem; line-height: 1.5; white-space: nowrap; }
.fold-btn svg { width: 13px; height: 13px; opacity: 0.55; }
.fold-btn:active { background: var(--paper-3); }

/* —— 收起后的「那一天」：日期 + 时辰带 + 值神/建除 —— */
.dc-card { display: flex; flex-direction: column; gap: 9px; width: 100%; padding: 13px 15px 11px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.42)); color: inherit; text-align: left; }
.dc-card:active { transform: scale(0.995); }
.dc-hd { display: flex; align-items: flex-start; gap: 10px; }
.dc-day { flex: 0 0 auto; font-family: var(--serif); font-size: 1.75rem; line-height: 0.95; letter-spacing: 0.02em; padding-top: 1px; }
.dc-meta { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-l1 { font-size: 0.75rem; color: var(--ink-2); }
.dc-l2 { font-size: 0.6875rem; color: var(--ink-3); }
.dc-l3 { font-size: 0.6875rem; color: var(--ink-3); }
.dc-gz { flex: 0 0 auto; display: inline-flex; gap: 2px; font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: 0.02em; }
.dc-gz i { font-style: normal; }
.cal-cell .cg i,.mc-day .mg i,.plc-cell .plc-gz i { font-style: normal; }
.cal-cell.sel .cg i { color: rgba(255, 255, 255, 0.8) !important; }
.mc-day.sel .mg i { color: rgba(255, 255, 255, 0.82) !important; }
.plc-cell.sel .plc-gz i { color: rgb(245, 250, 247) !important; }
.dc-bar { display: block; width: 100%; height: 6px; flex: 0 0 6px; }
.dc-ft { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dc-god { font-size: 0.75rem; color: var(--ink-2); }
.dc-god em { font-style: normal; margin-left: 4px; color: var(--ink-3); font-size: 0.6875rem; }
.dc-jc { font-size: 0.6875rem; color: var(--ink-3); padding: 1px 9px; border-radius: 999px; background: rgba(45, 106, 79, 0.08); }
.dc-plan { font-size: 0.75rem; color: var(--accent); }
.dc-hint { font-size: 0.6875rem; color: var(--ink-3); }




/* 没有下一页的那一侧（走到算过的第一天 / 最后一天）：这张牌不出现，
   免得空卡片跟着一起滑进来 */
.pl-card.is-void {
  opacity: 0 !important;
  pointer-events: none;
}


/* 有对话时，气区块自己沉到底部，紧贴输入卡 */
.home-wrap.has-talk .talk { margin-top: auto; }

/* ── 回头看旧记录：底部换成一条「你在看 11月2日 问的这条 / 问一个新的」 ── */
.view-bar {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px 9px 15px; border: 1px solid var(--line-2); border-radius: 18px;
  background: var(--paper-2);
  box-shadow: rgba(36, 88, 62, 0.5) 0px 14px 34px -28px, rgba(36, 88, 62, 0.08) 0px 2px 8px -5px;
}
.home-dock.is-viewing .ask-card { display: none; }
.home-dock.is-viewing .view-bar { display: flex; }
.vb-t { font-size: 0.8125rem; color: var(--ink-3); letter-spacing: 0.01em; }
.vb-btn {
  flex: 0 0 auto; padding: 9px 15px; border: 0; border-radius: 999px;
  background: var(--solid); color: #fff; font: inherit; font-size: 0.8125rem; font-weight: 600;
}
.vb-btn:active { transform: scale(0.97); }


/* —— 现在摊的是哪一问：跟「展开月历」并排放在月历下面那一行 —— */
.ps-card {
  flex: 1 1 auto; min-width: 0; min-height: 36px; display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--paper-2);
  transition: background .18s ease, border-color .18s ease;
}
.ps-card.is-off { background: rgba(31, 42, 33, .085); border-color: rgba(31, 42, 33, .12); }
/* 没挂问题时整粒胶囊就是「选择问题」：铺满整颗，字居中 */
.ps-card.is-off .ps-act-btn { flex: 1 1 auto; justify-content: center; padding: 6px 11px; gap: 3px; }
/* 挂着一问时：「切换问题」是胶囊里的一颗小胶囊，不再只是一行字 */
.ps-card .ps-act-btn.is-in {
  margin: 3px 3px 3px 0; padding: 5px 10px; gap: 2px; border-radius: 999px;
  background: rgba(45, 106, 79, .10);
}
.ps-card .ps-act-btn.is-in:active { background: rgba(45, 106, 79, .18); opacity: 1; }
.ps-main {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
  padding: 6px 8px 6px 11px; border: 0; background: none;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ps-main:active { opacity: .65; }
.ps-q {
  flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .75rem; letter-spacing: .01em;
}
.ps-act-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 6px 9px 6px 6px; border: 0; background: none;
  font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ps-act-btn:active { opacity: .6; }
.ps-act { flex: 0 0 auto; display: inline-flex; align-items: center; font-size: .7rem; font-weight: 600; color: var(--solid); }
.ps-card.is-off .ps-act, .ps-card.is-off .ps-arrow { color: var(--ink-2); }
.ps-arrow { flex: 0 0 auto; display: inline-flex; align-items: center; margin-left: 1px; color: inherit; }
.ps-arrow svg { width: 14px; height: 14px; display: block; }
.day-note {
  margin: 12px 2px 0; padding: 11px 13px; border-radius: 12px;
  border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .5);
  font-size: .75rem; line-height: 1.6; color: var(--ink-3);
}

/* 切换问题的清单 */
.qs-sub { margin: 0 0 10px; font-size: .75rem; color: var(--ink-3); }
.qs-list { display: flex; flex-direction: column; gap: 8px; }
.qs-row {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.qs-row.is-on { border-color: var(--solid); background: rgba(45, 106, 79, .055); }
.qs-mark {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 50%; color: #fff;
}
.qs-row.is-on .qs-mark { background: var(--solid); border-color: var(--solid); }
.qs-mark svg { width: 12px; height: 12px; }
.qs-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qs-q { font-size: .875rem; color: var(--ink); line-height: 1.35; }
.qs-meta { font-size: .6875rem; color: var(--ink-3); }
.qs-foot { margin: 12px 0 2px; font-size: .6875rem; color: var(--ink-3); text-align: center; }
/* 一条记录 = 主体 + 右侧的删除按钮。删除按钮窄、不抢主体的点击区 */
.qs-line { display: flex; gap: 8px; align-items: stretch; }
.qs-line .qs-row { flex: 1 1 auto; }
.qs-del {
  flex: 0 0 40px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: var(--ink-3); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.qs-del:hover { color: #a2563f; border-color: #e3c7be; background: #fbf6f3; }
.qs-del svg { width: 14px; height: 14px; }
/* 危险按钮：删记录、注销账号这类不可逆的动作统一走这个，和主按钮明显区分 */
.btn-danger { background: #a2563f; color: #fdf8f6; }
.btn-danger:hover:not(:disabled) { background: #8e4734; }
.btn-danger.is-armed { background: #8b3a26; box-shadow: 0 0 0 3px rgba(162, 86, 63, .18); }
/* 恢复码：等宽、大字、宁可换行也要完整显示 —— 敲错一个字符就重设不了 */
.rec-code {
  margin: 10px 0 14px; padding: 14px 12px; border-radius: 12px;
  background: var(--paper); border: 1px dashed var(--line-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.125rem; letter-spacing: .12em; text-align: center;
  word-break: break-all; user-select: all; color: var(--ink);
}

/* ══════════ 未选问题：历法块（照旧样式原样补回） ══════════ */
.al-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.al-cell { padding: 10px 11px; border-radius: 10px; background: var(--paper); }
.al-cell i { display: block; font-style: normal; font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 3px; }
.al-cell b { display: block; font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.35; }
.al-cell span { display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.45; color: var(--ink-3); }
.xiu-row { display: flex; align-items: center; gap: 12px; }
.xiu-char { font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 600; color: var(--ink); }
.xiu-meta { flex: 1 1 auto; min-width: 0px; }
.xiu-meta b { display: block; font-size: 13.5px; }
.xiu-meta span { display: block; margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.xiu-tag { flex: 0 0 auto; font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(45, 106, 79, 0.09); color: var(--solid); }
.xiu-tag.is-bad { background: rgba(168, 99, 76, 0.1); color: var(--accent); }
.hour-lab .hl-l { font-style: normal; font-size: 8px; line-height: 1.15; color: var(--ink-3); }
.hour-lab .hl-l.huang { color: var(--solid); }
.hour-lab .hl-l.hei { color: rgba(168, 99, 76, 0.78); }
.day-plan-hint { margin: 12px 0px 0px; padding: 10px 12px; border-radius: 10px; background: var(--paper); font-size: 0.75rem; line-height: 1.6; color: var(--ink-3); }

/* ══════════ 时辰 12 段条（照旧样式原样补回） ══════════ */
.hour-bar { display: flex; align-items: stretch; gap: 3px; margin-top: 12px; }
.hb { position: relative; flex: 1 1 0px; height: 13px; border-radius: 4px; background: rgba(45, 106, 79, 0.09); }
.hb.lv2 { background: rgba(45, 106, 79, 0.3); }
.hb.lv3 { background: var(--accent); }
.hb.bad { background: rgba(168, 99, 76, 0.2); }
.hb.bad.lv2 { background: rgba(168, 99, 76, 0.4); }
.hb.bad.lv3 { background: rgba(168, 99, 76, 0.58); }
.hour-lab { display: flex; gap: 3px; margin-top: 6px; }
.hour-lab .hl { flex: 1 1 0px; display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.hour-lab .hl-n { font-size: 12px; color: var(--ink-2); font-family: var(--serif); }
.hour-lab .hl-t { font-size: 8px; letter-spacing: -.02em; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hour-lab .hl.fit .hl-n { color: var(--ink); font-weight: 700; }
.hour-lab .hl.fit .hl-t { color: var(--ink-2); }
.hb { height: 14px; }
/* 计划行：按钮下面那一行 */
/* 这一天放的那一件事：左边内容（点开可改），右边两个按钮 —— 勾=做完了，方框=没做 */
.hm-row {
  display: flex; align-items: stretch; margin: 10px 0px 0px;
  border-radius: 12px; background: var(--paper); border: 1px solid rgba(45, 106, 79, 0.10);
  overflow: hidden; transition: background 0.18s, border-color 0.18s;
}
.hm-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0px 0px; }
.hm-list:has(> .hm-row) + .hm-add { margin-top: 8px; }
.hm-row { margin: 0px; }
.hm-add { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.hm-add svg { width: 15px; height: 15px; }
.hm-row.is-done { background: rgba(82, 183, 136, 0.10); border-color: rgba(45, 106, 79, 0.20); }

.hm-body {
  flex: 1 1 auto; display: block; text-align: left; background: none; border: 0;
  padding: 11px 12px; font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
  font-family: inherit; cursor: pointer;
}
.hm-body b { font-weight: 600; color: var(--ink); margin-right: 8px; }
.hm-row.is-done .hm-body { color: var(--ink-3); }
.hm-row.is-done .hm-body b { color: var(--ink-3); }

/* 右边那颗圆圈勾：亮起=做完了，暗着=还没做 */
.hm-act {
  flex: 0 0 auto; width: 46px; display: grid; place-items: center;
  background: none; border: 0px; border-left: 1px solid rgba(45, 106, 79, 0.10);
  padding: 0px; cursor: pointer; color: rgba(45, 106, 79, 0.30);
  transition: background 0.16s, color 0.16s, transform 0.12s;
}
.hm-act svg { width: 17px; height: 17px; }
.hm-act:active { transform: scale(0.9); }
.hm-act.on { background: var(--solid); color: #ffffff; }

/* ══════════ 收起日卡精修：纸面、日期章、干支、十二时辰带 ══════════ */
.is-dayfold .pl-card.is-front {
  border-color: rgba(45, 106, 79, .32);
  background:
    radial-gradient(130% 100% at 88% -20%, rgba(255,255,255,.96) 0%, rgba(255,255,255,0) 58%),
    linear-gradient(180deg, #fcfefb 0%, #f3f9f0 100%);
  box-shadow: 0 16px 32px rgba(45, 106, 79, .13), 0 2px 7px rgba(45, 106, 79, .06);
}
.is-dayfold .pl-card.is-front::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(45, 106, 79, .055), transparent 16%, transparent 84%, rgba(45, 106, 79, .025)),
    repeating-linear-gradient(0deg, rgba(45, 106, 79, .018) 0 1px, transparent 1px 4px);
  opacity: .38;
}
.is-dayfold .pcm-day { position: relative; z-index: 1; padding: 0 3px; }
.is-dayfold .pl-card.is-right { opacity: .78; box-shadow: 0 8px 18px rgba(45, 106, 79, .06); }
.is-dayfold .pl-card.is-left { opacity: .68; box-shadow: 0 6px 14px rgba(45, 106, 79, .05); }
.is-dayfold .pl-card:not(.is-front) .pcm-day { opacity: .18; transition: opacity .28s ease; }
.is-dayfold .pcm-day .dc-card { gap: 3px; }
.is-dayfold .pcm-day .dc-hd { align-items: center; gap: 12px; }
.is-dayfold .pcm-day .dc-day {
  min-width: 44px;
  padding: 0 12px 0 0;
  border-right: 1px solid rgba(45, 106, 79, .14);
  font-size: 2.25rem;
  line-height: .82;
  letter-spacing: -.01em;
  color: #1f3528;
  text-align: center;
}
.is-dayfold .pcm-day .dc-meta { gap: 1px; line-height: 1.32; }
.is-dayfold .pcm-day .dc-l1 {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .015em;
  color: var(--ink);
}
.is-dayfold .pcm-day .dc-l2 { font-size: .7rem; color: var(--ink-2); }
.is-dayfold .pcm-day .dc-l3 { font-size: .685rem; color: var(--ink-3); letter-spacing: .01em; }
.is-dayfold .pcm-day .dc-gz {
  align-self: center;
  font-size: 2.1rem;
  line-height: .85;
  letter-spacing: .03em;
  padding-top: 2px;
}
.is-dayfold .pcm-day .dc-gz i { text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.is-dayfold .pcm-day .dc-bar {
  /* Keep six painted pixels plus padding, even when the card flexes. */
  flex: 0 0 11px;
  height: 11px;
  min-height: 11px;
  margin-top: 1px;
  padding-top: 4px;
  border-top: 1px solid rgba(45, 106, 79, .09);
}
.is-dayfold .pcm-day .dc-ft {
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(45, 106, 79, .08);
}
.is-dayfold .pcm-day .dc-god {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  color: var(--ink-2);
}
.is-dayfold .pcm-day .dc-god::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(45, 106, 79, .08);
}
.is-dayfold .pcm-day .dc-god.is-bad::before { background: #b05a43; box-shadow: 0 0 0 2px rgba(176, 90, 67, .08); }
.is-dayfold .pcm-day .dc-god em {
  margin-left: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(45, 106, 79, .07);
  color: var(--ink-3);
  font-size: .64rem;
}
.is-dayfold .pcm-day .dc-god.is-bad em { background: rgba(176, 90, 67, .08); color: #8e4c38; }
.is-dayfold .pcm-day .dc-jc {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(45, 106, 79, .09);
  color: var(--accent);
  font-size: .68rem;
  letter-spacing: .01em;
}
.is-dayfold .pcm-day .dc-jc.is-calm { background: rgba(168, 99, 76, .08); color: #8e5a46; }
.is-dayfold .pcm-day .dc-plan {
  margin-top: 1px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(45, 106, 79, .055);
  font-size: .72rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-dayfold .pcm-day .dc-plan::before {
  content: "计划";
  margin-right: 6px;
  font-size: .62rem;
  color: var(--ink-3);
  letter-spacing: .04em;
}

/* 日卡有计划时：计划条并进底部一行，不再额外撑高整张牌 */
.is-dayfold .pcm-day .dc-ft.has-plan {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 4px;
}
.is-dayfold .pcm-day .dc-ft.has-plan .dc-god,
.is-dayfold .pcm-day .dc-ft.has-plan .dc-jc { justify-self: start; }
.is-dayfold .pcm-day .dc-ft.has-plan .dc-plan {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-size: .64rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-align: right;
  justify-self: stretch;
  min-width: 0;
}
.is-dayfold .pcm-day .dc-ft.has-plan .dc-plan::before { content: none; }
/* ═══ 看月信息：五张卡（01–05） ═══ */
.mi-stack { margin: .5rem .125rem 0; display: flex; flex-direction: column; gap: .625rem; }
.mi-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 1px 2px rgba(45,106,79,.035), 0 10px 24px -20px rgba(45,106,79,.28);
}
.mi-hd { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 4px; }
.mi-no {
  flex: none; width: 23px; height: 23px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(45,106,79,.09); color: var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: -.02em;
}
.mi-hd-t { flex: 1; min-width: 0; }
.mi-hd h3 { font-family: var(--sans); font-size: .86rem; line-height: 1.35; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.mi-hd p { margin-top: 1px; font-size: .62rem; line-height: 1.4; color: var(--ink-3); }
.mi-tag {
  flex: none; align-self: flex-start; margin-top: 1px; padding: 2px 7px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .56rem; line-height: 1.5; color: var(--ink-3); white-space: nowrap;
}

/* 01 这个月本身 */
.mi-hero { display: flex; align-items: flex-end; gap: 10px; padding: 8px 0 6px; }
.mi-big { font-family: var(--serif); font-size: 2.55rem; line-height: .82; color: var(--accent); letter-spacing: -.04em; }
.mi-big span { margin-left: 3px; font-family: var(--sans); font-size: .72rem; letter-spacing: 0; color: var(--ink-3); }
.mi-hero-meta { min-width: 0; padding-bottom: 1px; }
.mi-hero-meta strong { display: block; font-size: .76rem; line-height: 1.5; font-weight: 600; color: var(--ink); }
.mi-hero-meta span { display: block; margin-top: 1px; font-size: .65rem; line-height: 1.5; color: var(--ink-3); }
.mi-rows { margin-top: 3px; border-top: 1px dashed var(--line); }
.mi-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .7rem; line-height: 1.55; }
.mi-row:last-child { border-bottom: 0; }
.mi-k { flex: none; color: var(--ink-3); }
.mi-v { text-align: right; color: var(--ink); }
.mi-v b { font-weight: 700; }
.mi-v i { font-style: normal; margin-left: 3px; color: var(--ink-3); font-size: .62rem; }
.mi-prog { height: 4px; margin: 8px 0 5px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.mi-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4a8a6c, var(--accent)); }
.mi-foot { display: flex; justify-content: space-between; gap: 8px; font-size: .62rem; color: var(--ink-3); }
.mi-note {
  margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-size: .61rem; line-height: 1.7; color: var(--ink-3);
}
.mi-empty-line { padding: 8px 0; font-size: .7rem; color: var(--ink-3); }

/* 02 节气与物候 */
.mi-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 8px 0 4px; }
.mi-term { padding: 8px 9px 7px; border: 1px solid var(--line); border-radius: 10px; background: rgba(226,240,231,.42); }
.mi-term span { display: block; font-size: .64rem; line-height: 1.4; color: var(--ink-3); }
.mi-term b { display: block; margin: 1px 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.mi-term i { display: block; font-style: normal; font-size: .62rem; line-height: 1.4; color: var(--accent); }
.mi-hou-list { margin-top: 6px; }
.mi-hou { display: grid; grid-template-columns: 57px 1fr auto; gap: 7px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .68rem; line-height: 1.5; }
.mi-hou:last-child { border-bottom: 0; }
.mi-hou-d { color: var(--ink-3); font-size: .62rem; white-space: nowrap; }
.mi-hou b { min-width: 0; font-weight: 500; color: var(--ink); }
.mi-hou-t { color: var(--ink-3); font-size: .6rem; white-space: nowrap; }

/* 03 月亮的这一圈 */
.mi-moon-hd { display: flex; align-items: center; gap: 10px; padding: 7px 0 8px; }
.mi-moon-ico { flex: none; width: 48px; text-align: center; font-size: 2.35rem; line-height: 1; filter: drop-shadow(0 3px 5px rgba(45,106,79,.12)); }
.mi-moon-name { font-size: .82rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.mi-moon-sub { margin-top: 1px; font-size: .62rem; line-height: 1.5; color: var(--ink-3); }
.mi-moon-strip { display: flex; gap: 4px; height: 30px; align-items: stretch; margin: 2px 0 8px; border-radius: 0; overflow: visible; }
.mi-moon-seg { flex: 1; min-width: 0; border-radius: 3px; background: rgba(45,106,79,.12); }
.mi-moon-seg.p0 { background: rgba(45,106,79,.14); }
.mi-moon-seg.p1 { background: rgba(45,106,79,.25); }
.mi-moon-seg.p2 { background: rgba(45,106,79,.38); }
.mi-moon-seg.p3 { background: rgba(45,106,79,.52); }
.mi-moon-seg.p4 { background: rgba(45,106,79,.82); }
.mi-moon-seg.p5 { background: rgba(45,106,79,.56); }
.mi-moon-seg.p6 { background: rgba(45,106,79,.32); }
.mi-moon-seg.p7 { background: rgba(45,106,79,.18); }
.mi-moon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; padding-top: 4px; }
.mi-moon-node { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 0; text-align: left; font-size: .66rem; line-height: 1.5; border-bottom: 1px dashed var(--line); }
.mi-moon-node span { min-width: 0; color: var(--ink-2); }
.mi-moon-node b { flex: none; font-weight: 600; color: var(--accent); font-size: .66rem; }

/* 04 日子的分布 */
.mi-score { display: flex; align-items: center; gap: 10px; padding: 7px 0 8px; }
.mi-score b { font-family: var(--serif); font-size: 2.35rem; line-height: .9; color: var(--accent); letter-spacing: -.03em; }
.mi-score span { font-size: .65rem; line-height: 1.65; color: var(--ink-3); }
.mi-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mi-pick { padding: 8px 9px 7px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: rgba(226,240,231,.42); }
.mi-pick > span { display: block; font-size: .6rem; line-height: 1.4; color: var(--accent); }
.mi-pick b { display: block; margin: 1px 0; font-size: .71rem; line-height: 1.45; font-weight: 600; color: var(--ink); }
.mi-pick i { display: block; font-style: normal; font-size: .59rem; line-height: 1.4; color: var(--ink-3); }
.mi-pick.is-worst { background: rgba(176,90,67,.055); border-color: rgba(176,90,67,.14); }
.mi-pick.is-worst > span { color: #8e4c38; }
.mi-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin: 8px 0; }
.mi-stat { padding: 7px 2px 6px; text-align: center; border-radius: 8px; background: var(--paper); }
.mi-stat b { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; font-weight: 600; color: var(--ink); }
.mi-stat span { display: block; margin-top: 1px; font-size: .58rem; line-height: 1.35; color: var(--ink-3); }
.mi-jc { display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; margin: 7px 0; }
.mi-jc span { padding: 3px 0; text-align: center; border-radius: 5px; background: var(--paper); font-size: .59rem; line-height: 1.4; color: var(--ink-3); }
.mi-jc .t-good { color: var(--accent); background: rgba(45,106,79,.075); }
.mi-jc .t-bad { color: #8e4c38; background: rgba(176,90,67,.065); }
.mi-break { margin: 7px 0; padding: 6px 8px; border-radius: 8px; background: rgba(176,90,67,.06); font-size: .62rem; line-height: 1.6; color: #8e4c38; }
.mi-rank { margin-top: 6px; }
.mi-rank-h { margin-bottom: 2px; font-size: .6rem; line-height: 1.5; color: var(--ink-3); }
.mi-rank-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; padding: 5px 0; border-bottom: 1px dashed var(--line); text-align: left; font-size: .65rem; line-height: 1.5; color: var(--ink-2); }
.mi-rank-row:last-child { border-bottom: 0; }
.mi-rank-row b { flex: none; font-weight: 600; color: var(--accent); font-size: .65rem; }

/* 05 我的计划 */
.mi-plan-q { margin: 7px 0 5px; padding-left: 9px; border-left: 2px solid var(--line-2); font-family: var(--serif); font-size: .95rem; line-height: 1.6; color: var(--ink); }
.mi-plan-q.is-empty { color: var(--ink-3); font-family: var(--sans); font-size: .72rem; border-left-color: var(--line); }
.mi-plan-sum { display: flex; align-items: baseline; gap: 7px; margin: 5px 0 1px; }
.mi-plan-sum b { font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--accent); }
.mi-plan-sum span { font-size: .64rem; line-height: 1.5; color: var(--ink-3); }
.mi-plan-range { margin-bottom: 6px; font-size: .63rem; line-height: 1.6; color: var(--ink-3); }
.mi-plan-rows { display: flex; flex-direction: column; gap: 5px; }
.mi-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); text-align: left; }
.mi-plan-row > span { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
.mi-plan-row b { flex: none; font-size: .65rem; line-height: 1.5; font-weight: 600; color: var(--accent); }
.mi-plan-row i { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: .65rem; line-height: 1.5; color: var(--ink-2); }
.mi-plan-row em { flex: none; font-style: normal; font-size: .57rem; line-height: 1.4; color: var(--ink-3); }
.mi-empty { padding: 9px 0 4px; text-align: center; font-size: .7rem; line-height: 1.8; color: var(--ink-3); }
.mi-empty span { font-size: .61rem; color: var(--ink-3); }
.mi-more { margin-top: 4px; font-size: .6rem; line-height: 1.5; color: var(--ink-3); }
.mi-hint { margin-top: 3px; }

/* 两次输入：自由表达与补充各有明确的一步，沿用原有纸感浅绿。 */
.page-home .ask-card { gap: 9px; margin-bottom: 0; }
/* 只给读屏的隐藏区（主页那两行标题 + 提示句就放在这里，视觉上不存在） */
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;white-space:nowrap;border:0;clip:rect(0 0 0 0);clip-path:inset(50%)}
/* 输入框：回到最初那版——一张圆角卡片，里面是 textarea + 右下角的圆形箭头键 */
.page-home .ask-card .composer {
  order: 1; display: flex; align-items: flex-end; gap: 10px;
  padding: 9px 9px 9px 15px; border-radius: 18px;
}
.page-home .ask-card .composer textarea {
  display: block; flex: 1 1 0%; width: auto; min-height: 68px; max-height: 180px; padding: 3px 0;
  resize: none; overflow-y: auto; font-size: 15px; line-height: 1.7;
}
.page-home .ask-card .composer textarea::placeholder { font-size: 14px; line-height: 1.8; }
.page-home .ask-card .composer textarea:disabled { opacity: .65; }
.page-home .ask-card .composer .send { width: 40px; height: 40px; margin-bottom: 2px; }
.page-home .ask-card .composer .send svg { width: 19px; height: 19px; }
.intake-count { order: 3; align-self: flex-end; color: var(--ink-3); font-size: 11px; }
.page-home .ask-card .time-card { order: 2; padding: 7px 12px; }
.intake-original summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.page-home .home-dock.is-completing .time-card { display: none; }
.page-home .home-wrap.has-talk .talk { margin-top: 8px; }
.intake-original {
  width: 100%; border: 1px solid var(--line); border-radius: 13px;
  background: rgba(255,255,255,.24); padding: 10px 12px;
}
.intake-original summary { color: var(--ink-2); font-size: 12px; cursor: pointer; line-height: 1.7; }
.intake-original summary span {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding-top: 2px; font-size: 12px; color: var(--ink-3);
}
.intake-original .bubble-user {
  max-width: none; padding: 12px 0 0; border-radius: 0; color: var(--ink-2);
  background: transparent; box-shadow: none; font-size: 13px;
}
.page-home .home-dock.is-completing + .tabbar { margin-top: 0; }
.page-home .talk > .bubble-ai { max-width: 100%; padding: 15px 16px; font-size: 14px; line-height: 1.85; }
.page-home .talk > .bubble.typing { justify-content: flex-start; padding: 14px 16px; }
.page-home .bubble.typing span { margin-left: 6px; color: var(--ink-3); font-size: 12px; }
.page-home .talk-foot { padding: 10px 3px 14px; justify-content: flex-start; }
.page-home .talk-hint { font-size: 11px; line-height: 1.7; }
@media (max-height: 700px) {
  .page-home .home-quiet { padding-top: 10px; padding-bottom: 10px; }
  .page-home .home-dock { padding-top: 6px; padding-bottom: 7px; }
  .page-home .ask-card { gap: 6px; }
  .page-home .ask-card .composer textarea { min-height: 70px; max-height: 130px; }
}


/* ─────────────────────────────────────────────────────────────
   底栏「小确幸」的提示动效（只在「小计划页」、且这颗 tab 没被选中时跑）：
   · 每隔 --tab-pulse 闪一下，**严格等距**，永远踩在同一个节拍上；
   · 每 6 个节拍（= 闪 5 次之后的那一下）配一次横向白色光带，
     光带正好在这第 6 下闪烁的瞬间扫到尾巴 —— 带尾那下闪和带子是一起收的；
   · 光带是纯白的（HDR 贴纸那种反光），不带彩色。
   节奏只改 --tab-pulse；亮度改 --tab-band-alpha；想整体关掉把下面的
   .page-plans 换成 .never。

   ⚠ 改 --tab-pulse 时下面这些百分比要一起改（它们是按 5 秒一拍算的）：
     · 闪一下 0.4 秒 → tabPulse* 里 8%；
     · 光带 1.5 秒   → cycle = 6 × 5s = 30s，[23.5s, 25s] = 78.33% → 83.33%，
                       83.33% 就是第 6 拍（= 5 × pulse）。
   ───────────────────────────────────────────────────────────── */
:root{
  --tab-pulse:5s;
  --tab-band-alpha:1;
  /* 四叶草字形当蒙版：光只亮在字形里，不会在图标外面糊一块方形光斑 */
  --tab-clover-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg transform='translate(32 32) scale(1.6) translate(-32 -35)' fill='%23fff'%3E%3Cpath transform='rotate(45 32 32)' d='M32 33C30 27 24 25 24 19C24 14 29 12 32 16C35 12 40 14 40 19C40 25 34 27 32 33Z'/%3E%3Cpath transform='rotate(135 32 32)' d='M32 33C30 27 24 25 24 19C24 14 29 12 32 16C35 12 40 14 40 19C40 25 34 27 32 33Z'/%3E%3Cpath transform='rotate(225 32 32)' d='M32 33C30 27 24 25 24 19C24 14 29 12 32 16C35 12 40 14 40 19C40 25 34 27 32 33Z'/%3E%3Cpath transform='rotate(315 32 32)' d='M32 33C30 27 24 25 24 19C24 14 29 12 32 16C35 12 40 14 40 19C40 25 34 27 32 33Z'/%3E%3Cpath d='M32 36C33 43 35 49 38 54' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");
}
/* 图标外层盒子：全局都套（不是只有小计划页），不然主页上它会退回 inline、按基线坐，视觉上「飞高」 */
.tab-ico{position:relative;display:grid;place-items:center;width:22px;height:22px;line-height:0}
.tab-ico::after{
  content:'';position:absolute;inset:-7px;border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(circle,rgba(70,168,122,.46) 0%,rgba(70,168,122,.2) 45%,rgba(70,168,122,0) 72%);
}
/* 扫光层：本身是「四叶草形状的窗口」，窗口里一条竖直的白光带横向穿过去（不旋转，纯白） */
.tab-sheen{
  position:absolute;inset:0;pointer-events:none;opacity:0;overflow:hidden;
  -webkit-mask-image:var(--tab-clover-mask);mask-image:var(--tab-clover-mask);
  -webkit-mask-size:100% 100%;mask-size:100% 100%;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
}
.tab-sheen::before{
  content:'';position:absolute;top:0;left:0;width:56%;height:100%;
  background:linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.32) 30%,
    rgba(255,255,255,.92) 46%,
    #ffffff 54%,
    rgba(255,255,255,.32) 70%,
    rgba(255,255,255,0) 100%);
  transform:translateX(-110%);
}



/* 只挂在「小计划页里、没被选中的小确幸」上：进了主页它自己就停了。
   闪：一条 --tab-pulse 长的循环，所以每一下都严格等距；
   带：6 个节拍一轮，扫到 83.33%（正好是第 6 下闪烁）收尾。 */
.page-plans .tabbar .tab[data-tab="home"]:not(.on){
  animation:tabPulseColor var(--tab-pulse) ease-in-out infinite;
}
.page-plans .tabbar .tab[data-tab="home"]:not(.on) svg{
  animation:tabPulsePop var(--tab-pulse) ease-in-out infinite;
}
.page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-ico::after{
  animation:tabPulseHalo var(--tab-pulse) ease-in-out infinite;
}
.page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-sheen,
.page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-sheen::before{
  animation-duration:calc(var(--tab-pulse) * 6);
  animation-timing-function:linear;
  animation-iteration-count:infinite;
}
.page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-sheen{animation-name:tabBandFade}
.page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-sheen::before{animation-name:tabBandSweep}

/* 闪一下：约 0.4 秒走完（1.2% 起亮 → 8% 收干净），剩下时间完全不动，等下个节拍 */
@keyframes tabPulseColor{
  0%      {color:var(--ink-3)}
  1.2%    {color:var(--accent)}
  5%      {color:var(--accent)}
  8%      {color:var(--ink-3)}
  100%    {color:var(--ink-3)}
}
@keyframes tabPulsePop{
  0%      {transform:none;filter:none}
  1.2%    {transform:scale(1.16);filter:drop-shadow(0 0 4px rgba(70,168,122,.5)) brightness(1.06)}
  5%      {transform:scale(1.08);filter:drop-shadow(0 0 7px rgba(70,168,122,.4))}
  8%      {transform:none;filter:none}
  100%    {transform:none;filter:none}
}
@keyframes tabPulseHalo{
  0%      {opacity:0}
  1.2%    {opacity:1}
  5%      {opacity:.7}
  8%      {opacity:0}
  100%    {opacity:0}
}
/* 横向白带：30 秒一轮（6 × 5s）；78.33% 起扫（23.5s），83.33% 正好扫出画面（25s）——
   这一瞬就是第 6 下闪烁，两条动画在同一个时间点上收尾 */
@keyframes tabBandFade{
  0%,78.33% {opacity:0}
  79.2%     {opacity:var(--tab-band-alpha)}
  83.33%    {opacity:var(--tab-band-alpha)}
  84.2%     {opacity:0}
  100%      {opacity:0}
}
@keyframes tabBandSweep{
  0%,78.33% {transform:translateX(-110%)}
  83.33%    {transform:translateX(190%)}
  84%,100%  {transform:translateX(190%)}
}
/* 系统开了「减弱动态效果」时：只保留「变亮/变深 + 一圈柔光」这类不位移的提示，
   砍掉会动的部分（图标缩放、白带横扫）。
   注意：不能说「全都 animation:none」——那样连提示都没了（用户会以为坏了）；
   也不能不管——文件第 403 行那条全局 `*{animation-duration:.01ms!important}`
   会把无限循环压成频闪，所以这里的时长必须显式再声明一次。 */
@media (prefers-reduced-motion:reduce){
  .page-plans .tabbar .tab[data-tab="home"]:not(.on){
    animation-name:tabPulseColor;
    animation-duration:var(--tab-pulse)!important;
    animation-timing-function:ease-in-out;
    animation-iteration-count:infinite;
  }
  .page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-ico::after{
    animation-name:tabPulseHalo;
    animation-duration:var(--tab-pulse)!important;
    animation-timing-function:ease-in-out;
    animation-iteration-count:infinite;
  }
  /* 位移类：图标缩放、白带横扫，一律不动 */
  .page-plans .tabbar .tab[data-tab="home"]:not(.on) svg,
  .page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-sheen,
  .page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-sheen::before{animation:none!important}
}

/* ?motion=full：演示/录屏时无视系统设置，动画照满跑（ui.js 会把这个属性挂到 html 上） */
html[data-motion="full"] .page-plans .tabbar .tab[data-tab="home"]:not(.on){
  animation:tabPulseColor var(--tab-pulse) ease-in-out infinite !important;
}
html[data-motion="full"] .page-plans .tabbar .tab[data-tab="home"]:not(.on) svg{
  animation:tabPulsePop var(--tab-pulse) ease-in-out infinite !important;
}
html[data-motion="full"] .page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-ico::after{
  animation:tabPulseHalo var(--tab-pulse) ease-in-out infinite !important;
}
html[data-motion="full"] .page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-sheen{
  animation:tabBandFade calc(var(--tab-pulse) * 6) linear infinite !important;
}
html[data-motion="full"] .page-plans .tabbar .tab[data-tab="home"]:not(.on) .tab-sheen::before{
  animation:tabBandSweep calc(var(--tab-pulse) * 6) linear infinite !important;
}

/* ── 异步路由的骨架屏 ──────────────────────────────────────────
   小计划页第一次进来要等后端把这月的历法发过来（brotli ~15KB，之后一年都走缓存）。
   已经缓存过时路由是同步的，这块骨架在同一帧就被覆盖，看不见。 */
.page-skeleton{min-height:60vh;display:grid;place-items:center}
.page-skeleton i{
  width:22px;height:22px;border-radius:50%;
  border:2px solid var(--line-2);border-top-color:var(--accent);
  animation:skeleton-spin .8s linear infinite;
}
@keyframes skeleton-spin{to{transform:rotate(360deg)}}
/* 系统开了「减弱动态效果」就别转（全局那条 .01ms 规则会让它变成频闪） */
@media (prefers-reduced-motion:reduce){
  .page-skeleton i{animation:none;border-top-color:var(--line-2)}
}
/* 取不到数据时的重试卡片（比一直转圈强） */
.page-retry{min-height:52vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;text-align:center}
.page-retry b{font-family:var(--serif);font-size:16px;font-weight:600;color:var(--ink)}
.page-retry span{font-size:13px;line-height:1.8;color:var(--ink-3)}
.page-retry .btn{max-width:180px;margin-top:2px}


/* ── 第二个页面（写完第一段 → AI 请你补充）不再做成「聊天」 ─────────
   把气泡感全部收掉：没有底色、没有圆角、不做左右对话的排布，
   而是当成页面上的一段话 —— 你的原话是一句引文，AI 的话是正文。
   class 名仍然沿用 bubble-user / bubble-ai，不动 DOM（测试也就不用改）。 */
.page-home .talk{gap:20px;padding:18px 2px 6px}
.page-home .talk > .bubble{max-width:100%}
/* 你的原话：左边一道细线，像引文，不像消息 */
.page-home .talk > .bubble-user{
  align-self:stretch;background:none;box-shadow:none;border-radius:0;
  border-left:2px solid var(--line-2);padding:0 0 0 11px;
  color:var(--ink-3);font-size:13px;line-height:1.85;
}
/* AI 那段：正文 */
.page-home .talk > .bubble-ai{
  align-self:stretch;background:none;border:0;border-radius:0;box-shadow:none;
  padding:0;max-width:100%;
  color:var(--ink-2);font-size:14.5px;line-height:1.95;letter-spacing:.01em;
}
/* 正文上面一小段浅绿横线，代替原来的气泡「头像」 */
.page-home .talk > .bubble-ai::before{
  content:'';display:block;width:26px;height:2px;margin:0 0 13px;
  border-radius:2px;background:var(--accent-soft);
}
/* 「正在整理你的话」也不再是个气泡 */
.page-home .talk > .bubble.typing{
  background:none;border:0;box-shadow:none;padding:0;gap:5px;
}
/* 可展开的原话：整块也退成引文样式 */
.page-home .intake-original{
  border:0;border-left:2px solid var(--line-2);border-radius:0;
  background:none;padding:0 0 0 11px;
}
.page-home .intake-original summary{font-size:11.5px;color:var(--ink-3)}
.page-home .intake-original summary span{font-size:11.5px}
.page-home .intake-original .bubble-user{padding:6px 0 0}

/* ══════════════════════════════════════════════════════════════
   欢迎页 · 居中版式（新稿）
   上面是光晕里那颗会呼吸的四叶草 + 两行标题；下面直接是两个大输入框，
   勾选与主按钮留在常驻的 .cta-dock 里，备案号照旧在页脚。
   旧的 .hero-mark / .hero-list / .hero-note / .login-hd 规则不再被这个页面用到，
   留在这里不影响别处（.hero 也给别的页面用过），所以不删。
   ══════════════════════════════════════════════════════════════ */
.page > .wrap.welcome-wrap{
  display:flex;flex-direction:column;
  padding:calc(14px + env(safe-area-inset-top,0px)) 22px 10px;
}
.welcome-wrap .hero.wx-hero{
  flex:1 1 auto;min-height:0;max-width:none;margin:0;padding:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;
}

/* 四叶草 + 光晕 */
.welcome-wrap .wx-mark{
  position:relative;display:grid;place-items:center;
  width:108px;height:108px;margin-bottom:24px;flex:none;
}
.welcome-wrap .wx-halo{
  position:absolute;inset:-6px;border-radius:50%;
  background:radial-gradient(circle at 50% 48%, rgba(87,196,145,.42) 0%, rgba(135,214,175,.22) 42%, rgba(196,235,215,0) 70%);
  filter:blur(2px);
  animation:wxHalo 4.6s ease-in-out infinite;
  pointer-events:none;
}
.welcome-wrap .wx-clover{
  position:relative;display:block;color:#3f9e6e;
  animation:wxFloat 5.2s ease-in-out infinite;
  will-change:transform;
}
.welcome-wrap .wx-clover svg{
  display:block;width:52px;height:52px;
  filter:drop-shadow(0 10px 20px rgba(63,158,110,.3));
}
@keyframes wxFloat{
  0%,100%{transform:translateY(0) rotate(-2.5deg)}
  50%{transform:translateY(-7px) rotate(2.5deg)}
}
@keyframes wxHalo{
  0%,100%{opacity:.68;transform:scale(.94)}
  50%{opacity:1;transform:scale(1.08)}
}

/* 标题与副题 */
/* 选择器写到 .hero 里面：旧的 .welcome-wrap .hero h1（2 类 + 1 元素）比单个 .wx-title 更具体，
   不这样写 32px 那条会盖掉这里 */
.welcome-wrap .hero .wx-title{
  font-family:var(--serif);
  /* 22px / 行高 1.68：13 个字的那一行在 390 宽（左右各 22 内边距）里正好一行放得下，
     再大就会把「日子。」挤到第三行去 */
  font-size:22px;line-height:1.68;letter-spacing:.015em;font-weight:600;
  color:var(--ink);margin:0;
}
.welcome-wrap .wx-tag{
  margin-top:15px;font-size:12px;letter-spacing:.16em;color:var(--ink-3);
}

/* 输入区：不要分隔线、不要标题，直接两个大圆角框 */
.welcome-wrap .login-block{
  margin-top:18px;padding-top:0;border-top:0;
  display:flex;flex-direction:column;flex:none;
}
.welcome-wrap .login-block .field{
  min-height:62px;border-radius:18px;margin-bottom:13px;padding:0 20px;gap:8px;
  background:#fbfefc;border:1px solid rgba(45,106,79,.12);
  box-shadow:0 1px 2px rgba(45,106,79,.03);
}
.welcome-wrap .login-block .field:focus-within{
  background:#ffffff;border-color:rgba(63,158,110,.55);
  box-shadow:0 0 0 3px rgba(87,196,145,.13);
}
.welcome-wrap .login-block .field input{font-size:16.5px}
.welcome-wrap .login-block .field input::placeholder{color:#9db0a4}
.welcome-wrap .field-code{padding-right:7px}
/* 旧的 .22em 字距是给「6 位验证码」那种小框配的，新稿里 6 个数字铺满一行会散开 */
.welcome-wrap .field-code input{letter-spacing:.1em}
.welcome-wrap .login-block .code-btn{
  flex:none;height:46px;padding:0 17px;border-radius:14px;
  background:#e8f4ec;color:var(--green);border:0;border-bottom:0;
  font-size:13px;font-weight:500;letter-spacing:.02em;white-space:nowrap;
}
.welcome-wrap .login-block .code-btn:disabled{opacity:.5;color:var(--ink-3)}
.welcome-wrap .login-tip{
  margin:2px 4px 0;font-size:11.5px;line-height:1.7;text-align:center;min-height:0;
}
.welcome-wrap .login-tip:empty{display:none}

/* 底部：勾选、主按钮、备案号 */
.page-welcome .cta-dock{padding-top:8px}
.page-welcome .cta-dock .agree-row{
  justify-content:flex-start;padding:4px 2px 12px;min-height:0;
  font-size:13.5px;color:var(--ink-2);
}
.page-welcome .agree-row .box{width:21px;height:21px;border-radius:6px}
.page-welcome .agree-row.on .box::after{left:6px;top:1.5px;width:6px;height:10px}
.page-welcome .agree-row .link{
  font-size:13.5px;color:var(--green);border-bottom-color:rgba(45,106,79,.28);
}
.page-welcome .cta-dock .btn-primary{
  min-height:58px;border-radius:17px;font-size:16.5px;font-weight:500;
  color:#f7fcfa;
  background:linear-gradient(180deg,#327b5b 0%,#2a6a4c 100%);
  box-shadow:0 10px 24px -14px rgba(36,53,42,.85);
}
.page-welcome .cta-dock .btn-primary:active:not(:disabled){
  background:linear-gradient(180deg,#2c6e50 0%,#245f45 100%);
  transform:scale(.985);
}
.page-welcome .cta-dock .icp-line{font-size:11px;margin-top:9px;letter-spacing:.02em}

@media (prefers-reduced-motion: reduce){
  .welcome-wrap .wx-clover,.welcome-wrap .wx-halo{animation:none}
}



/* ——— 登录页：图形验证码 ——— */
.field-cap{position:relative}
.field-cap input{padding-right:118px}
.cap-img{position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:106px;height:38px;border-radius:8px;background:#f5faf6;cursor:pointer;
  transition:opacity .15s ease;object-fit:contain}
.cap-img:hover{opacity:.8}

/* ——— 赞赏：商户收款码 ——— */
.tip-qr{display:flex;justify-content:center;padding:6px 0 4px}
.tip-qr img{width:220px;max-width:70vw;border-radius:14px;background:#fff;
  border:1px solid #e3ebe6;object-fit:contain}
.tip-qr-hint{text-align:center;color:#7c8b83;font-size:13px;line-height:1.7;margin:10px 0 14px}


/* ——— 我的记录：回看列表 ——— */
.hist-list{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.hist-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  background:#fff;border:1px solid #e3ebe6;border-radius:14px;padding:14px 16px;
  cursor:pointer;transition:background .15s ease,border-color .15s ease}
.hist-row:hover{background:#f9fcfa;border-color:#cfe0d7}
.hist-day{flex:0 0 auto;font-size:12px;color:#8b9a92;font-variant-numeric:tabular-nums;
  min-width:64px}
.hist-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.hist-q{font-size:14px;color:#243029;line-height:1.45;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.hist-meta{font-size:12px;color:#8b9a92}
.hist-chev{flex:0 0 auto;width:16px;height:16px;color:#c3cfc8}
.hist-chev svg{width:16px;height:16px;display:block}
.hist-empty{text-align:center;color:#8b9a92;font-size:14px;line-height:1.9;padding:60px 20px}
.hist-empty span{font-size:13px;color:#a9b5ae}

/* ── 支付方式选择（赞赏第二步） ── */
.tx-order{
  margin:0 0 14px; padding:13px 15px; border-radius:14px;
  background:#fbfdfb; border:1px solid var(--line-soft);
}
.tx-order-row{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.tx-order-row + .tx-order-row{ margin-top:7px; }
.tx-order-row dt{ font-size:12px; color:var(--ink-3); }
.tx-order-row dd{ font-family:var(--serif); font-size:15px; font-weight:600; }
.tx-order-amt dd{ font-size:21px; color:var(--solid); }

.tx-ways{ display:flex; flex-direction:column; gap:8px; margin:0 0 14px; }
.tx-way{
  display:flex; align-items:center; gap:11px; width:100%; text-align:left;
  padding:13px 15px; border-radius:14px; cursor:pointer;
  background:var(--paper); border:1px solid var(--line);
  transition:border-color .16s, background .16s, transform .12s;
}
.tx-way:active{ transform:scale(.985); }
.tx-way.on{ border-color:var(--solid); background:#eef7f1; }
.tx-way-ic{
  flex:0 0 auto; width:32px; height:32px; border-radius:9px;
  display:grid; place-items:center; color:#fff; font-size:13px; font-weight:600;
}
.tx-way-ic.alipay{ background:#1677ff; }
.tx-way-ic.wechat{ background:#07c160; }
.tx-way-ic.card{ background:#8a8175; }
.tx-way-main{ flex:1 1 auto; min-width:0; }
.tx-way-main b{ display:block; font-size:14px; font-weight:600; color:var(--ink); }
.tx-way-main i{ font-style:normal; font-size:11px; color:var(--ink-3); }
.tx-way-tick{
  flex:0 0 auto; width:19px; height:19px; border-radius:50%;
  border:1.5px solid #ccc4b6; display:grid; place-items:center; color:#fff;
}
.tx-way.on .tx-way-tick{ background:var(--solid); border-color:var(--solid); }
.tx-way-tick svg{ width:11px; height:11px; opacity:0; }
.tx-way.on .tx-way-tick svg{ opacity:1; }

/* 支付中 / 二维码 */
.tx-qr{ text-align:center; padding:6px 0 2px; }
.tx-qr-box{
  width:196px; height:196px; margin:0 auto 12px; border-radius:12px;
  background:#fff; border:1px solid var(--line); display:grid; place-items:center;
  overflow:hidden;
}
.tx-qr-box img{ width:100%; height:100%; object-fit:contain; }
.tx-qr-box.is-manual{ width:250px; height:250px; }
@media (max-width:360px){ .tx-qr-box.is-manual{ width:215px; height:215px; } }
.tx-qr-tip{ font-size:12px; color:var(--ink-3); line-height:1.8; margin:0 0 14px; }
.tx-qr-amt{ font-family:var(--serif); font-size:23px; font-weight:600; color:var(--solid); margin-bottom:4px; }
.tx-wait{ font-size:12px; color:var(--ink-3); display:flex; align-items:center; justify-content:center; gap:7px; }
.tx-wait:before{
  content:""; width:11px; height:11px; border-radius:50%;
  border:2px solid var(--accent-soft); border-top-color:var(--solid);
  animation:txspin .9s linear infinite;
}
@keyframes txspin{ to{ transform:rotate(360deg); } }
