/* GearInsight v2 — Dark gaming theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #07070f;
  --s1:       #0d0d1c;
  --s2:       #13132a;
  --s3:       #1a1a35;
  --border:   rgba(255 255 255 / .07);
  --bhl:      rgba(200 168 75 / .5);
  --gold:     #c8a84b;
  --goldb:    #e8c86a;
  --text:     #d0d0e8;
  --text2:    #7878a8;
  --text3:    #404068;
  --r:        10px;
  --rlg:      18px;
  --mw:       1200px;
  --cc:       #c8a84b;   /* class color, overridden per-page */
  /* WoW quality */
  --q2:#1eff00; --q3:#0070dd; --q4:#a335ee; --q5:#ff8000;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.gi-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,15,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.gi-nav-inner {
  max-width: 1400px; margin: 0 auto;   /* 别跟正文共用 --mw(1200)：EN 七个导航词不带徽就 1200px 贴边。正文窄是为了读，导航宽是为了装 */
  padding: 0 24px;
  display: flex; align-items: center; gap: 8px; height: 60px;
}
.gi-logo {
  font-size: 17px; font-weight: 800; letter-spacing: -.3px;
  background: linear-gradient(135deg, var(--goldb), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 8px; white-space: nowrap;
}
/* 导航 logo：用插件本体的图标替掉原来的 ⚔ 符号（用户 2026-08-27）。
   ⭐ 只改这一处 —— 全站 29 个模板共用 .gi-logo，改 CSS 比改 29 个模板可靠得多。 */
.gi-logo { display: inline-flex; align-items: center; gap: 8px; }
.gi-logo::before {
  content: ''; width: 24px; height: 24px; flex: none;
  background: url('/static/img/logo-256.png') center/cover no-repeat;
  border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.gi-nav-link {
  font-size: 14px; font-weight: 500; color: var(--text2);
  padding: 6px 12px; border-radius: 7px;
  transition: color .15s, background .15s;
}
.gi-nav-link:hover { color: var(--text); background: rgba(255 255 255 / .05); }
.gi-nav-link.active { color: var(--gold); }
.gi-spacer { flex: 1; }

/* Language switcher */
.gi-lang { position: relative; }
.gi-lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text2);
  transition: border-color .15s, color .15s;
}
.gi-lang-btn:hover { border-color: var(--bhl); color: var(--text); }
.gi-lang-btn svg { flex-shrink: 0; }
.gi-lang-drop {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--s2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 6px;
  box-shadow: 0 16px 48px rgba(0 0 0 / .6);
  min-width: 170px; z-index: 200;
  display: none;
}
.gi-lang-drop.open { display: block; }
.gi-lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 12px; border: none;
  background: transparent; border-radius: 7px;
  font-size: 13px; color: var(--text2); cursor: pointer;
  transition: background .1s, color .1s;
}
.gi-lang-opt:hover { background: var(--s3); color: var(--text); }
.gi-lang-opt.active { color: var(--gold); }

/* ── Hero section (index only) ───────────────────────────────────────────── */
.gi-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% -10%,
    rgba(100 50 180 / .35) 0%, transparent 65%),
    linear-gradient(180deg, #0e0b20 0%, var(--bg) 100%);
  padding: 96px 24px 80px;
  text-align: center;
}
.gi-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255 255 255 / .5) 0%, transparent 0%),
    radial-gradient(1px 1px at 60% 50%, rgba(255 255 255 / .35) 0%, transparent 0%),
    radial-gradient(1px 1px at 80% 20%, rgba(255 255 255 / .4) 0%, transparent 0%),
    radial-gradient(1px 1px at 40% 70%, rgba(255 255 255 / .3) 0%, transparent 0%),
    radial-gradient(1px 1px at 75% 80%, rgba(255 255 255 / .25) 0%, transparent 0%);
  pointer-events: none;
}
.gi-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); background: rgba(200 168 75 / .12);
  border: 1px solid rgba(200 168 75 / .25);
  border-radius: 100px; padding: 4px 14px; margin-bottom: 24px;
}
.gi-hero h1 {
  font-size: clamp(32px, 6vw, 60px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.02em;
  background: linear-gradient(160deg, #fff 30%, rgba(208,208,240,.6));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 20px;
}
.gi-hero-sub {
  font-size: 17px; color: var(--text2); max-width: 560px; margin: 0 auto 36px;
}
.gi-hero-sub strong { color: var(--text); }
.gi-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), #a07828);
  color: #07070f; font-weight: 700; font-size: 15px;
  padding: 13px 28px; border-radius: 10px;
  box-shadow: 0 0 32px rgba(200 168 75 / .3);
  transition: transform .15s, box-shadow .15s;
}
.gi-hero-cta:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(200 168 75 / .45); }

/* ── Class grid (index) ──────────────────────────────────────────────────── */
.gi-specs { max-width: var(--mw); margin: 0 auto; padding: 48px 24px 80px; }
.gi-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.gi-class-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--rlg); padding: 20px 22px;
  transition: border-color .2s;
}
.gi-class-card:hover { border-color: rgba(var(--cc-r, 200), var(--cc-g, 168), var(--cc-b, 75), .4); }
.gi-class-name {
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.gi-class-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
  transition: box-shadow .2s, transform .2s;
}
.gi-class-card:hover .gi-class-icon {
  box-shadow: 0 0 16px var(--cc);
  transform: scale(1.08);
}
.gi-spec-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.gi-spec-pill {
  font-size: 13px; font-weight: 500; color: var(--text2);
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s, border-color .15s, background .15s;
}
.gi-spec-icon {
  width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0;
  opacity: .8; transition: opacity .15s;
}
.gi-spec-pill:hover .gi-spec-icon { opacity: 1; }
.gi-spec-pill:hover {
  color: var(--cc); border-color: var(--cc);
  background: rgba(0 0 0 / .2);
}

/* ── Page wrap ───────────────────────────────────────────────────────────── */
.gi-wrap { max-width: var(--mw); margin: 0 auto; padding: 40px 24px 80px; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.gi-crumbs {
  font-size: 13px; color: var(--text3); margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.gi-crumbs a { color: var(--text2); transition: color .15s; }
.gi-crumbs a:hover { color: var(--gold); }
.gi-crumbs-sep { color: var(--text3); }

/* ── Spec hero banner (BiS page) ─────────────────────────────────────────── */
.gi-spec-hero {
  background: linear-gradient(135deg,
    rgba(var(--cc-r,100),var(--cc-g,80),var(--cc-b,60),.12) 0%,
    rgba(0,0,0,0) 60%),
    var(--s1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cc);
  border-radius: var(--rlg); padding: 28px 32px; margin-bottom: 32px;
}
.gi-spec-hero h1 {
  font-size: 28px; font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 8px; color: #fff;
}
.gi-spec-hero .gi-lede { font-size: 15px; color: var(--text2); max-width: 680px; }
.gi-spec-hero .gi-lede strong { color: var(--text); }
.gi-spec-meta {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.gi-badge {
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(255 255 255 / .07); border: 1px solid var(--border);
  color: var(--text2);
}
.gi-badge.gold { background: rgba(200 168 75 / .15); border-color: rgba(200 168 75 / .3); color: var(--gold); }

/* ── Hero talent tabs ────────────────────────────────────────────────────── */
.gi-hero-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.gi-hero-tab-label { font-size: 13px; color: var(--text2); align-self: center; margin-right: 4px; }
.gi-hero-tab {
  font-size: 13px; font-weight: 600; color: var(--text2);
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 16px; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.gi-hero-tab:hover { color: var(--gold); border-color: var(--bhl); }

/* ── Slot grid ───────────────────────────────────────────────────────────── */
.gi-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px; margin-bottom: 40px;
}
.gi-slot-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.gi-slot-card:hover {
  border-color: var(--bhl); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0 0 0 / .3);
}
.gi-slot-head {
  padding: 11px 16px;
  background: linear-gradient(90deg, rgba(255 255 255 / .04), transparent);
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text2);
}
.gi-cand-list { list-style: none; padding: 0; }
.gi-cand { display: flex; flex-direction: column; padding: 11px 16px; gap: 5px; border-bottom: 1px solid rgba(255 255 255 / .04); }
.gi-cand:last-child { border-bottom: none; }
.gi-cand-top { display: flex; align-items: center; gap: 8px; }
.gi-rank {
  font-size: 11px; font-weight: 700; min-width: 20px;
  text-align: center; color: var(--text3);
}
.gi-rank.r1 { color: var(--gold); }
.gi-rank.r2 { color: #a8a8b8; }
.gi-rank.r3 { color: #8a6040; }
.gi-cand a { font-size: 14px; font-weight: 500; transition: opacity .15s; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-cand a:hover { opacity: .8; }
.q2 { color: var(--q2); } .q3 { color: var(--q3); } .q4 { color: var(--q4); } .q5 { color: var(--q5); }
/* ⛔⛔ 这一行原来是 `display:flex` 但**没有 flex-wrap** —— 窄屏（手机）下所有
   子项被压到最小宽度，中文标签直接竖排成一列一个字（用户 2026-08-28 手机截图：
   「团本掉落」「装备」都成了竖条）。
   ✅ 允许换行 + 每个子项 nowrap：放不下就整块换行，⛔不许把字压成竖排。 */
.gi-cand-meta {
  display: flex; align-items: center; gap: 8px; padding-left: 28px;
  flex-wrap: wrap; row-gap: 4px;
}
.gi-cand-meta > * { white-space: nowrap; }
.gi-cand-ilvl { font-size: 11px; font-weight: 600; color: var(--text3); }
.gi-cand-src { font-size: 11px; color: var(--text3); }
/* 使用率推到行尾：换行布局下用 margin-left:auto 代替 flex:1 撑开 */
.gi-cand-meta .gi-usage-pct { margin-left: auto; }
.gi-usage-pct { font-size: 11px; font-weight: 600; color: var(--text2); }
.gi-usage-bar { height: 2px; background: var(--s3); border-radius: 1px; margin-left: 28px; margin-right: 0; overflow: hidden; }
.gi-usage-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--goldb)); border-radius: 1px; }

/* ── Analyzer CTA (BiS page) ─────────────────────────────────────────────── */
.gi-cta-box {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--rlg); padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.gi-cta-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.gi-cta-box p { font-size: 14px; color: var(--text2); }
.gi-cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--gold);
  background: rgba(200 168 75 / .1); border: 1px solid rgba(200 168 75 / .3);
  border-radius: 8px; padding: 10px 20px; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.gi-cta-link:hover { background: rgba(200 168 75 / .18); border-color: var(--bhl); }

/* ── Related links ───────────────────────────────────────────────────────── */
.gi-related { margin-bottom: 40px; }
.gi-related-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin-bottom: 12px; }
.gi-link-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.gi-rel-link {
  font-size: 13px; font-weight: 500; color: var(--text2);
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 12px;
  transition: color .15s, border-color .15s;
}
.gi-rel-link:hover { color: var(--gold); border-color: var(--bhl); }

