[hidden] { display: none !important; }
:root {
  --bg: #f6f2ec; --bg-2: #efe8df; --panel: #fffdfa; --panel-2: #faf6f0; --panel-3: #f3ede5;
  --line: rgba(92,60,28,.09); --line-2: rgba(92,60,28,.16);
  --text: #1f1b17; --text-2: #4b443c; --mute: #8b8178; --faint: #b8aea3;
  --amber: #e8833a; --amber-2: #f29a55; --amber-deep: #cf6420; --amber-soft: #fdf1e5; --amber-line: #f5d2b3;
  --amber-glow: rgba(232,131,58,.22);
  --ok: #2f9e6b; --ok-soft: #e7f5ee; --bad: #c8431f; --bad-soft: #fdece6; --wait: #b7791f; --wait-soft: #fdf6e3; --seal: #c8431f;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  --doc: "SimSun", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --shadow: 0 1px 2px rgba(80,50,20,.05), 0 10px 30px -12px rgba(80,50,20,.16);
  --shadow-lg: 0 2px 6px rgba(80,50,20,.06), 0 30px 70px -24px rgba(120,70,30,.28);
  --ease: cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; color: var(--text); font: 13.5px/1.6 var(--sans); background: var(--bg); }
/* paper grain over the whole page */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .32  0 0 0 0 .2  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shared pieces ---------- */
.eyebrow { font: 600 11px var(--mono); letter-spacing: 1.5px; color: var(--amber-deep); text-transform: uppercase; }
.eyebrow b { font-family: var(--sans); letter-spacing: 1px; font-weight: 600; margin-left: 6px; }
.muted { color: var(--mute); } .t2 { color: var(--text-2); }
.hint { font-size: 12px; color: var(--mute); }
.card, .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); position: relative; }
.panel { padding: 22px 24px; margin-bottom: 16px; }
.card.edge::before, .panel.edge::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--amber), rgba(232,131,58,0) 70%); }
h1 { font-size: 30px; margin: 6px 0 4px; font-weight: 800; letter-spacing: 1px; }
h2 { font-size: 16px; margin: 0 0 14px; }
h3 { font-size: 14px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; transition: all .2s var(--ease); }
.btn:hover { border-color: var(--faint); }
.btn.primary { border: 0; color: #fff; font-weight: 700; letter-spacing: .5px; background: linear-gradient(135deg, var(--amber-2), var(--amber) 45%, var(--amber-deep)); box-shadow: 0 10px 24px -8px var(--amber-glow), 0 0 0 1px rgba(255,255,255,.18) inset; }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(232,131,58,.45), 0 0 0 1px rgba(255,255,255,.22) inset; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
button.link { background: none; border: 0; color: var(--mute); cursor: pointer; padding: 0; font-size: 12px; }
button.link:hover { color: var(--text); }
.chip, .pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.amber, .pill.running, .pill.queued { color: var(--amber-deep); background: var(--amber-soft); border-color: var(--amber-line); }
.chip.ok, .pill.done { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.chip.wait, .pill.reading_ready, .pill.outline_ready { color: var(--wait); background: var(--wait-soft); border-color: #f3dfae; }
.chip.bad, .pill.failed, .pill.interrupted { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--amber-glow); } 50% { box-shadow: 0 0 0 6px transparent; } }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--amber-soft); border-top-color: var(--amber); animation: turn .9s linear infinite; flex: none; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.seal { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--seal); color: var(--seal); font: 700 12.5px/1.1 "STKaiti", "KaiTi", "Kaiti SC", serif; letter-spacing: 1px; transform: rotate(-14deg); opacity: .85; box-shadow: 0 0 0 3px rgba(200,67,31,.08) inset; text-align: center; }
.logo-tile { width: 44px; height: 44px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 6px 18px -6px rgba(80,50,20,.25); display: grid; place-items: center; overflow: hidden; flex: none; }
.logo-tile img { width: 78%; height: 78%; object-fit: contain; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand b { display: block; font-size: 17px; letter-spacing: 1px; }
.brand small { display: block; font-size: 11px; color: var(--mute); letter-spacing: 2px; }
p.warn { color: #8a4a12; background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.code { font-family: var(--mono); letter-spacing: .5px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 60; max-width: 80vw; box-shadow: var(--shadow-lg); }
input[type=text], input[type=search], input[type=number], input[type=date], input[type=tel], select {
  height: 40px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--panel); padding: 0 12px; font-size: 13.5px; color: var(--text); outline: none; min-width: 0; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--mute); }
label.field > span:first-child { color: var(--text); font-weight: 600; font-size: 13px; }
label.field > .hint { line-height: 1.6; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px 18px; }

