/* eCandle operator guide — same palette and fonts as the operator landing page */
:root {
  --bg: #faf7f1; --panel: #fffdf9; --ink: #1c1712; --muted: #6b6157; --dim: #9c9186;
  --hair: #eae3d7; --amber: #ea580c; --amber-soft: #fff1e4; --green: #15803d;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--bg); border-bottom: 1px solid var(--hair); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 26px; width: auto; }
.brand span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.console { font-size: 14px; font-weight: 600; text-decoration: none; padding: 7px 14px; border: 1px solid var(--hair); border-radius: 10px; color: var(--ink); background: var(--panel); white-space: nowrap; }

.wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; max-width: 1080px; margin: 0 auto; padding: 32px 20px 40px; }
.side ul { list-style: none; position: sticky; top: 80px; }
.side li a { display: block; padding: 6px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14.5px; }
.side li a:hover { background: var(--panel); color: var(--ink); }
.side li a[aria-current="page"] { background: var(--amber-soft); color: #9a3412; font-weight: 600; }
.pick { display: none; }

main { max-width: 700px; min-width: 0; }
h1 { font: 500 clamp(30px, 5vw, 42px)/1.1 var(--serif); letter-spacing: -.02em; margin-bottom: 18px; }
h2 { font-size: 21px; font-weight: 700; margin: 36px 0 10px; }
p, ul, ol, .table, figure { margin-bottom: 14px; }
main > p:first-of-type { font-size: 18px; color: var(--muted); }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
li ul { margin: 6px 0 0; }
b { font-weight: 700; }

figure { margin: 22px 0 26px; text-align: center; }
figure img { width: 100%; max-width: 330px; height: auto; border: 1px solid var(--hair); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(28,23,18,.05), 0 14px 30px -18px rgba(28,23,18,.28); background: var(--panel); }
figcaption { font-size: 13px; color: var(--dim); margin-top: 8px; }

.table { overflow-x: auto; border: 1px solid var(--hair); border-radius: 14px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--hair); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #f7f2e9; }
tr:last-child td { border-bottom: 0; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--hair); }
.pager a { text-decoration: none; font-weight: 600; }
footer { text-align: center; color: var(--dim); font-size: 13px; padding: 30px 20px 40px; border-top: 1px solid var(--hair); }

@media (max-width: 820px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 20px 16px 32px; }
  .side ul { display: none; }
  .pick { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
  .pick select { flex: 1; min-width: 0; font: 600 15px var(--sans); padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--panel); color: var(--ink); }
  figure img { max-width: 300px; }
}

/* 电脑截图（admin 等）：铺满正文宽度、小圆角 */
body.desktop figure img { max-width: 100%; border-radius: 12px; }
body.desktop .wrap { max-width: 1240px; }
body.desktop main { max-width: 860px; }

code { font: 0.9em ui-monospace, Menlo, monospace; background: #f3ede2; border-radius: 5px; padding: 1px 5px; }
pre { overflow-x: auto; background: #f7f2e9; border: 1px solid var(--hair); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
pre code { background: none; padding: 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 400px) { .brand span { display: none; } .console { padding: 6px 10px; font-size: 13px; } }

/* 10-31 每个要点的链接：标题、步骤、表格行旁边的 #，点了复制链接；跳过来的那一条闪一下 */
h2, li[id], tr[id] { scroll-margin-top: 76px; }
.anchor { margin-left: 6px; font-weight: 400; font-size: .85em; color: var(--dim); text-decoration: none; opacity: 0; transition: opacity .15s; }
h2:hover .anchor, li:hover > .anchor, tr:hover .anchor, .anchor:focus { opacity: 1; }
@media (hover: none) { .anchor { opacity: .45; } }
:target { animation: hit 2.4s ease-out; border-radius: 6px; }
@keyframes hit { 0%, 35% { background: var(--amber-soft); } 100% { background: transparent; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; transition: .2s;
  background: var(--ink); color: #fff; font-size: 14px; padding: 8px 14px; border-radius: 10px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