/* ── Analyze page ────────────────────────────────────────────────────────── */
.gi-analyze-hero {
  text-align: center; padding: 60px 24px 40px;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(80 40 160 / .3) 0%, transparent 65%);
}
.gi-analyze-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.gi-analyze-hero .sub { font-size: 15px; color: var(--text2); }
.gi-analyze-hero .sub strong { color: var(--text); }
.gi-analyze-hero .sub code { font-family: ui-monospace, monospace; color: var(--gold); background: rgba(200 168 75 / .1); padding: 1px 6px; border-radius: 4px; }
.gi-form-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }
.gi-form-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--rlg); padding: 24px;
}
.gi-textarea {
  width: 100%; min-height: 100px;
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 13px;
  background: var(--s2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px 16px; resize: vertical;
  transition: border-color .15s;
  outline: none;
}
.gi-textarea:focus { border-color: rgba(200 168 75 / .5); }
.gi-analyze-btn {
  margin-top: 14px; width: 100%;
  background: linear-gradient(135deg, #b8902a, var(--gold));
  color: #07070f; font-weight: 700; font-size: 16px;
  border: none; border-radius: var(--r); padding: 14px;
  cursor: pointer; transition: opacity .15s, transform .15s;
  box-shadow: 0 4px 24px rgba(200 168 75 / .25);
}
.gi-analyze-btn:hover { opacity: .9; transform: translateY(-1px); }
.gi-analyze-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.gi-err { color: #f87171; font-size: 14px; margin-top: 12px; }
.gi-err-hint { color: var(--text2); font-size: 13px; margin-top: 8px; line-height: 1.5; }

/* No-addon character lookup */
.gi-noaddon-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0; color: var(--text2); font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em;
}
.gi-noaddon-divider::before, .gi-noaddon-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.gi-noaddon-card { padding: 22px 24px; }
.gi-noaddon-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.gi-noaddon-sub { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
.gi-lookup-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gi-lookup-region, .gi-lookup-input {
  background: var(--s2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px 14px; font-size: 14px; outline: none;
  transition: border-color .15s;
}
.gi-lookup-region:focus, .gi-lookup-input:focus { border-color: rgba(200 168 75 / .5); }
.gi-lookup-region { flex: 0 0 80px; }
.gi-lookup-input { flex: 1 1 160px; min-width: 0; }
.gi-lookup-btn { margin-top: 0; width: auto; flex: 0 0 auto; padding: 12px 22px; font-size: 14px; }
@media (max-width: 560px) { .gi-lookup-btn { width: 100%; flex-basis: 100%; } }

/* SEO intro + FAQ */
.gi-seo-block { max-width: 760px; margin: 0 auto; padding: 8px 24px 40px; }
.gi-seo-block h2 { font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.gi-seo-block p { font-size: 15px; color: var(--text2); line-height: 1.7; }
.gi-faq h3 { font-size: 15px; font-weight: 600; margin: 18px 0 6px; color: var(--text); }
.gi-faq p { font-size: 14px; }
.gi-farm-chip-link { text-decoration: none; cursor: pointer; transition: border-color .15s, transform .15s; }
.gi-farm-chip-link:hover { border-color: rgba(200 168 75 / .5); transform: translateY(-1px); }

/* Results */
.gi-results { margin-top: 32px; }
.gi-summary-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.gi-sum-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px;
}
.gi-sum-card .gi-sum-n { font-size: 32px; font-weight: 800; line-height: 1; }
.gi-sum-card .gi-sum-l { font-size: 12px; color: var(--text2); margin-top: 4px; }
.gi-sum-card.ok .gi-sum-n { color: #4ade80; }
.gi-sum-card.miss .gi-sum-n { color: #f87171; }
.gi-sum-card.gold .gi-sum-n { color: var(--gold); }
.gi-miss-title { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.gi-miss-table {
  width: 100%; border-collapse: collapse;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; font-size: 14px;
}
.gi-miss-table th {
  padding: 10px 14px; text-align: left;
  background: var(--s2); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text3);
  border-bottom: 1px solid var(--border);
}
.gi-miss-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255 255 255 / .04); vertical-align: middle; }
.gi-miss-table tr:last-child td { border-bottom: none; }
/* 来源列要装下「BOSS + 坯子」两行，别被挤成三行折行（2026-08-31） */
.gi-miss-table td:nth-child(5) { min-width: 190px; }
.gi-miss-table tr:hover td { background: rgba(255 255 255 / .02); }
.gi-rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
  background: var(--s3); color: var(--text3);
}
.gi-rank-badge.r1 { background: rgba(200 168 75 / .2); color: var(--gold); }
.gi-gap-badge {
  font-size: 12px; font-weight: 600; color: #f87171;
  background: rgba(248 113 113 / .1); border-radius: 6px; padding: 2px 8px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.gi-footer {
  background: var(--s1); border-top: 1px solid var(--border);
  padding: 24px; text-align: center;
  font-size: 13px; color: var(--text3);
}

/* ── Updated line ────────────────────────────────────────────────────────── */
.gi-updated { font-size: 12px; color: var(--text3); margin: 24px 0; }

/* ── Ad slot ─────────────────────────────────────────────────────────────── */
.gi-ad {
  min-height: 90px; border: 1px dashed var(--s3);
  border-radius: var(--r); margin: 28px 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text3);
}

/* ── Hero secondary links (index) ────────────────────────────────────────── */
.gi-hero-links { margin-top: 18px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.gi-hero-links a {
  font-size: 14px; font-weight: 600; color: var(--text2);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px;
  background: rgba(255 255 255 / .03); transition: color .15s, border-color .15s;
}
.gi-hero-links a:hover { color: var(--gold); border-color: var(--bhl); }

/* ── Generic content block (stats / gems / enchants / consumables) ───────── */
.gi-block {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px;
}
.gi-block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gi-block-head h3 { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text2); }
.gi-block-note { font-size: 12px; color: var(--text3); margin-top: 12px; }
.gi-block-note a { color: var(--gold); }
.gi-block-note a:hover { text-decoration: underline; }

/* Stat priority */
.gi-stat-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.gi-stat-tab {
  font-size: 12px; font-weight: 600; color: var(--text2);
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 12px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.gi-stat-tab:hover { color: var(--text); }
.gi-stat-tab.active { color: var(--gold); border-color: var(--bhl); background: rgba(200 168 75 / .1); }
.gi-stat-panel.hidden { display: none; }
.gi-stat-prio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.gi-stat-chip { font-size: 13px; font-weight: 700; color: var(--text); }
.gi-stat-gt { color: var(--text3); font-weight: 700; }
.gi-stat-bars { display: flex; flex-direction: column; gap: 8px; }
.gi-stat-row { display: grid; grid-template-columns: 130px 1fr 48px; align-items: center; gap: 12px; }
.gi-stat-name { font-size: 13px; color: var(--text2); }
.gi-stat-bar { height: 8px; background: var(--s3); border-radius: 4px; overflow: hidden; }
.gi-stat-fill { height: 100%; background: linear-gradient(90deg, var(--cc), var(--goldb)); border-radius: 4px; }
.gi-stat-val { font-size: 12px; font-weight: 600; color: var(--text2); text-align: right; }

/* Gems + enchants two-column */
.gi-ge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.gi-ge-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gi-ge-item { display: flex; align-items: center; gap: 10px; }
.gi-ge-icon { width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.gi-ge-name { font-size: 14px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-ge-pct { font-size: 12px; font-weight: 600; color: var(--text2); }
.gi-ench-row { display: flex; gap: 12px; align-items: baseline; }
.gi-ench-slot { font-size: 12px; font-weight: 700; color: var(--text3); min-width: 64px; text-transform: uppercase; letter-spacing: .04em; }
.gi-ench-opts { display: flex; flex-direction: column; gap: 3px; }
.gi-ench-opt { font-size: 13px; color: var(--text); }
.gi-ench-opt em { font-style: normal; color: var(--text3); font-size: 11px; }

/* Guide button */
.gi-guide-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--gold);
  background: rgba(200 168 75 / .1); border: 1px solid rgba(200 168 75 / .3);
  border-radius: 8px; padding: 9px 18px; margin-top: 4px;
  transition: background .15s, border-color .15s;
}
.gi-guide-btn:hover { background: rgba(200 168 75 / .18); border-color: var(--bhl); }

/* Consumables */
.gi-cons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gi-cons-cat-name { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.gi-cons-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gi-cons-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }

/* ── Tier list ───────────────────────────────────────────────────────────── */
.gi-tier-role { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.gi-tier-row { display: flex; gap: 14px; align-items: stretch; margin-bottom: 10px; }
.gi-tier-badge {
  flex-shrink: 0; width: 54px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #07070f;
  background: var(--tc); border-radius: var(--r);
}
.gi-tier-specs {
  flex: 1; display: flex; flex-wrap: wrap; gap: 8px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 12px;
}
.gi-tier-spec {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--s2); border: 1px solid var(--border);
  border-left: 3px solid var(--cc);
  border-radius: 7px; padding: 6px 12px;
  transition: border-color .15s, transform .15s;
}
.gi-tier-spec:hover { transform: translateY(-1px); border-color: var(--bhl); }
.gi-tier-spec-name { font-size: 13px; font-weight: 700; }
.gi-tier-spec-cls { font-size: 12px; color: var(--text2); }
.gi-tier-spec-pct { font-size: 11px; color: var(--text3); font-weight: 600; }

/* ── Loot tables ─────────────────────────────────────────────────────────── */
.gi-inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gi-inst-card {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--s1); border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r); padding: 16px 18px;
  transition: border-color .15s, transform .15s;
}
.gi-inst-card:hover { transform: translateY(-2px); border-color: var(--bhl); }
.gi-inst-name { font-size: 15px; font-weight: 700; color: #fff; }
.gi-inst-meta { font-size: 12px; color: var(--text2); }
.gi-boss-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.gi-loot-table { width: 100%; border-collapse: collapse; background: var(--s1); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.gi-loot-table th { padding: 10px 14px; text-align: left; background: var(--s2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid var(--border); }
.gi-loot-table td { padding: 9px 14px; border-bottom: 1px solid rgba(255 255 255 / .04); vertical-align: middle; }
.gi-loot-table tr:last-child td { border-bottom: none; }
.gi-loot-bis td { background: rgba(200 168 75 / .06); }
.gi-loot-bis td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.gi-loot-item { display: flex; align-items: center; gap: 10px; }
.gi-loot-item a { font-size: 14px; font-weight: 500; }
.gi-loot-slot { color: var(--text2); font-size: 13px; white-space: nowrap; }
.gi-loot-ilvl { color: var(--text3); font-weight: 600; font-size: 13px; }
.gi-loot-bisfor { display: flex; flex-wrap: wrap; gap: 5px; }
.gi-bis-tag {
  font-size: 11px; font-weight: 600; color: var(--text2);
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 8px; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.gi-bis-tag:hover { color: var(--gold); border-color: var(--bhl); }
.gi-loot-na { color: var(--text3); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gi-nav-link { display: none; }
  .gi-hero { padding: 64px 20px 56px; }
  .gi-specs { padding: 32px 16px 60px; }
  .gi-specs-grid { grid-template-columns: 1fr; }
  .gi-wrap { padding: 24px 16px 60px; }
  .gi-spec-hero { padding: 20px; }
  .gi-spec-hero h1 { font-size: 22px; }
  .gi-slot-grid { grid-template-columns: 1fr; }
  .gi-cta-box { flex-direction: column; align-items: flex-start; }
  .gi-analyze-hero { padding: 40px 16px 28px; }
  .gi-analyze-hero h1 { font-size: 28px; }
  .gi-form-wrap { padding: 0 16px 60px; }
  .gi-miss-table { font-size: 13px; }
  .gi-miss-table th, .gi-miss-table td { padding: 8px 10px; }
  .gi-ge-grid { grid-template-columns: 1fr; }
  .gi-stat-row { grid-template-columns: 100px 1fr 42px; gap: 8px; }
  .gi-tier-badge { width: 44px; font-size: 20px; }
  .gi-loot-table { font-size: 13px; }
  .gi-loot-table th, .gi-loot-table td { padding: 7px 9px; }
}

@media (max-width: 480px) {
  .gi-nav-inner { padding: 0 16px; }
  .gi-logo { font-size: 15px; }
  .gi-lang-btn span:last-of-type { display: none; }
}

/* ── Parse Analyzer (/wow/en/parse) ──────────────────────────────────────── */
.gi-parse-form { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.gi-parse-input {
  flex:1; min-width:140px; padding:10px 14px; font-size:14px;
  background:var(--s1); border:1px solid var(--border); border-radius:8px; color:var(--text);
}
.gi-parse-input:focus { outline:none; border-color:var(--gold); }
.gi-parse-head { margin-bottom:18px; }
.gi-parse-overall {
  text-align:center; padding:24px; border:2px solid #888; border-radius:14px;
  background:var(--s1);
}
.gi-parse-name { font-size:18px; font-weight:700; margin-bottom:6px; }
.gi-parse-srv { font-size:12px; color:var(--text3); font-weight:400; }
.gi-parse-big { font-size:56px; font-weight:800; line-height:1; }
.gi-parse-tier { font-size:15px; font-weight:700; margin-top:4px; }
.gi-parse-median { font-size:13px; color:var(--text3); margin-top:8px; }
.gi-parse-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; margin-bottom:14px; }
.gi-parse-boss {
  background:var(--s1); border:1px solid var(--border); border-left:4px solid #444;
  border-radius:10px; padding:14px;
}
.gi-parse-boss-name { font-size:13px; color:var(--text2); margin-bottom:6px; min-height:34px; }
.gi-parse-boss-pct { font-size:30px; font-weight:800; line-height:1; }
.gi-parse-boss-meta { font-size:11px; color:var(--text3); margin-top:4px; }

/* ── Parse v2: import box / coach card / boss rows / diag modal (2026-06-04) ── */
.gi-import-toggle {
  display:block; width:100%; margin-top:10px; padding:9px 14px;
  background:transparent; border:1px dashed var(--border); border-radius:var(--r);
  color:var(--text2); font-size:13px; cursor:pointer;
}
.gi-import-toggle:hover { border-color:var(--bhl); color:var(--text); }
.gi-import-box { margin-top:10px; }
.gi-import-box .gi-textarea { margin-bottom:10px; }
.gi-parse-beats { font-size:16px; font-weight:700; margin-top:8px; }
.gi-parse-ms { font-size:13px; color:var(--gold); margin-top:4px; }
.gi-coach-card {
  background:linear-gradient(135deg, rgba(200 168 75 / .08), var(--s2));
  border:1px solid var(--bhl); border-radius:var(--rlg);
  padding:18px 20px; margin-bottom:22px;
}
.gi-coach-title { font-size:14px; font-weight:700; color:var(--goldb); margin-bottom:8px; }
.gi-coach-body { font-size:14px; line-height:1.8; }
.gi-coach-loading { color:var(--text2); font-size:13px; }
.gi-boss-list { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.gi-boss-row {
  display:flex; align-items:center; gap:12px;
  background:var(--s1); border:1px solid var(--border); border-radius:var(--r);
  padding:10px 14px; cursor:pointer; transition:border-color .15s;
}
.gi-boss-row:hover { border-color:var(--bhl); }
.gi-boss-row.nokill { cursor:default; opacity:.55; }
.gi-mbadge {
  flex:none; min-width:34px; text-align:center; font-size:11px; font-weight:800;
  border:1px solid; border-radius:6px; padding:2px 5px;
}
.gi-boss-row-name { flex:1 1 30%; font-size:13px; color:var(--text); }
.gi-pbar { flex:1 1 40%; height:6px; background:var(--s3); border-radius:3px; overflow:hidden; }
.gi-pbar-fill { display:block; height:100%; border-radius:3px; }
.gi-boss-row-pct { flex:none; width:48px; text-align:right; font-size:20px; font-weight:800; }
.gi-diag-mask {
  position:fixed; inset:0; background:rgba(0 0 0 / .7); z-index:90;
  display:flex; align-items:center; justify-content:center; padding:18px;
}
.gi-diag {
  width:100%; max-width:520px; max-height:84vh; overflow-y:auto;
  background:var(--s2); border:1px solid var(--bhl); border-radius:var(--rlg); padding:20px;
}
.gi-diag-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.gi-diag-boss { flex:1; font-size:16px; font-weight:700; display:flex; align-items:center; gap:8px; }
.gi-diag-pct { font-size:22px; font-weight:800; margin-left:auto; }
.gi-diag-close {
  flex:none; background:transparent; border:none; color:var(--text2);
  font-size:18px; cursor:pointer; padding:4px 8px;
}
.gi-diag-dur { font-size:12px; color:var(--text3); margin-bottom:10px; }
.gi-diag-card { background:var(--s1); border:1px solid var(--border); border-radius:var(--r); padding:12px 14px; margin-bottom:8px; }
.gi-diag-row { display:flex; align-items:center; gap:10px; }
.gi-diag-label { flex:1; font-size:13px; color:var(--text2); }
.gi-diag-val { font-size:20px; font-weight:800; }
.gi-diag-chip { font-size:11px; font-weight:700; border:1px solid; border-radius:6px; padding:1px 7px; }
.gi-diag-tip { font-size:12px; color:var(--text2); margin-top:6px; line-height:1.6; }

/* ── Analyze v2: stat diagnosis / farm plan chips / alternatives ───────────── */
.gi-analyze-opts { margin-top:10px; font-size:13px; color:var(--text2); display:flex; align-items:center; gap:8px; }
.gi-analyze-opts input { accent-color:var(--gold); }
.gi-statdiag {
  background:var(--s2); border:1px solid var(--border); border-radius:var(--rlg);
  padding:18px 20px; margin-bottom:22px;
}
.gi-statdiag-title { font-size:14px; font-weight:700; color:var(--goldb); margin-bottom:4px; }
.gi-statdiag-mode { font-size:12px; color:var(--text3); margin-bottom:12px; }
.gi-statdiag-priority { font-size:13px; color:var(--text); margin-bottom:12px; }
.gi-statdiag .gi-stat-row { display:flex; align-items:center; gap:10px; padding:7px 0; border-top:1px solid var(--border); font-size:13px; }
.gi-statdiag .gi-stat-name { flex:1; color:var(--text2); }
.gi-stat-nums { color:var(--text); font-variant-numeric:tabular-nums; }
.gi-stat-badge { font-size:11px; font-weight:700; border-radius:6px; padding:1px 8px; border:1px solid; }
.gi-stat-low  { color:#f85149; border-color:#f85149; }
.gi-stat-tol  { color:#d29922; border-color:#d29922; }
.gi-stat-ok   { color:#3fb950; border-color:#3fb950; }
.gi-stat-over { color:#d29922; border-color:#d29922; }
.gi-stat-noncore, .gi-stat-none { color:var(--text3); border-color:var(--text3); }
.gi-statdiag-tip { font-size:13px; margin-top:12px; padding:10px 12px; border-radius:var(--r); background:var(--s1); }
.gi-farm-chips { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.gi-farm-chip {
  font-size:12px; padding:5px 12px; border-radius:99px;
  background:var(--s2); border:1px solid var(--border); color:var(--text2);
}
.gi-farm-chip b { color:var(--goldb); }
.gi-alt-toggle { background:transparent; border:none; color:var(--text3); font-size:11px; cursor:pointer; padding:0; }
.gi-alt-toggle:hover { color:var(--gold); }
.gi-alt-row td { background:var(--s1); font-size:12px; color:var(--text2); padding:6px 10px 6px 38px; }

/* ── Parse share + 回流 CTA (2026-06-14) ─────────────────────────────────────── */
.gi-share-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:14px 0 4px; }
.gi-share-btn {
  background:transparent; border:1px solid var(--gold); border-radius:var(--r);
  color:var(--gold); font-size:13px; font-weight:600; padding:8px 16px; cursor:pointer;
  transition:background .15s, color .15s;
}
.gi-share-btn:hover { background:var(--gold); color:#07070f; }
.gi-share-toast { font-size:13px; color:var(--text2); }
.gi-parse-cta {
  margin-top:18px; padding:16px; border:1px solid var(--border); border-radius:var(--r);
  background:linear-gradient(135deg, rgba(200 168 75 / .06), var(--s2));
}
.gi-parse-cta-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:10px; }
.gi-parse-cta-links { display:flex; gap:10px; flex-wrap:wrap; }
.gi-parse-cta-btn {
  display:inline-block; padding:8px 14px; border:1px solid var(--border); border-radius:var(--r);
  color:var(--text2); font-size:13px; text-decoration:none; transition:border-color .15s, color .15s;
}
.gi-parse-cta-btn:hover { border-color:var(--bhl); color:var(--text); }
.gi-parse-cta-btn.primary { background:linear-gradient(135deg,#b8902a,var(--gold)); color:#07070f; font-weight:700; border:none; }
.gi-parse-cta-btn.primary:hover { opacity:.9; }

/* ── 窄屏可读性（2026-08-27）─────────────────────────────────────────────────
   手机上这些表/行原本没有任何断点：定宽的条形图和标签把物品名挤成 0 宽，
   中文可在任意字之间断行 → 一个字一行。统一处理：名字不逐字断，表格自己横滚。 */
.gi-loot-item a, .gi-tp-row .item a, .gi-gp-row .item a { overflow-wrap: normal; word-break: keep-all; }
@media (max-width: 640px) {
  /* 表格自己横滚，⛔别给整表 nowrap —— 那会把每一列都撑成一行，
     行高被最长的一格顶起来，看着像"错位"（2026-08-27 用户截图）。
     只让物品名那一列不断行，其余正常换行。 */
  .gi-loot-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gi-loot-table { min-width: 560px; }
  .gi-loot-item { min-width: 170px; white-space: nowrap; }
  .gi-loot-item a { font-size: 13px; }
  .gi-loot-slot, .gi-loot-ilvl { white-space: nowrap; }
  .gi-loot-bisfor { min-width: 150px; }
  .gi-loot-table td, .gi-loot-table th { vertical-align: middle; }
  .gi-stat-row { grid-template-columns: 84px 1fr 40px; }
}
.gi-boss-no {
  display: inline-block; font-size: 12px; font-weight: 800; color: var(--goldb);
  background: rgba(200 168 75 / .12); border: 1px solid rgba(200 168 75 / .3);
  border-radius: 7px; padding: 1px 8px; margin-right: 8px; vertical-align: middle;
}

/* Homepage: addon download + community cards (2026-08-27) */
.gi-community { max-width: var(--mw); margin: 0 auto; padding: 8px 24px 0; }
.gi-comm-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: stretch; }
.gi-dl-card, .gi-comm-card {
  background: linear-gradient(160deg, var(--s2), var(--s1) 62%);
  border: 1px solid var(--border); border-radius: var(--rlg); padding: 20px 22px;
  position: relative; overflow: hidden;
}
.gi-dl-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--goldb), transparent);
}
.gi-dl-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.gi-dl-mark {
  width: 52px; height: 52px; border-radius: 13px; flex: none; display: grid; place-items: center;
  background: rgba(200 168 75 / .10); border: 1px solid rgba(200 168 75 / .28);
}
.gi-dl-mark img { border-radius: 9px; display: block; }
.gi-dl-title { font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: .2px; }
.gi-dl-meta { font-size: 12.5px; color: var(--text2); margin-top: 3px; }
.gi-dl-ver {
  color: var(--goldb); font-weight: 700; background: rgba(200 168 75 / .12);
  border: 1px solid rgba(200 168 75 / .3); border-radius: 999px; padding: 1px 8px; font-size: 12px;
}
.gi-dl-dot { margin: 0 5px; color: var(--text3); }
.gi-dl-whats {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 7px;
}
.gi-dl-notes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.gi-dl-notes li { position: relative; padding-left: 17px; font-size: 13.5px; color: var(--text); line-height: 1.5; }
.gi-dl-notes li::before {
  content: ''; position: absolute; left: 3px; top: 8px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}
.gi-dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; box-sizing: border-box; padding: 12px 18px; border-radius: 11px;
  background: linear-gradient(135deg, var(--goldb), var(--gold)); color: #17130a;
  font-weight: 800; font-size: 14.5px; text-decoration: none; letter-spacing: .2px;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 6px 20px rgba(200 168 75 / .18);
}
.gi-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(200 168 75 / .28); }
/* 次级按钮：安装教程。原来它是一行 12.5px 的灰色小字，混在「所有版本」旁边，
   用户 2026-08-27:「安装教程用一个比较明显的按钮」。
   ⛔ 做成描边而不是实心 —— 实心两颗金按钮并排会把 CurseForge 下载那颗的主次冲掉。 */
.gi-dl-btn2 {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; box-sizing: border-box; margin-top: 10px;
  padding: 11px 18px; border-radius: 11px;
  background: rgba(200 168 75 / .08); border: 1px solid rgba(200 168 75 / .45);
  color: var(--gold); font-weight: 700; font-size: 14px; text-decoration: none;
  letter-spacing: .2px; transition: background .12s ease, border-color .12s ease;
}
.gi-dl-btn2:hover { background: rgba(200 168 75 / .16); border-color: var(--gold); }
.gi-dl-alt { display: block; text-align: center; margin-top: 9px; font-size: 12.5px; color: var(--text2); text-decoration: none; }
.gi-dl-alt:hover { color: var(--gold); }

.gi-comm-title { font-size: 15px; font-weight: 800; color: var(--text); }
.gi-comm-sub { font-size: 13px; color: var(--text2); margin: 6px 0 14px; line-height: 1.5; }
.gi-qq-btn {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 11px;
  background: rgba(18 140 255 / .10); border: 1px solid rgba(18 140 255 / .34);
  color: #cfe4ff; text-decoration: none; font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
.gi-qq-btn:hover { background: rgba(18 140 255 / .18); border-color: rgba(18 140 255 / .6); }
.gi-qq-ico {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4aa3ff, #1673d8); color: #fff; font-size: 11px; font-weight: 800;
}
.gi-comm-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
/* 非简中：这一行里只剩中文才用的内容，整行收起，避免留一条空白 */
html[data-gi-comm="intl"] .gi-comm-more { display:none; }
.gi-qq-mini {
  font-size: 12px; color: var(--text2); background: var(--s3); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 11px; text-decoration: none; cursor: pointer;
}
.gi-qq-mini:hover { color: var(--gold); border-color: var(--bhl); }
.gi-qq-mini.full { opacity: .55; }
.gi-qq-toast { margin-top: 10px; font-size: 12px; color: #7fd18a; opacity: 0; transition: opacity .18s ease; }
.gi-qq-toast.show { opacity: 1; }
/* Global support + feedback dock. It stays out of the reading flow, but is
   always one click away when a visitor spots a data/UI problem. */
/* Park the trigger in the gutter beside the 1200px reading column: 48px button
   + 16px gap = 64. Below ~1330px there is no gutter left, so it clamps back to
   the corner. The button must stay a fixed width for that sum to hold, hence
   the label only unfurls on hover. */
.gi-help-dock { position: fixed; right: 16px; bottom: 22px; z-index: 900; font-family: inherit; }
/* Same gold fill as the site's primary CTA: this is an invitation, not a
   floating widget, and it has to survive being seen against a dark card. */
.gi-help-trigger { display:flex; align-items:center; gap:8px; height:46px; padding:0 18px 0 15px;
  border:0; border-radius:999px; cursor:pointer; font:800 13.5px/1 inherit; color:#1a1408;
  background:linear-gradient(135deg,var(--goldb),var(--gold));
  box-shadow:0 8px 24px rgba(0 0 0 / .45), 0 0 0 1px rgba(255 255 255 / .1) inset;
  transition:transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.gi-help-trigger:hover { transform:translateY(-2px); filter:brightness(1.06);
  box-shadow:0 12px 30px rgba(200 168 75 / .34), 0 0 0 1px rgba(255 255 255 / .16) inset; }
.gi-help-trigger:active { transform:translateY(0); }
.gi-help-trigger i { display:grid; place-items:center; color:#1a1408; }
.gi-help-trigger span { white-space:nowrap; }

.gi-help-panel { position:absolute; right:0; bottom:58px; width:min(360px,calc(100vw - 28px));
  max-height:calc(100vh - 104px); overflow-y:auto; overscroll-behavior:contain;
  border:1px solid var(--border); border-radius:15px;
  background:var(--s1); box-shadow:0 18px 56px rgba(0 0 0 / .52); }
.gi-help-tabs { position:sticky; top:0; z-index:1; }
.gi-help-panel[hidden] { display:none !important; }
.gi-help-tabs { display:flex; background:var(--s2); border-bottom:1px solid var(--border); }
.gi-help-tab { flex:1; border:0; border-bottom:2px solid transparent; padding:12px 8px 10px; color:var(--text2); background:transparent; cursor:pointer; font:700 13px inherit; }
.gi-help-tab.on { color:var(--goldb); border-bottom-color:var(--gold); }
.gi-help-body { padding:16px; }
.gi-help-copy { margin:0 0 12px; color:var(--text2); font-size:12.5px; line-height:1.55; }
.gi-help-copy b { color:var(--goldb); font-weight:700; }
/* Wallet switch: one segmented control, each half in its own brand colour, so
   "which app do I open" is answered before the visitor reaches the code. */
.gi-help-wallets { display:flex; gap:4px; margin:2px 0 12px; padding:3px; border-radius:11px;
  background:var(--s2); border:1px solid var(--border); }
.gi-help-wallets.solo { display:none; }
.gi-help-wallet { flex:1; display:flex; align-items:center; justify-content:center; gap:7px;
  border:0; border-radius:8px; padding:9px 4px; color:var(--text3); background:transparent;
  cursor:pointer; font:700 13px inherit; transition:background .13s ease, color .13s ease; }
.gi-help-wallet:hover { color:var(--text2); }
.gi-help-dot { width:9px; height:9px; border-radius:50%; background:currentColor; opacity:.45; }
.gi-help-wallet[data-wallet="alipay"].on { color:#fff; background:#1677ff; }
.gi-help-wallet[data-wallet="wechat"].on { color:#fff; background:#07c160; }
.gi-help-wallet.on .gi-help-dot { background:#fff; opacity:.95; }

/* The code is the only thing anyone acts on, so it gets the space and a frame
   tinted to whichever wallet is showing. */
.gi-help-qrbox { padding:9px; margin-bottom:2px; border-radius:13px; background:#fff; width:198px; margin:0 auto;
  box-sizing:border-box; border:2px solid transparent; transition:border-color .13s ease; }
.gi-help-qrbox[data-active="alipay"] { border-color:#1677ff; box-shadow:0 6px 20px rgba(22 119 255 / .17); }
.gi-help-qrbox[data-active="wechat"] { border-color:#07c160; box-shadow:0 6px 20px rgba(7 193 96 / .17); }
.gi-help-qr { display:block; width:180px; height:auto; margin:0 auto; }
.gi-help-qr[hidden] { display:none !important; }

.gi-help-note { margin:9px 0 0; color:var(--text3); text-align:center; font-size:11.5px; line-height:1.45; }
.gi-help-field { display:block; width:100%; box-sizing:border-box; margin:8px 0; border:1px solid var(--border); border-radius:8px; padding:9px 10px; background:var(--s2); color:var(--text); font:13px inherit; }
.gi-help-field:focus { outline:none; border-color:var(--gold); }
.gi-help-field.ta { height:92px; resize:vertical; }
.gi-help-context { margin:8px 0; color:var(--text3); font-size:11.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gi-help-submit { width:100%; border:0; border-radius:8px; padding:10px; background:linear-gradient(135deg,var(--goldb),var(--gold)); color:#16120a; cursor:pointer; font:800 13px inherit; }
.gi-help-submit:disabled { opacity:.62; cursor:wait; }
.gi-help-status { min-height:17px; margin-top:8px; color:#7fd18a; text-align:center; font-size:12px; }
.gi-help-status.bad { color:#e58a8a; }
@media (max-width:640px) {
  .gi-help-dock { bottom:14px; }
  .gi-help-trigger { height:44px; padding:0 15px 0 13px; font-size:13px; }
  .gi-help-panel { bottom:54px; max-height:calc(100vh - 90px); }
  .gi-help-body { padding:14px; }
  .gi-help-qrbox { width:186px; padding:8px; }
  .gi-help-qr { width:170px; }
  .gi-help-field.ta { height:78px; }
}

/* Gear Analyzer’s small, anonymous live-use signal. */
.gi-analyze-live { width:min(890px,calc(100% - 32px)); margin:0 auto 14px; padding:11px 14px; border:1px solid rgba(200 168 75 / .25); border-radius:11px; background:rgba(200 168 75 / .045); }
.gi-analyze-live-head { display:flex; align-items:center; gap:7px; color:var(--text2); font-size:12.5px; font-weight:650; }
.gi-analyze-live .gi-live-dot { width:7px; height:7px; border-radius:50%; background:#63cf86; box-shadow:0 0 0 0 rgba(99 207 134 / .55); animation:gi-dotpulse 1.7s ease-out infinite; }
.gi-analyze-live-window { overflow:hidden; margin-top:8px; mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent); }
.gi-analyze-live-track { display:flex; width:max-content; gap:24px; animation:gi-analyze-ticker 30s linear infinite; color:var(--text3); font-size:12px; white-space:nowrap; }
.gi-analyze-live-track span { display:inline-flex; align-items:center; }
.gi-analyze-live-track i { font-style:normal; color:var(--text3); opacity:.75; }
.gi-analyze-live-track b { color:var(--text2); font-weight:700; letter-spacing:.03em; }
.gi-analyze-live-track em { color:var(--gold); font-style:normal; }
@keyframes gi-analyze-ticker { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce) { .gi-analyze-live-track { animation:none; } }

@media (max-width: 900px) {
  .gi-comm-grid { grid-template-columns: 1fr; }
  .gi-dl-card { display: none !important; }
  .gi-community { padding: 8px 16px 0; }
}

/* 图标放大 + 列表行改版（2026-08-27 手机实测：22px 图标在手机上几乎看不清，
   而且行内元素挤在一起）。桌面 28px、手机 34px —— 手机屏幕像素密度高，
   反而要更大的物理尺寸才看得清。 */
.gi-ge-icon { width: 28px; height: 28px; border-radius: 6px; }
.gi-tp-row .gi-ge-icon, .gi-gp-row .gi-ge-icon { flex: none; }
@media (max-width: 640px) {
  .gi-ge-icon { width: 34px; height: 34px; border-radius: 8px; }
  /* 名字与图标同一行、独占宽度；ilvl/进度条/百分比落到第二行并与名字左对齐 */
  .gi-tp-row .item { flex: 1 1 calc(100% - 84px); }
  .gi-tp-row .ilvl { margin-left: 78px; }
  .gi-sp-prio .st { font-size: 1rem; padding: 7px 12px; }
}

/* 来源行的「去哪刷」：副本 · N号BOSS · 首领名（2026-08-27） */
.gi-cand-where { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); }
.gi-cand-where > span { white-space: nowrap; }
.gi-boss-no {
  font-size: 11px; font-weight: 700; color: var(--goldb);
  background: rgba(200 168 75 / .12); border: 1px solid rgba(200 168 75 / .28);
  border-radius: 999px; padding: 0 7px;
}
@media (max-width: 640px) {
  .gi-cand-where { flex-wrap: wrap; gap: 5px; font-size: 11.5px; }
}

/* 掉落表筛选条（2026-08-27） */
.gi-loot-filters {
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--rlg);
  padding: 12px 14px; margin: 0 0 18px; display: grid; gap: 9px;
}
.gi-lf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gi-lf-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text3); min-width: 52px;
}
.gi-lf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gi-lf-chip {
  font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text2);
  background: var(--s2); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; transition: color .12s, border-color .12s, background .12s;
}
.gi-lf-chip:hover { color: var(--text); border-color: var(--bhl); }
.gi-lf-chip.active { color: #17130a; background: linear-gradient(135deg, var(--goldb), var(--gold)); border-color: transparent; font-weight: 700; }
.gi-lf-row-tail { border-top: 1px solid var(--border); padding-top: 9px; }
.gi-lf-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text2); cursor: pointer; }
.gi-lf-toggle input { accent-color: var(--gold); }
.gi-lf-search {
  flex: 1; min-width: 140px; font: inherit; font-size: 13px; color: var(--text);
  background: var(--s2); border: 1px solid var(--border); border-radius: 9px; padding: 6px 11px;
}
.gi-lf-search:focus { outline: none; border-color: var(--bhl); }
.gi-lf-count { font-size: 12px; color: var(--text3); font-variant-numeric: tabular-nums; }
.gi-lf-reset {
  font: inherit; font-size: 12px; cursor: pointer; color: var(--text2);
  background: none; border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px;
}
.gi-lf-reset:hover { color: var(--gold); border-color: var(--bhl); }
@media (max-width: 640px) {
  .gi-lf-label { min-width: 0; }
  .gi-lf-search { min-width: 100px; }
}

/* 强度榜明细表（2026-08-27 改版，对齐 WCL「Damage specs」那张表的信息密度） */
.gi-tier-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 14px; }
.gi-tier-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.gi-tier-table th {
  text-align: left; padding: 7px 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text3);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.gi-tier-table td { padding: 5px 8px; border-bottom: 1px solid rgba(255 255 255 / .04); vertical-align: middle; }
.gi-tt-rank { color: var(--text3); font-variant-numeric: tabular-nums; width: 32px; }
.gi-tt-diff { width: 44px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.gi-tt-diff .up { color: #3fb950; }
.gi-tt-diff .down { color: #f85149; }
.gi-tt-diff .flat { color: var(--text3); }
.gi-tt-tier {
  display: inline-block; min-width: 20px; text-align: center; font-weight: 800; font-size: 11.5px;
  color: #14141f; background: var(--tc); border-radius: 5px; padding: 1px 6px;
}
.gi-tt-num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.gi-tt-num.dim { color: var(--text2); }
.gi-tt-spec { width: 55%; }
.gi-tt-spec a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.gi-spec-icon.sm { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.gi-tt-bar { position: relative; flex: 1; height: 24px; border-radius: 5px; overflow: hidden; background: rgba(255 255 255 / .03); }
.gi-tt-bar-top { position: absolute; inset: 0 auto 0 0; background: var(--cc); opacity: .22; }
.gi-tt-bar-avg { position: absolute; inset: 0 auto 0 0; background: var(--cc); opacity: .85; }
.gi-tt-bar-label {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 7px; padding-left: 9px;
  font-weight: 600; color: #0d0d16; text-shadow: 0 1px 0 rgba(255 255 255 / .18); white-space: nowrap;
}
.gi-tt-bar-label .cls { font-weight: 500; opacity: .65; font-size: 11.5px; }
@media (max-width: 640px) {
  .gi-tier-table { min-width: 560px; font-size: 12px; }
  .gi-tt-spec { width: 45%; }
}

/* 副本图（冒险指南 tile 图，已镜像到本站；2026-08-27 用户要求"副本图片都放上去"） */
.gi-inst-img {
  width: 100%; max-height: 168px; object-fit: cover; border-radius: var(--r);
  margin-bottom: 14px; border: 1px solid var(--border);
}
.gi-inst-thumb {
  width: 100%; height: 92px; object-fit: cover; border-radius: 8px; margin-bottom: 9px;
  border: 1px solid var(--border);
}
@media (max-width: 640px) { .gi-inst-img { max-height: 120px; } }

/* 循环页技能图标（2026-08-27） */
.gi-spell-icon {
  width: 20px; height: 20px; border-radius: 4px; vertical-align: -5px; margin-right: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.gi-spell-cell a { display: inline-flex; align-items: center; }
@media (max-width: 640px) { .gi-spell-icon { width: 22px; height: 22px; } }

/* 装备绿字（使用/装备效果）——游戏里就是绿色，沿用同一视觉语言 */
.gi-cand-effect {
  font-size: 12px; line-height: 1.5; color: #4ec97a; margin: 4px 0 2px;
  white-space: pre-line; max-height: 3.2em; overflow: hidden;
}
.gi-use-tag {
  font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 0 6px; margin-left: 6px;
  color: var(--text2); background: var(--s3); border: 1px solid var(--border);
}
.gi-use-tag.on { color: #ffd75e; border-color: rgba(255 215 94 / .35); background: rgba(255 215 94 / .10); }
@media (max-width: 640px) { .gi-cand-effect { max-height: 4.6em; } }

/* 饰品页：掉落来源行 + 使用率标签（2026-08-27 用户要求「说清楚饰品率」「展示掉落的副本」） */
.gi-tp-src {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-size: 11.5px; color: var(--text2); padding: 0 16px 11px 62px; margin-top: -6px;
}
.gi-tp-row .use .uselbl { font-size: 10px; color: var(--text3); margin-left: 4px; font-weight: 500; }
.gi-tp-row .ilvl { white-space: nowrap; }
@media (max-width: 640px) {
  .gi-tp-src { padding: 0 13px 10px 13px; margin-top: 2px; }
  .gi-tp-row .use .uselbl { display: none; }   /* 手机上太挤，说明文案里已经讲清楚 */
}

/* 专精页导读（2026-08-27）：数据驱动的原创解说，每个专精内容都不同 */
.gi-spec-intro {
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--rlg);
  padding: 20px 22px; margin: 26px 0 22px;
}
.gi-spec-intro h2 { font-size: 16px; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.gi-spec-intro p { font-size: 13.5px; line-height: 1.7; color: var(--text2); margin: 0 0 10px; }
.gi-spec-intro p:last-child { margin-bottom: 0; }


/* 团本掉落表的「掉落首领」列（用户 2026-08-27：要能看出是哪只 BOSS / M几号）。
   ⛔ M号做成徽章、首领名压一档灰 —— 这一列是**定位信息**，不能抢装备名的主次。 */
.gi-loot-boss { white-space: nowrap; }
.gi-boss-no {
  display: inline-block; min-width: 30px; text-align: center;
  padding: 1px 7px; margin-right: 7px; border-radius: 6px;
  background: rgba(200 168 75 / .13); border: 1px solid rgba(200 168 75 / .34);
  color: var(--gold); font-weight: 800; font-size: 12px; letter-spacing: .3px;
}
.gi-boss-cn { color: var(--text2); font-size: 12.5px; }
.gi-loot-dash { color: var(--text3, #6b7280); }


/* 天赋索引页：职业图标 + 专精图标（用户 2026-08-27）。
   ⛔ 复用 .gi-class-icon / .gi-spec-icon 的资源与尺寸约定，只补排版与悬停色。 */
.gi-class-icon.sm { width: 26px; height: 26px; border-radius: 7px; }
.gi-rel-cls {
  display: flex; align-items: center; gap: 9px;
  text-transform: none; font-size: 15px; letter-spacing: 0;
}
.gi-rel-spec { display: inline-flex; align-items: center; gap: 7px; }
.gi-rel-spec:hover { color: var(--cc); border-color: var(--cc); }
.gi-rel-spec:hover .gi-spec-icon { opacity: 1; }


/* 首页 hero 里的大 logo（用户 2026-08-27：「主页也放上logo」）。 */
.gi-hero-logo {
  width: 92px; height: 92px; border-radius: 18px; display: block; margin: 0 auto 18px;
  box-shadow: 0 10px 34px rgba(0,0,0,.55), 0 0 0 1px rgba(200 168 75 / .22);
}
@media (max-width: 640px) { .gi-hero-logo { width: 72px; height: 72px; } }


/* 词缀页顶部：赛季周次 + 本周词缀胶囊（用户 2026-08-27：要翻译、要显示第几周）。 */
.gi-affix-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.gi-affix-wk {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  background: rgba(200 168 75 / .12); border: 1px solid rgba(200 168 75 / .38);
  color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
}
.gi-affix-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gi-affix-lbl { font-size: 13px; color: var(--text3); margin-right: 2px; }
.gi-affix-chip {
  padding: 4px 11px; border-radius: 7px; font-size: 13px; font-weight: 600;
  background: var(--s2); border: 1px solid var(--border); color: var(--text2);
}


/* 社区卡：简体中文主推 QQ，其它语言主推 Telegram（用户 2026-08-27）。
   ⛔ 默认（属性还没写上时）按国际版显示 —— 站点是英文优先，
      属性没生效那一瞬间也不该闪出中文态。 */
html[data-gi-comm="cn"]   .gi-comm-intl { display: none !important; }
html[data-gi-comm="intl"] .gi-comm-cn   { display: none !important; }
html:not([data-gi-comm])  .gi-comm-cn   { display: none !important; }

.gi-tg-btn {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 11px;
  background: rgba(42 171 238 / .12); border: 1px solid rgba(42 171 238 / .38);
  color: #cfeaff; text-decoration: none; font-weight: 600; font-size: 13.5px;
  transition: background .12s ease, border-color .12s ease;
}
.gi-tg-btn:hover { background: rgba(42 171 238 / .2); border-color: rgba(42 171 238 / .68); }
.gi-tg-ico {
  width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #46b9f0, #1d93d2); color: #fff;
}


/* 刷本指南索引：职业卡加图标 + 职业色（用户 2026-08-27）。
   ⛔ 左边条本来是统一金色，13 张卡长得一模一样；换成职业色后一眼能扫到自己那张。 */
.gi-inst-cls { border-left-color: var(--cc); }
.gi-inst-cls:hover { border-color: var(--cc); }
.gi-inst-cls .gi-inst-name { display: flex; align-items: center; gap: 9px; }
.gi-inst-cls .gi-class-icon.sm { width: 26px; height: 26px; border-radius: 7px; }

/* 大秘境行只显示副本名（用户 2026-08-27）：不用 M 号徽章，压一档灰即可。 */
.gi-boss-inst { color: var(--text2); font-size: 12.5px; }

/* 强度榜出勤率列（用户 2026-08-27）。⛔ 与 Avg/Top 不是同一个源，
   数值给足对比度、口径写在表下脚注里。 */
.gi-tt-use { color: var(--gold); font-weight: 700; }

/* 天赋页世界排名列（用户 2026-08-27）。名次是 WCL 该 BOSS 全球榜位置。 */
.gi-tal-rank { white-space: nowrap; }
.gi-rk { color: var(--gold); font-weight: 700; font-size: 12.5px; }


/* ⛔⛔ 装备列表的「团本 / 大秘境」切换靠 JS 加减 .hidden，而全站只定义了
   `.gi-stat-panel.hidden` —— 这个 .hidden **压根没有样式**，于是两组候选
   一直同时渲染在页面上（用户 2026-08-28 手机截图：#1#2#3 之后又来一遍 #1#2#3）。
   ⛔ 别在 JS 里改用 style.display —— 那会和这里的类切换打架，修一处坏一处。 */
.gi-cand-list.hidden { display: none; }

/* 手机上把「来源 · 副本 · 首领」整块推到第二行，别和物品名抢那点宽度 */
@media (max-width: 560px) {
  .gi-cand-meta { padding-left: 0; gap: 6px; font-size: 11px; }
  .gi-cand-where { flex: 1 1 100%; }
  .gi-usage-bar { margin-left: 0; }
  .gi-cand-top { gap: 6px; }
}


/* BiS 列表的物品图标（用户 2026-08-28）。品质色描边，和物品名的品质色呼应。 */
.gi-cand-icon {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  box-shadow: 0 1px 5px rgba(0,0,0,.55);
}
/* 图标占了 26+8 的宽度，下面那行元信息跟着缩进对齐 */
.gi-cand-meta { padding-left: 62px; }
@media (max-width: 560px) {
  .gi-cand-icon { width: 30px; height: 30px; }
  .gi-cand-meta { padding-left: 0; }
}

/* 天赋页玩家名 → WCL 角色页（2026-08-28 用户实测国服/欧服都能打开） */
.gi-tal-link { color: var(--text2); border-bottom: 1px dotted rgba(200 168 75 / .45); }
.gi-tal-link:hover { color: var(--gold); border-bottom-color: var(--gold); }


/* 天赋页「复制导入串」按钮（用户 2026-08-28）。 */
.gi-tal-imp { white-space: nowrap; }
.gi-copy-btn {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
  background: rgba(200 168 75 / .10); border: 1px solid rgba(200 168 75 / .38);
  color: var(--gold); cursor: pointer; transition: background .12s, border-color .12s;
}
.gi-copy-btn:hover { background: rgba(200 168 75 / .2); border-color: var(--gold); }
.gi-copy-btn.ok { background: rgba(86 214 130 / .16); border-color: rgba(86 214 130 / .5); color: #7ee2a0; }


/* 分析页：已毕业清单 + 当前装备列（用户 2026-08-28：看不出已毕业的是哪件、差多少） */
.gi-sat-wrap { margin-top: 18px; }
.gi-sat-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 8px;
  background: rgba(86 214 130 / .10); border: 1px solid rgba(86 214 130 / .32);
  color: #7ee2a0; cursor: pointer;
}
.gi-sat-toggle:hover { background: rgba(86 214 130 / .18); }
.gi-sat-n { color: var(--text3); font-weight: 700; }
.gi-sat-table { margin-top: 10px; }
.gi-cur-cell { font-size: 13px; }
.gi-cur-ilvl { color: var(--text3); font-size: 12px; }
.gi-gap-none { color: var(--text3); }
.gi-gap-same { color: var(--text2); font-size: 12px; }


/* 首页「世界首杀争夺战」临时卡片（用户 2026-08-28）。
   ⛔ 只在争夺战进行中出现（模板层 if rwf 控制），通关后不渲染。
   ⚠️ 这批样式曾经**整块丢失**：当时把「改模板」和「加 CSS」写在同一个脚本里，
      模板的 assert 没匹配上直接抛异常中断，CSS 那段压根没跑，
      而我只看到模板补好了就以为完事 —— 页面上卡片渲染成一堆裸文本。 */
.gi-rwf-card {
  display: block; text-decoration: none; margin: 0 0 26px;
  background: linear-gradient(135deg, rgba(200 168 75 / .08), rgba(120 90 200 / .06));
  border: 1px solid rgba(200 168 75 / .32); border-radius: var(--rlg);
  padding: 16px 18px; transition: border-color .15s, transform .15s;
}
.gi-rwf-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.gi-rwf-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.gi-rwf-live {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #7ee2a0; background: rgba(86 214 130 / .14); border: 1px solid rgba(86 214 130 / .45);
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.gi-rwf-title { font-size: 15px; font-weight: 800; color: var(--text); }
.gi-rwf-more { margin-left: auto; font-size: 12.5px; color: var(--gold); white-space: nowrap; }
.gi-rwf-body { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.gi-rwf-wall { display: flex; flex-direction: column; gap: 3px; min-width: 132px; }
.gi-rwf-n { font-size: 36px; font-weight: 800; color: var(--goldb); line-height: 1; }
.gi-rwf-of { font-size: 18px; color: var(--text3); font-weight: 700; }
.gi-rwf-lbl { font-size: 11.5px; color: var(--text3); }
.gi-rwf-top3 { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 230px; }
.gi-rwf-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text2); }
.gi-rwf-rk { min-width: 16px; font-weight: 800; color: var(--text3); }
.gi-rwf-rk.g { color: #ffd75e; }
.gi-rwf-g { color: var(--text); font-weight: 600; }
.gi-rwf-p { margin-left: auto; font-weight: 700; color: var(--text); }
@media (max-width: 560px) {
  .gi-rwf-body { gap: 14px; }
  .gi-rwf-n { font-size: 28px; }
  .gi-rwf-more { margin-left: 0; }
}

/* 天赋页首领列：头像 + 名字（用户 2026-08-28）。⛔ 头像固定尺寸不撑行高 */
.gi-boss-cell { display: flex; align-items: center; gap: 9px; }
.gi-boss-img { width: 34px; height: 34px; border-radius: 8px; flex: none;
  object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.45); }
@media (max-width: 640px) { .gi-boss-img { width: 26px; height: 26px; } }


/* ── 掉落页首领横幅（用户 2026-08-28：头像太小，重新设计）───────────────
   头像 72px 起，和右侧两行文字等高；序号做成金色小徽章，掉落件数压一档灰。
   ⛔ 头像必须固定 flex:none —— 不固定的话窄屏上会被文字挤成一条。
   ⛔ 取不到图时给容器加 .no-img，由 CSS 收掉留白，而不是让 img 隐藏后留个空位。 */
.gi-boss-head {
  display: flex; align-items: center; gap: 15px;
  margin: 0 0 14px; padding: 12px 16px 12px 12px;
  background: linear-gradient(90deg, rgba(200 168 75 / .07), transparent 62%);
  border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--r);
}
.gi-boss-head .gi-boss-img {
  width: 72px; height: 72px; border-radius: 11px; flex: none; object-fit: cover;
  box-shadow: 0 3px 14px rgba(0,0,0,.55);
}
.gi-boss-head.no-img .gi-boss-img { display: none; }
.gi-boss-head.no-img { padding-left: 16px; }
.gi-boss-txt { min-width: 0; }
.gi-boss-sub { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.gi-boss-head .gi-boss-no {
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: #17130a; background: linear-gradient(135deg, var(--goldb), var(--gold));
  border-radius: 5px; padding: 1px 7px;
}
.gi-boss-cnt { font-size: 12px; color: var(--text3); }
.gi-boss-head .gi-boss-name {
  font-size: 21px; font-weight: 800; color: var(--text);
  margin: 0; padding: 0; border: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 640px) {
  .gi-boss-head { gap: 11px; padding: 10px 12px 10px 9px; }
  .gi-boss-head .gi-boss-img { width: 54px; height: 54px; border-radius: 9px; }
  .gi-boss-head .gi-boss-name { font-size: 17px; white-space: normal; }
}


/* 掉落表筛选：没有命中的首领**保留标题**，只把表换成一行说明（用户 2026-08-29）。
   ⛔ 别整块隐藏 —— 玩家分不清「这个 BOSS 没有这类掉落」和「页面坏了」。 */
.gi-boss-none {
  font-size: 13px; color: var(--text3); margin: 0 0 18px;
  padding: 11px 14px; background: var(--s1);
  border: 1px dashed var(--border); border-radius: 9px;
}
.gi-boss-empty .gi-boss-name { opacity: .55; }

/* ── 首页首杀卡片 v2（用户 2026-08-28：更震撼、大 LOGO、显示服务器、可点进公会页）──
   ⛔ 整块不再是一个 <a>：每行公会要能单独点，外层 a 包内层 a 是非法嵌套。
      所以 hover 上浮效果从卡片挪到了每一行。 */
.gi-rwf-card { transform: none !important; }
.gi-rwf-card:hover { border-color: rgba(200 168 75 / .32); }
.gi-rwf-more { text-decoration: none; }
.gi-rwf-more:hover { color: var(--goldb); }

.gi-rwf-top3 { gap: 8px; }
.gi-rwf-row {
  gap: 12px; padding: 9px 12px; text-decoration: none; border-radius: 11px;
  border: 1px solid transparent; background: rgba(255 255 255 / .022);
  transition: border-color .15s, background .15s, transform .15s;
}
.gi-rwf-row:hover { border-color: rgba(200 168 75 / .45);
  background: rgba(200 168 75 / .07); transform: translateX(2px); }
.gi-rwf-row.nolink { pointer-events: none; }

/* LOGO 是玩家自传的图，尺寸风格参差 —— 统一裁成圆角方块 + 深底，透明底才不会糊 */
.gi-rwf-logo {
  width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: cover;
  background: var(--s3); box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.gi-rwf-logo.ph { display: grid; place-items: center; font-size: 18px; font-weight: 900;
  color: var(--text2); }
.gi-rwf-gi { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.gi-rwf-g { font-size: 15px; font-weight: 800; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-rwf-realm { font-size: 11.5px; color: var(--text3); }
.gi-rwf-pwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px;
  margin-left: auto; min-width: 74px; }
.gi-rwf-p { font-size: 17px; font-weight: 800; color: var(--text); margin: 0; }
.gi-rwf-pt { font-size: 12px; color: var(--text3); font-weight: 700; }
.gi-rwf-bar { display: block; width: 68px; height: 4px; border-radius: 99px; background: var(--s3); }
.gi-rwf-bar i { display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--goldb)); }
@media (max-width: 560px) {
  .gi-rwf-logo { width: 32px; height: 32px; border-radius: 8px; }
  .gi-rwf-g { font-size: 13.5px; }
  .gi-rwf-bar { width: 52px; }
}

/* 首杀墙的首领头像（用户 2026-08-29）。
   ⛔ 未击杀的压成灰度并降透明：彩色头像会让人误以为那只已经拿下了。 */
.gi-wall-img { display: block; width: 64px; height: 64px; border-radius: 12px;
  margin: 6px auto 8px; object-fit: cover; box-shadow: 0 3px 12px rgba(0,0,0,.5); }
.gi-wall-cell:not(.down) .gi-wall-img { filter: grayscale(1) brightness(.62); opacity: .8; }
@media (max-width: 640px) { .gi-wall-img { width: 48px; height: 48px; border-radius: 10px; } }

/* 首杀墙日期：原来 10px 灰得几乎看不见，和上面的公会名挤成一坨（用户 2026-08-29）。 */
.gi-wall-when { font-size: 11.5px !important; color: var(--text2) !important;
  letter-spacing: .2px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.gi-wall-cell.down .gi-wall-by { margin-bottom: 1px; }

/* 最新击杀：公会名 + 服务器名（用户 2026-08-29）。
   ⛔ 原来 .gi-news-guild 靠 margin-left:auto 顶到右边，现在外面套了一层，
      推到右边的职责必须跟着挪到 .gi-news-gwrap，否则整行会挤到左边。 */
.gi-news-gwrap { margin-left: auto; display: flex; align-items: baseline; gap: 8px;
  min-width: 0; justify-content: flex-end; }
.gi-news-guild { margin-left: 0 !important; }
.gi-news-realm { font-size: 11.5px; color: var(--text3); white-space: nowrap; }
@media (max-width: 640px) { .gi-news-realm { display: none; } }

/* 装饰性图片统一处理：inline 会在旁边留空文本节点，鼠标变 I 形、还能点出文字光标。 */
.gi-boss-img,.gi-wall-img,.gi-rwf-logo,.gu-logo,.gi-class-icon,.gi-spec-icon,.gi-dg-img{
  display:block;user-select:none;-webkit-user-drag:none}

/* 排名行可点进公会页（用户 2026-08-29）。
   ⛔ 行本身原来是 div，换成 a 之后必须显式去掉下划线并继承文字色，
      否则整行会变成蓝色带下划线的链接样子。 */
.gi-stand-row.lk { text-decoration: none; color: inherit; cursor: pointer;
  transition: background .15s, box-shadow .15s; }
.gi-stand-row.lk:hover { background: rgba(200 168 75 / .06);
  box-shadow: inset 3px 0 0 var(--gold); }

/* ── 我的角色（全站身份 / 伪登录）─────────────────────────────────────────
   用户 2026-08-29：「类似登录」「每个页面都可以看到」。
   放在语言切换器**左边** —— 身份比语言重要，右上角最外侧留给语言是既有习惯。
   ⛔ 未绑定态要长得像一个**动作**（金色描边+微金底），跟旁边的语言按钮区分开；
      长得一样的话它就沉进导航栏里，没人会点。 */
/* ⛔ 胶囊必须 flex:none + nowrap（用户 2026-08-31：EN 界面加上首杀徽后
   导航被挤，「測試角色」被压成一列竖字还叠到内容上）——flex 容器缺空间时
   会把子项压到最小内容宽，CJK 的最小内容宽就是一个字。 */
.gi-me { position: relative; flex: none; }
.gi-me-btn { white-space: nowrap; }
.gi-me-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px 5px 6px; cursor: pointer;
  font-family: inherit; color: var(--text2);
  transition: border-color .15s, color .15s, background .15s;
}
.gi-me-btn:hover { border-color: var(--bhl); color: var(--text); }
.gi-me-cta {
  border-color: rgba(200 168 75 / .45);
  background: linear-gradient(180deg, rgba(200 168 75 / .13), rgba(200 168 75 / .05));
  color: var(--goldb); padding: 6px 12px 6px 8px;
}
.gi-me-cta:hover { border-color: var(--gold); background: rgba(200 168 75 / .18); }
.gi-me-avatar {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 2px rgba(0 0 0 / .45), 0 0 10px -2px currentColor;
}
.gi-me-avatar-empty {
  display: flex; align-items: center; justify-content: center;
  background: rgba(200 168 75 / .16); color: var(--goldb);
  font-size: 15px; font-weight: 700; line-height: 1; box-shadow: none;
}
.gi-me-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.gi-me-txt b { font-size: 13px; font-weight: 650; color: var(--text); }
.gi-me-txt i { font-style: normal; font-size: 10.5px; color: var(--text2); letter-spacing: .2px; }
.gi-me-cta .gi-me-txt { font-size: 13px; font-weight: 650; }

.gi-me-drop {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--s2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 6px;
  box-shadow: 0 16px 48px rgba(0 0 0 / .6);
  min-width: 236px; z-index: 200;
}
.gi-me-drop.open { display: block; }
.gi-me-head {
  padding: 8px 12px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px;
  display: flex; flex-direction: column; gap: 3px;
}
.gi-me-head b { font-size: 14px; font-weight: 700; }
.gi-me-head span { font-size: 11.5px; color: var(--text2); line-height: 1.45; }
.gi-me-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 12px; border: none; text-align: left;
  background: transparent; border-radius: 7px;
  font-family: inherit; font-size: 13px; color: var(--text2); cursor: pointer;
  transition: background .1s, color .1s;
}
.gi-me-opt:hover { background: var(--s3); color: var(--text); }
.gi-me-opt span { width: 16px; text-align: center; flex: none; }
.gi-me-out:hover { color: #e5636b; }
.gi-me-sep { height: 1px; background: var(--border); margin: 6px 4px; }

.gi-me-form { display: grid; gap: 7px; padding: 4px 6px 6px; }
.gi-me-form select, .gi-me-form input {
  width: 100%; box-sizing: border-box;
  background: var(--s1); border: 1px solid var(--border); border-radius: 7px;
  padding: 8px 10px; font-family: inherit; font-size: 13px; color: var(--text);
}
.gi-me-form select:focus, .gi-me-form input:focus {
  outline: none; border-color: var(--bhl);
}
.gi-me-form button {
  background: linear-gradient(135deg, var(--goldb), var(--gold));
  border: none; border-radius: 7px; padding: 9px;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #1a1405;
  cursor: pointer;
}
.gi-me-form button:hover { filter: brightness(1.08); }

/* 首访提示气泡：只弹一次，不遮挡、不拦点击 */
.gi-me-tip {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 190;
  display: flex; align-items: flex-start; gap: 8px;
  width: 252px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 12px;
  background: linear-gradient(180deg, #2a2410, #1d1a0c);
  border: 1px solid rgba(200 168 75 / .45); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0 0 0 / .55);
  font-size: 12px; line-height: 1.5; color: #e8dcb4;
  animation: giMeTipIn .35s ease both;
}
.gi-me-tip::before {
  content: ''; position: absolute; right: 20px; top: -5px;
  width: 8px; height: 8px; transform: rotate(45deg);
  background: #2a2410; border-left: 1px solid rgba(200 168 75 / .45);
  border-top: 1px solid rgba(200 168 75 / .45);
}
.gi-me-tip button {
  background: none; border: none; color: #9a8c5e; cursor: pointer;
  font-size: 12px; line-height: 1; padding: 2px; flex: none;
}
.gi-me-tip button:hover { color: #e8dcb4; }
@keyframes giMeTipIn { from { opacity: 0; transform: translateY(-6px); } }

.gi-me-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
  z-index: 400; max-width: min(440px, calc(100vw - 32px));
  padding: 11px 18px; border-radius: 10px;
  background: rgba(19 19 42 / .96); border: 1px solid rgba(200 168 75 / .4);
  box-shadow: 0 14px 44px rgba(0 0 0 / .6);
  font-size: 13px; color: var(--text); opacity: 0;
  transition: opacity .3s, transform .3s;
}
.gi-me-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 「确定顶替吗」确认弹层（wow_me.giMeSet）。
   ⛔ 不用原生 confirm()：它阻塞页面全部事件、样式也跟站上完全不搭。 */
.gi-me-modal {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  background: rgba(0 0 0 / .58); backdrop-filter: blur(3px); padding: 20px;
}
.gi-me-modal-card {
  max-width: 420px; width: 100%; background: var(--s1);
  border: 1px solid rgba(200 168 75 / .38); border-radius: 14px;
  padding: 20px 22px; box-shadow: 0 20px 60px rgba(0 0 0 / .65);
}
.gi-me-modal-msg { font-size: 14.5px; line-height: 1.7; color: var(--text); }
.gi-me-modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.gi-me-modal-btns button {
  border-radius: 9px; padding: 8px 18px; font-size: 13.5px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text2);
}
.gi-me-modal-yes {
  background: rgba(200 168 75 / .16); border-color: rgba(200 168 75 / .5) !important;
  color: var(--goldb) !important; font-weight: 700;
}
.gi-me-modal-btns button:hover { border-color: var(--bhl); }

/* ⛔ 「上次分析」留存条此前**一条样式都没有** —— 元素渲染成浏览器默认按钮，
   跟整站设计完全不搭（2026-08-30 用户截图里看出来的）。补齐。 */
/* ⛔⛔ 必须先写这条：`display:flex` 的**类选择器优先级压过浏览器默认的
   `[hidden]{display:none}`** —— 不写就会在「没有任何保存记录」的浏览器上
   把一条空 bar 显示出来（只有 ↺ 和两个按钮，中间一片空白）。
   2026-08-30 就是这么翻的车：我自己那台有记录所以看不见，用户干净 profile 一眼就露。
   ⭐ 判据：给任何**带 hidden 属性**的元素写 display 时，必须同时写 [hidden] 的兜底。 */
.gi-saved[hidden] { display: none !important; }
.gi-saved {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 9px 13px; border-radius: 10px;
  background: rgba(200 168 75 / .07); border: 1px solid rgba(200 168 75 / .28);
  font-size: 13px;
}
.gi-saved-ico { color: var(--goldb); font-size: 15px; line-height: 1; }
.gi-saved-txt { flex: 1; min-width: 0; color: var(--text); }
.gi-saved-txt b { font-weight: 700; }
.gi-saved-when { color: var(--text3); font-size: 12px; margin-left: 6px; font-weight: 400; }
.gi-saved-btn, .gi-saved-x {
  border-radius: 8px; padding: 5px 13px; font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text2);
  transition: border-color .15s, color .15s;
}
.gi-saved-btn {
  border-color: rgba(200 168 75 / .45); color: var(--goldb);
  background: rgba(200 168 75 / .12); font-weight: 600;
}
.gi-saved-btn:hover { border-color: var(--gold); }
.gi-saved-x:hover { border-color: var(--bhl); color: var(--text); }
@media (max-width: 520px) {
  .gi-saved-txt { flex-basis: 100%; }
}

/* 分析页的「记住这个角色」勾选 —— 与「我不打团本」同一排样式 */
.gi-analyze-opts + .gi-analyze-opts { margin-top: 6px; }

/* 窄屏：导航栏本来就挤，胶囊只留头像 + 名字，副标题让位 */
@media (max-width: 768px) {
  .gi-me-txt i { display: none; }
  .gi-me-txt b { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gi-me-drop { min-width: 216px; }
  .gi-me-tip { width: 208px; }
}
@media (prefers-reduced-motion: reduce) {
  .gi-me-tip { animation: none; }
  .gi-me-toast { transition: none; }
}

/* 绑定面板里的插件次要入口（用户 2026-08-29 问「是不是直接改成指引下载插件」）。
   ⛔ 视觉上必须**明显次于**上面的表单：查名字是零门槛主路径，
      插件是「更准」的升级项。做成同等份量会把人吓走。 */
.gi-me-alt { padding: 2px 8px 6px; display: grid; gap: 4px; }
.gi-me-alt b { font-size: 12.5px; font-weight: 650; color: var(--text); }
.gi-me-alt span { font-size: 11.5px; line-height: 1.5; color: var(--text2); }
.gi-me-alt-row { display: flex; gap: 8px; margin-top: 4px; }
.gi-me-alt-row a {
  flex: 1; text-align: center; padding: 7px 6px;
  background: var(--s1); border: 1px solid var(--border); border-radius: 7px;
  font-size: 12px; font-weight: 600; color: var(--text2);
  transition: border-color .15s, color .15s;
}
.gi-me-alt-row a:hover { border-color: var(--bhl); color: var(--goldb); }

/* 导航标签绝不折行（用户 2026-08-29：意大利语下整条 nav 折成了两行）。
   根因是译文太长（"Analizzatore equipaggiamento" 这种四词长句），已单独压短；
   ⛔ 但只改译文不够 —— 以后任何语言、任何新增栏目都可能再撑爆。
   nowrap 让「撑爆」表现为**挤**而不是**折行**，配合窄屏收紧内边距，是结构性兜底。 */
.gi-nav-link { white-space: nowrap; }
@media (max-width: 1180px) {
  .gi-nav-inner { gap: 4px; }
  .gi-nav-link { padding: 6px 9px; font-size: 13.5px; }
}

/* 网站版本号（页脚）。⛔ 这是**网站**版本，与插件版本（0.64.x）是两条线。
   刻意做得很轻：它是给报 bug 的人对齐用的，不是卖点，不该抢页脚链接的注意力。 */
.gi-sitever { color: #6b7385; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── 大秘境攻略索引的副本卡（用户 2026-08-31 手机截图）───────────────────────
   ⛔⛔ 症状很反直觉：**头部和 Hero 只占大半屏、右边一条黑边**，而卡片是满宽的。
      根因不在头部 —— 是 .gi-dg-img 当时**一条尺寸规则都没有**（全局那条只给了
      display:block），图片按原图 600px 铺开，把**文档**撑到比视口宽；
      而 width:100% 的头部按**视口**算宽度，于是显得窄了一截。
   ⭐ 判据：手机上任何「一侧空出一条」的布局问题，先查 document.scrollWidth
      有没有大于 innerWidth，别一头扎进头部的 CSS 里。 */
.gi-dg-img {
  width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: 8px; margin-bottom: 10px;
}
.gi-dg-card {
  /* ⛔ min-width:0 不能省：flex item 的默认 min-width:auto 会被内容的
     最小内容宽度顶开，图片写了 width:100% 也未必压得住。 */
  flex: 1 1 300px; min-width: 0; max-width: 520px;
  line-height: 1.45; text-align: left;
}
@media (max-width: 640px) { .gi-dg-card { flex-basis: 100%; max-width: 100%; } }

/* 宽表格在窄屏自己横滚，⛔别让**页面**横滚（用户 2026-08-31 手机截图那类问题）。
   判据：document.documentElement.scrollWidth 必须等于设备宽度，
   宽内容一律关进自己的 overflow-x 容器里。 */
.gi-tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.gi-tblwrap > .gi-loot-table { min-width: 520px; }
/* ⛔ 缺件/已毕业表同样要给下限：不给的话表会被压进 390px 的手机屏，
   列挤成一团 —— 要的是「在 wrap 里横滚」，不是「把列压扁」。 */
.gi-tblwrap > .gi-miss-table { min-width: 520px; }
@media (max-width: 640px) { .gi-tblwrap > .gi-loot-table { font-size: 13px; } }

/* ── 可搜索下拉框（服务器选择等）─────────────────────────────────────────────
   ⛔ 替掉原生 <datalist>：浏览器把它渲染成一大片系统白底列表，盖住半个屏幕，
      完全不吃站点主题（用户 2026-08-31 截图）。 */
.gi-combo { position: relative; flex: 1 1 200px; min-width: 0; }
.gi-combo > input { width: 100%; }
.gi-combo-panel {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--s1); border: 1px solid var(--bhl); border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0 0 0 / .55);
  max-height: min(320px, 52vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 4px;
}
.gi-combo-opt {
  padding: 10px 12px; border-radius: 7px; cursor: pointer;
  font-size: 14px; color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gi-combo-opt:hover, .gi-combo-opt.on { background: var(--s3); color: var(--gold); }
/* ⛔ 手机上选项要够大才点得中：44px 是 iOS 的最小可点尺寸 */
@media (max-width: 640px) {
  .gi-combo-panel { max-height: 46vh; }
  .gi-combo-opt { padding: 12px 12px; font-size: 15px; min-height: 44px;
                  display: flex; align-items: center; }
}

/* ── 「此分析已保存 / 删除我的数据」那一条 ──────────────────────────────────
   ⛔ 这块原来**一条 CSS 都没有**，按钮渲染成浏览器默认的白色方块，
      直接怼在句子后面把行撑断（用户 2026-08-31 截图）。
      与 .gi-saved、.gi-dg-img 是同一类事故：markup 上线了、样式没跟上。 */
.gi-rec-note {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text3); line-height: 1.6;
  padding: 9px 12px; margin-bottom: 14px;
  background: var(--s1); border: 1px solid var(--border); border-radius: 9px;
}
.gi-rec-note > span:first-child { flex: 1 1 240px; min-width: 0; }
.gi-unbind {
  flex: none; cursor: pointer; font-size: 12px; line-height: 1;
  color: var(--text3); background: none; padding: 6px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  transition: color .15s, border-color .15s, background .15s;
}
.gi-unbind:hover { color: #f85149; border-color: rgba(248 81 73 / .5);
                   background: rgba(248 81 73 / .08); }
.gi-rec-done { color: #3fb950; font-size: 12.5px; }

/* ── 副属性诊断：当前 vs 目标的「差距条」───────────────────────────────────
   ⭐ 用户 2026-08-31：「重点还是展示当前和目标的差距」。
   ⛔ 不要做成「填到百分之几」的进度条 —— 属性占比本来就只有 15~38%，
      条永远只填一小截，既难看又没信息量。
   ✅ 改成：**目标固定画在同一个横向位置**（各行对齐成一条竖线），
      玩家的条相对目标伸缩 —— 条头没够到竖线 = 差多少，越过 = 超标多少。
      一眼扫下来哪几项没到线，比读四个百分比快得多。 */
.gi-sd-row { display: grid; grid-template-columns: 68px 1fr auto auto;
             align-items: center; gap: 12px; padding: 8px 0;
             border-top: 1px solid var(--border); font-size: 13px; }
.gi-sd-name { color: var(--text2); }
.gi-sd-track { position: relative; height: 10px; background: var(--s3);
               border-radius: 5px; overflow: hidden; }
.gi-sd-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px;
              transition: width .5s cubic-bezier(.2,.8,.2,1); }
.gi-sd-fill.st-low  { background: linear-gradient(90deg, #7a2b28, #f85149); }
/* ⛔ 档位名必须**穷举服务端真值**（api.py 共六档：none/noncore/low/tol/ok/over），
   别抄两三个就收手 —— 第一版凭想象写 st-near 透明了「接近」，第二版只补 ok
   又漏了 tol（90%~100% 那档），同一个坑连踩两脚（用户 2026-08-31：精通咋不展示）。 */
.gi-sd-fill.st-tol { background: linear-gradient(90deg, #7a5a1e, #e3b341); }
.gi-sd-fill.st-ok  { background: linear-gradient(90deg, #1f5c33, #3fb950); }
.gi-sd-fill.st-noncore, .gi-sd-fill.st-none {
  background: linear-gradient(90deg, #3a4150, #6b7385); }
.gi-sd-fill.st-over { background: linear-gradient(90deg, #1f5c33, #3fb950); }
/* 目标竖线：各行同一个 left%，扫下来就是一条基准线 */
.gi-sd-tick { position: absolute; top: -3px; bottom: -3px; width: 2px;
              background: var(--gold); border-radius: 2px; box-shadow: 0 0 0 2px var(--bg); }
.gi-sd-nums { font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.gi-sd-nums i { font-style: normal; color: var(--text3); margin-left: 6px; font-size: 12px; }
@media (max-width: 640px) {
  .gi-sd-row { grid-template-columns: 52px 1fr auto; gap: 8px; font-size: 12.5px; }
  .gi-sd-nums { grid-column: 2 / -1; }   /* 数字换行到条下面，别把条挤没 */
}

/* ── 来源 chip 点击后高亮下方对应行 ────────────────────────────────────────
   ⛔ 原来 chip 是个 <a>，点一下**跳走**到刷本指南首页 —— 玩家正在看自己的
      缺件清单，被弹到一个通用页面（用户 2026-08-31）。改成留在原地高亮。 */
.gi-farm-chip { cursor: pointer; }
.gi-farm-chip.on { border-color: var(--gold); color: var(--gold); }
@keyframes gi-row-hl {
  0%   { background: rgba(200 168 75 / .30); }
  100% { background: transparent; }
}
tr.gi-hl > td { animation: gi-row-hl 1.8s ease-out; }

/* 「粘贴新的导出串」——有留存时粘贴区收起来，用这个次要入口展开。
   ⛔ 做成弱按钮：它是**换角色**才用的路，不该跟主操作抢注意力。 */
/* ⛔⛔ 又踩了一次同一个坑（2026-08-31，与 .gi-saved 那次一模一样）：
   给带 hidden 属性的元素写 display，就把 hidden 废掉了 ——
   类选择器优先级高于 UA 的 [hidden]{display:none}。
   ✅ 规矩固定成：**先写 [hidden] 的兜底，再写 display**。 */
.gi-paste-toggle[hidden] { display: none !important; }
.gi-sd-row[hidden], .gi-rec-note[hidden] { display: none !important; }
.gi-paste-toggle {
  display: block; width: 100%; margin-bottom: 14px; cursor: pointer;
  background: none; border: 1px dashed var(--border); border-radius: 10px;
  padding: 11px 14px; font-size: 13px; color: var(--text3);
  transition: color .15s, border-color .15s;
}
.gi-paste-toggle:hover { color: var(--gold); border-color: var(--bhl); }
/* 「忘记」改成 ✕ 图标：原来是「不再记住」四个字，跟旁边的主按钮抢视线，
   而且用户说看不懂（2026-08-31）。语义靠 title 兜。 */
.gi-saved-x { line-height: 1; padding: 6px 9px; font-size: 13px; }

/* 留存条上的「上次结论摘要」——用户 2026-08-31：顶部这条要记录状态，随时回来看。
   ⛔ 弱化处理：它是**回顾**，不该跟旁边的「用这份重新分析」抢点击。 */
.gi-saved-sum { display: block; margin-top: 3px; font-size: 12px;
                color: var(--text3); font-variant-numeric: tabular-nums; }
.gi-saved-sum[hidden] { display: none !important; }   /* ⛔ 先兜 hidden 再写 display */
/* 已绑定时这两块整体收起（粘贴卡下面的「或」分隔 + 查询角色卡） */
.gi-noaddon-divider[hidden], .gi-noaddon-card[hidden] { display: none !important; }

/* ── 导航上的「世界首杀」临时标志（竞速期间全站可见）────────────────────────
   inProgress=false 时 JS 根本不注入，不需要谁记得回来摘。 */
.gi-nav-rwf {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--gold); text-decoration: none;
  background: rgba(200 168 75 / .10); border: 1px solid rgba(200 168 75 / .38);
  border-radius: 999px; padding: 5px 12px; margin-right: 10px; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.gi-nav-rwf:hover { background: rgba(200 168 75 / .2); border-color: var(--gold); }
.gi-nav-rwf b { font-weight: 800; color: var(--goldb); }
.gi-rwf-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5c5c;
              animation: gi-dotpulse 1.5s ease-out infinite; }
@keyframes gi-dotpulse {
  0%   { box-shadow: 0 0 0 0 rgba(255 92 92 / .55); }
  70%  { box-shadow: 0 0 0 7px rgba(255 92 92 / 0); }
  100% { box-shadow: 0 0 0 0 rgba(255 92 92 / 0); }
}
/* 手机上导航空间紧张：只留脉动点和 M 号，藏掉文字 */
/* ⛔ 收不收文字不用媒体断点判 —— 中文标签短英文长，同一宽度下一个挤一个不挤。
   注入器插完实测 nav 溢不溢出，溢出就加 .mini 只留 点+进度（resize 时复判）。 */
.gi-nav-rwf.mini span { display: none; }
.gi-nav-rwf.mini { padding: 5px 9px; }

/* ── 首杀「最新击杀」倒序时间轴（用户 2026-08-31：实时刷新的感觉 + 动画）──── */
.gi-tl { position: relative; background: transparent; border: none; gap: 0;
         padding-left: 20px; overflow: visible; }
.gi-tl::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px;
                 width: 2px; background: var(--border); border-radius: 2px; }
.gi-tl > .gi-news-row {
  position: relative; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; background: var(--s1);
  animation: gi-tl-in .5s cubic-bezier(.2,.8,.2,1) both;
}
.gi-tl > .gi-news-row::before {
  content: ''; position: absolute; left: -19px; top: 50%; margin-top: -4px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--text3);
  box-shadow: 0 0 0 3px var(--bg);
}
.gi-tl > .gi-news-row.wf::before { background: var(--gold); }
/* 最新一条：金点脉动 —— 「刚发生」的信号 */
.gi-tl > .gi-news-row:first-child::before { background: var(--goldb);
  animation: gi-dotpulse-gold 1.8s ease-out infinite; }
@keyframes gi-dotpulse-gold {
  0%   { box-shadow: 0 0 0 3px var(--bg), 0 0 0 3px rgba(232 200 110 / .5); }
  70%  { box-shadow: 0 0 0 3px var(--bg), 0 0 0 11px rgba(232 200 110 / 0); }
  100% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 0 rgba(232 200 110 / 0); }
}
@keyframes gi-tl-in { from { opacity: 0; transform: translateX(-16px); }
                      to   { opacity: 1; transform: none; } }
/* 自动刷新拉到新击杀时，新行从顶上滑进来 */
.gi-tl > .gi-news-row.gi-fresh { animation: gi-tl-fresh .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gi-tl-fresh { from { opacity: 0; transform: translateY(-14px); }
                         to   { opacity: 1; transform: none; } }
.gi-live-pill { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: #ff8a8a;
  border: 1px solid rgba(255 92 92 / .4); border-radius: 999px; padding: 2px 9px; }
.gi-live-pill i { width: 6px; height: 6px; border-radius: 50%; background: #ff5c5c;
                  animation: gi-dotpulse 1.5s ease-out infinite; }
.gi-news-when { font-variant-numeric: tabular-nums; }

/* ── 「AI 分析中」动画（最少播 1.5 秒，见模板注释）─────────────────────────── */
.gi-ai-anim[hidden] { display: none !important; }   /* ⛔ 先兜 hidden 再写 display */
.gi-ai-anim { display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 44px 20px; margin-bottom: 18px;
  background: var(--s1); border: 1px solid var(--border); border-radius: var(--rlg); }
.gi-ai-ring { width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(200 168 75 / .18); border-top-color: var(--goldb);
  animation: gi-ai-spin .9s linear infinite; }
@keyframes gi-ai-spin { to { transform: rotate(360deg); } }
.gi-ai-t { font-size: 16px; font-weight: 700; color: var(--gold); }
.gi-ai-step { font-size: 12.5px; color: var(--text3); min-height: 18px;
  animation: gi-ai-fade .6s ease-in-out infinite alternate; }
@keyframes gi-ai-fade { from { opacity: .45; } to { opacity: 1; } }

/* ── 「进行中」徽的重复动态感（用户 2026-08-31）：呼吸光晕 + 脉动点 ────────
   ⛔ 只加在**进行中**状态上；「已完结」(.gi-race-done) 必须是静止的 ——
      完结了还在闪等于撒谎。 */
.gi-rwf-live, .gi-race-live:not(.gi-race-done) {
  animation: gi-live-breathe 2s ease-in-out infinite;
}
.gi-rwf-live::before, .gi-race-live:not(.gi-race-done)::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #56d682; margin-right: 6px; vertical-align: 1px;
  animation: gi-live-dot 2s ease-out infinite;
}
@keyframes gi-live-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86 214 130 / 0); border-color: rgba(86 214 130 / .45); }
  50%      { box-shadow: 0 0 14px 0 rgba(86 214 130 / .35); border-color: rgba(86 214 130 / .9); }
}
@keyframes gi-live-dot {
  0%   { box-shadow: 0 0 0 0 rgba(86 214 130 / .6); }
  70%  { box-shadow: 0 0 0 6px rgba(86 214 130 / 0); }
  100% { box-shadow: 0 0 0 0 rgba(86 214 130 / 0); }
}

/* 时间轴四列网格：时间|公会|BOSS|区服 各自成列、上下对齐（用户 2026-08-31）。
   公会是主体：加粗放大；BOSS 压一档灰。 */
.gi-tl > .gi-news-row { display: grid; align-items: center; gap: 12px;
  grid-template-columns: 82px minmax(170px, 225px) 1fr auto; }
.gi-tl .gi-news-guild { margin-left: 0; font-size: 14.5px; font-weight: 800; color: var(--text); }
/* ⛔ 基础样式里 .gi-news-gwrap 是右对齐时代的遗产（margin-left:auto +
   justify-content:flex-end）——在网格里会把公会推离列左缘，内容越短漂得越远，
   左缘 430/411/399 各漂各的。时间轴里必须整个压回左对齐。 */
.gi-tl .gi-news-gwrap { display: flex; align-items: baseline; gap: 7px; min-width: 0;
  margin-left: 0; justify-content: flex-start; }
.gi-tl .gi-news-mid { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gi-tl .gi-news-boss { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-tl .gi-news-side { display: flex; align-items: center; gap: 8px; justify-self: end; }
@media (max-width: 640px) {
  /* 手机放不下四列：时间+公会一行，BOSS+区服换行到第二行 */
  .gi-tl > .gi-news-row { grid-template-columns: 74px 1fr auto; gap: 8px; }
  .gi-tl .gi-news-mid { grid-column: 1 / -2; justify-self: start; }
  .gi-tl .gi-news-side { grid-row: 2; grid-column: -2; }
}

/* ── 「该刷哪些副本」卡片（用户 2026-08-31）──────────────────────────────── */
.gi-fp-sub { font-size: 12.5px; color: var(--text3); margin: -6px 0 12px; }
.gi-farm-chips { display: grid; gap: 10px; margin-bottom: 20px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.gi-fp-card { text-align: left; cursor: pointer; font-family: inherit;
  background: var(--s1); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; transition: border-color .15s, transform .15s; }
.gi-fp-card:hover { border-color: var(--bhl); transform: translateY(-1px); }
.gi-fp-card.on { border-color: var(--gold); }
.gi-fp-card.top { border-color: rgba(200 168 75 / .5);
  background: linear-gradient(180deg, rgba(200 168 75 / .08), var(--s1) 55%); }
.gi-fp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; flex-wrap: wrap; }
.gi-fp-inst { font-size: 15px; font-weight: 800; color: var(--text); }
.gi-fp-kind { font-size: 10.5px; font-weight: 700; color: var(--text3);
  border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.gi-fp-n { font-size: 12.5px; font-weight: 800; color: var(--goldb); margin-left: auto; }
.gi-fp-best { font-size: 10.5px; font-weight: 800; color: #17130a;
  background: linear-gradient(135deg, var(--goldb), var(--gold));
  border-radius: 999px; padding: 2px 8px; }
.gi-fp-list { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 5px; }
.gi-fp-list li { display: flex; align-items: baseline; gap: 8px; font-size: 13px;
  min-width: 0; }
.gi-fp-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-fp-rank { flex: none; font-size: 11px; font-weight: 800; color: var(--text3);
  font-variant-numeric: tabular-nums; }
.gi-fp-slot { flex: none; font-size: 12px; color: var(--text3); }
.gi-fp-boss { flex: none; font-style: normal; font-size: 11.5px; color: var(--text3);
  margin-left: auto; white-space: nowrap; }
.gi-fp-boss, .gi-src-m { font-variant-numeric: tabular-nums; }
.gi-src-m { color: var(--goldb); font-weight: 800; }
.gi-src-k { font-size: 11px; color: var(--text3); border: 1px solid var(--border);
  border-radius: 4px; padding: 0 4px; margin-right: 2px; }

/* 「转换」徽：套装走套装转换获得，BOSS 掉的是坯子 —— 必须把这层说清 */
.gi-src-cat { font-size: 10px; font-weight: 700; color: #9d7bd8;
  border: 1px solid rgba(157 123 216 / .45); border-radius: 4px;
  padding: 0 4px; cursor: pointer; white-space: nowrap;
  background: transparent; font-family: inherit; line-height: 1.5; }
.gi-src-cat:hover { background: rgba(157 123 216 / .16); color: #c4aef0; }
.gi-src-cat:focus-visible { outline: 2px solid #9d7bd8; outline-offset: 1px; }

/* 坯子那一行：来源列里必须看得见「掉的是哪件坯子」，
   ⛔ 只有一个「转换」徽标 = 玩家读成「这个 BOSS 直接掉套装」（2026-08-31）。 */
.gi-src-fil { display: block; font-style: normal; font-size: 11px;
  color: var(--text3); margin-top: 2px; }
.gi-src-fil a { color: #a99bd6; }
.gi-src-arrow { color: #9d7bd8; }
.gi-cat-fil a { color: #a99bd6; }
/* 坯子的绿字（次级属性）：玩家在同部位几个坯子之间做选择，选的就是这个。
   蓝字与坯子名（紫）区分开，⛔别跟装备品质色撞。 */
.gi-cat-fstat { color: #66bbff; font-style: normal; white-space: nowrap; }
.gi-cat-alts { display: block; font-size: 11px; color: var(--text3); font-style: normal; }
/* 转换优先级：结论条 + 行序号 + 「可跳过」 */
.gi-cat-lead { font-size: 13px; line-height: 1.6; color: var(--text2);
  background: rgba(157 123 216 / .10); border: 1px solid rgba(157 123 216 / .30);
  border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; }
.gi-cat-lead[hidden] { display: none !important; }
.gi-cat-charge { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.gi-cat-lead b { color: #c4aef0; }
.gi-cat-owned { display: block; color: var(--text3); font-size: 12px; margin-top: 2px; }
.gi-cat-no { display: inline-block; min-width: 18px; margin-right: 6px;
  font-size: 11px; font-weight: 800; color: var(--goldb);
  font-variant-numeric: tabular-nums; }
.gi-cat-row.first { background: rgba(157 123 216 / .07); }
.gi-cat-row.skip { opacity: .62; }
.gi-cat-row.skip .gi-cat-no { color: var(--text3); }
.gi-cat-skip { display: inline-block; margin-left: 6px; font-style: normal;
  font-size: 10px; color: var(--text3); border: 1px solid var(--border);
  border-radius: 4px; padding: 0 4px; }
.gi-cat-row.gi-hl { box-shadow: inset 0 0 0 2px rgba(200 168 75 / .75); }

/* 上赛季副本折叠区（掉落表索引） */
.gi-legacy { margin-bottom: 36px; }
.gi-legacy > summary { cursor: pointer; list-style: none; user-select: none;
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; color: var(--text3);
  padding: 9px 14px; background: var(--s1);
  border: 1px solid var(--border); border-radius: 10px; }
.gi-legacy > summary::-webkit-details-marker { display: none; }
.gi-legacy > summary::before { content: '▸'; transition: transform .15s; }
.gi-legacy[open] > summary::before { transform: rotate(90deg); }
.gi-legacy > summary:hover { color: var(--text); border-color: var(--bhl); }
.gi-legacy-n { font-size: 11.5px; font-weight: 800; color: var(--text3);
  background: var(--s3); border-radius: 999px; padding: 1px 8px; }
.gi-inst-legacy { opacity: .82; }

/* ── 决赛圈 · 尾王攻坚实况（rwf_frontline.json 手工喂，>48h 自动隐藏）─────── */
.gi-front { background: var(--s1); border: 1px solid rgba(200 168 75 / .35);
  border-radius: var(--rlg); padding: 16px 18px; }
.gi-front-boss { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.gi-front-tag { font-size: 13px; font-weight: 800; color: var(--goldb);
  border: 1px solid rgba(200 168 75 / .4); border-radius: 6px; padding: 1px 8px; }
.gi-front-name { font-size: 17px; font-weight: 800; color: var(--text); }
.gi-front-row { display: grid; grid-template-columns: 150px 1fr auto;
  align-items: center; gap: 12px; padding: 7px 0; }
.gi-front-guild { font-size: 14.5px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 7px; }
.gi-front-guild .gi-reg { font-style: normal; }
.gi-front-track { height: 12px; background: var(--s3); border-radius: 6px; overflow: hidden; }
/* 条 = 首领**剩余**血量：越短越接近击杀。红→暗红渐变强调「还剩多少」 */
.gi-front-fill { height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #7a2b28, #c24b45);
  transition: width .6s cubic-bezier(.2,.8,.2,1); }
.gi-front-num { font-size: 13px; color: var(--text2); font-variant-numeric: tabular-nums;
  white-space: nowrap; }
.gi-front-note { margin-top: 10px; font-size: 11.5px; color: var(--text3); }
@media (max-width: 640px) {
  .gi-front-row { grid-template-columns: 110px 1fr; }
  .gi-front-num { grid-column: 2; justify-self: end; }
}
/* 时间轴的「世界第N杀」小徽 */
.gi-news-wr { font-size: 10.5px; font-weight: 700; color: var(--text3);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px;
  white-space: nowrap; }

/* ── 人物部位视图（纸娃娃）——排版抄暴雪英雄榜（2026-08-31 用户指定）──────
   ⭐ 三条要点：图标在**外侧**、文字朝内镜像；一格只有图标+物品名；
      两列**等行数**。⛔ 别再往格子里塞槽位名标签 —— 行高翻倍正是「太别扭」的来源。 */
.gi-doll[hidden] { display: none !important; }
/* ⛔⛔ 列宽必须写 minmax(0,1fr) 不能写 1fr —— `1fr` 等价于 `minmax(auto,1fr)`，
   auto 的下限是**内容宽度**，于是列拒绝收窄、整个网格被撑破（grid blowout）。
   2026-09-01 手机上纸娃娃右边界跑到 547px（视口 390）就是这条，
   而每一格自己都老老实实写了 min-width:0 / ellipsis —— 找了半天不在格子上。 */
.gi-doll { display: grid; grid-template-columns: minmax(0,1fr) minmax(150px, 210px) minmax(0,1fr);
  grid-template-areas: "l mid r" "w w w";
  gap: 6px 16px; margin-bottom: 22px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--rlg); padding: 16px; }
/* 左 6 格右 8 格（官方摆位），两列都垂直居中 → 视觉仍是对称的 */
.gi-doll-col { display: flex; flex-direction: column; gap: 5px;
  justify-content: center; min-width: 0; }
#gi-doll-l { grid-area: l; } #gi-doll-r { grid-area: r; }
.gi-doll-mid { grid-area: mid; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: radial-gradient(ellipse 72% 52% at 50% 45%,
    rgba(100 70 160 / .25) 0%, transparent 72%); border-radius: 12px; }
.gi-doll-spec { font-size: 15px; font-weight: 800; color: var(--text); }
.gi-doll-ilvl { font-size: 24px; font-weight: 800; color: var(--goldb);
  font-variant-numeric: tabular-nums; }
/* 毕业率：比平均装等小一号，但比图例显眼 —— 它是「还差多远」的答案 */
.gi-doll-rate { font-size: 13px; font-weight: 700; color: var(--text2);
  font-variant-numeric: tabular-nums; margin-top: -2px; }
.gi-doll-legend { display: flex; gap: 8px; font-size: 10.5px; color: var(--text3); }
.gi-doll-legend .lg { padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); }
.gi-doll-legend .lg.ok { border-color: rgba(200 168 75 / .55); color: var(--goldb); }
.gi-doll-legend .lg.miss { border-color: rgba(248 81 73 / .5); color: #f88a84; }
.gi-doll-weapons { grid-area: w; display: flex; gap: 8px; justify-content: center;
  margin-top: 4px; }
.gi-doll-weapons .gi-doll-slot { width: 240px; }
/* 一格 = 大图标 + 两行文字（物品名 / 来源）。
   ⛔ 高度仍必须**固定**：一格被长名字撑高，整列就跟对面错开（两列对称是这套
   布局的命根子）。所以两行都 nowrap+ellipsis，不靠内容决定高度。
   ⭐ 2026-09-01 按用户给的冰橙攻略站参考图放大：图标 36→46，行高 46→62。 */
.gi-doll-slot { display: flex; align-items: center; gap: 9px;
  background: var(--s2); border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 8px; height: 62px; min-width: 0; }
/* 占位格：撑住高度，不留任何痕迹 */
.gi-doll-slot.spacer { background: none; border-color: transparent; }
.gi-doll-slot.ok { border-color: rgba(200 168 75 / .5); }
.gi-doll-slot.miss { border-color: rgba(248 81 73 / .5); cursor: pointer;
  transition: background .15s; }
.gi-doll-slot.miss:hover { background: rgba(248 81 73 / .08); }
/* 右列镜像：文字在左、图标在右 —— 官方就是这么摆的，视线从中间向两边扫 */
#gi-doll-r .gi-doll-slot { flex-direction: row-reverse; text-align: right; }
.gi-pd-ic { position: relative; flex: none; width: 46px; height: 46px;
  border-radius: 7px; overflow: hidden; background: var(--s3); display: block;
  border: 1px solid var(--border); }
/* 图标描边跟品质走（参考图里史诗件是一圈紫边） */
.gi-doll-slot.miss .gi-pd-ic, .gi-doll-slot.ok .gi-pd-ic { border-color: rgba(163 53 238 / .5); }
.gi-pd-ic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gi-pd-ic b { position: absolute; right: 1px; bottom: 0; font-size: 10px;
  font-weight: 800; color: #ffd97a; text-shadow: 0 0 3px #000, 0 0 3px #000;
  font-variant-numeric: tabular-nums; }
.gi-pd-tx { min-width: 0; flex: 1; }
.gi-pd-nm { display: block; font-size: 13px; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 物品名按品质上色 —— 变量在文件头 --q2..--q5 */
.gi-pd-nm.q2 { color: var(--q2); } .gi-pd-nm.q3 { color: var(--q3); }
.gi-pd-nm.q4 { color: var(--q4); } .gi-pd-nm.q5 { color: var(--q5); }
/* 「这格能提升 N 装等」—— 金色加粗，是玩家扫纸娃娃时第一眼要找的东西 */
.gi-pd-up { color: var(--goldb); font-weight: 800; font-style: normal; }
/* 第二行：↑+N · 来源（"坯子名"转化 / 副本–首领 / 制造），或毕业槽的「已毕业」 */
.gi-pd-src { display: block; font-size: 11px; line-height: 1.3; color: var(--text3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.gi-doll-empty { color: var(--text3); font-weight: 500; }
@media (max-width: 700px) {
  .gi-doll { grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    grid-template-areas: "mid mid" "l r" "w w"; gap: 6px 8px; padding: 12px; }
  /* 中间那条在手机上排成一行（专精 + 装等 + 图例）：不许它撑宽整个网格，
     放不下就换行。⛔ 这里少一个 flex-wrap，上面 minmax(0,1fr) 也救不回来。 */
  .gi-doll-mid { flex-direction: row; justify-content: center; gap: 10px;
    padding: 6px; flex-wrap: wrap; min-width: 0; }
  .gi-doll-legend { flex-wrap: wrap; justify-content: center; }
  .gi-doll-ilvl { font-size: 19px; }
  #gi-doll-r .gi-doll-slot { flex-direction: row; text-align: left; }
  .gi-doll-weapons { flex-direction: column; }
  .gi-doll-weapons .gi-doll-slot { width: auto; }
  /* 手机上两列各约 175px：图标收到 40、字号各降 1px，两行仍然放得下。
     ⛔ 别改成单列 —— 左右镜像是这套布局的信息结构，塌成一列就认不出槽位了。 */
  .gi-doll-slot { height: 58px; gap: 7px; padding: 4px 6px; }
  .gi-pd-ic { width: 40px; height: 40px; }
  .gi-pd-nm { font-size: 12px; }
  .gi-pd-src { font-size: 10.5px; }
}

/* ── BiS 页的纸娃娃（游戏内 C 键角色面板）───────────────────────────────
   复用上面整套 .gi-doll / .gi-pd-* ，只补三件分析页没有的事：
   ① ⛔ 分析页那套用 `#gi-doll-l` / `#gi-doll-r` **id** 定位左右列，
      而 BiS 一个专精有多个英雄天赋变体、每个变体还有团本/大秘境两套面板，
      id 会重复 —— 所以这里给一套 class 版的等价规则。
   ② 分析页的槽位分「已毕业/缺件」两态；BiS 页每个槽位都是目标件，没有缺件态，
      所以图标描边直接跟品质走。
   ③ 点一格滚到下面对应槽位的候选列表。 */
.gi-doll-bis[hidden] { display: none !important; }
.gi-doll-bis .gi-doll-col.l { grid-area: l; }
.gi-doll-bis .gi-doll-col.r { grid-area: r; }
/* 右列镜像：文字在左、图标在右 —— 游戏里就是这么摆的 */
.gi-doll-bis .gi-doll-col.r .gi-doll-slot { flex-direction: row-reverse; text-align: right; }
.gi-doll-bis .gi-doll-slot { cursor: pointer; transition: background .15s, border-color .15s; }
.gi-doll-bis .gi-doll-slot:hover { background: rgba(200 168 75 / .07);
  border-color: rgba(200 168 75 / .45); }
/* 图标描边跟品质走（史诗紫 / 传说橙），不再依赖 ok/miss 两个态 */
.gi-doll-bis .gi-pd-ic.q4 { border-color: rgba(163 53 238 / .55); }
.gi-doll-bis .gi-pd-ic.q5 { border-color: rgba(255 128 0 / .55); }
.gi-doll-bis .gi-pd-ic.q3 { border-color: rgba(0 112 221 / .55); }
/* 空槽（比如单手专精没有副手）：撑住高度，不留痕迹，也不可点 */
.gi-doll-bis .gi-doll-slot.empty { background: none; border-color: transparent;
  cursor: default; }
.gi-doll-bis .gi-doll-slot.empty:hover { background: none; border-color: transparent; }
/* 中间那列：专精名 + 毕业装等 + 一句口径说明 */
.gi-doll-bis .gi-doll-note { font-size: 10.5px; line-height: 1.45; color: var(--text3);
  max-width: 20ch; }
/* 槽位被从纸娃娃点中时，下面对应的候选卡闪一下金框 */
.gi-slot-card.gi-slot-hit { border-color: rgba(200 168 75 / .75) !important;
  box-shadow: 0 0 0 2px rgba(200 168 75 / .18); }
@media (max-width: 700px) {
  .gi-doll-bis .gi-doll-col.r .gi-doll-slot { flex-direction: row; text-align: left; }
  .gi-doll-bis .gi-doll-note { display: none; }
}

/* 「对照我的装备」开关条 —— 只有本地存着同专精的分析结果时才出现。
   ⛔ 默认勾上：有数据却要用户再点一下才看得到，等于白做。 */
.gi-doll-cmp[hidden] { display: none !important; }
.gi-doll-cmp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 10px; padding: 8px 12px; border-radius: 9px; font-size: 12.5px;
  color: var(--text2); background: rgba(200 168 75 / .07);
  border: 1px solid rgba(200 168 75 / .25); }
.gi-doll-cmp label { display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; color: var(--text); font-weight: 600; }
.gi-doll-cmp-who { color: var(--goldb); font-weight: 700; }
.gi-doll-cmp-go { margin-left: auto; color: #c8aa6e; text-decoration: none; }
.gi-doll-cmp-go:hover { text-decoration: underline; }
/* 已经穿着 BiS 的槽位：金框 —— 与分析页那套纸娃娃同一个视觉语言 */
.gi-doll-bis .gi-doll-slot.ok { border-color: rgba(200 168 75 / .5); }

/* 小屏导航再挤 8px：徽(点态)+角色胶囊+语言按钮三件套在 390px 只差一口气。
   ⛔ 别藏功能件 —— 收 padding/gap 就够了（实测 398→390）。 */
@media (max-width: 480px) {
  .gi-nav-inner { gap: 5px; padding: 0 10px; }
  .gi-me-btn { padding: 4px 7px 4px 5px; }
  .gi-lang-btn { padding: 5px 8px; }
  .gi-nav-rwf { margin-right: 4px; }
}

/* ── 「接下来三步」条 ─────────────────────────────────────────────────── */
.gi-next[hidden] { display: none !important; }
.gi-next { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 11px 14px; font-size: 13px;
  background: linear-gradient(90deg, rgba(200 168 75 / .10), var(--s1) 60%);
  border: 1px solid rgba(200 168 75 / .35); border-radius: 10px; }
.gi-next-t { font-weight: 800; color: var(--goldb); white-space: nowrap; }
.gi-next-s { display: inline-flex; align-items: center; gap: 6px; color: var(--text2); }
.gi-next-s b { display: inline-grid; place-items: center; width: 17px; height: 17px;
  border-radius: 50%; background: rgba(200 168 75 / .2); color: var(--goldb);
  font-size: 11px; font-weight: 800; }

/* ── 套装转换顾问 ─────────────────────────────────────────────────────── */
.gi-cat[hidden] { display: none !important; }
.gi-cat { margin-bottom: 20px; padding: 15px 17px;
  background: var(--s1); border: 1px solid rgba(157 123 216 / .35);
  border-radius: var(--rlg); }
.gi-cat-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 5px; }
.gi-cat-t { font-size: 15px; font-weight: 800; color: #c3a4ee; }
.gi-cat-n { font-size: 12px; color: var(--text3); }
.gi-cat-lede { font-size: 12.5px; color: var(--text3); line-height: 1.6; margin-bottom: 12px; }
.gi-cat-row { display: grid; grid-template-columns: 62px 1fr; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--border); }
.gi-cat-slot { font-size: 12.5px; font-weight: 700; color: var(--text2); }
.gi-cat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gi-cat-body i { font-style: normal; font-size: 12.5px; }
.gi-cat-tgt, .gi-cat-now { color: var(--text3); }
.gi-cat-ok { color: #3fb950; font-weight: 700; }
.gi-cat-warn { color: #e3b341; }
.gi-cat-gap { color: var(--text3); }
.gi-cat-src { color: var(--text3); }
.gi-cat-foot { margin-top: 10px; font-size: 11.5px; color: var(--text3); }
@media (max-width: 640px) { .gi-cat-row { grid-template-columns: 1fr; gap: 3px; } }

/* ── 成长曲线 ─────────────────────────────────────────────────────────── */
.gi-trend[hidden] { display: none !important; }
.gi-trend { display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
  padding: 10px 14px; background: var(--s1);
  border: 1px solid var(--border); border-radius: 10px; }
.gi-trend-svg { width: 180px; height: 40px; flex: none; }
.gi-trend-txt { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text3); }
.gi-trend-txt b { font-size: 13px; color: var(--text); }
.gi-trend-txt i { font-style: normal; color: var(--goldb); font-weight: 700; }

/* ── 待刷装备排序切换 ─────────────────────────────────────────────────── */
.gi-sortbar { display: flex; gap: 6px; margin: -4px 0 12px; }
.gi-sortbtn { cursor: pointer; font-family: inherit; font-size: 12px;
  color: var(--text3); background: none; padding: 4px 11px;
  border: 1px solid var(--border); border-radius: 999px;
  transition: color .15s, border-color .15s; }
.gi-sortbtn:hover { color: var(--text); border-color: var(--bhl); }
.gi-sortbtn.on { color: var(--goldb); border-color: rgba(200 168 75 / .5);
  background: rgba(200 168 75 / .1); }

/* ── Wowhead 悬停提示的面板皮肤（我们自己画）────────────────────────────────
   ⛔⛔ 不能指望 Wowhead 自己带：tooltips.js 会注入它的 universal.css（810KB），
      但那份里 `.wowhead-tooltip` **只有 display/visibility/z-index，没有任何背景**
      （2026-09-03 下载核对过）。面板皮肤在他们站内另一份样式表里，嵌入模式不发。
      结果就是提示框以**裸文字**浮在页面上，直接压住标题（用户能看到一坨叠字）。
   ⛔ 只画外观（背景/边框/内边距/阴影），⛔别碰 display/visibility ——
      那两样是他们 JS 控制显隐用的，覆盖了会变成「永远显示」或「永远不显示」。
   ⭐ 配色跟站内一致，不去仿 Wowhead 的米黄色边框：这是我们的页面。 */
.wowhead-tooltip {
  background: #0b0d13;
  border: 1px solid #2c3346;
  border-radius: 9px;
  padding: 10px 13px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .66);
  max-width: 360px;
  font-size: 13px;
  line-height: 1.55;
  color: #cfd6e4;
}
.wowhead-tooltip table { background: transparent; border-collapse: collapse; }
.wowhead-tooltip td, .wowhead-tooltip th { background: transparent; padding: 0; }
/* 窄屏别顶出屏幕 */
@media (max-width: 600px) {
  .wowhead-tooltip { max-width: calc(100vw - 24px); font-size: 12.5px; }
}

/* 循环页：团本 / 大秘境两半可折叠。用原生 <details>，键盘可达、无 JS 也能开合；
   ⛔ 必须去掉 list-item 默认的三角，否则 Safari/Chrome 各画各的。样本量徽章放进
   summary —— 折起来的时候仍然要能看见这块数据是几份日志烤的。 */
.gi-rot-sec { margin: 0 0 8px; }
.gi-rot-sec > summary { display:flex; align-items:center; flex-wrap:wrap; gap:10px;
  list-style:none; cursor:pointer; padding:14px 16px; margin-bottom:14px;
  border:1px solid var(--border); border-radius:12px; background:var(--s2);
  transition:border-color .14s ease, background .14s ease; }
.gi-rot-sec > summary::-webkit-details-marker { display:none; }
.gi-rot-sec > summary:hover { border-color:var(--gold); background:rgba(200 168 75 / .06); }
.gi-rot-sec-t { flex:1; min-width:0; color:var(--text); font-size:19px; font-weight:800; }
/* 自画的折叠箭头：跟着 open 转，比默认三角好控 */
.gi-rot-sec > summary::after { content:''; flex:none; width:9px; height:9px; margin-left:2px;
  border-right:2px solid var(--text3); border-bottom:2px solid var(--text3);
  transform:rotate(45deg) translate(-2px,-2px); transition:transform .18s ease; }
.gi-rot-sec[open] > summary::after { transform:rotate(-135deg) translate(-2px,-2px); }
.gi-rot-sec > summary:hover::after { border-color:var(--goldb); }
@media (max-width:640px) { .gi-rot-sec-t { font-size:17px; } .gi-rot-sec > summary { padding:12px 13px; } }

/* 键位建议：键帽按档位着色 —— 主循环金、辅助中性、爆发暗，一眼看出「哪些必须
   在最省力的位置上」。⛔ 用 <kbd> 而不是 <span>：它本来就是「键盘按键」的语义。 */
.gi-keys-table td { vertical-align: middle; }
.gi-key-cell { width: 96px; }
.gi-key { display:inline-block; min-width:34px; padding:4px 9px; border-radius:6px;
  border:1px solid var(--border); background:var(--s2); color:var(--text2);
  font:700 12.5px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; text-align:center; }
.gi-key.t-core { border-color:var(--gold); background:rgba(200 168 75 / .14); color:var(--goldb); }
.gi-key.t-burst { opacity:.7; }
.gi-key-none { color:var(--text3); }
/* 主页上让实时条与上方的插件卡/社区卡同宽（正文栏 1200），
   分析页仍是 890 —— 那边要跟下面的表单卡对齐。同一个片段，两种上下文。 */
.gi-live-wide .gi-analyze-live { width:min(var(--mw),calc(100% - 32px)); }

/* 装备分析器 · 揭晓卡（P0）。照角色页那套：一个大数、一句判词、右侧两个小 KPI。
   ⛔ 大数用金色而不是角色页的绿/蓝：这里说的是「你在人群中的位置」，不是战力。 */
#out, .gi-reveal { scroll-margin-top: 76px; }
.gi-reveal { display:grid; grid-template-columns: 1.4fr 1fr; gap:18px; margin:0 0 16px;
  padding:26px 28px; border-radius:16px; border:1px solid rgba(200 168 75 / .35);
  background:linear-gradient(135deg, rgba(200 168 75 / .10), rgba(16 23 37 / .0) 55%), var(--s1);
  box-shadow:0 14px 44px rgba(0 0 0 / .35); }
.gi-reveal-who { color:var(--text2); font-size:14px; letter-spacing:.2px; }
.gi-reveal-big { display:flex; align-items:baseline; gap:4px; margin:4px 0 2px; line-height:1;
  color:var(--goldb); text-shadow:0 6px 24px rgba(200 168 75 / .28); }
.gi-reveal-big .n { font-size:104px; font-weight:900; letter-spacing:-2px; }
.gi-reveal-big .pc { font-size:40px; font-weight:800; opacity:.85; }
.gi-reveal-line { color:var(--text); font-size:18px; font-weight:700; line-height:1.4; }
.gi-reveal-tier { display:inline-block; margin-top:10px; padding:4px 11px; border-radius:999px;
  border:1px solid rgba(200 168 75 / .45); color:var(--goldb); font-size:12.5px; font-weight:700; }
.gi-reveal-side { display:flex; flex-direction:column; justify-content:center; gap:10px;
  padding-left:18px; border-left:1px solid var(--border); }
.gi-reveal-kpi b { display:block; color:var(--text); font-size:30px; font-weight:800; line-height:1.1; }
.gi-reveal-kpi b i { font-style:normal; color:var(--text3); font-size:18px; font-weight:700; }
.gi-reveal-kpi span { display:block; color:var(--text3); font-size:12.5px; margin-top:2px; }
.gi-reveal-share { align-self:flex-start; margin-top:6px; padding:10px 16px; border:0; border-radius:9px;
  background:linear-gradient(135deg,var(--goldb),var(--gold)); color:#16120a; cursor:pointer;
  font:800 13px inherit; transition:transform .12s ease, filter .12s ease; }
.gi-reveal-share:hover { transform:translateY(-1px); filter:brightness(1.05); }
.gi-reveal-share.ok { background:#3f8f5a; color:#fff; }
.gi-reveal-note { color:var(--text3); font-size:11.5px; }
@media (max-width:640px) {
  .gi-reveal { grid-template-columns:1fr; padding:20px 18px; gap:12px; }
  .gi-reveal-big .n { font-size:84px; }
  .gi-reveal-side { padding-left:0; border-left:0; border-top:1px solid var(--border); padding-top:12px; }
  .gi-reveal-share { align-self:stretch; text-align:center; }
}

/* 手机上「XX 现在是你的角色」提示条与右下角打赏按钮同在 bottom 附近，会叠住。
   抬到按钮之上（按钮 44px + 14px 边距 + 间隙）。桌面两者相距够远，不动。 */
@media (max-width:640px) { .gi-me-toast { bottom: 78px; } }


/* ⛔ 待刷装备表 8 列在 390px 手机上站不住：备选行装备名被挤成一字一行（一行 330px 高），
   「来源」列切出屏幕外。≤640px 每个 tr 重排成 grid 卡片。只钉 #missTable ——
   satTable 是 3 列另一套结构；桌面一个字节不动。 */
@media (max-width:640px) {
  .gi-tblwrap > #missTable { min-width: 0; width: 100%; }
  #missTable, #missTable tbody { display: block; }
  #missTable thead { display: none; }
  #missTable tbody tr { display: grid; grid-template-columns: 34px 1fr auto; column-gap: 8px; row-gap: 5px;
    align-items: center; padding: 11px 12px; border-bottom: 1px solid rgba(255 255 255 / .06); }
  #missTable tbody tr:hover td { background: transparent; }
  #missTable tbody td { display: block; padding: 0 !important; border: none !important; min-width: 0 !important; }
  #missTable tbody td:empty { display: none; }
  #missTable td[data-lbl]::before { content: attr(data-lbl) " "; color: var(--text3); font-size: 11px; }
  /* 主行：序号·部位·提升 / 装备名 / 装等·使用率 / 来源 / 当前佩戴 */
  #missTable tr:not(.gi-alt-row) td:nth-child(1) { grid-column: 1; grid-row: 1; }
  #missTable tr:not(.gi-alt-row) td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: 12px; }
  #missTable tr:not(.gi-alt-row) td:nth-child(8) { grid-column: 3; grid-row: 1; justify-self: end; }
  #missTable tr:not(.gi-alt-row) td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; font-size: 14px; line-height: 1.35; }
  #missTable tr:not(.gi-alt-row) td:nth-child(4) { grid-column: 1 / 3; grid-row: 3; font-size: 13px; }
  #missTable tr:not(.gi-alt-row) td:nth-child(6) { grid-column: 3; grid-row: 3; justify-self: end; font-size: 13px; }
  #missTable tr:not(.gi-alt-row) td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; font-size: 12px; line-height: 1.4; }
  #missTable tr:not(.gi-alt-row) td:nth-child(7) { grid-column: 1 / -1; grid-row: 5; font-size: 12px; }
  /* 备选行：缩进成子卡片，装备名整行不再一字一行 */
  #missTable tr.gi-alt-row { grid-template-columns: 1fr auto; padding: 8px 12px 8px 46px; background: var(--s1); row-gap: 3px; }
  #missTable tr.gi-alt-row td { background: transparent !important; font-size: 12px; }
  #missTable tr.gi-alt-row td:nth-child(3) { grid-column: 1 / -1; grid-row: 1; font-size: 13px; line-height: 1.35; }
  #missTable tr.gi-alt-row td:nth-child(3)::before { content: "↳ "; color: var(--text3); }
  #missTable tr.gi-alt-row td:nth-child(4) { grid-column: 1; grid-row: 2; }
  #missTable tr.gi-alt-row td:nth-child(6) { grid-column: 2; grid-row: 2; justify-self: end; }
  #missTable tr.gi-alt-row td:nth-child(5) { grid-column: 1 / -1; grid-row: 3; line-height: 1.4; }
}

/* 页面导读（真人可读的编辑段落，SSR 英文 + data-cn 中文）。两段用空行分隔 → white-space: pre-line。 */
.gi-intro { max-width: 860px; margin: 14px 0 22px; padding: 14px 18px; border-left: 3px solid rgba(200,168,75,.55);
  background: rgba(255,255,255,.025); border-radius: 0 10px 10px 0; color: var(--text2); font-size: 14.5px;
  line-height: 1.7; white-space: pre-line; }
@media (max-width:640px) { .gi-intro { font-size: 14px; padding: 12px 14px; } }

/* 专精口语简称（SEO：玩家搜的是 bm hunter / disc priest），一行小字 */
.gi-alias { margin: -4px 0 10px; color: var(--text3); font-size: 12.5px; }
.gi-alias b { color: var(--text2); font-weight: 600; }
