/* assets/extra.css — 成就面板、分组说明、视觉开关 */

.gdesc{
  font-size:11px;line-height:1.75;color:var(--ink-faint);
  margin:2px 2px 10px;padding:0 2px;
}

/* 图层小开关 */
.vis{
  width:16px;height:16px;flex:0 0 16px;border-radius:5px;display:grid;place-items:center;
  border:1px solid rgba(140,175,200,.36);transition:.15s;
}
.vis i{width:7px;height:7px;border-radius:2px;display:block}
.vis:hover{border-color:rgba(232,194,106,.65)}

/* 成就面板 */
.ach-top{display:flex;align-items:center;gap:14px;padding:14px 14px 12px;
  border:1px solid var(--line);border-radius:12px;background:rgba(26,39,49,.4);margin-bottom:11px}
.ach-ring{position:relative;width:74px;height:74px;flex:0 0 74px}
.ach-ring svg{width:74px;height:74px;display:block}
.ach-ring-txt{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  gap:0;font-family:"Inter",system-ui,sans-serif;line-height:1;box-sizing:border-box}
.ach-ring-txt b{font-size:17px;font-weight:600;color:var(--gold);line-height:1;
  font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.ach-ring-txt span{font-size:10px;color:var(--ink-faint);line-height:1;
  font-variant-numeric:tabular-nums;margin-left:1px;transform:translateY(1px)}
.ach-sum{flex:1;min-width:0}
.ach-title{font-size:13px;letter-spacing:.06em;margin-bottom:3px}
.ach-sub{font-size:10.5px;color:var(--ink-faint);letter-spacing:.04em;margin-bottom:8px}
.ach-bar{height:4px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}
.ach-bar>i{display:block;height:100%;border-radius:9px;
  background:linear-gradient(90deg,var(--gold-dim),var(--gold));transition:width .4s}

.filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:11px;padding:0 1px}
.chip{
  display:inline-flex;align-items:center;gap:5px;
  padding:5px 10px;border-radius:20px;border:1px solid var(--line);
  font-size:11px;letter-spacing:.05em;color:var(--ink-faint);transition:.15s;
}
.chip:hover{color:var(--ink-dim);border-color:var(--line-strong)}
.chip.on{color:#f4e3b6;border-color:rgba(232,194,106,.46);background:rgba(232,194,106,.1)}
.chip em{font-style:normal;font-family:"Inter",system-ui,sans-serif;font-size:9.5px;opacity:.62}

.ach-list{display:flex;flex-direction:column;gap:5px}
.ach{
  display:flex;align-items:flex-start;gap:10px;padding:10px 11px;border-radius:11px;
  border:1px solid var(--line);background:rgba(26,39,49,.32);cursor:pointer;transition:.15s;
}
.ach:hover{background:rgba(38,55,68,.55);border-color:var(--line-strong)}
.ach.done{background:rgba(232,194,106,.055);border-color:rgba(232,194,106,.2)}
.ach-ico{
  width:26px;height:26px;flex:0 0 26px;border-radius:8px;display:grid;place-items:center;
  background:rgba(255,255,255,.045);color:var(--ink-faint);transition:.18s;
}
.ach-ico svg{width:14px;height:14px}
.ach.done .ach-ico{background:rgba(232,194,106,.16);color:var(--gold)}
.ach-main{flex:1;min-width:0}
.ach-name{display:block;font-size:12.5px;line-height:1.45;letter-spacing:.02em}
.ach-name em{font-style:normal;font-family:"Inter",system-ui,sans-serif;
  font-size:9.5px;color:var(--ink-faint);letter-spacing:.04em;margin-left:4px}
.ach-desc{display:block;font-size:11px;line-height:1.6;color:var(--ink-faint);margin-top:3px}
.ach.done .ach-name{color:var(--gold)}
.ach .chk{margin-top:2px;border-color:rgba(140,175,200,.4)}
.ach .chk.on{background:var(--gold);border-color:var(--gold)}
.ach .chk.on svg{opacity:1;transform:scale(1)}

/* =========================================================
   魔典页签 · 防剧透警告
   ========================================================= */
.grim-head{margin-bottom:10px}
.grim-head h3{font-size:15px;letter-spacing:.06em;color:var(--ink);font-weight:600}
.grim-sub{font-size:9px;letter-spacing:.18em;color:var(--ink-faint);margin-top:3px}

.grim-list-head{display:flex;justify-content:space-between;align-items:baseline;
  margin:14px 0 8px;font-size:11px;letter-spacing:.08em;color:var(--ink-dim)}
.grim-hint{font-size:9.5px;color:var(--ink-faint);letter-spacing:.04em}

.grline.copied{background:rgba(127,224,200,.16) !important;transition:background .15s}

/* =========================================================
   极致功利白金路线 · 体验警告
   ========================================================= */
.rhead-body{padding-top:0;border-bottom:1px solid var(--line);margin-bottom:14px}

.route-alert,
.grim-alert{
  position:relative;margin-bottom:14px;padding:14px 13px 12px;border-radius:12px;
  background:linear-gradient(135deg,rgba(122,28,28,.52),rgba(66,14,18,.44));
  border:1.5px solid rgba(255,110,110,.46);
  box-shadow:0 0 0 1px rgba(255,90,90,.08) inset, 0 8px 26px rgba(120,20,20,.28);
  overflow:hidden;color:#f2dede;
}
.route-alert::before,
.grim-alert::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:repeating-linear-gradient(45deg,rgba(255,120,120,.05) 0 8px,transparent 8px 16px);
}
.ra-top{display:flex;align-items:center;gap:9px;margin-bottom:9px;position:relative}
.ra-top svg{width:24px;height:24px;flex:0 0 24px;color:#ff8a8a;
  filter:drop-shadow(0 0 8px rgba(255,90,90,.5))}
