/* Player guide. Styles stay scoped to the redesigned reading area. */
html { overflow-x: clip; }
#ZhuangBei.player-guide { --ink:#233c59; --muted:#657387; --line:#dce3ea; --blue:#335b83; --gold:#a77b39; min-width:0; padding:52px 0 76px; color:var(--ink); background:linear-gradient(180deg,#3b5685 0%,#2d456b 100%); font-size:15px; line-height:1.75; }
.player-guide *, .player-guide *::before, .player-guide *::after { box-sizing:border-box; }
.guide-shell { width:calc(100% - 128px); max-width:1180px; margin:auto; }
.guide-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:28px; color:#fff; }
.guide-kicker { display:flex; align-items:center; gap:10px; color:#e2c998; font-size:13px; letter-spacing:3px; margin-bottom:10px; }
.guide-kicker > span { width:22px; height:1px; background:#dfc187; }
.guide-heading h2 { font-size:36px; line-height:1.4; letter-spacing:2px; font-weight:700; }
.guide-heading h2 > span { margin-left:14px; font-size:25px; font-weight:400; color:#d5e1ef; }
.guide-intro { margin-top:12px; color:#d5e1ef; font-size:15px; }
.guide-stamp { display:flex; align-items:center; gap:15px; padding-left:24px; border-left:1px solid #7187a8; color:#e6d2a8; flex-shrink:0; }
.guide-stamp > span { font:54px/1 Georgia,serif; }
.guide-stamp p { font-size:12px; line-height:1.9; letter-spacing:2px; }
.guide-facts { display:grid; grid-template-columns:repeat(4,1fr); margin-bottom:28px; border:1px solid #8395b055; background:#253e6259; border-radius:10px; padding:22px 0; color:#fff; }
.guide-facts > div { padding:0 28px; border-right:1px solid #8395b055; }
.guide-facts > div:last-child { border:0; }
.fact-label { font-size:13px; color:#d8e2ef; }
.guide-facts strong { display:block; font:600 36px/1.4 Georgia,'Microsoft YaHei',serif; color:#f5dfb5; }
.guide-facts small { margin-left:6px; font:14px 'Microsoft YaHei',sans-serif; }
.guide-facts p { font-size:12px; color:#d1ddeb; margin-top:4px; }
.guide-book { border:1px solid #e0e5eb; background:#f6f8fb; border-radius:12px; box-shadow:0 14px 45px #152d4b29; }
.guide-nav { display:grid; grid-template-columns:repeat(4,1fr); padding:0 26px; background:#fff; border-bottom:1px solid var(--line); border-radius:12px 12px 0 0; position:sticky; top:0; z-index:20; }
.guide-nav a { position:relative; text-align:center; padding:21px 8px; color:#68778a; font-size:16px; font-weight:700; transition:color .18s,background .18s; }
.guide-nav a span { font:12px Georgia,serif; color:#8e9cac; margin-right:10px; }
.guide-nav a:hover { background:#f1f5f9; color:var(--ink); }
.guide-nav a.is-active { color:var(--ink); }
.guide-nav a.is-active::after { content:''; position:absolute; height:3px; background:var(--gold); bottom:-1px; left:22%; right:22%; }
.guide-nav a.is-active span { color:var(--gold); }
.guide-content { padding:30px; }
.guide-panel { scroll-margin-top:90px; }
.guide-panel + .guide-panel { margin-top:44px; }
.player-guide.is-enhanced .guide-panel { margin:0; }
.player-guide [hidden] { display:none !important; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:24px; }
.guide-eyebrow { font-size:12px; font-weight:500; color:var(--muted); letter-spacing:1px; }
.panel-heading h3 { margin-top:3px; font-size:24px; line-height:1.5; }
.panel-hint { color:var(--muted); font-size:12px; text-align:right; }
.guide-chip { display:inline-block; font-size:11px; line-height:1.8; padding:2px 9px; border-radius:4px; background:#edf2f7; color:#526d89; white-space:nowrap; font-weight:400; }
.guide-chip.gold { background:#efe4cd; color:#805a25; }
.gear-route { background:#fff; border:1px solid #d7dfe8; border-top:3px solid #b59156; border-radius:8px; margin-bottom:18px; }
.route-heading { padding:22px 24px 0; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.route-heading h4 { font-size:19px; }
.route-heading p { font-size:13px; color:var(--muted); margin-left:auto; }
.route-steps { display:grid; grid-template-columns:repeat(3,1fr); padding:28px 24px; gap:32px; }
.route-steps li { display:flex; align-items:flex-start; gap:14px; position:relative; }
.route-steps li:not(:last-child)::after { content:'→'; color:#a8b6c5; position:absolute; right:0; top:14px; font-size:22px; }
.route-steps li > span { display:flex; align-items:center; justify-content:center; width:42px; height:42px; flex-shrink:0; border:1px solid #d6e0eb; border-radius:50%; background:#f4f7fb; color:#6a7f97; font:18px Georgia,serif; }
.route-steps h5 { font-size:16px; margin-bottom:5px; }
.route-steps p { font-size:13px; color:var(--muted); }
.route-steps strong { color:var(--ink); font-weight:600; }
.gear-route footer { border-top:1px solid #e5e9ef; padding:13px 24px; display:flex; align-items:center; justify-content:space-between; gap:18px; background:#f9fafc; border-radius:0 0 8px 8px; font-size:13px; }
.gear-route footer b { margin-right:10px; font-weight:600; }
.player-guide a { color:#335e87; }
.gear-route footer a { flex-shrink:0; }
.gear-route footer a:hover, .gear-card > a:hover { color:#8c642d; text-decoration:underline; }
.gear-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.gear-card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:22px 24px; display:flex; flex-direction:column; align-items:flex-start; }
.gear-card header { display:flex; align-items:center; gap:10px; width:100%; margin-bottom:14px; }
.guide-icon { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:6px; font:24px/1 Georgia,serif; background:#edf2f7; color:#527392; }
.gear-card h4 { font-size:18px; }
.gear-card header .guide-chip { margin-left:auto; }
.gear-card > p { color:var(--muted); font-size:13px; }
.gear-card > p.card-lead { color:var(--ink); font-size:15px; font-weight:600; margin-bottom:7px; }
.gear-card .card-note { margin-top:12px; font-size:12px; color:#876431; padding-top:10px; border-top:1px dashed #e4dfd5; width:100%; }
.gear-card > a { margin-top:auto; padding-top:14px; font-size:13px; font-weight:600; }
.gear-card > a span { margin-left:7px; }
.guide-note { display:flex; gap:12px; padding:15px 18px; background:#eaf0f6; border:1px solid #dbe4ed; border-radius:6px; margin-top:22px; font-size:12px; color:#5a6e84; }
.guide-note > span { display:flex; width:18px; height:18px; justify-content:center; align-items:center; flex-shrink:0; border:1px solid #8096ac; border-radius:50%; margin-top:2px; font:12px Georgia,serif; }
.guide-note b { color:var(--ink); margin-right:8px; font-weight:600; }
.school-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.school-card { padding:24px; background:white; border:1px solid var(--line); border-radius:8px; }
.school-card header { display:flex; align-items:center; gap:14px; padding-bottom:18px; border-bottom:1px solid #e8edf2; }
.school-seal { width:45px; height:45px; border:1px solid #b5a17f; color:#8e7040; display:grid; place-items:center; font:22px 'KaiTi','STKaiti',serif; border-radius:8px 2px; background:#fbf8f0; }
.school-card h4 { font-size:19px; }
.school-card header p { font-size:12px; color:var(--muted); }
.school-card header .guide-chip { margin-left:auto; }
.school-card dl > div { margin-top:16px; }
.school-card dt { font-size:14px; font-weight:600; }
.school-card dd { color:var(--muted); font-size:13px; margin-top:3px; }
.school-card dd strong { color:#2e6c73; font-weight:600; }
.school-card del { color:#8794a3; margin-right:5px; }
.loot-controls { margin-bottom:20px; }
.loot-controls > label { display:block; font-size:13px; font-weight:600; margin-bottom:8px; }
.loot-search-box { display:flex; align-items:center; gap:12px; border:1px solid #b8c7d7; background:white; border-radius:6px; padding:7px 9px 7px 16px; }
.loot-search-box:focus-within { outline:2px solid #557aa1; outline-offset:2px; }
.loot-search-box svg { width:20px; height:20px; fill:none; stroke:#607c98; stroke-width:1.7; flex-shrink:0; }
.loot-search-box input { border:0; background:none; outline:none; min-width:0; flex:1; height:36px; font:14px 'Microsoft YaHei',sans-serif; color:var(--ink); }
.loot-search-box input::placeholder { color:#7c8a9c; }
.player-guide button { font:13px 'Microsoft YaHei',sans-serif; cursor:pointer; }
.loot-search-box button { background:#eef3f8; border:0; color:#4c6682; padding:9px 15px; border-radius:4px; }
.loot-popular { display:flex; align-items:center; flex-wrap:wrap; gap:9px; padding:14px 0 18px; font-size:12px; color:var(--muted); }
.loot-popular button { padding:3px 10px; border:1px solid #d7e0e9; border-radius:4px; color:#57708b; background:#fff; font-size:12px; }
.loot-popular button:hover, .loot-popular button[aria-pressed="true"] { background:#e7eef6; border-color:#839ab3; color:#2c4f73; }
.loot-filters { display:flex; gap:6px; flex-wrap:wrap; padding-bottom:14px; border-bottom:1px solid var(--line); }
.loot-filters button { border:1px solid transparent; border-radius:5px; background:none; color:var(--muted); padding:8px 15px; }
.loot-filters button:hover { background:#e8eef5; }
.loot-filters button[aria-pressed="true"] { background:#304f72; color:white; }
#loot-status { margin-top:14px; font-size:12px; color:var(--muted); }
.loot-table-heading { display:grid; grid-template-columns:34% 66%; padding:10px 22px; background:#e8eef5; font-size:12px; color:#526d89; border-radius:6px 6px 0 0; }
#loot-results { background:#fff; border:1px solid var(--line); border-top:0; border-radius:0 0 6px 6px; }
.loot-row { display:grid; grid-template-columns:34% 66%; padding:20px 22px; gap:0; border-bottom:1px solid #e5eaf0; }
.loot-row:last-child { border-bottom:0; }
.loot-source { padding-right:24px; }
.loot-source h4 { font-size:14px; font-weight:600; margin:3px 0; line-height:1.7; }
.loot-source h4 small { display:block; font-size:12px; font-weight:400; color:var(--muted); }
.loot-tags { display:flex; flex-wrap:wrap; gap:7px; }
.loot-tag { font-size:12px; padding:3px 10px; background:#f0f3f7; border-radius:4px; color:#62758c; }
.loot-tag.is-key { background:#f6efe1; color:#86652f; }
.player-guide details > summary { cursor:pointer; font-size:12px; color:#4b7094; width:fit-content; padding:5px 0; }
.player-guide details > summary:hover { color:#89632e; }
.source-details p { font-size:12px; color:var(--muted); margin-top:5px; padding:8px; background:#f5f7fa; }
.loot-details { margin-top:6px; }
.loot-details summary span { margin-left:5px; color:var(--muted); font-size:11px; }
.loot-all { display:flex; flex-wrap:wrap; gap:5px 14px; padding:10px 0 0; font-size:12px; color:#586c82; }
.loot-all > span::before { content:'·'; margin-right:5px; color:#a4b1bf; }
.loot-empty { padding:44px 15px; background:#fff; text-align:center; border:1px solid var(--line); border-radius:6px; }
.loot-empty > span { font-size:36px; color:#8fa3ba; }
.loot-empty h4 { font-size:17px; }
.loot-empty p { color:var(--muted); font-size:13px; margin:8px 0 16px; }
.loot-empty button { border:0; border-radius:4px; background:#335b83; color:#fff; padding:10px 16px; }
.benefit-grid { display:grid; grid-template-columns:1fr 1fr 1.3fr; gap:16px; }
.benefit-card { border:1px solid var(--line); border-radius:8px; background:#fff; padding:24px 22px; }
.benefit-card h4 { font:700 30px/1.6 Georgia,'Microsoft YaHei',serif; color:#365d83; margin:8px 0; }
.benefit-card small { font:13px 'Microsoft YaHei',sans-serif; }
.benefit-card p { color:var(--muted); font-size:13px; }
.benefit-card.gold { background:#fcf9f1; border-color:#e7dcc3; }
.benefit-card.gold h4 { color:#89662d; }
.event-list { margin-top:22px; padding:24px; background:#fff; border:1px solid var(--line); border-radius:8px; }
.event-list h4 { font-size:17px; margin-bottom:14px; }
.event-list > div { display:flex; flex-wrap:wrap; gap:10px; }
.event-list > div span { border:1px solid #dce4ed; border-radius:4px; padding:8px 14px; font-size:13px; background:#f7f9fb; }
.event-list p { font-size:12px; color:var(--muted); margin-top:16px; }
.guide-footer { display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--line); padding:18px 30px; font-size:12px; color:#708196; }
.guide-footer a { font-weight:600; }
.player-guide :is(a,button,summary):focus-visible { outline:2px solid #4c729b; outline-offset:4px; border-radius:3px; }
/* Keep the legacy contact rail usable while it is folded beside the guide. */
#kf.guide-contact-managed { top:50%; margin-top:-280px; }
#kf.guide-contact-managed > .btn-close { display:none; }
#kf.guide-contact-managed.guide-collapsed { right:-208px; }
.guide-contact-toggle { position:absolute; right:100%; top:230px; width:38px; padding:13px 9px; background:#243f60; border:1px solid #a7b7ca; border-right:0; border-radius:7px 0 0 7px; color:white; font:13px/1.6 'Microsoft YaHei',sans-serif; cursor:pointer; box-shadow:-4px 3px 12px #142c4533; }
.guide-contact-toggle:focus-visible { outline:2px solid #e1c38e; outline-offset:2px; }
@media (max-width:1000px) {
  .guide-shell { width:calc(100% - 88px); }
  .guide-content { padding:24px; }
  .guide-heading h2 { font-size:30px; }
  .guide-heading h2 > span { font-size:22px; }
  .guide-stamp { display:none; }
  .guide-facts > div { padding:0 18px; }
  .panel-heading { display:block; }
  .panel-hint { display:block; margin-top:8px; text-align:left; }
  .route-heading p { width:100%; margin:0; }
  .route-steps { gap:18px; }
  .route-steps li { gap:9px; }
  .route-steps li > span { width:30px; height:30px; font-size:14px; }
  .route-steps li:not(:last-child)::after { display:none; }
  .benefit-grid { grid-template-columns:1fr 1fr; }
  .benefit-card.gold { grid-column:1/-1; }
}
@media (max-width:680px) {
  #ZhuangBei.player-guide { padding:32px 0 45px; }
  .guide-shell { width:auto; margin:0 48px 0 16px; }
  .guide-heading { margin-bottom:20px; }
  .guide-kicker { font-size:11px; letter-spacing:2px; }
  .guide-heading h2 { font-size:28px; letter-spacing:1px; }
  .guide-heading h2 > span { display:block; margin:3px 0 0; font-size:20px; }
  .guide-intro { font-size:13px; }
  .guide-facts { grid-template-columns:1fr 1fr; padding:0; margin-bottom:20px; }
  .guide-facts > div { padding:15px 16px; }
  .guide-facts > div:nth-child(2) { border-right:0; }
  .guide-facts > div:nth-child(-n+2) { border-bottom:1px solid #8395b055; }
  .guide-facts strong { font-size:30px; }
  .guide-facts p { font-size:11px; }
  .guide-nav { padding:0 8px; }
  .guide-nav a { padding:15px 3px; font-size:13px; }
  .guide-nav a span { display:none; }
  .guide-nav a.is-active::after { left:12%; right:12%; }
  .guide-content { padding:21px 16px; }
  .panel-heading { margin-bottom:18px; }
  .panel-heading h3 { font-size:20px; }
  .gear-grid, .school-grid, .benefit-grid { grid-template-columns:1fr; gap:14px; }
  .route-heading { padding:18px 16px 0; gap:8px; }
  .route-steps { grid-template-columns:1fr; padding:20px 16px; gap:18px; }
  .route-steps li { gap:14px; }
  .route-steps li > span { width:34px; height:34px; }
  .route-steps p br { display:none; }
  .route-steps p strong { margin-left:6px; }
  .gear-route footer { padding:13px 16px; display:block; }
  .gear-route footer a { display:inline-block; margin-top:9px; }
  .gear-card, .school-card, .benefit-card { padding:18px 16px; }
  .gear-card h4 { font-size:17px; }
  .guide-note { padding:13px 12px; }
  .guide-note b { display:block; }
  .loot-search-box { padding-left:10px; gap:7px; }
  .loot-search-box svg { width:17px; }
  .loot-search-box input { font-size:12px; }
  .loot-search-box button { padding:8px 9px; font-size:12px; }
  .loot-filters button { font-size:12px; padding:7px 9px; }
  .loot-table-heading { display:none; }
  #loot-results { border-top:1px solid var(--line); border-radius:6px; }
  .loot-row { grid-template-columns:1fr; gap:12px; padding:18px 16px; }
  .loot-source { padding-right:0; }
  .loot-source h4 small { display:inline; margin-left:6px; }
  .event-list { padding:18px 16px; }
  .guide-footer { padding:16px; flex-direction:column; gap:8px; }
}
@media (prefers-reduced-motion:reduce) {
  .guide-nav a, #kf.guide-contact-managed { transition:none; }
}