/* ---------- app shell: sidebar + content ---------- */
.shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.side { width: 236px; flex: none; position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column; background: rgba(250,246,240,.72); border-right: 1px solid var(--line); backdrop-filter: blur(6px); z-index: 20; }
.side .brand { padding: 0 6px 26px; }
.side .grp { font: 600 10.5px var(--mono); color: var(--faint); letter-spacing: 1.5px; padding: 16px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 11px; color: var(--text-2); position: relative; transition: background .15s; }
.nav a:hover { background: var(--panel-3); }
.nav a.on { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(80,50,20,.08), 0 0 0 1px var(--line); }
.nav a.on svg { color: var(--amber-deep); }
.nav a.on::after { content: ""; position: absolute; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.side .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.quota { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.quota .qrow { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.quota .meter { height: 6px; border-radius: 4px; background: var(--panel-3); margin: 9px 0 6px; overflow: hidden; }
.quota .meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 6px; font-size: 13px; color: var(--text-2); min-width: 0; }
.who .av { width: 30px; height: 30px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-deep); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.who .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#main { width: 100%; max-width: 1680px; margin: 0 auto; padding: 34px 40px 60px; }
.mtop { display: none; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--mute); }
.page-head .sp { flex: 1; }
/* the project workbench uses the whole window; the sidebar shrinks to icons */
body.full .side { width: 70px; padding: 18px 12px; align-items: center; }
body.full .side .brand { padding: 0 0 22px; }
body.full .side .brand > div, body.full .nav a span, body.full .side .grp, body.full .quota, body.full .who .nm, body.full .who .link { display: none; }
body.full .nav a { width: 44px; justify-content: center; padding: 0; }
body.full .nav a.on::after { display: none; }
body.full .content { height: 100vh; }
body.full #main { max-width: none; padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* sign-in page has no sidebar */
body.auth .side, body.auth .mtop { display: none !important; }
body.auth #main { max-width: none; padding: 0; }

/* ---------- 登录页：产品展示铺满首屏，登录框点按钮后从按钮处弹出 ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--panel-3); border-radius: 12px; margin-bottom: 16px; }
.seg button { border: 0; background: transparent; height: 34px; border-radius: 9px; cursor: pointer; color: var(--mute); font-size: 13px; }
.seg button.on { background: var(--panel); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(80,50,20,.12); }
.seg button small { font-size: 10px; color: var(--amber-deep); margin-left: 4px; }
input.login-code { display: block; width: 100%; height: 54px; border-radius: 14px; border: 1.5px solid var(--amber-line); background: #fff; text-align: center; font: 500 17px var(--mono); letter-spacing: 3px; outline: none; transition: border-color .2s, box-shadow .2s; }
input.login-code:focus { border-color: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
input.login-code::placeholder { color: var(--faint); }
.phone-form { display: flex; flex-direction: column; gap: 10px; }
.phone-form input { display: block; width: 100%; height: 50px; border-radius: 14px; font-size: 15px; padding: 0 16px; }
.phone-form .prow { display: flex; gap: 8px; } .phone-form .prow input { flex: 1; min-width: 0; }
.phone-form .prow .btn { height: 50px; border-radius: 14px; flex: none; }
.phone-form .soon { font-size: 12px; color: var(--amber-deep); background: var(--amber-soft); border-radius: 10px; padding: 8px 10px; }

.lp { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(1100px 700px at 0% 0%, rgba(240,160,100,.26), transparent 60%), radial-gradient(900px 600px at 100% 100%, rgba(240,170,110,.18), transparent 60%), var(--bg); }
.lp::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(120,80,40,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(120,80,40,.05) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.lp > * { position: relative; }
.lp.away * { animation-play-state: paused; }   /* behind the open login box: see .lp-veil.open */
.lp-wrap { width: 100%; max-width: 1760px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px); }
.lp-nav { display: flex; align-items: center; gap: 14px; height: 76px; }
.lp-nav .brand { display: flex; align-items: center; gap: 12px; }
.lp-nav .brand b { font-size: 17px; letter-spacing: 2px; display: block; }
.lp-nav .brand small { font: 600 10px var(--mono); letter-spacing: 2px; color: var(--mute); }
.lp-nav .sp { flex: 1; }
.lp-nav .ghost { height: 40px; padding: 0 16px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); font-size: 13.5px; cursor: pointer; }
.lp-nav .ghost:hover { background: rgba(255,253,250,.7); }
.lp-nav .btn.primary { height: 42px; padding: 0 22px; border-radius: 12px; font-size: 14px; }
.lp-hero { flex: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding-top: 12px; padding-bottom: 28px; }
.lp-pitch .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,253,250,.8); border: 1px solid var(--amber-line); margin-bottom: 22px; }
.lp-pitch h1 { margin: 0 0 18px; font-size: clamp(34px, min(3.4vw, 6vh), 58px); line-height: 1.2; font-weight: 800; letter-spacing: 1px; }
.lp-pitch h1 em { font-style: normal; background: linear-gradient(120deg, var(--amber-2), var(--amber-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-pitch .lead { margin: 0 0 28px; font-size: 16px; color: var(--text-2); line-height: 1.85; max-width: 520px; }
/* 首页口号：两行错落，第二行右缩并压一道琥珀底纹；副标题三个关键词用圆点隔开 */
.lp-pitch h1.slogan { margin: 0 0 22px; font-size: clamp(44px, min(5vw, 8.5vh), 78px); line-height: 1.12; letter-spacing: 4px; }
.lp-pitch h1.slogan .l1, .lp-pitch h1.slogan .l2 { display: block; }
.lp-pitch h1.slogan .l2 { padding-left: 1.1em; }
.lp-pitch h1.slogan em { position: relative; z-index: 0; }
.lp-pitch h1.slogan em::after { content: ''; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .26em; background: var(--amber-2); opacity: .22; border-radius: .13em; z-index: -1; }
.lp-pitch .lead.sub { font-size: 17px; line-height: 1.9; }
.lp-pitch .lead.sub .kw { color: var(--text); font-weight: 700; }
.lp-pitch .lead.sub .dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--amber-deep); margin: 0 .7em; vertical-align: middle; }
.lp-pitch .lead.sub .l2 { display: block; opacity: .78; }
.lp-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta .btn { height: 52px; padding: 0 28px; font-size: 15px; border-radius: 14px; }
.lp-cta .btn.soft { background: rgba(255,253,250,.85); }
.lp-stage { display: grid; grid-template-columns: 230px minmax(0, 1fr); border-radius: 22px; background: rgba(255,253,250,.88); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(80,50,20,.05), 0 50px 100px -40px rgba(120,70,30,.4); overflow: hidden; transform: perspective(1800px) rotateY(-4deg) rotateX(1.5deg); transform-origin: left center; }
.lp-stage .bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: rgba(250,246,240,.9); }
.lp-stage .dots { display: flex; gap: 6px; } .lp-stage .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.lp-stage .phases { flex: 1; display: flex; justify-content: center; gap: 4px; }
.lp-stage .phases button { border: 0; background: transparent; font-size: 12px; padding: 3px 11px; white-space: nowrap; border-radius: 99px; color: var(--mute); cursor: pointer; transition: all .3s var(--ease); }
.lp-stage .phases button.done { color: var(--ok); } .lp-stage .phases button.done::before { content: "✓ "; }
.lp-stage .phases button.on { color: var(--amber-deep); background: var(--amber-soft); font-weight: 600; }
.lp-stage .live { font-size: 12px; color: var(--amber-deep); display: flex; align-items: center; gap: 6px; min-width: 128px; justify-content: flex-end; }
.lp-stage .live.fin { color: var(--ok); } .lp-stage .live.fin .pulse { background: var(--ok); animation: none; }
.lp-toc { padding: 16px 10px 20px; border-right: 1px solid var(--line); background: rgba(250,246,240,.6); font-size: 12.5px; }
.toc-flow { padding: 4px 6px; }
.toc-flow .proj { padding: 12px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; }
.toc-flow .proj span { display: block; font: 600 10.5px var(--mono); letter-spacing: 1px; color: var(--mute); margin-bottom: 2px; }
.toc-flow .proj b { font-size: 13px; line-height: 1.5; display: block; }
.toc-flow .fs { position: relative; display: flex; gap: 10px; padding: 8px 6px 12px; }
.toc-flow .fs:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: -4px; width: 2px; border-radius: 2px; background: var(--line-2); }
.toc-flow .fs.done:not(:last-child)::after { background: var(--ok-soft); }
.toc-flow .dot { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--panel-3); border: 2px solid var(--panel); color: var(--ok); box-sizing: border-box; }
.toc-flow .fs.done .dot { background: var(--ok-soft); }
.toc-flow .fs.now .dot { background: transparent; border: 2px solid var(--amber-line); border-top-color: var(--amber); animation: turn .9s linear infinite; }
.toc-flow .fs b { display: block; font-size: 13px; color: var(--faint); }
.toc-flow .fs span { font-size: 11.5px; color: var(--faint); }
.toc-flow .fs.done b { color: var(--text-2); } .toc-flow .fs.now b { color: var(--amber-deep); }
.toc-flow .fs.now span, .toc-flow .fs.done span { color: var(--mute); }
.lp-toc .t { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 8px; color: var(--text-2); opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s; }
.lp-toc .t.show { opacity: 1; transform: none; }
.lp-toc .t.c { font-weight: 700; color: var(--text); margin-top: 6px; }
.lp-toc .t.c em { margin-left: auto; font: 600 10.5px var(--mono); font-style: normal; color: var(--amber-deep); }
.lp-toc .t.s { padding-left: 22px; }
.lp-toc .t .ok { width: 14px; height: 14px; border-radius: 50%; background: var(--panel-3); color: var(--ok); font-size: 9px; display: grid; place-items: center; flex: none; transition: background .3s; }
.lp-toc .t.done .ok { background: var(--ok-soft); }
.lp-toc .t.now { background: var(--amber-soft); color: var(--amber-deep); font-weight: 600; }
.lp-toc .t.now .ok { background: transparent; border: 2px solid var(--amber-line); border-top-color: var(--amber); animation: turn .9s linear infinite; }
.lp-desk { position: relative; height: 470px; background: linear-gradient(180deg, #efe8df, #f3ede5); overflow: hidden; }
.lp-desk .sc { position: absolute; inset: 0; padding: 24px 28px 26px; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.lp-desk .sc.on { opacity: 1; transform: none; }
.fds-h { font: 600 11px var(--mono); letter-spacing: 1px; color: var(--mute); margin-bottom: 10px; }
/* 上传 */
.sc-up { display: flex; flex-direction: column; gap: 16px; }
.sc-up .drop { flex: none; height: 170px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1.5px dashed var(--amber-line); border-radius: 16px; background: rgba(253,241,229,.7); color: var(--amber-deep); text-align: center; }
.sc-up .drop .arrow { width: 46px; height: 46px; border-radius: 14px; background: var(--panel); display: grid; place-items: center; font-size: 20px; font-weight: 700; box-shadow: var(--shadow); animation: bob 1.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.sc-up .drop b { font-size: 15px; } .sc-up .drop span { font-size: 12.5px; color: var(--mute); }
.up-list { display: grid; gap: 10px; }
.up-file { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.up-file > div { flex: 1; min-width: 0; } .up-file b { font-size: 13px; font-weight: 600; }
.up-file .ext { font: 700 10px var(--mono); color: #fff; border-radius: 6px; padding: 6px 5px; flex: none; width: 34px; text-align: center; }
.up-file .ext.pdf { background: #c8431f; } .up-file .ext.doc { background: #2b5797; } .up-file .ext.xls { background: #217346; }
.up-file .meter { height: 5px; border-radius: 3px; background: var(--panel-3); margin-top: 7px; overflow: hidden; }
.up-file .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); }
.up-file.done .meter i { background: var(--ok); }
.up-file .size { font: 12px var(--mono); color: var(--mute); }
/* 读标 */
.sc-read { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.lp-scan { position: relative; background: #fff; border-radius: 4px; box-shadow: 0 16px 34px -18px rgba(80,50,20,.35); padding: 18px 22px; overflow: hidden; }
.lp-scan .lp-scan-head { font-size: 10.5px; color: var(--faint); border-bottom: 1px solid #eee5da; padding-bottom: 6px; margin-bottom: 14px; }
.lp-scan .sl { height: 6px; border-radius: 3px; background: #ece6de; margin-bottom: 12px; transition: background .4s; }
.lp-scan .sl.h { height: 9px; background: #ddd3c7; margin: 18px 0 14px; }
.lp-scan .sl.lit { background: linear-gradient(90deg, var(--amber-soft), #f9dcc2); }
.lp-scan .beam { position: absolute; left: 0; right: 0; height: 70px; top: -70px; background: linear-gradient(180deg, transparent, rgba(232,131,58,.14) 70%, rgba(232,131,58,.5)); border-bottom: 2px solid var(--amber); animation: beam-lp 2.2s var(--ease) infinite; }
@keyframes beam-lp { to { top: 100%; } }
.fds { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.fd { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; color: var(--mute); opacity: 0; transform: translateX(10px); transition: all .4s var(--ease); }
.fd b { color: var(--text); font-size: 13px; text-align: right; } .fd.show { opacity: 1; transform: none; border-color: var(--amber-line); }
/* 大纲 */
.sc-outline { display: flex; flex-direction: column; gap: 10px; }
.sc-outline .oh { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mute); margin-bottom: 4px; }
.sc-outline .oh b { color: var(--amber-deep); font-size: 15px; }
.oc { display: grid; grid-template-columns: 200px minmax(0, 1fr) 54px; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.oc.show { opacity: 1; transform: none; }
.oc b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc .track { height: 8px; border-radius: 5px; background: var(--panel-3); overflow: hidden; }
.oc .track i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); }
.oc em { font: 600 12px var(--mono); font-style: normal; color: var(--amber-deep); text-align: right; }
.otip { margin-top: auto; font-size: 12px; color: var(--mute); text-align: center; }
/* 正文 */
.lp-paper { background: #fff; border-radius: 4px; box-shadow: 0 16px 34px -18px rgba(80,50,20,.35); padding: 22px 30px 48px; height: 100%; }
.lp-paper .hd { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); border-bottom: 1px solid #eee5da; padding-bottom: 6px; margin-bottom: 14px; }
.lp-paper h4 { margin: 0 0 8px; font-size: 15px; }
.lp-paper p { margin: 0; font: 13px/2 var(--doc); color: #222; text-indent: 2em; text-align: justify; }
.lp-paper .tblock { opacity: 0; transform: translateY(6px); transition: all .4s var(--ease); } .lp-paper .tblock.show { opacity: 1; transform: none; }
.lp-paper .cap { text-indent: 0; text-align: center; font: 600 12px var(--sans); margin: 12px 0 6px; color: var(--text-2); }
.lp-paper table { width: 100%; border-collapse: collapse; font: 12px/1.7 var(--doc); }
.lp-paper th, .lp-paper td { border: 1px solid #d9cfc3; padding: 4px 8px; text-align: center; }
.lp-paper th { background: #f6f1ea; font-family: var(--sans); font-weight: 600; }
.lp-paper .tcaret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--amber-deep); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.lp-score { position: absolute; right: 22px; bottom: 20px; width: 270px; padding: 12px 14px; border-radius: 14px; background: rgba(255,253,250,.97); border: 1px solid var(--amber-line); box-shadow: var(--shadow-lg); font-size: 12px; opacity: 0; transform: translateY(8px) scale(.98); transition: all .4s var(--ease); }
.lp-score.show { opacity: 1; transform: none; }
.lp-score b { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; } .lp-score b em { font-style: normal; color: var(--amber-deep); font-family: var(--mono); }
.lp-score span { color: var(--text-2); line-height: 1.6; display: block; }
/* Word */
.sc-word { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.stack { position: relative; width: 220px; height: 290px; justify-self: center; }
.stack .sh { position: absolute; inset: 0; background: #fff; border-radius: 6px; box-shadow: 0 18px 36px -16px rgba(80,50,20,.35); }
.stack .s3 { transform: rotate(-7deg) translate(-12px, 6px); opacity: .55; } .stack .s2 { transform: rotate(-3.5deg) translate(-6px, 3px); opacity: .8; }
.stack .s1 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.stack .w { width: 58px; height: 58px; border-radius: 14px; background: #2b5797; color: #fff; display: grid; place-items: center; font: 800 28px var(--sans); margin-bottom: 8px; }
.stack .s1 b { font-size: 15px; } .stack .s1 > span { font-size: 12.5px; color: var(--mute); }
.stack .seal { position: absolute; right: -20px; bottom: -16px; width: 66px; height: 66px; font-size: 14px; background: rgba(255,253,250,.7); opacity: 0; transform: rotate(-14deg) scale(2.2); transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .2s; }
.stack .seal.stamp { opacity: .9; transform: rotate(-14deg) scale(1); }
.cks { display: flex; flex-direction: column; gap: 10px; }
.ck { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; opacity: 0; transform: translateX(10px); transition: all .4s var(--ease); }
.ck.show { opacity: 1; transform: none; }
.ck span { width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.cks .dl { margin-top: 6px; text-align: center; font-size: 13.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--amber-2), var(--amber-deep)); border-radius: 12px; padding: 11px; box-shadow: 0 10px 22px -10px var(--amber-glow); }
.lp-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 14px; padding-bottom: 28px; }
.lp-feat { padding: 18px 18px 16px; border-radius: 16px; background: rgba(255,253,250,.72); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.lp-feat .tag { display: block; font: 600 10.5px var(--mono); letter-spacing: 1.2px; color: var(--amber-deep); margin-bottom: 8px; }
.lp-feat b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.lp-feat span:not(.tag) { font-size: 12.5px; color: var(--text-2); line-height: 1.7; display: block; }
.lp-contact { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--amber-line); box-shadow: var(--shadow); }
.lp-qr { width: 124px; height: 124px; padding: 0; border-radius: 12px; flex: none; overflow: hidden; background: #fff; border: 1px solid var(--line); cursor: zoom-in; transition: transform .2s var(--ease), box-shadow .2s; }
.lp-qr:hover { transform: scale(1.04); box-shadow: var(--shadow); }
.lp-qr img, .lp-modal .foot .q img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.lp-contact b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.lp-contact span { display: block; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.lp-contact .wx { margin-top: 6px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 600 13.5px var(--mono); color: var(--amber-deep); }
.lp-contact .wx button { white-space: nowrap; border: 1px solid var(--amber-line); background: var(--amber-soft); color: var(--amber-deep); border-radius: 8px; font: 12px var(--sans); padding: 2px 8px; cursor: pointer; }
.lp-veil { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; overflow-y: auto; background: rgba(40,26,14,.28); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
/* the blur is fixed and nothing behind it moves while it is open (the demo pauses): a changing blur or a moving page
   behind it is re-blurred every frame, which is what dropped frames when the login box opened */
.lp-veil.open { opacity: 1; pointer-events: auto; backdrop-filter: blur(4px); }
.lp-modal { position: relative; width: min(440px, 100%); max-width: 100%; padding: 36px 36px 26px; border-radius: 26px; background: linear-gradient(180deg, #fffdfa, #faf6f0); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(80,50,20,.08), 0 40px 90px -30px rgba(80,45,15,.5); text-align: center; overflow: hidden; }
.lp-modal::before { content: ""; position: absolute; left: -40%; right: -40%; top: -60%; height: 110%; background: radial-gradient(closest-side, rgba(242,154,85,.22), transparent); pointer-events: none; }
.lp-modal > * { position: relative; }
.lp-modal .x { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--mute); font-size: 18px; cursor: pointer; }
.lp-modal .x:hover { background: var(--panel-3); }
.lp-modal .logo-tile { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 16px; box-shadow: 0 0 0 8px rgba(240,200,160,.18), 0 16px 34px -12px rgba(80,50,20,.3); }
.lp-modal h2 { margin: 0; font-size: 24px; letter-spacing: 2px; }
.lp-modal .sub { margin: 6px 0 22px; color: var(--mute); font-size: 13px; }
.lp-modal .btn.primary { width: 100%; margin-top: 14px; }
.lp-modal .foot { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; gap: 12px; text-align: left; font-size: 12px; color: var(--mute); }
.lp-modal .foot .q { width: 64px; height: 64px; padding: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; flex: none; cursor: zoom-in; }
.lp-modal .foot b { color: var(--amber-deep); font-family: var(--mono); }
.lp-contact-modal { width: min(400px, 100%); }
.lp-contact-modal .sub { margin-bottom: 18px; }
.big-qr { width: min(260px, 72vw); max-width: 100%; aspect-ratio: 1; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 34px -18px rgba(80,50,20,.35); }
.big-qr img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); display: block; }
.wx-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--mute); }
.wx-line b { font: 700 16px var(--mono); color: var(--amber-deep); letter-spacing: .5px; }
.copy-wx { border: 1px solid var(--amber-line); background: var(--amber-soft); color: var(--amber-deep); border-radius: 9px; font-size: 12px; padding: 4px 10px; cursor: pointer; }
.lp-contact-modal .back { margin-top: 16px; font-size: 13px; color: var(--amber-deep); font-weight: 600; }
.lp-veil.open .lp-modal .in { animation: rise .5s var(--ease) both; }
.lp-veil.open .lp-modal .in:nth-child(3) { animation-delay: .12s; } .lp-veil.open .lp-modal .in:nth-child(4) { animation-delay: .16s; }
.lp-veil.open .lp-modal .in:nth-child(5) { animation-delay: .2s; } .lp-veil.open .lp-modal .in:nth-child(6) { animation-delay: .24s; }
.lp-veil.open .lp-modal .in:nth-child(7) { animation-delay: .28s; } .lp-veil.open .lp-modal .in:nth-child(8) { animation-delay: .32s; }
@media (max-height: 940px) and (min-width: 1181px) { .lp-desk { height: 420px; } .sc-up .drop { height: 128px; } .sc-up .drop .arrow { width: 38px; height: 38px; } .up-file { padding: 9px 14px; } .toc-flow .fs { padding-bottom: 8px; } .lp-paper tr:nth-child(4) { display: none; } .fd { padding: 10px 14px; } .oc { padding: 10px 16px; } }
@media (max-width: 1180px) { .lp-hero { grid-template-columns: 1fr; } .lp-stage { transform: none; } .lp-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .lp-nav .ghost, .lp-nav .brand small { display: none; }
  .lp-pitch h1 { font-size: 30px; } .lp-cta .btn { flex: 1; }
  .lp-pitch h1.slogan { font-size: 52px; letter-spacing: 2px; } .lp-pitch h1.slogan .l2 { padding-left: .8em; }
  .lp-pitch .lead.sub { font-size: 15.5px; } .lp-pitch .lead.sub .dot { margin: 0 .45em; }
  .lp-stage { grid-template-columns: 1fr; } .lp-toc { display: none; } .lp-stage .live, .lp-stage .dots { display: none; }
  .lp-stage .phases { justify-content: space-between; gap: 0; } .lp-stage .phases button { padding: 3px 8px; }
  .lp-desk { height: 400px; } .lp-desk .sc { padding: 14px; } .sc-up .drop { height: 120px; } .lp-paper { padding: 18px 18px 44px; }
  .lp-paper .tblock { display: none; }
  .lp-score { left: 14px; right: 14px; width: auto; bottom: 14px; }
  .sc-read, .sc-word { grid-template-columns: 1fr; } .lp-scan { display: none; } .stack { display: none; }
  .oc { grid-template-columns: minmax(0, 1fr) 70px 48px; gap: 10px; }
  .lp-strip { grid-template-columns: 1fr; }
  .lp-modal { padding: 30px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) { .lp-veil, .lp { transition: none; } .lp-veil.open .lp-modal .in, .lp-toc .t.now .ok, .lp-paper .tcaret, .lp-scan .beam, .sc-up .drop .arrow { animation: none; } }

/* ---------- 我的标书 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px 20px; }
.stat .k { font: 600 10.5px var(--mono); letter-spacing: 1.2px; color: var(--mute); }
.stat .v { font-size: 30px; font-weight: 800; margin-top: 2px; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--mute); margin-left: 4px; }
.stat.hot .v { color: var(--amber-deep); }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filters .f { height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; }
.filters .f.on { background: var(--text); color: #fff; border-color: var(--text); }
.filters .search { margin-left: auto; width: 240px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pcard { padding: 20px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; overflow: hidden; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard .h b { display: block; font-size: 15px; line-height: 1.5; }
.pcard.sealed .h { padding-right: 52px; }
.pcard .files-line { font-size: 12px; color: var(--mute); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .bar { height: 6px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.pcard .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); position: relative; overflow: hidden; transition: width .6s; }
.pcard .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: sheen 1.8s infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pcard .f { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--mute); padding-top: 12px; border-top: 1px dashed var(--line-2); margin-top: auto; }
.pcard .f a, .pcard .f b { color: var(--amber-deep); font-weight: 700; white-space: nowrap; }
.pcard .seal { position: absolute; right: 18px; top: 14px; width: 50px; height: 50px; font-size: 12px; }
.pcard.new { border: 1.5px dashed var(--amber-line); background: rgba(255,253,250,.5); box-shadow: none; align-items: center; justify-content: center; text-align: center; min-height: 196px; color: var(--text-2); }
.pcard.new .plus { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--amber-2), var(--amber-deep)); box-shadow: 0 10px 22px -8px var(--amber-glow); }
.empty-list { text-align: center; padding: 30px 20px; color: var(--mute); }

/* ---------- 步骤条（新建、识别、设置、大纲） ---------- */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.steps .s { display: flex; align-items: center; gap: 9px; color: var(--mute); font-size: 13px; transition: color .4s; }
.steps .s i { font: 700 11px var(--mono); font-style: normal; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); transition: all .45s var(--ease); }
.steps .s.done { color: var(--text-2); } .steps .s.done i { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.steps .s.on { color: var(--text); font-weight: 600; }
.steps .s.on i { background: linear-gradient(135deg, var(--amber-2), var(--amber-deep)); color: #fff; border-color: transparent; box-shadow: 0 0 0 5px var(--amber-soft); }
.steps .ln { width: 54px; height: 2px; border-radius: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.steps .ln i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: var(--amber); transition: transform .6s var(--ease); }
.steps .ln.fill i { transform: scaleX(1); }
.view { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.view.out { opacity: 0; transform: translateY(-12px) scale(.985); pointer-events: none; }
.view.enter { animation: rise .5s var(--ease) both; }
.new-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.drop { padding: 48px 24px 40px; text-align: center; border-radius: 20px; cursor: pointer; border: 1.5px dashed var(--amber-line); background: radial-gradient(ellipse at 50% 0%, rgba(253,232,212,.8), transparent 65%), var(--panel); transition: border-color .2s, box-shadow .2s; }
.drop:hover, .drop.over { border-color: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft); }
.drop .up { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; color: var(--amber-deep); background: var(--panel); border: 1px solid var(--amber-line); box-shadow: 0 12px 26px -10px var(--amber-glow); }
.drop .up svg { width: 26px; height: 26px; }
.drop h3 { justify-content: center; margin: 0 0 6px; font-size: 18px; }
.drop .types { display: flex; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.files { margin-top: 16px; padding: 4px 0; border-radius: 16px; }
.file { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); position: relative; }
.file:last-child { border-bottom: 0; }
.file .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 800 9.5px var(--mono); flex: none; background: var(--panel-3); color: var(--text-2); }
.file .ic.doc { background: #e8f0ff; color: #3b6fd8; } .file .ic.pdf { background: #fdecea; color: #d4483a; } .file .ic.xls { background: #e6f5ec; color: #2a8a55; }
.file .nm { flex: 1; min-width: 0; }
.file .nm b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .nm span { font-size: 12px; color: var(--mute); }
.file select { height: 32px; border-radius: 9px; background: var(--panel-2); padding: 0 8px; }
.file .x { width: 28px; height: 28px; border: 0; background: transparent; color: var(--mute); cursor: pointer; border-radius: 8px; flex: none; }
.file .x:hover { background: var(--panel-3); color: var(--bad); }
.file .prog { position: absolute; left: 18px; right: 18px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--panel-3); overflow: hidden; opacity: 0; transition: opacity .2s; }
.file .prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); transition: width .3s var(--ease); }
.uploading .file .prog { opacity: 1; }
.file .ok { display: none; color: var(--ok); font-weight: 700; font-size: 12px; white-space: nowrap; }
.file.sent .ok { display: inline; } .file.sent select, .uploading .file .x { display: none; }
/* 上传完、服务器检查文件期间：按钮不变灰，只转一个小圈并显示已等秒数；文件行的满格进度条换成一段缓慢往复的细条 */
.btn.primary.busy:disabled { opacity: 1; cursor: progress; }
.btn .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: turn .9s linear infinite; flex: none; }
.btn .secs { font-weight: 500; opacity: .85; font-variant-numeric: tabular-nums; }
.checking .file .prog i { background: var(--panel-3); position: relative; }
.checking .file .prog i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 25%; border-radius: 3px; background: var(--amber); animation: flow 1.8s ease-in-out infinite alternate; }
@keyframes flow { from { left: 0; } to { left: 75%; } }
@media (prefers-reduced-motion: reduce) { .checking .file .prog i::after { animation: none; left: 0; width: 100%; opacity: .5; } }
.actions { display: flex; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.aside-card { padding: 20px 22px; margin-bottom: 16px; }
.check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check li { display: flex; gap: 10px; font-size: 13px; color: var(--text-2); }
.check .ck { width: 20px; height: 20px; border-radius: 7px; flex: none; display: grid; place-items: center; margin-top: 1px; font-size: 11px; font-weight: 800; background: var(--ok-soft); color: var(--ok); }
.check .ck.opt { background: var(--panel-3); color: var(--mute); }
.check b { color: var(--text); }
.tl { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--amber), var(--line-2) 35%); }
.tl li { position: relative; padding-bottom: 14px; font-size: 13px; }
.tl li::before { content: ""; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); }
.tl li:first-child::before { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.tl li span { display: block; color: var(--mute); font-size: 12px; }
/* reading and outline progress */
.reading { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
.scan { padding: 26px; display: flex; justify-content: center; }
.scan-doc { width: 230px; height: 300px; background: #fff; border-radius: 6px; box-shadow: 0 20px 40px -16px rgba(80,50,20,.3); position: relative; overflow: hidden; padding: 24px 22px; }
.scan-doc .ln { height: 6px; border-radius: 3px; background: #ece6de; margin-bottom: 11px; transition: background .5s; }
.scan-doc .ln.h { height: 10px; width: 62%; background: #ddd3c7; margin-bottom: 18px; }
.scan-doc .ln.lit { background: linear-gradient(90deg, var(--amber-soft), #f9dcc2); }
.scan-doc .beam { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(232,131,58,.16) 70%, rgba(232,131,58,.55)); border-bottom: 2px solid var(--amber); animation: beam 2.4s var(--ease) infinite; }
@keyframes beam { 0% { top: -60px; } 100% { top: 300px; } }
.scan-doc .corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--amber); }
.scan-doc .corner.a { left: 8px; top: 8px; border-right: 0; border-bottom: 0; } .scan-doc .corner.b { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.scan-doc .corner.c { left: 8px; bottom: 8px; border-right: 0; border-top: 0; } .scan-doc .corner.d { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.scan-doc.done .beam { display: none; }
.scan-doc .seal { position: absolute; right: 18px; bottom: 26px; transform: rotate(-14deg) scale(2.2); opacity: 0; transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .2s; }
.scan-doc.done .seal { transform: rotate(-14deg) scale(1); opacity: .9; }
.scan-doc.outline .ln { margin-left: calc(var(--d, 0) * 16px); }
.rd { padding: 24px 26px; }
.rd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.rd-head h2 { margin: 0; font-size: 20px; }
.tasks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tasks li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--faint); transition: all .35s var(--ease); flex-wrap: wrap; }
.tasks li .st { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--line-2); flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.tasks li.now { color: var(--text); background: var(--panel); border-color: var(--amber-line); box-shadow: 0 0 0 4px var(--amber-soft); }
.tasks li.now .st { border: 2.5px solid var(--amber-soft); border-top-color: var(--amber); animation: turn .9s linear infinite; }
.tasks li.done { color: var(--text-2); }
.tasks li.done .st { border: 0; background: var(--ok-soft); color: var(--ok); }
.tasks li.done .st::after { content: "✓"; }
.tasks li .res { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; animation: rise .4s var(--ease) both; }
.found { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--amber-line); background: var(--amber-soft); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; animation: rise .5s var(--ease) both; }
.found b { font-size: 15px; }
.found .sp { flex: 1; }
.files-note { margin-top: 18px; font-size: 12px; color: var(--mute); }

/* ---------- 识别结果与生成设置 ---------- */
.settings { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.fact { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); min-width: 0; }
.fact .muted { font-size: 11.5px; }
.fact b { font-weight: 600; overflow-wrap: anywhere; }
.summary { color: var(--text-2); font-size: 13px; line-height: 1.8; margin: 0 0 16px; }
ol.scoring { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: s; }
ol.scoring li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); counter-increment: s; }
ol.scoring li::before { content: counter(s, decimal-leading-zero); font: 700 11px var(--mono); color: var(--amber-deep); }
ol.scoring li .pts { margin-left: auto; font: 600 12px var(--mono); color: var(--amber-deep); white-space: nowrap; }
.set-group { padding: 20px 22px; margin-bottom: 16px; }
.lots .lot { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: var(--panel-2); }
.lots .lot:hover { border-color: var(--amber); }
.lots .lot b { white-space: nowrap; }
/* 投标文件组成（读标 D）card: volumes, documents with their mandatory level, what to prepare, ticks */
.pk-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.pk-side { position: sticky; top: 16px; }
.pk-page .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pk-page .fact.wide { grid-column: span 2; }
.pk-vol-note { margin: 0 0 8px; font-size: 12.5px; line-height: 1.7; }
.pk-proofs ol.pk-rules { padding-left: 1.6em; }
.pk-proofs li { margin-bottom: 2px; }
.pk-from { margin-left: 8px; font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.pk-head { display: flex; align-items: baseline; gap: 10px; }
.pk-head h3 { margin-right: auto; }
.pk-wait { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13px; padding: 6px 0; }
.pk-tool { margin-bottom: 12px; }
.pk-vol { margin-top: 14px; }
.pk-vol-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.pk-vol-head b { font-size: 13.5px; }
.pk-doc { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 6px; }
.pk-doc.done { opacity: .62; }
.pk-doc.done .pk-title { text-decoration: line-through; }
.pk-tick { display: flex; align-items: center; padding-top: 2px; cursor: pointer; }
.pk-body { min-width: 0; flex: 1; }
.pk-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.pk-no { font: 600 11px var(--mono); color: var(--amber-deep); white-space: nowrap; }
.pk-title { font-weight: 600; overflow-wrap: anywhere; }
.pk-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 99px; font-size: 11px; white-space: nowrap; border: 1px solid var(--line); color: var(--text-2); background: var(--panel); }
.pk-tag.star { color: var(--bad); background: var(--bad-soft); border-color: transparent; font-weight: 600; }
.pk-tag.must { color: var(--amber-deep); background: var(--amber-soft); border-color: var(--amber-line); }
.pk-tag.opt { color: var(--mute); }
.pk-tag.pk-kind { margin-left: auto; }
.pk-more { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; display: flex; flex-direction: column; gap: 2px; }
.pk-more b { color: var(--text); font-weight: 600; }
.pk-more ul { margin: 0; padding-left: 1.3em; }
.pk-tpl summary { cursor: pointer; color: var(--amber-deep); font-weight: 600; }
.pk-tpl pre { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px dashed var(--line); font: 12px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
.pk-rules { margin: 0; padding-left: 1.3em; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.pk-foot { margin: 14px 0 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
/* 完整投标文件：企业资料与材料勾选 */
.steps .s.go { cursor: pointer; }
.steps .s.go:hover span { color: var(--amber-deep); text-decoration: underline; }
.mt-back { gap: 12px; align-items: baseline; margin: -4px 0 12px; flex-wrap: wrap; }
.mt { display: flex; flex-direction: column; gap: 0; }
.mt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mt-grid > .card { margin-bottom: 0; }
.mt > .card, .mt > .mt-grid, .mt > .unreadable, .mt > .warn { margin-bottom: 16px; }
.mt-cos { display: flex; flex-direction: column; gap: 6px; }
.mt-co { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.mt-co.on { border-color: var(--amber-line); background: var(--amber-soft); }
.mt-co > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mt-co small { color: var(--mute); font-size: 11.5px; }
.mt-lead { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; font-size: 11.5px; padding: 2px 10px; cursor: pointer; color: var(--text-2); }
.mt-lead.on { background: var(--amber-deep); color: #fff; border-color: transparent; font-weight: 600; }
.mt-open { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; flex-wrap: wrap; }
.mt-assist { margin-top: 4px; font-size: 13px; }
.fact b.bad, .pk-rules li.bad, .hint.bad { color: var(--bad); }
.pk-rules.mute { color: var(--mute); margin-top: 8px; }
.mt-doc { border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; background: var(--panel); overflow: hidden; }
.mt-doc.short { border-color: var(--bad-soft); }
.mt-doc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.mt-doc-head:hover { background: var(--panel-2); }
.mt-fold { margin-left: auto; font-size: 12px; color: var(--amber-deep); }
.mt-doc-body { padding: 0 12px 12px; border-top: 1px dashed var(--line); }
.mt-crit { font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin: 10px 0 4px; overflow-wrap: anywhere; }
.mt-crit b { color: var(--text); }
.mt-need { margin-top: 12px; }
.mt-need > .pk-line b { font-size: 13px; }
.mt-count { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--panel-2); color: var(--text-2); white-space: nowrap; }
.mt-count.mt-ok { color: #2f7a4b; background: #e7f4ec; }
.mt-count.mt-short { color: var(--bad); background: var(--bad-soft); }
.mt-count.mt-unsure { color: var(--amber-deep); background: var(--amber-soft); }
.pk-tag.mt-ok { color: #2f7a4b; background: #e7f4ec; border-color: transparent; }
.pk-tag.mt-short { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.pk-tag.mt-unsure { color: var(--amber-deep); background: var(--amber-soft); border-color: var(--amber-line); }
.mt-rules { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--mute); margin: 4px 0 6px; line-height: 1.6; }
.mt-cand { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); margin-top: 6px; }
.mt-cand.on { border-color: var(--amber-line); }
.mt-cand .sp { flex: 1; }
.mt-why { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; font-size: 12px; line-height: 1.65; }
.mt-hit { color: #2f7a4b; }
.mt-miss { color: var(--bad); }
.mt-doubt { color: var(--amber-deep); }
.mt-asks { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; font-size: 12.5px; align-items: flex-start; }
.mt-ask { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mt-ask small { color: var(--mute); }
.mt-none { font-size: 12.5px; color: var(--mute); padding: 6px 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mt-table { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.mt-tr { display: grid; gap: 8px; align-items: center; font-size: 12.5px; padding: 6px 4px; border-bottom: 1px solid var(--line); min-width: 640px; }
.mt-tr.dev { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.2fr) 104px minmax(0, 1.2fr) minmax(0, 1.4fr); }
.mt-tr.score { grid-template-columns: minmax(0, 2fr) 56px minmax(0, 2.4fr) 80px; }
.mt-tr.head { font-weight: 600; color: var(--mute); font-size: 12px; border-bottom: 1px solid var(--line-2); }
.mt-tr > span { min-width: 0; overflow-wrap: anywhere; }
.mt-tr > span small { display: block; color: var(--mute); font-size: 11px; }
.mt-tr input { width: 100%; min-width: 0; }
/* 报价表（四期）: the tender's own price tables, the bidder's inputs and the program's sums */
.pr-form { padding: 10px 0; border-top: 1px solid var(--line); }
.pr-form:first-of-type { border-top: 0; }
.pr-scroll { overflow-x: auto; margin: 8px 0 4px; }
.pr-table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.pr-table th, .pr-table td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: middle; white-space: nowrap; }
.pr-table th { background: var(--panel-2); color: var(--mute); font-weight: 600; white-space: normal; min-width: 64px; }
.pr-table td.in { padding: 2px; }
.pr-table td.in input { width: 96px; min-width: 64px; padding: 3px 5px; font-size: 12.5px; }
.pr-table td.auto, .pr-table input.auto::placeholder { color: var(--mute); }
.pr-table tr.pr-group td, .pr-table tr.pr-total td { font-weight: 600; }
.pr-table tr.pr-total td { border-top: 2px solid var(--line-2); }
.pr-sum { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.pr-sum .fact.wide b { overflow-wrap: anywhere; }
.pr-files { display: flex; flex-direction: column; gap: 6px; }
.pr-file { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pr-file b { flex: 1; min-width: 0; }
.co-item.jump { border-color: var(--amber-deep); box-shadow: 0 0 0 3px var(--amber-soft); }
@media (max-width: 860px) { .mt-grid { grid-template-columns: minmax(0, 1fr); } }
/* a rounded bar floating 20px above the window edge, as wide as the cards above it; at the end of the page it
   rests in place with the same 20px below it (the page's bottom padding shrinks to match), so no blank band is left */
.action-bar { position: sticky; bottom: 20px; z-index: 5; margin-top: 18px; padding: 12px 14px 12px 22px; border-radius: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* the card is drawn by ::after over a page-coloured ::before that fills the gap down to the window edge,
   so content scrolling past does not show through below the bar (both sit behind the bar's own content) */
.action-bar::before, .action-bar::after { content: ""; position: absolute; z-index: -1; box-sizing: border-box; pointer-events: none; }
.action-bar::before { left: -12px; right: -12px; top: 50%; bottom: -20px; background: var(--bg); }
.action-bar::after { inset: 0; border-radius: inherit; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(80,50,20,.06), 0 14px 34px -14px rgba(80,50,20,.32); }
#main:has(.action-bar), .project > .page:has(.action-bar) { padding-bottom: 20px; }
/* .page is itself the scroller, and sticky offsets count from inside its padding: its 20px already makes the gap */
.project > .page > .action-bar { bottom: 0; }
.action-bar .sp { flex: 1; }

/* ---------- 大纲编辑 ---------- */
.cap { padding: 18px 22px; margin-bottom: 16px; }
.cap-bar { position: relative; height: 10px; border-radius: 6px; background: var(--panel-3); margin: 16px 0 10px; }
.cap-bar .range { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--ok-soft); border: 1px solid #bfe3cf; }
.cap-bar .mark { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 2px; transform: translateX(-50%); transition: left .3s; }
.cap-bar .mark.target { background: var(--amber-deep); box-shadow: 0 0 0 3px var(--amber-soft); }
.cap-bar .mark.total { background: var(--text); }
.cap-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.cap-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chapter { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.chapter > .head { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chapter > .head .num { font: 700 12px var(--mono); color: #fff; background: var(--text); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.chapter > .head input.title { flex: 1; font-weight: 700; min-width: 180px; }
.chapter > .head input.pages { width: 76px; text-align: right; font-family: var(--mono); }
.chapter > .head .hint { flex-basis: 100%; color: #8a4a12; }
.chapter > .head .hint:empty { display: none; }
.chapter > .body { padding: 8px 14px 12px; }
.node { display: flex; gap: 6px; align-items: center; padding: 3px 0; }
.node .num { color: var(--faint); font: 500 12px var(--mono); min-width: 4.8em; }
.node input { flex: 1; height: 32px; border-radius: 9px; padding: 0 10px; }
.node .ops { display: flex; gap: 2px; opacity: .35; }
.node:hover .ops, .chapter > .head:hover .ops { opacity: 1; }
.ops button { border: 0; background: none; cursor: pointer; padding: 2px 7px; border-radius: 7px; color: var(--mute); }
.ops button:hover { background: var(--panel-3); color: var(--text); }
.ops button.del:hover { color: var(--bad); }

/* ---------- 项目头部 ---------- */
.phead-bar { flex: none; display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: rgba(255,253,250,.65); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); position: relative; flex-wrap: wrap; z-index: 3; }
.phead-bar .crumb { font: 600 11px var(--mono); letter-spacing: 1.5px; color: var(--amber-deep); }
.phead-bar .crumb:hover { color: var(--text); }
.ptitle { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchips { display: flex; gap: 6px; flex-wrap: wrap; }
.pchip { font-size: 12px; color: var(--text-2); background: var(--panel-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; white-space: nowrap; }
.pstate { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.liveDot { color: var(--amber-deep); font-weight: 700; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.generation-time { position: relative; font-size: 12px; color: var(--mute); }
.generation-time > summary { cursor: pointer; padding: 4px 0; white-space: nowrap; }
.generation-time > summary:hover { color: var(--text); }
.generation-time-popover { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; max-width: calc(100vw - 40px); padding: 14px 16px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 6; line-height: 1.7; }
.generation-time-popover p { margin: 0; }
.generation-time-popover .hint { margin-top: 8px; }
.pbar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); transition: width .6s; }
.project { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.project > .page { --px: 36px; flex: 1; min-height: 0; overflow-y: auto; padding: 28px var(--px) 60px; }
.project > .page > * { max-width: 1680px; margin-left: auto; margin-right: auto; }
.project > .work { flex: 1; min-height: 0; }

/* ---------- 工作台：目录 | 纸面 | 依据 ---------- */
.work { display: grid; grid-template-columns: 290px minmax(0, 1fr) 330px; }
.tree { padding: 16px 12px 40px; overflow-y: auto; border-right: 1px solid var(--line); background: rgba(250,246,240,.6); min-height: 0; }
input.search { width: 100%; height: 36px; border-radius: 99px; background: var(--panel); padding: 0 14px; margin-bottom: 10px; }
.tsum { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mute); padding: 0 6px 8px; }
.ch { margin-top: 4px; }
.chrow { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 10px; font-weight: 700; cursor: pointer; user-select: none; }
.chrow:hover { background: var(--panel-3); }
.chrow .no { width: 22px; height: 22px; border-radius: 7px; background: var(--text); color: #fff; font: 700 11px var(--mono); display: grid; place-items: center; flex: none; }
.chrow.open .no { background: linear-gradient(135deg, var(--amber-2), var(--amber-deep)); }
.chrow .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrow .pts { font: 600 11px var(--mono); color: var(--amber-deep); background: var(--amber-soft); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.caret { width: 14px; height: 14px; flex: none; position: relative; }
.caret::before { content: ""; position: absolute; left: 4px; top: 3px; width: 5px; height: 5px; border: solid var(--faint); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s; }
.open > .caret::before { transform: rotate(45deg); top: 2px; }
.chrow .caret { order: 9; }
.chbar { height: 2px; margin: 0 8px 6px 39px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.chbar i { display: block; height: 100%; background: var(--ok); transition: width .6s; }
.nd { display: flex; gap: 8px; padding: 5px 8px; border-radius: 9px; color: var(--text-2); cursor: pointer; font-size: 13px; line-height: 1.45; align-items: flex-start; }
.nd:hover { background: var(--panel-3); }
.nd.grp { color: var(--text); font-weight: 600; user-select: none; }
.nd .num { color: var(--faint); flex: none; font-variant-numeric: tabular-nums; }
.nd .nt { flex: 1; min-width: 0; }
.nd .cnt { font: 500 11px var(--mono); color: var(--faint); flex: none; margin-top: 1px; }
.nd.on { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--amber-line), 0 4px 12px -6px var(--amber-glow); }
.sst { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 2px; }
.sst.done { background: var(--ok-soft); border: 1.5px solid var(--ok); position: relative; }
.sst.done::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px; border: solid var(--ok); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sst.todo { border: 1.5px dashed var(--line-2); }
.canvas { overflow-y: auto; background: radial-gradient(ellipse at 50% -20%, rgba(250,220,190,.5), transparent 55%), var(--bg-2); position: relative; min-height: 0; }
.bar2 { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 26px; background: rgba(239,232,223,.86); backdrop-filter: blur(8px); }
.bar2 .where { flex: 1; min-width: 0; color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow { font-size: 12px; color: var(--amber-deep); background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: 99px; padding: 2px 10px; cursor: pointer; white-space: nowrap; }
.follow.off { color: var(--mute); background: var(--panel); border-color: var(--line-2); }
.ib { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); cursor: pointer; flex: none; }
.ib.narrow { display: none; width: auto; padding: 0 10px; }
.paper { width: min(794px, calc(100% - 52px)); margin: 4px auto 50px; background: #fff; border-radius: 4px; padding: 56px 76px 64px; min-height: 900px; box-shadow: 0 2px 6px rgba(80,50,20,.06), 0 30px 60px -30px rgba(80,50,20,.3); }
.paperhead { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #a49a8f; border-bottom: 1px solid #ece6de; padding-bottom: 8px; margin-bottom: 30px; }
.paper h1 { font: 700 20px/1.5 var(--sans); margin: 0 0 18px; letter-spacing: .5px; }
.paper h4 { font: 700 15.5px/1.8 var(--sans); margin: 18px 0 6px; }
.paper h4.tbl-title { text-align: center; font-size: 14px; margin: 14px 0 6px; }   /* a bold line right above a table: the table's title, centred like the Word file */
.paper p { font: 15.5px/2 var(--doc); margin: 0 0 4px; text-indent: 2em; text-align: justify; color: #222; }
.paper ol, .paper ul { font: 15.5px/2 var(--doc); margin: 4px 0 8px; padding-left: 2.6em; color: #222; }
.paper table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font: 13.5px/1.7 var(--doc); }
.paper td, .paper th { border: 1px solid #3a3f4a; padding: 5px 8px; vertical-align: top; }
.paper th { font-family: var(--sans); font-weight: 600; background: #f7f4ef; }
.fig { margin: 18px 0; text-align: center; font: 13px var(--sans); color: #555; }
.fig img { max-width: 100%; display: block; margin: 0 auto 6px; }
.typing::after { content: "▍"; color: var(--amber); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.empty { color: var(--faint); font-size: 14px; text-align: center; padding: 120px 0; }
.side-pane { border-left: 1px solid var(--line); overflow-y: auto; background: rgba(255,253,250,.75); min-height: 0; }
.tabs { position: sticky; top: 0; z-index: 1; display: flex; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.tabs button { border: 0; background: none; padding: 14px 0 12px; color: var(--mute); border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button.on { color: var(--text); font-weight: 700; border-bottom-color: var(--amber); }
.pane { padding: 18px 20px 40px; }
.lbl { font: 600 10.5px var(--mono); letter-spacing: 1.2px; color: var(--mute); margin: 22px 0 10px; }
.lbl:first-child { margin-top: 0; }
.score { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.score .h { display: flex; gap: 8px; font-weight: 700; }
.score .h span { margin-left: auto; color: var(--amber-deep); font-family: var(--mono); white-space: nowrap; }
.score blockquote { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--text-2); font-size: 12.5px; border-left: 2px solid var(--amber-line); }
.conds { list-style: none; margin: 0; padding: 0; }
.conds li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); color: var(--text-2); }
.conds li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: none; }
.note { color: var(--text-2); background: var(--panel-2); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.ptl { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.ptl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line-2); }
.ptl li { position: relative; padding: 0 0 16px; }
.ptl li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line-2); }
.ptl li.done::before { border-color: var(--ok); background: var(--ok); }
.ptl li.now::before { border-color: var(--amber); animation: pulse 1.4s infinite; }
.ptl .d { color: var(--mute); font-size: 12px; }
.log { font-size: 12px; color: var(--text-2); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.log div { padding: 4px 0; display: flex; gap: 8px; cursor: pointer; }
.log div:hover { color: var(--text); }
.log span { color: var(--faint); flex: none; width: 3.6em; }

/* ---------- 兑换码管理 ---------- */
.codes-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.gen { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.gen .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.gen input, .gen select { width: 100%; }
.made { padding: 12px; border-radius: 12px; background: var(--amber-soft); border: 1px dashed var(--amber-line); display: flex; flex-direction: column; gap: 6px; }
.code-cell { font: 500 12.5px var(--mono); letter-spacing: .5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.made .code-cell { font-size: 15px; color: var(--amber-deep); font-weight: 700; }
.copy { border: 0; background: transparent; color: var(--mute); cursor: pointer; padding: 2px 5px; border-radius: 6px; }
.copy:hover { background: var(--panel-3); color: var(--text); }
.table-card { overflow: hidden; }
.table-card .th { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-card .th .sp { flex: 1; }
.table-card input.search { width: 220px; margin: 0; }
.tw { overflow-x: auto; }
table.codes { width: 100%; border-collapse: collapse; font-size: 13px; }
table.codes th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: 1px; color: var(--mute); padding: 12px 14px; background: var(--panel-2); white-space: nowrap; }
table.codes td { padding: 13px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
table.codes tr:hover td { background: var(--panel-2); }

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .new-grid, .reading, .settings, .codes-grid, .pk-page { grid-template-columns: 1fr; }
  .pk-side { position: static; }
  .work { grid-template-columns: 260px minmax(0, 1fr); }
  .side-pane { display: none; }
  .side-pane.open { display: block; position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 40; box-shadow: -8px 0 24px rgba(80,50,20,.18); }
  .ib.narrow.basis { display: inline-block; }
}
@media (max-width: 820px) {
  .side { display: none; }
  .side.open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: 260px; box-shadow: 8px 0 24px rgba(80,50,20,.18); background: var(--bg); z-index: 50; }
  body.full .side.open { width: 260px; align-items: stretch; padding: 20px 14px; }
  body.full .side.open .brand > div, body.full .side.open .nav a span, body.full .side.open .grp, body.full .side.open .who .nm { display: block; }
  body.full .side.open .quota { display: block; } body.full .side.open .who .link { display: inline; }
  body.full .side.open .nav a { width: auto; justify-content: flex-start; padding: 0 12px; }
  .mtop { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,253,250,.9); position: sticky; top: 0; z-index: 15; }
  .mtop .logo-tile { width: 34px; height: 34px; border-radius: 10px; }
  .mtop b { flex: 1; letter-spacing: 1px; }
  body.full .content { height: 100dvh; }
  #main { padding: 20px 16px 60px; } h1 { font-size: 24px; }
  .stats { gap: 10px; } .stat .v { font-size: 24px; } .filters .search { margin-left: 0; width: 100%; }
  .steps .ln { width: 14px; } .steps .s span { display: none; } .steps .s.on span { display: inline; }
  .file select { display: none; }
  .facts { grid-template-columns: 1fr; }
  .pk-page .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-template-columns: minmax(0, 1fr); }
  .tree { display: none; }
  .tree.open { display: block; position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 88vw); z-index: 40; box-shadow: 8px 0 24px rgba(80,50,20,.18); background: var(--bg); }
  .ib.narrow.dir { display: inline-block; }
  .bar2 { padding: 8px 12px; }
  .paper { width: calc(100% - 24px); padding: 28px 18px 36px; min-height: 0; }
  .paperhead { margin-bottom: 18px; }
  .phead-bar { padding: 10px 14px; } .pstate { margin-left: 0; width: 100%; } .pstate .btn { height: 30px; padding: 0 10px; font-size: 12px; }
  .ptitle { white-space: normal; }
  .project > .page { --px: 14px; padding: 18px var(--px) 60px; }
  .chapter > .head input.title { flex-basis: 100%; order: 5; }
  .node .ops { opacity: 1; }
}

/* ---------- 滚动条：暖色细条 ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150,105,60,.26); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(207,100,32,.55); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(150,105,60,.35) transparent; } }

/* ---------- 下拉框与日历 ---------- */
select.native-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; padding: 0 !important; border: 0 !important; }
.fsel-btn { height: 40px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--panel); padding: 0 12px 0 14px; font-size: 13.5px; color: var(--text); display: flex; align-items: center; gap: 10px; cursor: pointer; width: 100%; min-width: 0; text-align: left; transition: border-color .2s, box-shadow .2s; }
.fsel-btn:hover { border-color: var(--faint); }
.fsel-btn:focus-visible, .fsel-btn.open { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.fsel-btn:disabled { opacity: .55; cursor: not-allowed; }
.fsel-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsel-caret { width: 8px; height: 8px; border: solid var(--mute); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex: none; }
.fsel-btn.open .fsel-caret { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--amber-deep); }
.file .fsel-btn { width: auto; height: 32px; border-radius: 9px; background: var(--panel-2); font-size: 12.5px; }
.pop { position: fixed; z-index: 90; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: popin .14s var(--ease); }
@keyframes popin { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.fsel-menu { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.fsel-opt { border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-size: 13.5px; color: var(--text-2); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.fsel-opt:hover, .fsel-opt:focus-visible { background: var(--panel-3); color: var(--text); outline: none; }
.fsel-opt.on { background: var(--amber-soft); color: var(--amber-deep); font-weight: 600; }
.fsel-opt.on::after { content: "✓"; margin-left: auto; padding-left: 16px; }
input.fdate { cursor: pointer; caret-color: transparent; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b0825a' stroke-width='1.8' stroke-linecap='round'><rect x='3.5' y='5' width='17' height='15' rx='3'/><path d='M3.5 10h17M8 3v4M16 3v4'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
input.fdate.open { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.cal { padding: 14px; width: 296px; }
.cal-head { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.cal-head b { flex: 1; text-align: center; font-size: 14px; letter-spacing: .5px; }
.cal-nav { width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; color: var(--mute); cursor: pointer; font-size: 15px; }
.cal-nav:hover { background: var(--panel-3); color: var(--text); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-w { text-align: center; font: 600 11px var(--mono); color: var(--faint); padding: 4px 0 6px; }
.cal-d { height: 34px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; }
.cal-d:hover { background: var(--panel-3); }
.cal-d.out { color: var(--faint); }
.cal-d.today { box-shadow: inset 0 0 0 1.5px var(--amber-line); color: var(--amber-deep); font-weight: 700; }
.cal-d.on { background: linear-gradient(135deg, var(--amber-2), var(--amber-deep)); color: #fff; font-weight: 700; box-shadow: 0 6px 14px -6px var(--amber-glow); }
.cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.cal-foot .link { font-size: 12.5px; padding: 4px 6px; }
.cal-foot .link.amber { color: var(--amber-deep); font-weight: 600; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { opacity: .35; }

/* ---------- 暗标规则（生成设置）与暗标自检（下载区） ---------- */
.blind .b-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.blind .b-head h3 { margin: 0; flex: 1; display: flex; align-items: baseline; gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s var(--ease); flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(80,50,20,.25); transition: transform .2s var(--ease); }
.switch input:checked + i { background: linear-gradient(135deg, var(--amber-2), var(--amber-deep)); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 4px var(--amber-soft); }
.b-body { transition: opacity .2s; } .b-body.off { opacity: .45; }
.b-rules { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 4px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.b-rules dt, .b-rules dd { margin: 0; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.b-rules dt:first-of-type, .b-rules dt:first-of-type + dd { border-top: 0; }
.b-rules dt { color: var(--mute); background: var(--panel-2); white-space: nowrap; }
.b-rules dd { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.b-rules dd.none { color: var(--faint); font-weight: 400; }
.b-quote { margin-top: 12px; font-size: 12.5px; }
.b-quote b { font-size: 12.5px; }
.b-quote ul { margin: 6px 0 0; padding-left: 1.3em; color: var(--text-2); line-height: 1.75; }
.b-off { margin: 10px 0 0; color: #8a4a12; }
label.field > .hint.over { color: var(--bad); }
.b-chip { cursor: pointer; font: inherit; font-size: 12px; }
.b-chip .fsel-caret { width: 6px; height: 6px; margin-left: 2px; }
.b-pop { width: 380px; max-width: calc(100vw - 16px); padding: 14px 16px 12px; }
.b-pop-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.b-pop ul { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.b-pop li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.b-pop li:first-child { border-top: 0; }
.b-pop li b { display: block; font-weight: 600; }
.b-pop li span:not(.mk) { color: var(--text-2); overflow-wrap: anywhere; }
.b-pop .mk { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; margin-top: 1px; }
.b-pop li.ok .mk { background: var(--ok-soft); color: var(--ok); }
.b-pop li.bad .mk { background: var(--wait-soft); color: var(--wait); }
.b-pop > .hint { margin: 8px 0 0; line-height: 1.6; }

/* ---------- 施工组织规划 ---------- */
.nav-badge { margin-left: auto; font: 600 10.5px var(--mono); font-style: normal; color: var(--amber-deep); background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: 99px; padding: 1px 7px; }
.nav-badge.zero { color: var(--mute); background: var(--panel-3); border-color: var(--line); font-family: var(--sans); }
.nav a:has(.nav-badge:not([hidden])).on::after { display: none; }
body.full .nav-badge { display: none; }
.buy-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 20px; max-width: 620px; border: 1px solid var(--amber-line); }
.buy-card .q { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; flex: none; border: 1px solid var(--line); background: #fff; }
.buy-card .q img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.buy-card b { display: block; font-size: 15px; margin-bottom: 4px; }
.buy-card span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; }
.opt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.opt-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--panel-2); cursor: pointer; transition: all .2s var(--ease); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card .tick { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; color: transparent; background: var(--panel); }
.opt-card b { font-size: 14px; padding-right: 24px; } .opt-card span { font-size: 12px; color: var(--mute); line-height: 1.6; }
.opt-card em { font-style: normal; font-size: 11px; color: var(--amber-deep); margin-top: 2px; }
.opt-card.on { border-color: var(--amber); background: var(--amber-soft); box-shadow: 0 0 0 4px rgba(232,131,58,.08); }
.opt-card.on .tick { background: var(--amber); border-color: var(--amber); color: #fff; }
.period-seg { max-width: 460px; grid-template-columns: repeat(3, 1fr); }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.weekdays button { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 13px; color: var(--text-2); }
.weekdays button.on { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-deep); font-weight: 600; }
.weekdays button:disabled { opacity: .45; cursor: not-allowed; }
.holidays { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.holidays .hrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.holidays .hrow input { width: 150px; }
.holidays .hrow input[type=number] { width: 90px; }
.holidays .x, .ptable .x, .phase .x { width: 26px; height: 26px; border: 0; background: transparent; color: var(--mute); cursor: pointer; border-radius: 8px; }
.holidays .x:hover, .ptable .x:hover, .phase .x:hover { background: var(--panel-3); color: var(--bad); }
.plan-dl { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.2fr); gap: 12px; margin-bottom: 14px; }
.plan-metrics .stat.bad .v { color: var(--bad); }
.plan-metrics .stat.crit .cp { margin-top: 6px; font: 600 13px/1.6 var(--mono); color: var(--amber-deep); overflow-wrap: anywhere; }
.plan-errors, .plan-issues { border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; font-size: 13px; }
.plan-errors { background: var(--bad-soft); border: 1px solid #f3c7b9; color: #8f2f12; }
.plan-issues { background: var(--wait-soft); border: 1px solid #f3dfae; color: #7a5212; }
.plan-errors ul, .plan-issues ul { margin: 6px 0 0; padding-left: 1.3em; line-height: 1.75; }
.plan-edit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.plan-left { min-width: 0; padding: 16px 18px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan-right { min-width: 0; position: sticky; top: 16px; }
.ptabs { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.ptabs button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 10px; cursor: pointer; color: var(--mute); font-size: 13.5px; }
.ptabs button.on { background: var(--amber-soft); color: var(--amber-deep); font-weight: 600; }
.ptabs .stale { margin-left: auto; }
.phase-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; }
.phase { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); padding-left: 2px; }
.phase input { border: 0; background: transparent; height: 30px; padding: 0 6px; font-size: 12.5px; min-width: 60px; }
.ptable-wrap { overflow-x: auto; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.ptable th { text-align: left; font: 600 10.5px var(--mono); letter-spacing: .5px; color: var(--mute); padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--panel); }
.ptable td { padding: 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ptable input, .ptable select { width: 100%; min-width: 64px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; padding: 0 8px; font-size: 12.5px; }
.ptable input:hover { border-color: var(--line-2); background: var(--panel-2); }
.ptable input:focus { border-color: var(--amber); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--amber-soft); }
.ptable .fsel-btn { height: 32px; border-color: transparent; background: transparent; font-size: 12.5px; padding: 0 8px; min-width: 100px; }
.ptable .fsel-btn:hover { border-color: var(--line-2); background: var(--panel-2); }
.ptable .c-id input { min-width: 54px; width: 60px; font-family: var(--mono); }
.ptable .c-name { min-width: 150px; } .ptable .c-phase { min-width: 110px; }
.ptable .c-num input { width: 72px; min-width: 60px; }
.ptable .c-pre input { min-width: 110px; font-family: var(--mono); }
.ptable .c-qty input { min-width: 110px; }
.opt-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.opt-card .tick.radio { border-radius: 50%; }
.ptable .c-calc { color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; padding: 0 8px; }
.ptable tr.critical .c-id input { color: var(--amber-deep); font-weight: 700; }
.ptable tr.bad td { background: var(--bad-soft); }
.ptable .ops { width: 30px; }
.crit-tag { font-size: 11px; font-weight: 700; color: var(--amber-deep); background: var(--amber-soft); border-radius: 6px; padding: 1px 6px; }
.add-row { margin-top: 10px; }
.res-block { margin-bottom: 20px; }
.res-block h4 { margin: 0 0 6px; font-size: 13.5px; }
.res-block textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); padding: 10px 12px; font: 13px/1.7 var(--sans); resize: vertical; background: var(--panel-2); }
.plan-preview { padding: 14px 16px 16px; }
.pimg { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }
.pimg img { display: block; width: 100%; height: auto; max-height: calc(100vh - 220px); object-fit: contain; }
.gantt { font-size: 11.5px; max-height: calc(100vh - 220px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.g-row { display: grid; grid-template-columns: 150px minmax(240px, 1fr); border-bottom: 1px solid #f1ebe3; min-height: 24px; }
.g-label { padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); border-right: 1px solid #f1ebe3; }
.g-label .num { font-family: var(--mono); color: var(--mute); margin-right: 6px; }
.g-track { position: relative; background-image: linear-gradient(90deg, #f6f1ea 1px, transparent 1px); background-size: 10% 100%; }
.g-bar { position: absolute; top: 6px; height: 12px; border-radius: 4px; background: #f1c9a5; }
.g-row.critical .g-bar { background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); }
.g-row.critical .g-label { color: var(--amber-deep); font-weight: 600; }
.g-float { position: absolute; top: 11px; height: 2px; background: repeating-linear-gradient(90deg, var(--mute) 0 3px, transparent 3px 6px); }
.g-phase { background: var(--panel-2); }
.g-phase .g-label { font-weight: 700; color: var(--text); }
.g-span { position: absolute; top: 9px; height: 6px; border-radius: 3px; background: var(--line-2); }
.g-head { position: sticky; top: 0; z-index: 2; background: var(--panel); min-height: 28px; }
.g-head .g-label { font-weight: 600; color: var(--mute); }
.g-scale span { position: absolute; top: 6px; transform: translateX(-50%); font: 10px var(--mono); color: var(--mute); white-space: nowrap; }
.g-scale span:first-child { transform: none; }
.g-scale span:last-child:not(:first-child) { transform: translateX(-100%); }
.g-limit { position: absolute; top: 0; height: 28px; width: 0; border-left: 1.5px dashed var(--bad); }
.g-limit::after { content: "合同"; position: absolute; top: 14px; left: 3px; font-size: 9.5px; color: var(--bad); }
.g-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 8px 10px; font-size: 11.5px; color: var(--mute); position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); }
.g-legend span { display: inline-flex; align-items: center; gap: 6px; }
.g-legend i { width: 18px; height: 8px; border-radius: 3px; background: #f1c9a5; display: inline-block; }
.g-legend i.crit { background: var(--amber-deep); } .g-legend i.flt { height: 2px; background: var(--mute); } .g-legend i.lim { width: 0; height: 12px; border-left: 1.5px dashed var(--bad); border-radius: 0; background: none; }
.plan-cell { display: inline-flex; align-items: center; gap: 8px; }
.plans-pop { width: 260px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.plans-pop .row { display: flex; gap: 8px; } .plans-pop input { flex: 1; min-width: 0; height: 34px; border-radius: 9px; }
.action-bar .hint.dirty { color: var(--amber-deep); font-weight: 600; }
@media (max-width: 1180px) {
  .plan-edit { grid-template-columns: 1fr; } .plan-right { position: static; }
  .plan-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } .plan-metrics .crit { grid-column: 1 / -1; }
  .opt-cards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) { .opt-cards.two { grid-template-columns: 1fr; } .action-bar { flex-wrap: nowrap; gap: 8px; padding: 10px 14px; } .action-bar > .hint { display: none; } .action-bar .btn.lg { height: 42px; padding: 0 16px; font-size: 14px; }
  .plan-metrics { grid-template-columns: 1fr 1fr; } .buy-card { flex-direction: column; align-items: flex-start; } .g-row { grid-template-columns: 110px minmax(200px, 1fr); } }

/* ---------- 生成大纲：大纲实时长出来 ---------- */
.ol-view { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.ol-card { position: relative; padding: 20px 22px 22px; min-height: 420px; overflow: hidden; }
.ol-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.ol-head b { font-size: 16px; }
.ol-wait { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0 6px; }
.ol-list { display: flex; flex-direction: column; gap: 8px; }
.ol-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 7px; padding: 11px 14px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); animation: rise .45s var(--ease) both; transition: background .3s, border-color .3s; }
.ol-num { font: 600 11px var(--mono); color: var(--mute); }
.ol-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-note { font-size: 12px; color: var(--faint); white-space: nowrap; }
.ol-bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--panel-3); overflow: hidden; }
.ol-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); transition: width .6s var(--ease), background .3s; }
.ol-row.now { background: var(--panel); border-color: var(--amber-line); box-shadow: 0 0 0 4px rgba(232,131,58,.06); }
.ol-row.now .ol-note { color: var(--amber-deep); font-weight: 600; }
.ol-row.done .ol-note { color: var(--ok); }
.ol-row.done .ol-bar i { background: var(--ok); }
.ol-row.ticked { animation: ol-pop .5s var(--ease); }
@keyframes ol-pop { 40% { transform: scale(1.015); background: var(--ok-soft); } }
.ol-seal { position: absolute; right: 22px; top: 12px; width: 58px; height: 58px; font-size: 22px; opacity: 0; transform: rotate(-14deg) scale(2.4); transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .2s; background: rgba(255,253,250,.75); pointer-events: none; }
.ol-card.stamped .ol-seal { opacity: .9; transform: rotate(-14deg) scale(1); }
.ol-clock { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 14px; font-size: 13px; color: var(--mute); }
.ol-clock b { color: var(--text); }
.ol-next { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--panel-2); border: 1px dashed var(--line-2); font-size: 13px; }
.ol-next b { display: block; margin-bottom: 6px; }
.ol-next ul { margin: 0 0 6px; padding-left: 1.2em; color: var(--text-2); line-height: 1.85; }
.view.leaving { animation: ol-leave .38s var(--ease) both; }
@keyframes ol-leave { to { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 1180px) { .ol-view { grid-template-columns: 1fr; } .ol-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .ol-row, .ol-row.ticked, .view.leaving { animation: none; } }

/* ---------- 场地资料与重新布置平面图 ---------- */
.site-fields textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); padding: 10px 12px; font: 13px/1.7 var(--sans); resize: vertical; background: var(--panel-2); }
.site-fields .sides button { min-width: 46px; }
.site-card > summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; }
.site-card > summary::-webkit-details-marker { display: none; }
.site-card > summary::after { content: "展开"; margin-left: auto; font-size: 12px; color: var(--amber-deep); }
.site-card[open] > summary::after { content: "收起"; }
.site-card[open] > summary { margin-bottom: 14px; }
.site-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.site-bar .hint { flex: 1; min-width: 0; }
.dlg-veil { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; overflow-y: auto; background: rgba(40,26,14,.28); backdrop-filter: blur(6px); animation: popin .2s var(--ease); }
.dlg { position: relative; width: min(560px, 100%); padding: 24px 24px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(80,45,15,.5); }
.dlg h3 { margin: 0 0 6px; font-size: 18px; }
.dlg > .hint { margin: 0 0 16px; line-height: 1.7; }
.dlg .x { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 10px; border: 0; background: transparent; color: var(--mute); font-size: 18px; cursor: pointer; }
.dlg .x:hover { background: var(--panel-3); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dlg .agree-list { margin: 10px 0 0; padding-left: 20px; line-height: 1.75; }
.dlg .agree-list li { margin: 4px 0; }
.plan-metrics .stat.crit .cp + .cp { margin-top: 2px; padding-top: 4px; border-top: 1px dashed var(--line); }

/* ---------- 篇幅优先 ---------- */
.length-mode { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); transition: border-color .2s, background .2s; }
.length-mode.on { border-color: var(--amber-line); background: var(--amber-soft); }
.lm-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; font-size: 12.5px; }
.lm-cols b { font-size: 12.5px; }
.lm-cols ul { margin: 4px 0 0; padding-left: 1.2em; line-height: 1.75; color: var(--text-2); }
.lm-good b { color: var(--ok); } .lm-bad b { color: #a35a12; }
@media (max-width: 680px) { .lm-cols { grid-template-columns: 1fr; } }

/* 弹窗遮罩盖满整屏（iOS 地址栏收起时 100vh 不够高），遮罩内滚动不带动背后页面 */
.lp-veil, .dlg-veil { bottom: auto; height: 100vh; height: 100lvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ---------- 成书自检 ---------- */
.sc-list { display: flex; flex-direction: column; gap: 10px; }
.sc-row { padding: 0; overflow: hidden; }
.sc-row.serious { border-color: #f3c7b9; }
.sc-main { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1.6fr) 16px; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; }
.sc-main:hover { background: var(--panel-2); }
.sc-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-badges { display: flex; gap: 6px; }
.scb { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font: 700 13px var(--mono); }
.scb.serious { background: var(--bad-soft); color: var(--bad); } .scb.confirm { background: var(--wait-soft); color: var(--wait); } .scb.polish { background: var(--panel-3); color: var(--mute); }
.scb.zero { opacity: .45; font-weight: 500; }
.sc-top { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.sc-top .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sc-detail { border-top: 1px solid var(--line); padding: 14px 18px 16px; background: var(--panel-2); }
.sc-group { margin-bottom: 14px; }
.sc-group h4 { margin: 0 0 8px; font-size: 13.5px; }
.sc-group.serious h4 { color: var(--bad); } .sc-group.confirm h4 { color: var(--wait); } .sc-group.polish h4 { color: var(--mute); }
.sc-item { padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; }
.sc-item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sc-advice { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.sc-ex { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sc-ex li { font-size: 12.5px; padding: 6px 10px; border-radius: 8px; background: var(--panel-2); color: var(--text-2); overflow-wrap: anywhere; }
.sc-ex li b { margin-right: 8px; color: var(--text); font-weight: 600; }
.sc-links { display: flex; gap: 8px; margin-top: 4px; }
.stat.bad .v { color: var(--bad); }
@media (max-width: 900px) { .sc-main { grid-template-columns: minmax(0, 1fr) auto; } .sc-top { grid-column: 1 / -1; } .sc-main .fsel-caret { display: none; } }

/* ---------- 调整 Word 格式 ---------- */
.tpl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.tpl-bar .tpl, .tpl-bar .tpl > button:first-child { height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text-2); cursor: pointer; font-size: 13px; }
.tpl-bar .tpl.on, .tpl-bar .tpl.on > button:first-child { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-deep); font-weight: 600; }
.tpl-bar .tpl.mine { display: inline-flex; align-items: center; padding: 0; border: 0; background: none; }
.tpl-bar .tpl.mine .x { width: 22px; height: 22px; margin-left: -6px; border: 0; background: transparent; color: var(--mute); cursor: pointer; border-radius: 50%; }
.tpl-bar .tpl.mine .x:hover { color: var(--bad); background: var(--panel-3); }
.tpl-sep { font: 600 10.5px var(--mono); color: var(--faint); margin-left: 6px; }
.fmt-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.fmt-form { min-width: 0; }
.fmt-form input:disabled { background: var(--panel-3); color: var(--muted, #6b6259); cursor: not-allowed; }   /* set by the blind-bid rules */
.fmt-preview { position: sticky; top: 16px; }
.paper-sheet { position: relative; background: #fff; box-shadow: 0 20px 40px -18px rgba(80,50,20,.35); border-radius: 4px; overflow: hidden; }
.paper-sheet p { margin: 0; }
.paper-sheet table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.paper-sheet th, .paper-sheet td { border: 1px solid #c9c2b8; padding: 2px 6px; text-align: center; }
.paper-sheet th { background: #1276c1; color: #fff; font-weight: 600; }
.paper-sheet .ph { position: absolute; text-align: center; font-size: 9px; color: #666; border-bottom: 1px solid #ccc; padding-bottom: 2px; }
.paper-sheet .pf { position: absolute; left: 0; right: 0; text-align: center; font-size: 9px; color: #666; }
.lv-table td.c { text-align: center; }
.lv-table input[type=checkbox] { width: auto; min-width: 0; height: auto; }
.num-chain { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 4px 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel-3); }
.num-chain span { font-size: 13px; color: var(--mute); }
.num-chain b { font-weight: 600; line-height: 1.7; }
.color-cell { display: inline-flex; align-items: center; gap: 6px; }
.color-cell input[type=color] { width: 34px; min-width: 34px; height: 26px; padding: 0 2px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.title-tree { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 330px); overflow-y: auto; padding-right: 6px; }
.tt-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.tt-row .num { font: 12px var(--mono); color: var(--mute); min-width: 56px; }
.tt-row input { flex: 1; min-width: 0; height: 34px; border-radius: 9px; border: 1px solid transparent; background: transparent; padding: 0 10px; font-size: 13px; }
.tt-row input:hover { border-color: var(--line-2); background: var(--panel); }
.tt-row input:focus { border-color: var(--amber); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--amber-soft); }
.tt-row.d0 input { font-weight: 700; } .tt-row.d1 { padding-left: 18px; } .tt-row.d2 { padding-left: 36px; } .tt-row.d3 { padding-left: 54px; }
.tt-row .renamed { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--amber-deep); white-space: nowrap; }
@media (max-width: 1180px) { .fmt-layout { grid-template-columns: 1fr; } .fmt-preview { position: static; overflow-x: auto; } }

/* ---------- 生成设置：招标规定的目录 ---------- */
.req-outline { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; }
.req-outline b { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--text-2); }
.req-outline ol { margin: 0; padding-left: 20px; color: var(--text); }
.req-outline li { padding: 2px 0; overflow-wrap: anywhere; }

/* ---------- 我的图库 ---------- */
.ph-tip { padding: 16px 20px; margin-bottom: 16px; }
.ph-tip b { display: block; margin-bottom: 6px; }
.ph-tip ul { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13px; line-height: 1.8; }
.ph-upload .drop { padding: 28px 20px 24px; margin-top: 12px; }
.ph-upload .drop.busy { opacity: .6; pointer-events: none; }
.ph-upload > .hint { display: block; margin-top: 10px; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.ph-tags input { width: 150px; height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; }
.tagpick { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.tagpick:hover { border-color: var(--amber-line); }
.tagpick.on { color: var(--amber-deep); background: var(--amber-soft); border-color: var(--amber-line); font-weight: 600; }
.ph-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-filters button { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.ph-filters button.on { color: #fff; background: var(--text); border-color: var(--text); }
.ph-filters button.warn-tab { color: var(--wait); border-color: #f3dfae; }
.ph-filters button.warn-tab.on { color: #fff; background: var(--wait); border-color: var(--wait); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ph-grid .empty-list { grid-column: 1 / -1; }
.ph-card { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; text-align: left; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.ph-card:hover { border-color: var(--amber-line); box-shadow: 0 10px 24px -14px var(--amber-glow); }
.ph-img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-cap { padding: 0 4px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-tagline { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 4px; min-height: 22px; }
.ph-tagline em { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--text-2); }
.ph-tagline em.none { background: var(--wait-soft); color: var(--wait); }
.ph-dlg { width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px; max-height: calc(100dvh - 32px); overflow: auto; }
.ph-big { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 12px; background: var(--panel-2); }
.btn.danger-text { color: var(--bad); }
@media (max-width: 600px) { .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.photo-opt { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 14px 0; }
.photo-opt .hint a { margin-left: 2px; }
.ph-search { width: 240px; max-width: 100%; }

/* ---------- 知识库 ---------- */
.lib-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lib-drop { padding: 30px 20px 26px; }
.lib-drop h3 { font-size: 16px; }
.lib-drop.busy { opacity: .6; pointer-events: none; }
.lib-note { margin: 10px 2px 0; }
.lib-status { margin: 6px 2px 0; min-height: 18px; }
.lib-head { margin: 22px 0 12px; font-size: 15px; }
.lib-list { display: flex; flex-direction: column; gap: 10px; }
.lib-row { padding: 0; overflow: hidden; }
.lib-main { display: flex; align-items: center; gap: 12px; padding: 14px 18px; flex-wrap: wrap; }
.lib-icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; font: 700 16px var(--mono); color: #fff; background: #2b579a; }
.lib-name { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.lib-name b { overflow-wrap: anywhere; }
.lib-row .btn.warn-btn { color: var(--wait); }
.lib-markers { border-top: 1px solid var(--line); padding: 12px 18px 16px; background: var(--panel-2); }
.lib-markers p { margin: 0 0 4px; }
.lib-markers input { width: 260px; max-width: 100%; }
.marker { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; }
.marker button { border: 0; background: none; color: var(--mute); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 4px; border-radius: 99px; }
.marker button:hover { color: var(--bad); background: var(--bad-soft); }
.ref-list { display: flex; flex-direction: column; gap: 8px; }
.ref-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.ref-item.on { border-color: var(--amber-line); background: var(--amber-soft); }
.ref-item > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ref-item b { font-size: 13.5px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .lib-zones { grid-template-columns: 1fr; } }
.ref-list .hint a, .photo-opt .hint a { color: var(--amber-deep); font-weight: 600; text-decoration: none; }
.ref-modes { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ref-modes > b { font-size: 13px; }
.ref-mode { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.ref-mode input { margin-top: 3px; }
.ref-mode.on { border-color: var(--amber-line); background: var(--amber-soft); }
.ref-mode > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ref-mode b { font-size: 13.5px; }
.ref-warn { margin: 0; font-size: 12.5px; }
.unreadable { margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; background: var(--wait-soft); border: 1px solid #f3dfae; color: var(--text); }
.unreadable b { display: block; color: var(--wait); margin-bottom: 4px; }
.unreadable p { margin: 0; font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; }

/* ---------- 补传 / 替换文件 ---------- */
.up-files { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.up-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.up-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.up-files li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--panel-2); }
.up-files li span { overflow-wrap: anywhere; min-width: 0; }
.up-files li em { font-style: normal; color: var(--mute); white-space: nowrap; font-size: 12px; }
.up-files li.bad { background: var(--wait-soft); }
.up-files li.bad em { color: var(--wait); }
.up-files > .hint { margin: 6px 0 0; }
.unreadable-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.unreadable-files > span { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 99px; background: var(--panel); border: 1px solid #f3dfae; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.fd-dlg { width: min(560px, 100%); display: flex; flex-direction: column; gap: 12px; max-height: calc(100dvh - 32px); overflow: auto; }
.fd-dlg h3, .fd-dlg > .hint { margin: 0; overflow-wrap: anywhere; }
.fd-drop { padding: 26px 18px 22px; }
.fd-drop h3 { font-size: 16px; }
.fd-list { display: flex; flex-direction: column; gap: 6px; }
.fd-list:empty { display: none; }
.fd-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 28px; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.fd-name { font-size: 13px; overflow-wrap: anywhere; }
.fd-row select { height: 32px; }
.fd-row .x { border: 0; background: none; color: var(--mute); cursor: pointer; }

/* ---------- 上传被退回 ---------- */
.reject-box { margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: var(--bad-soft); border: 1px solid #f1b9a8; }
.reject-box b { display: block; color: var(--bad); margin-bottom: 4px; }
.reject-box p { margin: 0; font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere; }
.reject-box p.hint { margin-top: 6px; font-size: 12.5px; }
.files .file.rejected, .fd-row.rejected { background: var(--bad-soft); border-color: #f1b9a8; }
.files .file.rejected .nm b, .fd-row.rejected .fd-name { color: var(--bad); }
.files .file.rejected .nm b::after { content: '  读不出文字'; font-size: 11.5px; font-weight: 600; }

/* ---------- 确认大纲：按层级折叠 ---------- */
.fold-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.fold { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 0; background: none; padding: 0; color: var(--text-2); font-size: 16px; line-height: 1; border-radius: 6px; }
button.fold { cursor: pointer; }
button.fold:hover { background: var(--panel-3); color: var(--text); }
.chapter > .head .fold { margin-right: -4px; }
.chapter.closed > .head { border-bottom: 0; }
.chapter > .head .fold-ch { white-space: nowrap; }
.node.closed input { font-weight: 600; }
.folded-count { flex: none; font-size: 12px; color: var(--amber-deep); background: var(--amber-soft); border-radius: 99px; padding: 2px 9px; cursor: pointer; white-space: nowrap; }

/* ---------- 确认大纲：选目标页数、能写充实范围、篇幅优先 ---------- */
.cap h3 { margin: 0 0 10px; }
.cap-target { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.cap-target label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cap-target input.pages { width: 92px; text-align: right; font-family: var(--mono); }
.cap-bar .range.full { background: var(--amber-soft); border-color: var(--amber-line); border-radius: 0 6px 6px 0; }
.cap-bar .mark.limit { background: var(--bad); }
.cap-warn { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 10px 0 0; }
.cap-warn p.warn { flex: 1 1 320px; margin: 0; }
.cap-warn .btn { white-space: nowrap; }
.cap .length-mode[hidden] { display: none; }
.chapter > .head .cap-ch { color: var(--mute); }
.chapter > .head .cap-ch.over { color: #8a4a12; }
p.hint.cap-note { margin: 10px 0 0; }
p.cap-expect { margin: 12px 0 0; font-size: 14px; }
p.cap-expect b { font-weight: 700; }
/* ---------- 狐果：余额入口、明细、管理员充值 ---------- */
.wallet-box { display: block; text-decoration: none; color: inherit; }
.wallet-box .qrow b { font-size: 15px; color: var(--amber-deep); }
.wallet-box .hint { margin-top: 6px; font-size: 11.5px; }
.wallet-box:hover .hint { color: var(--amber-deep); }
.wallet-chip { display: inline-flex; align-items: baseline; gap: 5px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--amber-line); background: var(--amber-soft); color: #8a4a12; font: 12px var(--sans); cursor: pointer; }
.wallet-chip b { font-size: 13px; color: var(--amber-deep); }
.wallet-chip[hidden] { display: none; }
.sheet { max-height: calc(100vh - 32px); overflow-y: auto; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet-head h3 { margin: 0; }
.wl-bal { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--amber-soft); border: 1px solid var(--amber-line); }
.wl-bal b { font-size: 28px; color: var(--amber-deep); }
.ledger { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ledger th { text-align: left; font-weight: 600; color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.ledger td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger td .hint { display: block; margin-top: 2px; }
.ledger td.num { text-align: right; white-space: nowrap; font-weight: 600; }
.ledger td.plus { color: var(--ok); } .ledger td.minus { color: var(--text); }
.cap-target .co-floor { flex-basis: 100%; color: #8a4a12; }
.topup-pop { width: 300px; }
.topup-pop select, .topup-pop input { height: 34px; border-radius: 9px; }
.topup-pop input[hidden] { display: none; }

/* ---------- 结算确认框：正式的清单排版 ---------- */
.pay-dlg { width: min(420px, 100%); padding: 28px 28px 22px; border-radius: 16px; background: #fff; }
.pay-dlg h3 { display: block; margin: 0; text-align: center; font-size: 20px; }   /* the site's h3 is a flex box */
.pay-dlg .sub { margin: 6px 0 20px; text-align: center; font-size: 12.5px; color: var(--mute); }
.pay-dlg dl { margin: 0; padding: 4px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pay-dlg dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; line-height: 1.5; }
.pay-dlg dt { color: var(--text-2); }
.pay-dlg dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pay-dlg .total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.pay-dlg .total span { font-size: 14px; font-weight: 600; }
.pay-dlg .total b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-dlg .total b small { margin-left: 4px; font-size: 14px; font-weight: 400; color: var(--text-2); }
.pay-dlg .after { font-size: 12.5px; color: var(--mute); text-align: right; }
.pay-dlg .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pay-dlg .acts .btn { height: 42px; font-size: 14px; }

/* ---------- 黑狐与狐果：分层场景（只用 transform / opacity） ---------- */
.fxs { position: relative; width: 240px; aspect-ratio: 479 / 417; --bs: 1; }
.fxs img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.fxs .fox-g { position: absolute; inset: 0; transform-origin: 31% 55%; translate: calc((var(--bs) - 1) * -42%) calc((var(--bs) - 1) * -34%); transition: translate .7s cubic-bezier(.3,1.4,.5,1); }
.fxs .ear { transform-origin: 36% 17%; }
.fxs .berry-g { position: absolute; inset: 0; transform-origin: 62% 98%; }
.fxs .berry-g, .fxs .shadow { scale: var(--bs); transition: scale .7s cubic-bezier(.3,1.5,.5,1); }
.fxs .leaf { transform-origin: 72% 24%; }
.fxs .shadow { transform-origin: 62% 97%; }
.fxs .eye { position: absolute; width: 4.2%; height: 4.8%; margin: -2.4% 0 0 -2.1%; opacity: 0; }
.fxs .eye::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: #fdf0e2; }
.fxs .eye i { position: absolute; left: 2%; right: 2%; height: 60%; border: 2.2px solid #3d3437; opacity: 0; }
.fxs .eye .happy { top: 30%; border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.fxs .eye .shut { top: 10%; border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.fxs .eye.l { left: 27.06%; top: 40.29%; } .fxs .eye.r { left: 40.08%; top: 31.18%; }
.fxs .mouth { position: absolute; left: 36.7%; top: 41.5%; width: 4.4%; height: 4.4%; margin: -1.5% 0 0 -2.2%; border-radius: 45% 45% 50% 50%; background: #3d2a2e; transform: scaleY(0); transform-origin: 50% 20%; overflow: hidden; }
.fxs .mouth::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 45%; border-radius: 50% 50% 0 0; background: #e98b97; }
.fxs .bubble { position: absolute; left: 40.5%; top: 36%; width: 9%; aspect-ratio: 1; border-radius: 50%; opacity: 0; transform-origin: 15% 85%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 14%, rgba(214,232,255,.45) 40%, rgba(214,232,255,.18) 70%); border: 1px solid rgba(255,255,255,.7); }
@keyframes berryDrop { 0% { opacity: 0; transform: translateY(-26%) scale(.96); } 55% { opacity: 1; transform: translateY(0) scale(1.04, .95); } 75% { transform: translateY(-2%) scale(.98, 1.02); } 100% { opacity: 1; transform: none; } }
@keyframes shadowIn { 0% { opacity: 0; transform: scaleX(.5); } 55%, 100% { opacity: 1; transform: none; } }
@keyframes leafSway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 60% { transform: rotate(6deg); } 80% { transform: rotate(-2deg); } }
@keyframes foxPeek { 0% { opacity: 0; transform: translate(24%, 5%); } 35% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes squash { 0%, 100% { transform: none; } 30% { transform: scale(1.035, .965); } 60% { transform: scale(.985, 1.015); } }
@keyframes nibble { 0%, 100% { transform: scaleY(0); } 15% { transform: scaleY(1); } 30% { transform: scaleY(.15); } 45% { transform: scaleY(1); } 60% { transform: scaleY(0); } }
@keyframes yawn { 0% { transform: scaleY(0); } 40% { transform: scaleY(2.1) scaleX(1.25); } 70% { transform: scaleY(1.8) scaleX(1.2); } 100% { transform: scaleY(0); } }
@keyframes showEye { from { opacity: 0; } to { opacity: 1; } }
@keyframes joyEye { 0% { opacity: 0; } 6%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hop { 0%, 100% { transform: none; } 40% { transform: translateY(-6%); } 70% { transform: translateY(0) scale(1.02, .98); } }
@keyframes doze { to { transform: rotate(12deg) translate(2%, 5%); } }
@keyframes snore { 0%, 100% { transform: rotate(12deg) translate(2%, 5%); } 50% { transform: rotate(13deg) translate(2%, 6%) scale(1.012, .99); } }
@keyframes bubble { 0%, 100% { opacity: .85; transform: scale(.25); } 55% { opacity: .9; transform: scale(1); } 62% { transform: scale(.96); } }
@keyframes zzz { 0% { opacity: 0; transform: translate(0, 0) scale(.5) rotate(-12deg); } 18% { opacity: 1; } 55% { transform: translate(9px, -16px) scale(1) rotate(10deg); } 100% { opacity: 0; transform: translate(20px, -36px) scale(1.15) rotate(-8deg); } }
/* 入场：树莓落稳、叶子晃一下，小黑狐探出头 */
.fxs.intro .berry-g { animation: berryDrop .8s cubic-bezier(.3,1.3,.5,1) both; }
.fxs.intro .shadow { animation: shadowIn .8s ease both; }
.fxs.intro .leaf { animation: leafSway .9s ease .55s both; }
.fxs.intro .fox-g { animation: foxPeek .8s cubic-bezier(.2,1.1,.4,1) .7s both; }
/* 开心：眼睛弯起来、啃一口、树莓弹一下 */
.fxs.joy .eye { animation: joyEye 1.4s both; } .fxs.joy .eye .happy { opacity: 1; }
.fxs.joy .mouth { animation: nibble .9s ease .1s both; }
.fxs.joy .berry-g { animation: squash .7s ease .2s both; }
.fxs.joy .leaf { animation: leafSway .8s ease .2s both; }
/* 到账：抱着树莓跳一下 */
.fxs.cheer .fox-g { animation: hop .6s ease both; } .fxs.cheer .berry-g { animation: hop .6s ease .08s both; }
.fxs.cheer .eye { animation: joyEye 1s both; } .fxs.cheer .eye .happy { opacity: 1; }
/* 靠着树莓睡着：探头 → 打哈欠 → 低头闭眼 → 呼吸、鼻涕泡 */
.fxs.sleeping .berry-g { animation: berryDrop .8s cubic-bezier(.3,1.3,.5,1) .2s both; }
.fxs.sleeping .shadow { animation: shadowIn .8s ease .2s both; }
.fxs.sleeping .leaf { animation: leafSway .9s ease .7s both; }
.fxs.sleeping .fox-g { animation: foxPeek .8s cubic-bezier(.2,1.1,.4,1) .8s both, doze 1.2s ease 3.8s forwards, snore 3.2s ease-in-out 5s infinite; }
.fxs.sleeping .mouth { animation: yawn 1.1s ease 3.1s both; }
.fxs.sleeping .eye { animation: showEye .3s ease 4.3s both; } .fxs.sleeping .eye .shut { opacity: 1; }
.fxs.sleeping .bubble { animation: bubble 3.2s ease-in-out 5.1s infinite; }
@media (prefers-reduced-motion: reduce) { .fxs *, .seal-art *, .study * { animation: none !important; transition: none !important; } }

/* ---------- 晚安补贴（22:00～次日 08:00，当晚弹一次） ---------- */
.night-card { position: relative; width: min(420px, 100%); border-radius: 26px; overflow: hidden; background: #fffaf2; box-shadow: 0 50px 100px -30px rgba(10,6,30,.7); }
.night-card .sky { position: relative; height: 210px; overflow: hidden; background: #241d36; }
.night-card .study, .night-card .study svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.night-card .x { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 15px; cursor: pointer; z-index: 2; }
.night-card .sleep-spot { position: absolute; left: 27%; bottom: 13%; width: 165px; }
.night-card .sleep-spot .fxs { width: 100%; }
.night-card .zz { position: absolute; left: 14%; top: 8%; font: 800 17px/1 "Chalkboard SE", "Comic Sans MS", "YouYuan", "Yuanti SC", var(--sans); color: #efe9ff; text-shadow: 0 0 8px rgba(190,175,255,.95); opacity: 0; animation: zzz 3.6s ease-in 5.2s infinite; }
.night-card .zz.z2 { font-size: 22px; animation-delay: 6.4s; } .night-card .zz.z3 { font-size: 28px; animation-delay: 7.6s; }
.night-card .body { padding: 26px 30px 24px; }
.night-card h3 { display: block; margin: 0 0 12px; font: 700 26px/1.35 "Songti SC", "Noto Serif CJK SC", "SimSun", serif; letter-spacing: 1px; color: #2a2420; }
.night-card p { margin: 0; color: #6b625a; font-size: 14px; line-height: 2; }
.night-card .deal { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 0; padding: 16px 0; border-top: 1px solid #ece3d6; border-bottom: 1px solid #ece3d6; }
.night-card .deal .t { font-size: 16px; color: #2a2420; }
.night-card .deal .t small { display: block; margin-top: 6px; font-size: 12.5px; color: #8a8076; }
.night-card .deal .off { display: flex; align-items: baseline; gap: 4px; color: #b5485a; }
.night-card .deal .off b { font: 400 58px/1 Georgia, "Times New Roman", serif; }
.night-card .deal .off span { font-size: 18px; }
.night-card .care { margin: 14px 0 18px; font-size: 13px; color: #8a8076; }
.night-card .btn { width: 100%; }
@keyframes off { to { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fill { from { transform: scaleX(0); } }
@keyframes pop2 { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
@keyframes moonUp { 0% { opacity: .35; transform: translateY(10px); } 100% { opacity: 1; transform: none; } }
@keyframes screenDim { to { opacity: .25; } }
.study .bar, .study .check, .study .moon2, .study .lamp-light, .study .lit, .study .screen-glow { transform-box: fill-box; }
.study .bar { transform-origin: left center; animation: fill 2.2s cubic-bezier(.4,0,.2,1) .8s both; }
.study .check { transform-origin: center; opacity: 0; animation: pop2 .4s ease 3.1s both; }
.study .stars { animation: fadeIn 1s ease both; }
.study .lit { animation: off .25s ease both; }
.study .lit:nth-of-type(1) { animation-delay: 1s; } .study .lit:nth-of-type(2) { animation-delay: 1.35s; } .study .lit:nth-of-type(3) { animation-delay: 1.7s; } .study .lit:nth-of-type(4) { animation-delay: 2s; }
.study .lit:nth-of-type(5) { animation-delay: 2.3s; } .study .lit:nth-of-type(6) { animation-delay: 2.6s; } .study .lit:nth-of-type(7) { animation-delay: 2.9s; } .study .lit:nth-of-type(8) { animation-delay: 3.2s; }
.study .lamp-light { animation: off .6s ease 4.1s both; }
.study .screen-glow { animation: screenDim .8s ease 4.4s both; }
.study .moon2 { animation: moonUp 2.4s ease 3.6s both; }

/* ---------- 充值页 ---------- */
.rc-head { margin-bottom: 18px; }
.rc-head .eyebrow b { margin-left: 4px; }
.rc-head h1 { margin: 6px 0 0; }
.wallet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; min-height: 210px; padding: 30px 36px; border-radius: 22px; overflow: hidden; color: #f6ead8;
  background: radial-gradient(120% 140% at 85% 30%, #4a3527 0%, #2c211b 45%, #1e1714 100%); box-shadow: 0 30px 60px -34px rgba(40,20,5,.7); }
.wallet::before { content: ""; position: absolute; inset: 10px; border-radius: 16px; border: 1px solid rgba(232,200,150,.18); pointer-events: none; }
.wallet .lbl { font-size: 13px; letter-spacing: 1px; color: #cdb89a; }
.wallet .bal { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.wallet .bal b { font: 700 44px/1 var(--sans); color: #fff; }
.wallet .bal span { font-size: 15px; color: #d9c4a2; }
.wallet .use-line { margin-top: 14px; font-size: 12.5px; color: #b8a487; }
.wallet .acts { margin-top: 18px; display: flex; gap: 10px; }
.wallet .acts .btn { height: 34px; background: rgba(255,255,255,.06); color: #f1e2c8; border-color: rgba(232,200,150,.28); }
.wallet .stagebox { position: relative; height: 190px; display: grid; place-items: end center; }
.wallet .stagebox::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 6px; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, rgba(243,190,120,.28), rgba(243,190,120,0)); }
.wallet .fxs { width: 220px; }
.offers { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.offer { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); }
.offer b { margin-left: 4px; color: var(--amber-deep); }
.rc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 24px; align-items: start; }
.rc-sec { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 12px; font-size: 16px; font-weight: 700; }
.rc-sec:first-child { margin-top: 4px; }
.rc-sec span { font-size: 12.5px; font-weight: 400; color: var(--mute); }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pk { position: relative; display: flex; flex-direction: column; border-radius: 16px; background: var(--panel); border: 1.5px solid var(--line-2); overflow: hidden; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.pk:hover { transform: translateY(-2px); }
.pk.pick { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.pk .badge { position: absolute; top: 0; right: 0; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--amber-deep); padding: 3px 10px; border-bottom-left-radius: 10px; }
.pk .badge.gift { background: #b5485a; }
.pk .hd { padding: 20px 16px 8px; text-align: center; }
.pk .hd .name { font-weight: 700; font-size: 15px; }
.pk .hd .price { margin-top: 10px; font: 700 26px/1.2 var(--sans); }
.pk .hd .price small { font-size: 15px; margin-right: 2px; }
.pk .hd .plus { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: #b5485a; background: #fbeef0; border-radius: 6px; padding: 1px 8px; }
.pk ul { list-style: none; margin: 10px 14px 14px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); font-size: 12.5px; color: var(--text-2); line-height: 1.9; }
.pk ul li::before { content: "·"; color: var(--amber-deep); margin-right: 6px; font-weight: 700; }
.pk .ft { margin-top: auto; padding: 9px 12px; text-align: center; font-size: 12px; color: var(--mute); border-top: 1px solid var(--line); }
.pk.pick .ft { background: var(--amber-soft); color: #8a4a12; }
.uses { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.use { padding: 18px 18px 20px; border-right: 1px solid var(--line); }
.use:last-child { border-right: 0; }
.use svg { width: 30px; height: 30px; stroke: var(--amber-deep); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.use b { display: block; margin-top: 12px; font-size: 14px; }
.use .price { margin-top: 4px; font-size: 12.5px; color: var(--amber-deep); font-weight: 600; }
.use span { display: block; margin-top: 6px; font-size: 12px; color: var(--text-2); line-height: 1.7; }
.bands-t { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); font-size: 13px; }
.bands-t th, .bands-t td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.bands-t th { background: var(--panel-2); font-weight: 600; color: var(--text-2); }
.bands-t td.num { font-weight: 600; }
.pay { position: sticky; top: 20px; padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pay h3 { display: block; margin: 0 0 14px; text-align: center; font-size: 16px; }
.pay .qr { display: grid; place-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.pay .qr img { width: 180px; height: 180px; }
.pay .qr span { margin-top: 6px; font-size: 12px; color: var(--mute); }
.pay .row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 13.5px; }
.pay .row b { font: 700 24px var(--sans); }
.pay .row b small { font-size: 15px; }
.pay .order { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); font-size: 12.5px; color: var(--text-2); line-height: 1.9; }
.pay ol { margin: 12px 0 12px; padding-left: 1.2em; font-size: 12px; color: var(--mute); line-height: 1.9; }
.faq { margin-top: 34px; }
.faq h2 { text-align: center; font-size: 20px; margin: 0 0 16px; }
.faq details { margin: 0 auto 10px; max-width: 860px; padding: 14px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq details p { margin: 10px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.8; }
@media (max-width: 1100px) { .uses { grid-template-columns: repeat(2, 1fr); } .use:nth-child(2) { border-right: 0; } .use:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .rc-grid, .wallet { grid-template-columns: 1fr; } .pay { position: static; } }
@media (max-width: 680px) { .uses { grid-template-columns: 1fr; } .use { border-right: 0; border-bottom: 1px solid var(--line); } .wallet { padding: 24px; } .wallet .stagebox { height: 150px; } .wallet .fxs { width: 170px; } }

/* ---------- 试读页 ---------- */
.pv-wrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
.pv-toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; }
.pv-toc h4 { margin: 0 4px 8px; font-size: 13px; display: flex; justify-content: space-between; }
.pv-toc h4 .hint { font-weight: 400; }
.pv-toc .r { display: flex; gap: 6px; align-items: baseline; padding: 4px 6px; border-radius: 8px; font-size: 12.5px; color: var(--text-2); }
.pv-toc .r .n { font: 600 11px var(--mono); color: var(--mute); flex: none; }
.pv-toc .r .t { min-width: 0; }
.pv-toc .r.l1 { font-weight: 700; color: var(--text); margin-top: 6px; }
.pv-toc .r.read { background: var(--ok-soft); color: #1f6b48; }
.pv-toc .r.read .n { color: #1f6b48; }
.pv-toc .fog { position: relative; margin-top: 4px; }
.pv-toc .fog .r { filter: blur(3px); opacity: .55; user-select: none; }
.pv-toc .fog .veil2 { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: linear-gradient(rgba(255,253,250,0), var(--panel) 45%); }
.pv-toc .fog .veil2 div { padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12px; line-height: 1.7; }
.pv-toc .legend { display: flex; gap: 6px; align-items: center; margin: 10px 6px 0; font-size: 11.5px; color: var(--mute); }
.pv-toc .legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ok-soft); border: 1px solid #bfe3cf; }
.pv-main { min-width: 0; }
.pv-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 16px; }
.pv-banner .logo { width: 48px; height: 48px; flex: none; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pv-banner .logo img { width: 40px; height: 40px; object-fit: contain; }
.pv-banner .t { flex: 1 1 260px; min-width: 0; }
.pv-banner .t b { display: block; font-size: 15px; }
.pv-banner .t span { font-size: 12.5px; color: var(--text-2); }
.pv-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 30px; user-select: none; -webkit-user-select: none; transition: opacity .3s, filter .3s; }
.pv-pages.relayout > .pv-img { opacity: .35; filter: blur(2px); }
.pv-img { width: min(820px, 100%); height: auto; background: #fff; border-radius: 4px; box-shadow: var(--shadow); -webkit-user-drag: none; pointer-events: none; }
.relayout-note { margin: -6px 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--amber-soft); color: #8a4a12; font-size: 13px; }
.relayout-note.bad { background: var(--bad-soft); color: var(--bad); }
.pv-lock { width: min(820px, 100%); padding-top: 80px; display: grid; place-items: center; }
.card-cta { width: min(400px, 100%); padding: 0 26px 22px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); text-align: center; }
.card-cta h3 { display: block; margin: 4px 0 4px; font-size: 18px; }
.card-cta p { margin: 0 0 16px; color: var(--text-2); font-size: 12.5px; line-height: 1.8; }
.card-cta .btn { width: 100%; }
.card-cta small { display: block; margin-top: 10px; color: var(--mute); font-size: 11.5px; }
/* 封着火漆的标书：纸张落下、系上丝带、火漆压下；悬停时火漆晃一下；解锁时火漆裂开、纸张散开 */
.seal-box { margin: -78px auto 2px; width: 220px; }
.seal-art { display: block; width: 100%; overflow: visible; }
.seal-art .pg, .seal-art .ribbon, .seal-art .half, .seal-art .glint, .seal-art .seal { transform-box: fill-box; transform-origin: center; }
.seal-art .ribbon { transform-origin: left center; }
.seal-art .glint { opacity: 0; }
.seal-art .p3 { --r: -7deg; } .seal-art .p2 { --r: 5deg; }
@keyframes pgIn { from { opacity: 0; transform: translateY(-26px) rotate(var(--r, 0deg)); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
@keyframes ribbonIn { from { transform: scaleX(0); } }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.8); } 60% { opacity: 1; transform: scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes glint { 0% { opacity: 0; transform: translateX(-30px) rotate(25deg); } 40% { opacity: .55; } 100% { opacity: 0; transform: translateX(30px) rotate(25deg); } }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: rotate(-7deg); } 55% { transform: rotate(5deg); } 80% { transform: rotate(-2deg); } }
@keyframes lift { to { transform: translate(-2px, -6px) rotate(-1.5deg); } }
@keyframes spreadUp { from { transform: none; } to { transform: translateY(-12px); } }
@keyframes spreadR { from { transform: rotate(5deg); } to { transform: translate(28px, 4px) rotate(12deg); } }
@keyframes spreadL { from { transform: rotate(-7deg); } to { transform: translate(-28px, 4px) rotate(-14deg); } }
.seal-art .p3 { transform: rotate(-7deg); } .seal-art .p2 { transform: rotate(5deg); }
.seal-art:not(.in) .pg, .seal-art:not(.in) .ribbon, .seal-art:not(.in) .seal { opacity: 0; }
.seal-art.in .p3 { animation: pgIn .45s ease both; }
.seal-art.in .p2 { animation: pgIn .45s ease .12s both; }
.seal-art.in .p1 { animation: pgIn .45s ease .24s both; }
.seal-art.in .ribbon { animation: ribbonIn .4s ease .65s both; }
.seal-art.in .seal { animation: stamp .45s cubic-bezier(.3,1.4,.5,1) 1s both; }
.seal-art.in .glint { animation: glint .8s ease 1.6s; }
.seal-art.tease .seal { animation: nudge .6s ease; }
.seal-art.tease .p1 { animation: lift .35s ease forwards; }
.seal-art .half, .seal-art .ribbon { transition: transform .6s cubic-bezier(.3,1.2,.4,1), opacity .5s ease; }
.seal-art.open .half.l { transform: translate(-22px, 26px) rotate(-35deg); opacity: 0; }
.seal-art.open .half.r { transform: translate(22px, 26px) rotate(35deg); opacity: 0; }
.seal-art.open .ribbon { animation: none; transform: scaleX(0); opacity: 0; }
.seal-art.open .seal { animation: none; }
.seal-art.open .p1 { animation: spreadUp .6s cubic-bezier(.3,1.2,.4,1) .15s both; }
.seal-art.open .p2 { animation: spreadR .6s cubic-bezier(.3,1.2,.4,1) .15s both; }
.seal-art.open .p3 { animation: spreadL .6s cubic-bezier(.3,1.2,.4,1) .15s both; }
@media (max-width: 900px) { .pv-wrap { grid-template-columns: 1fr; } .pv-toc { position: static; max-height: 360px; } }

/* ---------- 上传：文件类型（按文件名预选，选项带说明） ---------- */
.kind-note { padding: 10px 18px 8px; font-size: 12px; color: var(--mute); border-bottom: 1px solid var(--line); }
.fd-list .kind-note { padding: 0 2px 2px; border: 0; }
.kind-pick { display: flex; flex-direction: column; gap: 3px; width: 200px; flex: none; }
.kind-help { font-size: 11.5px; line-height: 1.5; color: var(--mute); }
.kind-help.bad { color: var(--bad); font-weight: 600; }
.file.sent .kind-pick, .uploading .file .kind-pick { display: none; }
.fd-row { grid-template-columns: minmax(0, 1fr) 200px 28px; }
.fsel-opt:has(.fsel-desc) { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; row-gap: 1px; white-space: normal; max-width: 280px; }
.fsel-opt:has(.fsel-desc)::after { grid-column: 2; grid-row: 1; }
.fsel-desc { grid-column: 1; font-size: 11.5px; font-weight: 400; color: var(--mute); }
@media (max-width: 680px) {
  .file { flex-wrap: wrap; }
  .file .kind-pick { width: 100%; order: 5; }
  .fd-row { grid-template-columns: minmax(0, 1fr) 28px; }
  .fd-row .kind-pick { grid-column: 1 / -1; grid-row: 2; width: 100%; }
}

/* ---------- 生成设置：篇幅档位、按我的目录 ---------- */
.band-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.band-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.bands { display: flex; flex-wrap: wrap; gap: 8px; }
.band { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.band:hover { border-color: var(--faint); }
.band.on { border-color: var(--amber); background: var(--amber-soft); color: #8a4a12; font-weight: 600; box-shadow: 0 0 0 3px var(--amber-glow); }
.band.over:not(.on) { color: var(--mute); }
.band em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 99px; background: var(--panel-3); color: var(--mute); }
.band em.rec { background: var(--ok-soft); color: var(--ok); }
.band-field > .hint { font-size: 12px; }
.own-outline { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.own-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.own-body[hidden] { display: none; }
.own-input textarea { width: 100%; box-sizing: border-box; min-height: 220px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font: 13px/1.7 var(--sans); resize: vertical; }
.own-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.own-seen { padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); max-height: 300px; overflow: auto; }
.own-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.own-problem { margin: 4px 0 8px; color: var(--bad); font-size: 12.5px; font-weight: 600; }
.own-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.75; }
.own-list .lv1 { font-weight: 700; margin-top: 4px; }
.own-list .lv2 { padding-left: 16px; }
.own-list .lv3 { padding-left: 32px; color: var(--text-2); }
.own-list .lv4 { padding-left: 48px; color: var(--mute); }
@media (max-width: 680px) { .own-body { grid-template-columns: 1fr; } }
.action-bar .bar-band { font-weight: 600; white-space: nowrap; }
/* 未解锁的书：试读正文不可选中、复制、打印 */
.nocopy, .nocopy * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.nocopy img { -webkit-user-drag: none; pointer-events: none; }
@media print { .nocopy { display: none !important; } body::after { content: "试读内容不提供打印，解锁后可下载 Word。"; display: block; padding: 40px; font-size: 16px; } }
.sst.locked { border: 1.5px solid var(--line-2); background: var(--panel-3); }
.tree-fog { margin: 10px 6px 0; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line-2); text-align: center; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.tree-fog .hint { font-size: 11.5px; }
.ch.fadein, .nd.fadein { animation: rise .5s ease-out both; }
.start-bar { height: 6px; border-radius: 4px; background: var(--panel-3); margin-top: 8px; overflow: hidden; max-width: 320px; }
.start-bar i { display: block; height: 100%; background: var(--amber); border-radius: 4px; transition: width .4s; }
/* 首批小节写完之前：正在做的几步 */
.start { padding: 70px 10px 40px; max-width: 460px; margin: 0 auto; }
.start h2 { font: 700 20px/1.5 var(--sans); margin: 0 0 22px; }
.start-steps { list-style: none; margin: 0; padding: 0; }
.start-steps li { position: relative; padding: 0 0 20px 32px; }
.start-steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--line-2); box-sizing: border-box; }
.start-steps li:not(:last-child)::after { content: ""; position: absolute; left: 7.5px; top: 23px; bottom: 2px; width: 1px; background: var(--line); }
.start-steps li.done::before { border: 1.5px solid var(--ok); background: var(--ok-soft); }
.start-steps li.now::before { border: 1.5px solid var(--amber); background: var(--amber-soft); animation: pulse 1.6s infinite; }
.start-steps b { display: block; font-size: 14.5px; }
.start-steps span { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.start-pen { display: flex; gap: 6px; padding-left: 32px; }
.start-pen i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: blink 1.2s infinite; }
.start-pen i:nth-child(2) { animation-delay: .2s; } .start-pen i:nth-child(3) { animation-delay: .4s; }
/* 试读文字页 */
.pv-paper { min-height: 0; margin: 0 auto; width: min(820px, 100%); box-sizing: border-box; }
.pv-paper .pv-h { scroll-margin-top: 16px; }
.pv-paper h1.pv-h { font: 700 21px/1.5 var(--sans); text-align: center; margin: 6px 0 22px; }
.pv-paper h2.pv-h { font: 700 17px/1.6 var(--sans); margin: 22px 0 10px; }
.pv-paper h3.pv-h { font: 700 15.5px/1.7 var(--sans); margin: 18px 0 8px; }
.pv-toc .r.go { cursor: pointer; } .pv-toc .r.go:hover { box-shadow: 0 0 0 1px #bfe3cf; }
.pv-toc .fog .r .bar { display: block; height: 9px; border-radius: 5px; background: var(--line-2); margin: 4px 0; }
.supply { margin: 14px 0 6px; padding: 10px 14px; border-radius: 10px; background: var(--wait-soft); font: 13px/1.8 var(--sans); color: #7a5410; }
.supply ul { margin: 2px 0 0; padding-left: 1.3em; }
.supply-list li { color: #7a5410; }
@media (max-width: 820px) { .pv-wrap { grid-template-columns: 1fr; } .pv-toc { position: static; max-height: 320px; } .pv-paper { padding: 28px 18px 36px; } }
/* 评分覆盖：评分记分卡与招标要点覆盖（大纲生成页与确认大纲页） */
.ol-cov { grid-column: 1 / -1; }
.ol-cov:empty { display: none; }
.cv { padding: 16px 18px; }
.cv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-bottom: 12px; }
.cv-stat { padding: 10px 12px; border-radius: 12px; background: var(--panel-3); }
.cv-stat.ok { background: var(--ok-soft); }
.cv-stat span { display: block; font-size: 12px; color: var(--text-2); }
.cv-stat b { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-top: 2px; }
.cv-stat.ok b { color: #1f6b48; }
.cv-ok { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; }
.cv-note { margin: 12px 0 0; font-size: 12px; }
.cv-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.cv-tabs button { border: 1px solid var(--line-2); background: var(--panel); border-radius: 99px; padding: 4px 12px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.cv-tabs button.on { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber-deep); font-weight: 600; }
.cv-row { padding: 9px 0; border-top: 1px solid var(--line); transition: opacity .4s; }
.cv-row:first-child { border-top: 0; }
.cv-row.wait { opacity: .35; }
.cv-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.cv-h .pts, .chapter .head .pts { font: 600 11px var(--mono); color: var(--amber-deep); background: var(--amber-soft); border-radius: 6px; padding: 1px 7px; white-space: nowrap; align-self: center; }
.cv-h .hint { font-weight: 400; }
.cv-chip { display: inline-block; font-size: 12px; line-height: 1.5; padding: 3px 9px; margin: 4px 5px 0 0; border-radius: 8px; border: 1px solid var(--line-2); color: var(--mute); background: var(--panel); cursor: default; transition: background .35s, color .35s, border-color .35s; }
.cv-chip.on { background: var(--ok-soft); color: #1f6b48; border-color: #bfe3cf; }
.cv-row .cv-chip { cursor: pointer; }
.cv-detail { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel-3); font-size: 12.5px; }
.cv-row.wait .cv-chip.on { background: var(--panel); color: var(--mute); border-color: var(--line-2); }
.cv-miss { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
/* 确认大纲：左边改章节，右边看合计（篇幅、评分覆盖），右栏随页面停住 */
.ol-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ol-side { position: sticky; top: 16px; max-height: calc(100vh - 110px); overflow-y: auto; display: grid; gap: 14px; }
.ol-side .cap { margin-bottom: 0; padding: 16px 18px; }
.ol-side .lm-cols { grid-template-columns: 1fr; }
.cv-side { padding: 16px 18px; }
.cv-side h3 { margin: 0 0 10px; font-size: 15px; }
.cv-side .cv-stats { grid-template-columns: 1fr; }
.cv-side .btn { width: 100%; }
@media (max-width: 1180px) { .ol-edit { grid-template-columns: 1fr; } .ol-side { position: static; max-height: none; order: -1; } }

/* ---------- 正文写完：先选 Word 格式再导出 ---------- */
.fmt-first { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--ok-soft); border: 1px solid #bfe3cf; color: #1f6b48; font-size: 13px; }
/* 导出进度就在放按钮的这条底栏里：整条栏从左往右染浅橙、底边一条进度线，按钮报百分比；导完转绿，失败转红 */
.fmt-bar-live { --p: 0%; }
.fmt-bar-live .bar-msg { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 0; }
.fmt-bar-live .bar-msg + .sp { display: none; }
.fmt-bar-live .bar-run { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fmt-bar-live .bar-run b { font-size: 14px; }
.fmt-bar-live .bar-sub { font-size: 12.5px; color: var(--text-2); }
.fmt-bar-live .bar-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.fmt-bar-live.busy::after { border-color: var(--amber-line);
  background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)) left bottom / var(--p) 4px no-repeat,
              linear-gradient(90deg, rgba(242,154,85,.2), rgba(242,154,85,.3)) left top / var(--p) 100% no-repeat, var(--panel); }
.fmt-bar-live.ok::after { background: var(--ok-soft); border-color: #bfe3cf; }
.fmt-bar-live.ok .bar-mark { background: var(--ok); }
.fmt-bar-live.ok .bar-run b { color: #1f6b48; }
.fmt-bar-live.bad::after { background: var(--bad-soft); border-color: #f3c7b9; }
.fmt-bar-live.bad .bar-mark { background: var(--bad); }
.fmt-bar-live .btn.busy:disabled { opacity: 1; cursor: progress; min-width: 150px; font-variant-numeric: tabular-nums; }
@media (max-width: 680px) {
  .fmt-bar-live .bar-msg { flex: 1 1 0; }
  .fmt-bar-live .bar-sub, .fmt-bar-live .bar-msg > .hint { display: none; }
  .fmt-bar-live .bar-run b { font-size: 12.5px; line-height: 1.35; }
  .fmt-bar-live .btn.busy:disabled { min-width: 0; }
}
.drawings-ask { margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--wait-soft); font-size: 13px; line-height: 1.6; }
.drawings-box li em .link { margin-left: 6px; }
/* a small pill in the corner while drawings upload; its file list opens on a click (or on a failure) */
.upload-dock { position: fixed; right: 16px; bottom: 96px; z-index: 60; max-height: 50vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); transition: border-radius .2s; }
.upload-dock.open { width: min(360px, calc(100vw - 32px)); border-radius: 14px; }
.upload-dock.pill { max-width: calc(100vw - 32px); }
.up-pill { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.up-pill-bar { flex: 0 0 56px; height: 5px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.up-pill-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); transition: width .3s var(--ease); }
.upload-dock.done .up-pill-bar i { background: var(--ok); }
.upload-dock.failed .up-pill-text { color: var(--bad); }
.up-pill-text { white-space: nowrap; font-weight: 600; }
.up-pill-arrow { margin-left: auto; font-size: 12px; color: var(--amber-deep); white-space: nowrap; }
.up-dock-body { padding: 0 14px 10px; }
.up-dock-hint { margin: 8px 0 0; font-size: 12px; color: var(--mute); line-height: 1.6; }
.up-job { padding: 6px 0; border-top: 1px solid var(--line); }
.up-job:first-of-type { border-top: 0; }
.up-job-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.up-job-head b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.up-job .prog { height: 4px; margin: 5px 0 3px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.up-job .prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber-2), var(--amber-deep)); transition: width .3s var(--ease); }
.up-job.failed .hint { color: var(--bad); }
.up-job.done .prog i { background: var(--ok); }
.up-jobs { margin: 4px 0 8px; }
.drawings-pick { margin-top: 14px; padding: 14px 16px; }
.drawings-pick ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.drawings-pick li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--panel-2); }
.drawings-pick li span { overflow-wrap: anywhere; min-width: 0; }
.drawings-pick li em { font-style: normal; color: var(--mute); font-size: 12px; }
.drawings-pick .up-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drawings-pick > .hint { margin: 8px 0 0; }

/* 产品线：技术方案 / 完整投标文件 ------------------------------------------------- */
.chip.line.package, .pchip.line.package { color: var(--amber-deep); background: var(--amber-soft); border-color: var(--amber-line); }
.pcard .new-lines { display: flex; gap: 8px; align-items: center; font-size: 12px; margin-top: 6px; }
.pcard .new-lines a { color: var(--amber-deep); font-weight: 600; }
.pcard .new-lines i { color: var(--mute); font-style: normal; }
.line-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.line-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.line-card:hover { border-color: var(--amber-line); }
.line-card.on { border-color: var(--amber-deep); box-shadow: 0 0 0 4px var(--amber-soft); }
.line-card .radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 2px; display: grid; place-items: center; }
.line-card.on .radio { border-color: var(--amber-deep); }
.line-card.on .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-deep); }
.line-card b { display: block; font-size: 14px; }
.line-card .hint { display: block; margin-top: 2px; line-height: 1.5; }
.steps .s.soon { opacity: .55; }
.steps .s.soon i { border-style: dashed; }
.steps .s em { font-style: normal; font-size: 11px; color: var(--mute); border: 1px dashed var(--line-2); border-radius: 99px; padding: 0 7px; line-height: 16px; }
.soon-steps h3 { display: flex; align-items: center; gap: 10px; }
.soon-steps .tl li:first-child::before { border-color: var(--line-2); box-shadow: none; }
.soon-steps .tl::before { background: var(--line-2); }
@media (max-width: 720px) { .line-pick { grid-template-columns: 1fr; } }

/* ---- 企业资料库 ---- */
.co-companies { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.co-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 180px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); font: inherit; color: inherit; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.co-tab b { font-size: 14px; overflow-wrap: anywhere; } .co-tab small { font-size: 11.5px; color: var(--mute); }
.co-tab:hover { border-color: var(--amber-line); }
.co-tab.on { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.co-tab.on small { color: var(--amber-deep); }
.co-tab.add { justify-content: center; min-width: 150px; border-style: dashed; color: var(--amber-deep); font-weight: 600; }
.co-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-bottom: 8px; }
.co-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font: inherit; color: inherit; cursor: pointer; text-align: left; position: relative; }
.co-kind b { font-size: 13px; } .co-kind small { font-size: 11.5px; color: var(--ok); }
.co-kind.empty small { color: var(--mute); } .co-kind.empty .co-ki { background: var(--panel-3); color: var(--mute); }
.co-kind.on { border-color: var(--amber); background: var(--amber-soft); }
.co-ki { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--ok); margin-bottom: 4px; }
.co-progress { margin: 0 2px 16px; }
.co-sec { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .co-sec h3 { margin: 0; }
.co-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 18px; margin-top: 12px; }
.co-form .co-f.long, .co-form .co-f.table { grid-column: 1 / -1; }
.co-form textarea, .co-dlg textarea { border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--panel); padding: 10px 12px; font: inherit; font-size: 13.5px; color: var(--text); resize: vertical; min-height: 90px; outline: none; }
.co-form textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.co-f .req { color: var(--bad); font-style: normal; margin-left: 3px; }
.co-table { display: flex; flex-direction: column; gap: 6px; }
.co-trow { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) 36px; gap: 6px; align-items: center; }
.co-trow.head span { font-size: 12px; color: var(--mute); }
.co-trow input { height: 34px; }
.co-dlg { width: min(860px, 100%); }
.co-list { display: flex; flex-direction: column; gap: 12px; }
.co-item { padding: 14px 18px 16px; }
.co-item-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.co-item-title { flex: 1; min-width: 200px; } .co-item-title b { font-size: 15px; }
.co-sum { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.co-sum small { color: var(--mute); margin-right: 4px; }
.co-template { white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.7; color: var(--text-2); margin: 10px 0 0; padding: 10px 14px; background: var(--panel-2); border-radius: 10px; max-height: 200px; overflow: auto; }
.co-scans { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.co-scan { position: relative; width: 112px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: center; }
.co-scan img, .co-pdf { width: 112px; height: 112px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); display: block; }
.co-pdf { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--bad); } .co-pdf b { font-size: 16px; } .co-pdf small { color: var(--mute); }
.co-scan-name { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-scan-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 99px; border: 0; background: rgba(40,26,14,.6); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.co-scan:hover .co-scan-x, .co-scan:focus-within .co-scan-x { opacity: 1; }
.co-scan.add { display: grid; place-items: center; align-content: center; gap: 4px; height: 112px; border: 1.5px dashed var(--amber-line); border-radius: 10px; color: var(--amber-deep); }
.co-scan.add span { font-size: 22px; } .co-scan.add small { font-size: 11px; padding: 0 6px; }
.co-view { width: min(960px, 100%); padding: 16px; } .co-view img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 10px; }
.co-view-cap { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-top: 10px; }
.co-upstatus { margin-top: 10px; min-height: 18px; }
.co-start { padding: 26px 28px; } .co-start p { margin: 0 0 16px; line-height: 1.7; }
@media (max-width: 700px) { .co-tab { min-width: 0; flex: 1 1 45%; } .co-trow { grid-template-columns: 1fr 1fr; } .co-trow.head { display: none; } .co-trow .btn { grid-column: 1 / -1; justify-self: end; } }

/* 撰写页载入中：工作台的轮廓，不是一行“正在载入…”（2026-10-27） */
.load-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: shell-in .2s ease both; }
.load-shell > .work { flex: 1; min-height: 0; }
.load-shell .skel.head { padding: 4px 0; gap: 8px; width: min(560px, 70%); }
.load-shell .tree .skel { gap: 14px; padding-top: 8px; }
.load-shell .paper { min-height: 60vh; }
@keyframes shell-in { from { opacity: 0; } to { opacity: 1; } }

/* 停下的书：原因和进度 */
.stop-note { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stop-note b { color: var(--bad); font-weight: 600; }

/* 管理员：模型服务告警 */
.nav a.alerting::after { content: ""; position: absolute; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.admin-alert { border: 1px solid var(--bad); background: var(--bad-soft); padding: 16px 18px; margin-bottom: 18px; }
.admin-alert .row b { color: var(--bad); }
.admin-alert .hint { margin: 6px 0 10px; }
.alert-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid rgba(200,67,31,.15); font-size: 13px; }
.alert-row code { flex: 1 1 260px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 12px; }