.ra-top b{font-size:13.5px;font-weight:700;color:#ffb3b3;letter-spacing:.08em;line-height:1.4}
.ra-body{position:relative;font-size:10.8px;line-height:1.8;letter-spacing:.02em}
.ra-body b{color:#ffdada;font-weight:600}
.ra-lead{color:#f4e2e2;margin:0 0 9px}
.ra-list{margin:0 0 9px;padding-left:0;list-style:none}
.ra-list li{position:relative;padding-left:12px;margin-bottom:5px;color:#f0d6d6}
.ra-list li::before{content:"";position:absolute;left:2px;top:.62em;width:4px;height:4px;
  border-radius:50%;background:#ff9a9a;box-shadow:0 0 6px rgba(255,120,120,.7)}
.ra-tail{margin:0;padding-top:8px;border-top:1px dashed rgba(255,130,130,.28);color:#eec6c6}

/* 警告框内行内代码：用等宽字体区分 0/O */
.ra-body code{font-family:"JetBrains Mono",Consolas,monospace;font-size:10px;
  padding:1px 4px;border-radius:3px;background:rgba(255,190,190,.14);
  color:#ffdede;letter-spacing:.02em;white-space:nowrap}

/* =========================================================
   剧透遮罩（覆盖侧栏内容区，确认后才渲染内容）
   ========================================================= */
.spoil-gate{
  position:absolute;inset:0;z-index:30;
  display:flex;align-items:flex-start;justify-content:center;
  padding:18px 14px;overflow-y:auto;
  background:
    repeating-linear-gradient(45deg,rgba(255,120,120,.045) 0 10px,transparent 10px 20px),
    linear-gradient(160deg,rgba(46,10,13,.985),rgba(22,8,11,.99));
  backdrop-filter:blur(2px);
  animation:sgIn .18s ease-out;
}
.spoil-gate[hidden]{display:none}
@keyframes sgIn{from{opacity:0}to{opacity:1}}

.sg-inner{
  width:100%;max-width:360px;padding:22px 18px 16px;border-radius:14px;
  background:linear-gradient(150deg,rgba(122,28,28,.42),rgba(58,12,16,.5));
  border:1.5px solid rgba(255,110,110,.5);
  box-shadow:0 0 0 1px rgba(255,90,90,.1) inset, 0 18px 48px rgba(90,12,12,.5);
  text-align:center;color:#f2dede;
}
.sg-icon svg{width:56px;height:56px;display:inline-block;color:#ff8a8a;
  filter:drop-shadow(0 0 14px rgba(255,90,90,.55));margin-bottom:10px}
.sg-title{font-size:16px;font-weight:700;color:#ffb9b9;letter-spacing:.06em;line-height:1.5;margin-bottom:5px}
.sg-sub{font-family:"Inter",system-ui,sans-serif;font-size:8.5px;letter-spacing:.2em;
  color:rgba(255,170,170,.5);margin-bottom:16px}

.sg-body{text-align:left;font-size:11px;line-height:1.85;letter-spacing:.02em}
.sg-body p{margin:0 0 11px;color:#f4e2e2}
.sg-body b{color:#ffdada;font-weight:600}
.sg-body ul{list-style:none;margin:0 0 4px;padding:0}
.sg-body li{position:relative;padding-left:13px;margin-bottom:7px;color:#efd4d4}
.sg-body li::before{content:"";position:absolute;left:2px;top:.65em;width:5px;height:5px;
  border-radius:50%;background:#ff9a9a;box-shadow:0 0 7px rgba(255,120,120,.75)}

.sg-acts{display:flex;flex-direction:column;gap:8px;margin-top:18px}
.sg-ok,.sg-back{border-radius:9px;padding:11px 10px;font-size:11.5px;letter-spacing:.05em;
  transition:.16s;cursor:pointer}
.sg-back{background:rgba(255,255,255,.06);color:#e6cfcf;border:1px solid rgba(255,150,150,.22)}
.sg-back:hover{background:rgba(255,255,255,.1);color:#fff}
.sg-ok{background:linear-gradient(180deg,#c94a4a,#9b2f34);color:#fff5f5;font-weight:600;
  border:1px solid rgba(255,130,130,.5);box-shadow:0 4px 16px rgba(160,40,40,.35)}
.sg-ok:hover{background:linear-gradient(180deg,#dc5c5c,#ae363c);transform:translateY(-1px)}

.sg-foot{margin-top:12px;font-size:9px;color:rgba(255,180,180,.42);letter-spacing:.04em;line-height:1.6}

/* =========================================================
   说明 / 关于 · 长文档弹窗
   ========================================================= */
.doc-card{width:min(760px,calc(100vw - 40px))!important;
  max-height:min(86vh,900px);display:flex;flex-direction:column;padding:0;overflow:hidden}
.doc-head{padding:20px 24px 14px;border-bottom:1px solid var(--line);flex:0 0 auto}
.doc-head h3{font-size:16px;letter-spacing:.05em;margin-bottom:5px}
.doc-head p{font-size:11px;line-height:1.75;color:var(--ink-faint);margin:0}
.doc-body{flex:1;min-height:0;overflow-y:auto;padding:20px 26px 8px;
  scrollbar-width:thin;font-size:12.8px;line-height:1.95;color:var(--ink-dim)}
.doc-body::-webkit-scrollbar{width:9px}
.doc-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:9px}

.doc-body h4{font-size:13.5px;color:var(--gold);letter-spacing:.1em;margin:22px 0 10px;
  padding-left:9px;border-left:2.5px solid var(--gold-dim);font-weight:600}
.doc-body h4:first-child{margin-top:2px}
.doc-body p{margin:0 0 10px}
.doc-body b{color:var(--ink);font-weight:600}
.doc-body code{font-family:"JetBrains Mono",Consolas,monospace;font-size:10.5px;
  padding:1px 5px;border-radius:4px;background:rgba(127,224,200,.1);color:#9fe6d4}

.doc-list{list-style:none;margin:0 0 10px;padding:0}
.doc-list li{position:relative;padding-left:15px;margin-bottom:7px}
.doc-list li::before{content:"";position:absolute;left:3px;top:.72em;width:4.5px;height:4.5px;
  border-radius:50%;background:var(--gold-dim)}
.doc-note{font-size:11px;color:#e8c26a;background:rgba(232,194,106,.07);
  border:1px solid rgba(232,194,106,.2);border-radius:7px;padding:7px 10px;margin-bottom:4px!important}

.doc-keys{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.doc-keys span{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:var(--ink-faint);
  background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:6px;padding:4px 8px}
.doc-keys i{font-style:normal;font-family:"Inter",system-ui,sans-serif;font-size:10px;
  color:var(--ink);background:rgba(255,255,255,.09);border-radius:4px;padding:1px 5px;min-width:16px;text-align:center}

/* 免责 / AI 声明块 */
.doc-disc{padding:12px 14px;border-radius:10px;margin-bottom:6px;
  background:rgba(232,194,106,.05);border:1px solid rgba(232,194,106,.18)}
.doc-disc .dd-title{font-size:11px;color:#e8c26a;letter-spacing:.14em;font-weight:600;margin-bottom:8px}
.doc-disc p{font-size:12px;line-height:1.9;margin-bottom:9px}
.doc-disc p:last-child{margin-bottom:0}

.doc-ai{padding:12px 14px;border-radius:10px;margin-bottom:6px;
  background:rgba(127,224,200,.06);border:1px solid rgba(127,224,200,.22)}
.doc-ai p{font-size:12px;line-height:1.9}
.doc-ai b{color:#a6e8d8}

.doc-table{width:100%;border-collapse:collapse;margin:8px 0 12px;font-size:11px}
.doc-table th{text-align:left;font-weight:600;color:var(--ink-faint);font-size:10px;letter-spacing:.08em;
  padding:6px 8px;border-bottom:1px solid var(--line-strong)}
.doc-table td{padding:7px 8px;border-bottom:1px solid var(--line);line-height:1.7;vertical-align:top}
.doc-table tr:last-child td{border-bottom:none}
.doc-table td:first-child{white-space:nowrap;color:var(--ink)}
.doc-table b.ok{color:#8fce9a}
.doc-table b.mid{color:#e9c98c}
.doc-table b.warn{color:#e0a97a}

.doc-log .dl-row{display:flex;gap:10px;align-items:baseline;font-size:11.5px;
  padding:8px 0;border-bottom:1px dashed var(--line)}
.doc-log .dl-row b{color:var(--gold);font-family:"Inter",system-ui,sans-serif;flex:0 0 auto}
.doc-log .dl-row span{color:var(--ink-faint);font-size:10.5px;flex:0 0 auto}
.doc-log .dl-row em{font-style:normal;flex:1;min-width:0;line-height:1.75}

@media (max-width:820px){
  .doc-card{max-height:92vh}
  .doc-head{padding:16px 16px 12px}
  .doc-body{padding:14px 16px 4px}
  .doc-body{font-size:11.5px}
}
