/* 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;
  /* 2026-09-18 浅色审计：模板 <style> 里写死的近白/奶油色统一走这四个变量，浅色主题各自压深 */
  --ink:      #e6ebf3;
  --soft:     #c2cad8;
  --cream:    #e0d4a8;
  --cream2:   #e8dcb4;
  --mute:     #8a93a6;
  --mute2:    #aab2c2;
  --tan:      #c8aa6e;
  --text-strong: #ffffff;   /* 标题级白，浅色主题下换成近黑（⛔别在规则里写死 #fff） */
  /* 语义色（2026-09-19）：成功/警告/琥珀/紫 四档。⛔别再在规则里写 #7ee2a0 / #ffb45e / #f2c96b / #c4aef0 —— 
     这些粉彩色在浅色主题下对比度 1.5～1.8，用户截图里「看不清」的一半是它们。浅色表下面各配一档深色。 */
  --ok:     #7ee2a0;
  --warn:   #ffb45e;
  --amber:  #f2c96b;
  --violet: #c4aef0;
  --surface2: var(--s2);    /* 几处模板内联样式写的是 var(--surface2,#171b26)，没定义就落到写死的深色 */
  --text2:    #7878a8;
  /* 第三级灰从 #404068 抬到 #5c5c8c（台账 #152 哭★砂：「看不清文字」——他看不清的正是这一档） */
  --text3:    #5c5c8c;
  --r:        10px;
  --rlg:      18px;
  --mw:       1200px;
  --cc:       #c8a84b;   /* class color, overridden per-page */
  /* WoW quality */
  --q0:#9d9d9d; --q1:#ffffff; --q2:#1eff00; --q3:#0070dd; --q4:#a335ee; --q5:#ff8000;
}

/* ── 浅色主题（台账 #152）：全站颜色都走上面的变量，换主题 = 换一张变量表。
   默认仍是深色（品牌色），用户在导航右上角手动切，localStorage 记住。
   ⛔ 别用 prefers-color-scheme 自动翻：站是深色设计，系统浅色的人一进来整站变白会以为坏了。 */
html[data-theme="light"] {
  --bg:       #f3f3f8;
  --s1:       #ffffff;
  --s2:       #eeeef5;
  --s3:       #e3e3ee;
  --border:   rgba(20 20 60 / .12);
  --bhl:      rgba(150 118 30 / .6);
  --gold:     #9a7a1e;
  --goldb:    #a8861c;
  --text:     #15152a;
  --ink:      #15152a;
  --soft:     #34345c;
  --cream:    #6e5612;
  --cream2:   #6e5612;
  --mute:     #55607a;
  --mute2:    #4a5470;
  --tan:      #8a6a1e;
  --text-strong: #0e0e1c;
  --ok:     #1f7a45;
  --warn:   #a8500a;
  --amber:  #7a5a0c;
  --violet: #6a3fb8;
  /* 台账 #154 Papilloon：「浅色主题里这个字可以再深色一点么」—— 二级/三级灰各压深一档 */
  --text2:    #34345c;
  --text3:    #4e4e78;
  --q0:#6b6b7a; --q1:#2a2a3c; --q2:#159300; --q3:#0062c4; --q4:#8228d8; --q5:#d16600;
  color-scheme: light;
}
html[data-theme="light"] .gi-nav { background: rgba(243,243,248,.88); }
html[data-theme="light"] .gi-tt-bar-label { text-shadow: none; }
html[data-theme="light"] .gi-miss-table tr:hover td,
html[data-theme="light"] .gi-doll-bis .gi-doll-slot:hover { background: rgba(20 20 60 / .04); }
/* 主题开关：和语言按钮同一套外观 */
.gi-theme-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  background: var(--s2); border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  color: var(--text2); transition: border-color .15s, color .15s; margin-right: 8px; }
.gi-theme-btn:hover { border-color: var(--bhl); color: var(--goldb); }
.gi-theme-btn .ic-sun { display: none; }
html[data-theme="light"] .gi-theme-btn .ic-sun { display: block; }
html[data-theme="light"] .gi-theme-btn .ic-moon { display: none; }

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); }
/* 正式服 ⇄ 无限 切换（2026-09-15）：胶囊一对，紧挨 logo；⛔ 手机上也留着，它比整排导航词小得多 */
/* 服务器线切换（10-11 加 LOGO + 气泡，跟小程序同一套）：relative 给气泡当定位参照 */
.gi-realm { position: relative; display: inline-flex; align-items: center; background: var(--s3); border: 1px solid var(--border); border-radius: 999px; padding: 2px; margin-right: 6px; flex: none; }
.gi-realm-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.gi-realm-btn:hover { color: var(--text); }
.gi-realm-btn.on { color: #1a1405; background: linear-gradient(135deg, var(--goldb), var(--gold)); }
/* 官方 LOGO：未选中压暗一点，选中恢复，别喧宾夺主 */
.gi-realm-ico { height: 19px; width: auto; display: block; opacity: .7; filter: saturate(.8); }
.gi-realm-ico.fv { height: 21px; margin: -2px 0; }
.gi-realm-btn:hover .gi-realm-ico, .gi-realm-btn.on .gi-realm-ico { opacity: 1; filter: none; }
/* 首次访问的气泡提示：挂在切换器正下方，8 秒后自己消失，点过以后不再出 */
.gi-realm-tip { position: absolute; left: 0; top: calc(100% + 9px); z-index: 60; display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 500; color: var(--text);
  background: var(--s2); border: 1px solid var(--goldb); box-shadow: 0 6px 20px rgba(0,0,0,.35); white-space: nowrap; }
.gi-realm-tip[hidden] { display: none; }
.gi-realm-tip::before { content: ""; position: absolute; left: 24px; top: -5px; width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--s2); border-left: 1px solid var(--goldb); border-top: 1px solid var(--goldb); }
.gi-realm-tip-x { color: var(--text3); font-size: 12px; line-height: 1; padding: 3px 4px; background: none; border: 0; cursor: pointer; }
.gi-realm-tip-x:hover { color: var(--text); }
.gi-spacer { flex: 1; }

/* Language switcher */
/* 顶部导航的「更多」下拉 —— 主栏放不下的入口收在这里。
   ⛔ 结构与配色刻意与 .gi-lang 那套保持一致：同一根导航条上出现两种下拉
      会让人以为是两类东西。改这里请连带看 .gi-lang-drop。 */
.gi-more { position: relative; }
.gi-more-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 10px; border: 0; background: none; cursor: pointer;
  color: var(--text2); font-size: 14.5px; font-family: inherit;
  border-radius: var(--r);
}
.gi-more-btn:hover { color: var(--text); background: rgba(255 255 255 / .05); }
/* 当前页在「更多」里时按钮高亮 —— 否则用户点进 M+ 攻略后，
   导航上一个高亮都没有，看起来像「我不在任何栏目里」。 */
.gi-more-btn.active { color: var(--gold); }
.gi-more-btn svg { flex-shrink: 0; }
.gi-more-drop {
  display: none; position: absolute; left: 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: 190px; z-index: 200;
}
.gi-more-drop.open { display: block; }
.gi-more-opt {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--text2); text-decoration: none; font-size: 14px;
  white-space: nowrap;
}
.gi-more-opt:hover { background: var(--s3); color: var(--text); }
.gi-more-opt.active { color: var(--gold); }

.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); }

/* ── Forever launch teaser (homepage) ────────────────────────────────────── */
.gi-fv-teaser {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 0; padding: 8px 16px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(90deg, rgba(200,170,110,.13), rgba(200,170,110,.04), rgba(200,170,110,.13));
  background-size: 220% 100%; border-bottom: 1px solid rgba(200,170,110,.25);
  color: var(--text2); font-size: 12px; text-decoration: none; animation: gi-teaser-sheen 8s ease-in-out infinite;
}
.gi-fv-teaser:hover { background-position: 100% 0; color: var(--text); }
.gi-fv-teaser-kicker { color: var(--gold); font: 700 10px ui-monospace,Consolas,monospace; letter-spacing: .16em; }
.gi-fv-teaser-time { color: var(--goldb); font: 700 13px ui-monospace,Consolas,monospace; letter-spacing: .03em; }
.gi-fv-teaser-time b { display: inline-block; min-width: 2ch; text-align: right; }
.gi-fv-teaser-arrow { color: var(--gold); font-size: 11px; }
.gi-fv-teaser-time b.is-ticking { animation: gi-digit-tick .35s ease-out; }
@keyframes gi-teaser-sheen { 0%,100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@keyframes gi-digit-tick { 0% { transform: translateY(-3px); opacity: .35; } 100% { transform: translateY(0); opacity: 1; } }
.gi-fv-teaser b { color: var(--goldb); font-weight: 800; }
@media (max-width: 640px) { .gi-fv-teaser { gap: 6px; font-size: 11px; padding: 8px 6px; } .gi-fv-teaser-kicker,.gi-fv-teaser-arrow { display:none; } }

/* ── 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-txt,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: var(--text-strong);
}
.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-common-bis { margin-bottom: 30px; border-color: rgba(200 168 75 / .28); }
.gi-common-bis > .gi-block-head { align-items: center; }
.gi-common-bis > .gi-block-head > div { min-width: 220px; }
.gi-common-kicker { display: block; margin-top: 3px; color: var(--text3); font-size: 12px; font-weight: 400; }
.gi-common-meta { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 18px 4px; }
.gi-common-bis .gi-block-note { padding: 8px 18px 18px; margin: 0; }
.gi-common-grid { padding: 0 18px 20px; margin-bottom: 0; }
.gi-common-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gi-common-slot-head small { color: var(--text3); font-size: 10px; font-weight: 500; }
.gi-common-empty { margin: 0; padding: 22px 18px; color: var(--text3); font-size: 13px; }
.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-venom { font-size: .72rem; color: var(--warn); margin: -2px 0 6px; }
.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(--text2);   /* --text3 在手机上几乎看不见 */
}
/* 2026-09-19：原来叫 r1/r2/r3，撞上 Wowhead universal.css 的同名类（.r2 被涂成纯黄，浅色主题白底上 1.07）。改 rk*。 */
.gi-rank.rk1 { color: var(--gold); }
.gi-rank.rk2 { color: var(--text2); }
.gi-rank.rk3 { 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); }
.q0 { color: var(--q0); } .q1 { color: var(--q1); }
/* 2026-09-19：Wowhead universal.css 后加载、同名 .q1/.q2 会盖掉我们的（普通品质=纯白，浅色主题白底上 1.0）。
   浅色主题下用 !important 把品质色钉回我们的变量表。 */
html[data-theme="light"] .q0 { color: var(--q0) !important; } html[data-theme="light"] .q1 { color: var(--q1) !important; }
html[data-theme="light"] .q2 { color: var(--q2) !important; } html[data-theme="light"] .q3 { color: var(--q3) !important; }
html[data-theme="light"] .q4 { color: var(--q4) !important; } html[data-theme="light"] .q5 { color: var(--q5) !important; }
/* ⛔⛔ 这一行原来是 `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: 10.5px; font-weight: 700; color: var(--text2);
  background: var(--s3); border: 1px solid var(--border);
  border-radius: 5px; padding: 1px 6px; }
.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: 12px; font-weight: 700; color: var(--text-strong); }  /* ⛔原来写 var(--text1,#e8ecf3)，--text1 根本没定义，浅色主题下就是白字 */
/* ⛔ 条要紧跟着它解释的那个百分比走，并与元信息行同缩进(62px)——原来缩进 28px 又排在效果文字下面，读起来像分隔线 */
.gi-usage-bar { height: 3px; background: var(--s3); border-radius: 2px; margin: 1px 0 2px 62px; 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; }
/* 结果区自己的容器：8 列的缺件表 + 揭晓卡，760 装不下（见模板注释） */
.gi-results-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.gi-summary-row:empty { display: none; }
.gi-reveal-big .pc.u { font-size: 16px; font-weight: 600; color: var(--text2); margin-left: 8px; letter-spacing: 0; }
.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 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text2);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 15px;
  background: rgba(255 255 255 / .03); transition: color .15s, border-color .15s, background .15s;
}
/* 线性图标：⛔ 用 stroke=currentColor，颜色跟着文字走 —— 这样 hover 时
   图标和文字**一起**变金；写死颜色的话会出现「字变了图标没变」。 */
.gi-hero-links a svg { width: 17px; height: 17px; flex: none; opacity: .8; }
/* 魔兽原图标（用户 2026-09-22：「所有的图标进行美化，直接都换魔兽图标」）。
   暴雪图标是方形亮底贴图，直接放进深色胶囊会打架——倒角 + 金边 + 默认稍压一点亮度，
   hover 时才完全点亮，跟文字变金一起动。 */
.gi-hero-links a .gi-hero-ico { width: 18px; height: 18px; flex: none; border-radius: 4px;
  border: 1px solid rgba(200 168 75 / .3); object-fit: cover; display: block;
  filter: saturate(.9) brightness(.92); transition: filter .15s, border-color .15s; }
.gi-hero-links a:hover .gi-hero-ico { filter: none; border-color: var(--bhl); }
.gi-hero-links a:hover { color: var(--gold); border-color: var(--bhl); background: rgba(200 168 75 / .07); }
.gi-hero-links a:hover svg { opacity: 1; }
@media (max-width: 560px) {
  /* 手机上一行两个，⛔别让长标签把卡片撑出屏幕 */
  .gi-hero-links { gap: 10px; }
  .gi-hero-links a { font-size: 13px; padding: 8px 12px; gap: 6px; }
  .gi-hero-links a svg { width: 15px; height: 15px; }
  .gi-hero-links a .gi-hero-ico { width: 16px; height: 16px; }
}

/* ── 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: var(--text-strong); 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: var(--text-strong); }
.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-nav-link 一起藏：手机上导航链接本来就不显示，
     只剩一个孤零零的「更多」按钮会很怪。 */
  .gi-more { 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-results-wrap { padding: 0 16px; }
  .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; }
}

/* 10-26 投票页群发：360/390 宽下服务器胶囊不收缩，把右上角「我的角色/登录」头像、主题、语言挤出屏幕
   （用户转述「有部分内容被遮挡了」）。胶囊改成可收缩 + 横向滑动，主题按钮在窄屏让位。 */
@media (max-width: 768px) {
  .gi-realm { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .gi-realm::-webkit-scrollbar { display: none; }
  .gi-me, .gi-lang, .gi-menu-btn { flex: none; }
}
@media (max-width: 480px) {
  .gi-theme-btn { display: none; }
}
@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-upd { margin-top: 8px; }
.gi-dl-upd-sub { font-size: 12px; color: var(--faint); text-align: center; margin-top: 4px; }
.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: var(--text); 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: var(--ok); 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; }
/* 微信支付 Native 付款码盒（2026-09-19）：先占位提示，下单后换成二维码 + 金额 */
.gi-pay-box { min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; color:#333; }
.gi-pay-ph { font-size:12.5px; line-height:1.5; color:#555; padding:0 8px; }
.gi-pay-qr { display:block; width:170px; height:170px; }
.gi-pay-amt { font-size:18px; font-weight:800; color:#07c160; }
.gi-pay-hint { font-size:12px; color:#555; line-height:1.4; padding:0 6px; }
.gi-pay-hint.strong { color:#07c160; font-weight:700; font-size:13px; }
.gi-pay-done { font-size:64px; font-weight:800; color:#07c160; line-height:1; }
/* 支付宝（2026-09-20）：盒子按钱包染色；跳转型给一个大按钮 */
.gi-pay-box[data-wallet-qr="alipay"] .gi-pay-amt, .gi-pay-box[data-wallet-qr="alipay"] .gi-pay-done, .gi-pay-box[data-wallet-qr="alipay"] .gi-pay-hint.strong { color:#1677ff; }
.gi-pay-open { display:inline-block; margin:26px 0 8px; padding:12px 26px; border-radius:10px; background:#1677ff; color:#fff; font-weight:700; text-decoration:none; font-size:15px; }  /* theme-ok */
.gi-pay-open:hover { filter:brightness(1.08); }

.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:var(--ok); text-align:center; font-size:12px; }
.gi-help-status.bad { color:#e58a8a; }
@media (max-width:640px) {
  /* 2026-09-19 手机：导航条（绑定角色 + 语言）撑破 412px 视口 → Chrome 把布局视口放大到内容宽 → fixed 的打赏按钮/面板整个跑到屏幕右边外面。
     根治两条：① html 横向不许溢出（布局视口钉死 = 设备宽）② 导航行允许横滚而不是撑宽页面。 */
  html, body { overflow-x: hidden; }
  .gi-nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gi-nav-inner::-webkit-scrollbar { display: none; }
  .gi-help-dock { right: 12px !important; bottom:14px; }
  .gi-help-panel { width: calc(100vw - 24px); right: 0; }
  .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; }
/* 区服标签（国服/美服/欧服/韩服）—— 让人一眼看出是全球玩家在用。
   ⛔ 必须把 <u> 默认的下划线去掉，否则滑动条里会出现一排下划线。 */
.gi-analyze-live-track u { text-decoration:none; margin-left:5px; padding:0 6px;
  border-radius:999px; font-size:.78em; line-height:1.5;
  color:var(--goldb); background:rgba(200 168 75 / .13);
  border:1px solid rgba(200 168 75 / .3); }
@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;
}
/* ⛔ .gi-boss-no 在下面（团本掉落表那列）还有一份更晚、更大的定义会赢全局，
   候选卡里必须用 .gi-cand-where 作用域盖回去 —— 这里它只是定位信息，
   不能比装等药丸还大、比使用率还抢眼（用户 2026-09-10）。 */
.gi-cand-where .gi-boss-no {
  min-width: 0; margin: 0; padding: 0 5px; line-height: 16px;
  border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0;
  color: var(--goldb); background: rgba(200 168 75 / .10);
  border: 1px solid rgba(200 168 75 / .24);
}
/* 副本名 › 首领：一个 › 把「哪个本」和「哪只 BOSS」分成两级，首领组内部收紧 */
/* ⛔ 别写在 .gi-boss-no::before —— 那会把 › 画进徽章框里面。挂在副本名后面。 */
.gi-cand-where [data-inst-id]:not(:last-child)::after {
  content: '›'; color: var(--text3); margin-left: 6px; font-weight: 400;
}
.gi-cand-where [data-enc-id] { color: var(--text2); }
@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: var(--ok); }
.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;
  /* 2026-09-19 对比度巡检：条很短时标签压在底色上，写死深字 = 深色主题黑字黑底（恶魔学识术士 1.04）。
     改跟主题走：深色表是白字 + 暗影，浅色表是近黑字，落在职业色条上和落在底色上都能读。 */
  font-weight: 600; color: var(--text-strong); text-shadow: 0 1px 2px rgba(0 0 0 / .45); 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);
}
/* 暴雪 CDN 还没发布这个副本的图（新副本常见，潮缚石窟 2026-09-10 三个区都 403）：
   画一块同尺寸的占位，别让卡片矮一截 —— 一排卡片高低不齐比没图更难看 */
.gi-inst-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(200 168 75 / .18), rgba(80 40 160 / .28) 60%, var(--s2));
}
.gi-inst-ph b { font-size: 34px; font-weight: 800; color: rgba(232 200 106 / .55); letter-spacing: .02em; }
@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; } }

/* 装备绿字（使用/装备效果）——游戏里就是绿色，沿用同一视觉语言 */
/* 效果绿字已不在列表里展示（用户 2026-09-10：属性看 tooltip 就行），只留使用/装备小标签 */
.gi-use-tag {
  font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 0 6px;
  color: var(--text2); background: var(--s3); border: 1px solid var(--border);
}
.gi-use-tag.on { color: var(--amber); border-color: rgba(255 215 94 / .35); background: rgba(255 215 94 / .10); }

/* 饰品页：掉落来源行 + 使用率标签（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-txt,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: var(--text); 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%}`，把副本名顶成独占一行，
     手机上元信息叠成三行（2026-09-10 真机截图）。那是物品名和元信息还在
     同一行时的规则，现在元信息本来就在名字下面 —— 让它自然换行。 */
  .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: var(--ok); }

/* ── 天赋视图弹窗（2026-09-11，09-11 晚美化）：职业树 | 英雄树 | 专精树，点亮这套配置点了的节点 ──
   三棵树各自是一个 SVG（viewBox 缩放），桌面三栏并排、手机竖着排；
   ⛔ 别把三棵树塞进一个 SVG —— 它们的 raw 坐标系是重叠的，只能各画各的。 */
.gi-tv-btn { margin-left: 4px; }
.gi-tv-mask[hidden] { display: none; }
.gi-tv-mask { position: fixed; inset: 0; z-index: 1200; background: rgba(4 4 12 / .82); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.gi-tv { position: relative; width: min(1280px, 100%); max-height: 94vh; overflow: auto; border-radius: 16px;
  background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--cc, #c8a84b) 14%, transparent), transparent 60%), var(--s1);
  border: 1px solid rgba(200 168 75 / .22); box-shadow: 0 30px 90px rgba(0,0,0,.7), inset 0 1px 0 rgba(255 255 255 / .04); }
.gi-tv-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  background: color-mix(in srgb, var(--s1) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.gi-tv-title { flex: 1; min-width: 0; font-size: 14px; color: var(--text); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gi-tv-title b { font-size: 17px; letter-spacing: .01em; color:var(--cc-txt,var(--cc,var(--goldb))); text-shadow: 0 0 18px color-mix(in srgb, var(--cc, #c8a84b) 45%, transparent); }
.gi-tv-title .gi-tal-hero { border-color: rgba(200 168 75 / .4); background: rgba(200 168 75 / .08); color: var(--goldb); }
.gi-tv-who { color: var(--text3); font-size: 12.5px; }
.gi-tv-pts { font-size: 11.5px; color: var(--text2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; background: rgba(255 255 255 / .03); }
.gi-tv-x { flex: none; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: rgba(255 255 255 / .04);
  color: var(--text2); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .12s, color .12s; }
.gi-tv-x:hover { color: var(--text); border-color: var(--gold); }
.gi-tv-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; padding: 16px 18px 20px; align-items: start; }
.gi-tv-pane { position: relative; border: 1px solid var(--border); border-radius: 12px; padding: 10px 10px 6px; min-width: 0;
  background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--cc, #c8a84b) 9%, transparent), transparent 70%), rgba(0 0 0 / .22);
  box-shadow: inset 0 1px 0 rgba(255 255 255 / .03); }
.gi-tv-pane h4 { margin: 0 0 6px; padding: 0 4px 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text3);
  display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.gi-tv-pane h4 i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--goldb, #e8cf7a);
  border: 1px solid rgba(200 168 75 / .35); background: rgba(200 168 75 / .08); border-radius: 999px; padding: 1px 9px; }
.gi-tv-pane.p-h h4 span { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 700; }
.gi-tv-scroll { overflow: auto; }
.tv-svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.gi-tv-pane.p-h .tv-svg { min-width: 200px; }
.tv-edge { stroke: rgba(255 255 255 / .10); stroke-width: 2; }
.tv-edge.on { stroke: rgba(232 200 106 / .8); stroke-width: 2.5; filter: drop-shadow(0 0 3px rgba(232 200 106 / .5)); }
.tv-gate { stroke: rgba(200 168 75 / .28); stroke-width: 1; stroke-dasharray: 5 5; }
.tv-gate-t { font-size: 10px; font-weight: 700; fill: rgba(200 168 75 / .6); text-anchor: end; letter-spacing: .04em; }
.tv-node { cursor: pointer; }
.tv-node image { transition: opacity .12s; }
.tv-node.off image { opacity: .22; filter: grayscale(1) brightness(.8); }
.tv-node .tv-ol { fill: none; stroke: rgba(255 255 255 / .14); stroke-width: 1.5; }
.tv-node.on .tv-ol { stroke: var(--goldb, #e8cf7a); stroke-width: 3.2; filter: drop-shadow(0 0 6px rgba(232 207 122 / .85)); }   /* 10-06 网站反馈 #20：选中天赋看不清，加粗加亮 */
.tv-node.on.free .tv-ol { stroke: #8fd6a3; filter: drop-shadow(0 0 5px rgba(143 214 163 / .6)); }   /* 系统赠送：绿边，不占点数 */
.tv-node:hover .tv-ol { stroke: #fff; stroke-width: 2.4; }
.tv-node:hover image { opacity: 1; filter: none; }
.tv-rkg rect { fill: #0b0b18; stroke: rgba(232 200 106 / .7); stroke-width: 1; }  /* theme-ok */
.tv-rkg text { font-size: 10px; font-weight: 700; fill: #fff; text-anchor: middle; }
.tv-node.off .tv-rkg rect { stroke: rgba(255 255 255 / .18); }
.tv-node.off .tv-rkg text { fill: #8a8aa8; }
.gi-tv-foot { grid-column: 1 / -1; font-size: 11.5px; color: var(--text3); }
.gi-tv-tip { position: absolute; z-index: 3; width: 310px; max-width: 80vw; pointer-events: none; padding: 10px 12px; border-radius: 10px;
  background: rgba(11 11 24 / .97); border: 1px solid rgba(200 168 75 / .45); box-shadow: 0 12px 34px rgba(0,0,0,.65); font-size: 12.5px; color: var(--text); }
.tv-tn { font-weight: 700; font-size: 13.5px; color: var(--goldb, #e8cf7a); margin-bottom: 5px; }
.tv-tn i { font-style: normal; color: var(--text3); font-weight: 600; margin-left: 4px; font-size: 12px; }
.tv-td { color: var(--text); line-height: 1.5; }
.tv-to { margin-top: 6px; color: var(--text3); font-size: 11.5px; }
/* 分段天赋的逐段说明（游戏版式：等级1 / 等级2 / 等级3，学到的亮、没学的灰） */
.tv-tier { margin-top: 7px; padding-top: 6px; border-top: 1px dashed rgba(255 255 255 / .1); opacity: .5; }
.tv-tier.on { opacity: 1; }
.tv-tier > b { display: block; font-size: 11.5px; color: var(--text2); margin-bottom: 2px; }
.tv-tier > b i { font-style: normal; color: var(--text3); margin-left: 4px; }
.tv-tier.on > b { color: var(--goldb, #e8c86a); }
html[data-theme="light"] .gi-tv-mask { background: rgba(30 30 60 / .45); }
html[data-theme="light"] .gi-tv-tip { background: #fffdf7; }
html[data-theme="light"] .tv-td { color: #2a2a44; }
html[data-theme="light"] .tv-edge { stroke: rgba(0 0 0 / .14); }
html[data-theme="light"] .tv-node .tv-ol { stroke: rgba(0 0 0 / .22); }
html[data-theme="light"] .tv-node.on .tv-ol { stroke: #a8740a; filter: drop-shadow(0 0 3px rgba(168 116 10 / .55)); }  /* theme-ok */
html[data-theme="light"] .tv-node.on.free .tv-ol { stroke: #2f8f4e; }  /* theme-ok */
html[data-theme="light"] .tv-edge.on { stroke: #a8740a; filter: none; }  /* theme-ok */
html[data-theme="light"] .gi-tv-pane { background: rgba(0 0 0 / .035); }
html[data-theme="light"] .tv-rkg rect { fill: #fffdf7; }
html[data-theme="light"] .tv-rkg text { fill: #15152a; }  /* theme-ok */
@media (max-width: 900px) {
  .gi-tv-body { grid-template-columns: 1fr; }
  .gi-tv-pane.p-h .tv-svg { margin: 0 auto; }
  .gi-tv-mask { padding: 8px; }
}


/* 分析页：已毕业清单 + 当前装备列（用户 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: var(--ok); 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: var(--ok); 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: var(--amber); }
.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-btn.is-logged { border-color: color-mix(in srgb, #59c27a 42%, var(--border)); }
.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-wrap { position: relative; display: flex; flex: none; }
.gi-me-login-dot { position: absolute; right: -2px; bottom: -2px; width: 8px; height: 8px;
  border-radius: 50%; background: #59c27a; border: 2px solid var(--s2); box-shadow: 0 0 7px rgba(89 194 122 / .55); }
.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-txt .gi-me-session-line { color: #59c27a; font-weight: 600; }
.gi-me-cta .gi-me-txt { font-size: 13px; font-weight: 650; }

.gi-me-realm-wrap { position: relative; }
.gi-me-realm-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 220;
  max-height: 174px; overflow-y: auto; padding: 4px;
  background: var(--s2); border: 1px solid rgba(200 168 75 / .34); border-radius: 9px;
  box-shadow: 0 12px 28px rgba(0 0 0 / .5);
}
.gi-me-realm-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 34px; padding: 6px 9px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.gi-me-realm-option:hover, .gi-me-realm-option:focus, .gi-me-realm-option.is-first { background: rgba(200 168 75 / .13); outline: none; }
.gi-me-realm-option b { font-size: 13px; font-weight: 650; }
.gi-me-realm-option small { color: var(--text2); font-size: 10.5px; }


.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: 274px; z-index: 200;
}
.gi-me-drop.open { display: block; }
/* 手机（2026-09-20 用户「点绑定角色无效」）：导航条 overflow-x:auto 是裁剪容器，absolute 的菜单被剪得只剩一条边。
   改 fixed 挂到导航下面脱离裁剪。⛔ 必须写在上面基础规则之后，否则同优先级被盖掉（第一版就是这么失效的）。 */
@media (max-width:640px) {
  .gi-me-drop { position: fixed; top: 58px; right: 10px; left: 10px; width: auto; min-width: 0;
                max-height: calc(100vh - 76px); overflow-y: auto; z-index: 400; }
}
.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-character-head { margin-top: 2px; }
.gi-me-account-card { display: flex; align-items: center; gap: 10px; margin: 2px 2px 8px; padding: 11px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--s1); }
.gi-me-account-card.is-ok { border-color: color-mix(in srgb, #59c27a 42%, var(--border));
  background: color-mix(in srgb, #59c27a 9%, var(--s1)); }
.gi-me-account-check { display: grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 50%; color: #fff; background: #59a972; font-size: 13px; font-weight: 800; }
.gi-me-account-card .gi-me-char-txt,.gi-me-switch-wx .gi-me-char-txt { display:flex; flex:1; min-width:0; width:auto; flex-direction:column; gap:2px; text-align:left; }
.gi-me-account-card .gi-me-char-txt b,.gi-me-switch-wx .gi-me-char-txt b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gi-me-account-card .gi-me-char-txt i,.gi-me-switch-wx .gi-me-char-txt i { font-size:11px; color:var(--text2); font-style:normal; line-height:1.35; }
.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; }
/* 菜单行的魔兽图标（用户 2026-09-22：「图标全换魔兽图标」，替掉原来黑白/彩色混杂的 emoji） */
.gi-me-ico { width: 18px; height: 18px; flex: none; border-radius: 4px;
             border: 1px solid rgba(200,168,75,.35); object-fit: cover; display: block; }
.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);  /* theme-ok */
  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: #f0e2b0;  /* theme-ok */
  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);  /* theme-ok */
  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: var(--cream2); }
@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; }
/* ⛔ 「更多」「中文」两个按钮同样要 nowrap + flex:none：2026-09-15 巡检抓到 1220 宽下
   它们被 flex 压成「更/多」「中/文」两行竖字，而 scrollWidth 恰好等于 clientWidth ——
   wow_i18n.js 里的 giNavFit（装不下就把链接收进「更多」）就此误判「已经放下了」。
   压扁是最坏的溢出形态：既难看，又让溢出判据失灵。 */
.gi-more, .gi-lang, .gi-theme-btn { flex: none; }
.gi-more-btn, .gi-lang-btn { 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; }
/* ⛔⛔ 第六次栽在同一个坑上（2026-09-15：.gi-guide-btn 的 inline-flex 压过 [hidden]，
   中文站「在 Wowhead 查看完整指南」按钮 hidden=true 却照样显示了 5 天）。
   上面逐类补兜底的写法注定会漏 —— 这里一条全局规则收口：hidden 就是不显示。
   ⛔ 用属性选择器 + !important 压过所有类选择器的 display；
      要「暂时不隐藏」的元素别用 hidden 属性，用自己的类。 */
[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); }
/* ── 刷本优先级 · 网格版（2026-09-11，对齐插件 FarmGrid / KeystoneLoot）：左 图+名+件数，右 图标条 ── */
.gi-farm-chips.gi-fg-grid { grid-template-columns: 1fr; gap: 6px; }
.gi-fg-row { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; background: var(--s1);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 6px; }
.gi-fg-row:nth-child(even) { background: rgba(255 255 255 / .025); }
.gi-fp-card.gi-fg-row { padding: 8px 12px 8px 8px; margin-bottom: 0; }
.gi-fg-left { display: flex; align-items: center; gap: 12px; flex: 0 0 250px; min-width: 0; }
.gi-fg-art { width: 60px; height: 60px; border-radius: 11px; object-fit: cover; flex: none; background: var(--s3);
  box-shadow: 0 0 0 1px rgba(255 255 255 / .08); }
.gi-fg-ph { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--text3); font-size: 18px; }
.gi-fg-ph img { position: absolute; inset: 0; width: 100%; height: 100%; }
.gi-fg-txt { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.gi-fg-name { font-size: 14px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-fg-sub { font-size: 11.5px; color: var(--text3); }
.gi-fg-sub.is-miss { color: #ff7a7a; font-weight: 700; }
.gi-fg-strip { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.gi-fg-ic { position: relative; display: block; width: 58px; height: 58px; border-radius: 9px; overflow: hidden;
  background: var(--s3); border: 1.5px solid rgba(255 255 255 / .16); text-decoration: none; }
.gi-fg-ic img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gi-fg-ic.is-miss { border-color: rgba(255 90 90 / .8); }
.gi-fg-ic.is-up { border-color: var(--warn); }   /* 同款在身上、升不到目标装等（09-30） */
.gi-fg-ic:hover { border-color: #fff; }
.gi-fg-slot { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; line-height: 15px; text-align: center; color: #fff;  /* theme-ok */
  background: rgba(0 0 0 / .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.gi-fg-badge { position: absolute; left: -1px; top: -1px; font-size: 10.5px; font-weight: 800; line-height: 14px; padding: 0 5px;
  border-radius: 0 0 6px 0; background: rgba(0 0 0 / .72); color: var(--goldb); font-style: normal; }
.gi-fg-badge.is-miss { color: #ff5555; }
.gi-fg-badge.is-up { color: var(--warn); }
.gi-fg-fil { position: absolute; left: -1px; top: -1px; font-size: 10.5px; font-weight: 800; line-height: 14px; padding: 0 5px;
  border-radius: 0 0 6px 0; background: rgba(0 0 0 / .72); color: #c48cff; font-style: normal; }
.gi-fg-ic:has(.gi-fg-fil) { border-color: rgba(176 96 255 / .8); }
.gi-fg-nm { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gi-fg-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.gi-fg-toggle { font: inherit; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; cursor: pointer;
  background: rgba(200 168 75 / .10); border: 1px solid rgba(200 168 75 / .38); color: var(--gold); }
.gi-fg-toggle:hover { background: rgba(200 168 75 / .2); }
.gi-fg-toggle .off, .gi-fg-toggle[data-on="0"] .on { display: none; }
.gi-fg-toggle[data-on="0"] .off { display: inline; }
.gi-fg-bar-tip { font-size: 11.5px; color: var(--text3); }
body.gi-fg-toponly .gi-fg-alt { display: none; }
body.gi-fg-toponly .gi-fg-altgrp { display: none; }
body.gi-fg-noraid .gi-fg-raidgrp { display: none; }
.gi-fg-bar { flex-wrap: wrap; }
.gi-fg-rank { position: absolute; right: 0; bottom: 15px; font-size: 9.5px; font-weight: 800; line-height: 13px; padding: 0 4px;
  border-radius: 5px 0 0 0; background: rgba(0 0 0 / .72); color: var(--text2); font-style: normal; }
.gi-fg-ilvl { position: absolute; right: -1px; top: -1px; font-size: 10px; font-weight: 800; line-height: 14px; padding: 0 5px;
  border-radius: 0 0 0 6px; background: rgba(0 0 0 / .72); color: #d6d6e4; font-style: normal; font-variant-numeric: tabular-nums; }  /* theme-ok：固定黑底角标 */
.gi-fg-alt { opacity: .78; }
/* 套装转换 · 坯子横评（2026-09-12） */
.gi-tier-best { box-sizing: border-box;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 6px 0 8px; padding: 8px 12px; border-radius: 8px;
  background: rgba(200 168 75 / .08); border: 1px solid rgba(200 168 75 / .3); font-size: 13px; }
.gi-tier-best-k { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.gi-tier-best-v { font-weight: 800; color: var(--goldb); }
.gi-tier-best-why { color: var(--text2); font-size: 12px; }
.gi-tier-ref { margin-left: auto; font-size: 11.5px; color: var(--text3); }
.gi-tier-ref span[data-i18n^="stat_"] { color: var(--ok); }
.gi-tier-filler.is-ok { box-shadow: inset 3px 0 0 rgba(30 255 0 / .45); }
.gi-tier-filler.is-bad { opacity: .65; }
.gi-tf-tag { font-size: 10.5px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--text2); white-space: nowrap; }
.gi-tf-tag.is-ok { color: var(--ok); border-color: rgba(30 255 0 / .4); }
.gi-tf-tag.is-bad { color: #ff7a7a; border-color: rgba(255 107 107 / .45); }
.gi-tf-fit { font-size: 11px; font-weight: 700; color: var(--text3); font-variant-numeric: tabular-nums; }
.gi-tf-fit.is-bad { color: #ff7a7a; }
.gi-fg-details { margin: 4px 0 6px; }
.gi-fg-details > summary { cursor: pointer; font-size: 12px; color: var(--text3); padding: 4px 2px; list-style: none; }
.gi-fg-details > summary::-webkit-details-marker { display: none; }
.gi-fg-details > summary::before { content: '▸ '; }
.gi-fg-details[open] > summary::before { content: '▾ '; }
.gi-fg-details > summary:hover { color: var(--gold); }
@media (max-width: 640px) {
  .gi-fg-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .gi-fg-left { flex: none; }
}
.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: var(--violet); }
.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: var(--violet); }
.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: var(--amber); 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-wrap 撑到 545px 宽（大半是空的）：两列各收到 ≤340px、整块居中。
   ⛔ 仍然是同一个 grid 模板 → 两列严格等宽（用户 2026-09-10：「缩短一些，但每一列都一样长」） */
/* ⛔ 只在 PC 宽度：这条写在 @media(max-width:700px) 的两列规则之后，会把手机也压成三列（2026-09-15 手机截图） */
@media (min-width: 701px) {
  .gi-doll-bis { grid-template-columns: minmax(0, 340px) minmax(170px, 210px) minmax(0, 340px);
    justify-content: center; }
}
.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); }
/* 附魔行：PC 固定行高（两行）放不下，只在手机版式里出现 */
.gi-pd-ench { display: none; font-size: 10.5px; line-height: 1.3; color: var(--ok); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ── 手机版式（2026-09-15，照用户给的「毕业装（时光服）」小程序截图）──────
   要点：①去掉格子的卡片框，整块是一张平铺的角色面板；②物品名**换行**不截断
   （手机上截成「翡翠督军的淬…」等于没写），格子高度随内容走；③右列仍然镜像
   （图标在外、文字朝内，装等角标在图标右上）；④名字下面来源行 + 绿字附魔行；
   ⑤武器一行两格并排放底部。⛔ 别恢复固定行高 —— 那是 PC 三列对称的需要，
   手机两列各 ~180px，固定行高只剩截断一条路。 */
@media (max-width: 700px) {
  .gi-doll-bis { grid-template-columns: minmax(0,1fr) minmax(0,1fr); justify-content: stretch;
    background: none; border: 0; padding: 4px 0 0; gap: 4px 10px; margin-bottom: 14px; }
  .gi-doll-bis .gi-doll-mid { background: none; padding: 2px 0 8px; }
  .gi-doll-bis .gi-doll-col { gap: 12px; justify-content: flex-start; }
  .gi-doll-bis .gi-doll-slot { height: auto; min-height: 0; align-items: flex-start;
    background: none; border: 0; border-radius: 6px; padding: 0; gap: 7px; }
  .gi-doll-bis .gi-doll-slot:hover { background: none; }
  .gi-doll-bis .gi-doll-col.r .gi-doll-slot { flex-direction: row-reverse; text-align: right; }
  .gi-doll-bis .gi-doll-slot.empty { display: none; }
  .gi-doll-bis .gi-pd-ic { width: 46px; height: 46px; border-width: 2px; }
  .gi-doll-bis .gi-pd-ic b { top: 0; bottom: auto; right: 2px; font-size: 11px; }
  .gi-doll-bis .gi-pd-tx { padding-top: 1px; }
  .gi-doll-bis .gi-pd-nm { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; font-size: 13.5px; font-weight: 700; line-height: 1.25; }
  .gi-doll-bis .gi-pd-src { white-space: normal; font-size: 10.5px; line-height: 1.3; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .gi-doll-bis .gi-pd-ench { display: block; white-space: normal; }
  .gi-doll-bis .gi-doll-note { display: none; }
  .gi-doll-bis .gi-doll-weapons { flex-direction: row; gap: 10px; margin-top: 10px; }
  .gi-doll-bis .gi-doll-weapons .gi-doll-slot { flex: 1 1 0; width: auto; min-width: 0; }
  .gi-doll-bis .gi-doll-weapons .gi-doll-slot:last-child:not(:first-child) { flex-direction: row-reverse; text-align: right; }
}

/* 「对照我的装备」开关条 —— 只有本地存着同专精的分析结果时才出现。
   ⛔ 默认勾上：有数据却要用户再点一下才看得到，等于白做。 */
.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: var(--tan,#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: var(--violet); }
.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: var(--amber); }
.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;  /* theme-ok */
  border: 1px solid #2c3346;  /* theme-ok */
  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: var(--text);
}
.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; } }

/* 桌面：待刷装备表的「目标装备 / 当前佩戴」两列被挤成三四字一行（用户 2026-09-06 截图，手机是好的）。
   根因是表格自动布局：中文名每个字都能断行，min-content 几乎为 0，宽度全被「来源」那列的
   徽章和长文案吃掉。给两列一个下限、部位列不换行；≤640px 的卡片布局有 min-width:0 !important 兜底，不受影响。 */
@media (min-width: 641px) {
  #missTable td:nth-child(2) { white-space: nowrap; }
  #missTable td:nth-child(3) { min-width: 180px; }
  #missTable td:nth-child(7) { min-width: 150px; }
  #missTable td:nth-child(5) { min-width: 0; }
}

/* ⛔ 待刷装备表 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; }

/* ── 微信小程序入口（只在中文界面出现，见 _wechat_mp.html）─────────────
   ⛔ hidden 在**外层壳** .gi-wxmp-wrap 上，所以绝不能给它写 display ——
      写了就废掉 hidden，非中文界面也会看见。display 只写在 .is-on 上，由脚本加。
      内层 .gi-wxmp 不带 hidden，可以正常写 display:flex。 */
/* 对齐壳：块插在 body 层，靠这层跟正文（main.gi-wrap）对齐。
   ⛔ hidden 在壳上，所以 display 只能写在 .is-on 上。 */
.gi-wxmp-wrap.is-on { display: block; max-width: var(--mw); margin: 0 auto; padding: 0 24px; }
.gi-wxmp {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 860px;
  margin: 26px 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(200, 168, 75, .28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(200,168,75,.06), rgba(200,168,75,.02));
}
.gi-wxmp-qr {
  flex: none;
  width: 140px; height: 140px;
  border-radius: 8px;
  background: #fff;          /* 码是 RGB 白底，深色页面上给个实底更干净 */
  padding: 6px;
}
.gi-wxmp-txt { min-width: 0; }
.gi-wxmp-h { font-size: 17px; font-weight: 600; color: var(--goldb); letter-spacing: .5px; }
.gi-wxmp-p { margin: 8px 0 10px; color: var(--text2); font-size: 14px; line-height: 1.65; }
.gi-wxmp-p b { color: var(--text); font-weight: 600; }
.gi-wxmp-list { margin: 0; padding-left: 18px; color: var(--text2); font-size: 13.5px; line-height: 1.75; }
.gi-wxmp-list b { color: var(--text); font-weight: 600; }
.gi-wxmp-hint { margin-top: 10px; color: var(--text3); font-size: 12.5px; }
.gi-wxmp-hint b { color: var(--text2); font-weight: 600; }

@media (max-width: 640px) {
  /* 手机上二维码扫不了自己的屏幕 —— 所以这里主打的是「长按识别」，
     码要够大才按得准，横排挤成小方块反而没用。 */
  .gi-wxmp { flex-direction: column; align-items: center; text-align: center; padding: 18px 16px; }
  .gi-wxmp-qr { width: 168px; height: 168px; }
  .gi-wxmp-list { text-align: left; }
}

/* 美化上限提示（台账 #142）。⛔ 不做成刺眼的警告色 —— 这不是错误，
   是一条「你得自己挑两件」的说明；用次要文本色 + 细左边框即可。 */
.gi-craft-note{margin:8px 0 0;padding:7px 0 7px 11px;border-left:2px solid var(--border,#2c3346);
  font-size:12.5px;line-height:1.7;color:var(--text2,#9aa4b8);max-width:66ch}

/* BiS 页 · 套装转换与坯子（2026-09-09） */
.gi-tier-plan .gi-tier-row { padding:12px 0; border-bottom:1px solid rgba(255 255 255 / .05); }
.gi-tier-plan .gi-tier-row:last-of-type { border-bottom:none; }
.gi-tier-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.gi-tier-order { width:22px; height:22px; border-radius:50%; background:var(--s3); color:var(--goldb);
                 font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex:none; }
.gi-tier-slot { font-size:12px; color:var(--text3); }
.gi-tier-pct { margin-left:auto; font-weight:700; font-variant-numeric:tabular-nums; }
.gi-tier-skip { font-size:11px; color:var(--text3); border:1px solid var(--border); border-radius:999px; padding:1px 8px; }
.gi-tier-fillers { margin:8px 0 0 32px; }
.gi-tier-filler { display:flex; align-items:center; gap:8px; padding:5px 0; font-size:12.5px; }
.gi-tf-icon { width:22px; height:22px; border-radius:5px; flex:none; }
.gi-tf-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gi-tf-kind { font-size:10.5px; color:var(--text3); border:1px solid var(--border); border-radius:4px; padding:0 6px; flex:none; }
.gi-tf-kind.is-raid { color:var(--goldb); border-color:rgba(200 168 75 / .45); }
.gi-tf-inst { font-size:11.5px; color:var(--text3); white-space:nowrap; }
.gi-tf-stats { font-size:11.5px; color:var(--ok); white-space:nowrap; }
@media (max-width:700px){
  /* ⛔ 手机上一行塞不下五段：名字独占一行，其余压到第二行 */
  .gi-tier-filler { flex-wrap:wrap; gap:6px; }
  .gi-tf-name { flex:1 0 100%; }
  .gi-tier-fillers { margin-left:10px; }
  .gi-tier-pct { margin-left:0; }
}

/* 打赏面板 → 打赏榜（2026-09-12） */
.gi-help-board { display: block; margin-top: 8px; text-align: center; font-size: 12px; font-weight: 700; color: var(--gold); text-decoration: none; }
.gi-help-board:hover { color: var(--goldb); text-decoration: underline; }
/* 打赏面板 · 快捷登记（2026-09-12） */
.gi-help-reg { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 6px; }
.gi-help-reg-t { font-size: 11.5px; font-weight: 700; color: var(--text2); letter-spacing: .04em; }
.gi-help-reg-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; }
.gi-help-reg .gi-help-field { margin: 0; }
.gi-help-reg-btn { margin-top: 2px; }
.gi-help-reg .gi-help-status a { color: var(--ok); font-weight: 700; }

/* 首页打赏榜（2026-09-12） */
.gi-sup { margin: 18px auto 30px; padding: 18px 22px 16px; background: radial-gradient(60% 80% at 50% 0%, rgba(200 168 75 / .10), transparent 70%), var(--s1);
  border: 1px solid rgba(200 168 75 / .28); border-radius: 16px; }
.gi-sup-head { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; margin-bottom: 12px; }
.gi-sup-head h2 { margin: 0; font-size: 18px; color: var(--goldb); }
.gi-sup-head p { margin: 0; grid-column: 1 / -1; font-size: 12.5px; color: var(--text2); line-height: 1.5; }
.gi-sup-stats { grid-column: 1 / -1; display: flex; gap: 14px; font-size: 12px; color: var(--text3); }
.gi-sup-stats b { color: var(--goldb); font-size: 15px; font-variant-numeric: tabular-nums; }
.gi-sup-stats i { font-style: normal; }
.gi-sup-cta { font: inherit; font-size: 13px; font-weight: 800; padding: 8px 16px; border-radius: 999px; border: 0; cursor: pointer; color: #17130a;
  background: linear-gradient(135deg, var(--goldb), var(--gold)); white-space: nowrap; }
.gi-sup-cta:hover { filter: brightness(1.08); }
.gi-sup-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.gi-sup-t { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin-bottom: 6px; }
.gi-sup-list { list-style: none; margin: 0; padding: 0; }
.gi-sup-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(255 255 255 / .05); font-size: 13px; }
.gi-sup-row:last-child { border-bottom: none; }
.gi-sup-row.r1 .gi-sup-who b { color: var(--goldb); } .gi-sup-row.r2 .gi-sup-who b { color: var(--text); } .gi-sup-row.r3 .gi-sup-who b { color: #d9a072; }
.gi-sup-rank { width: 22px; text-align: center; flex: none; color: var(--text3); font-weight: 800; font-size: 12px; }
.gi-sup-who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.gi-sup-who em { font-style: normal; color: var(--text3); font-size: 12px; margin-left: 6px; }
.gi-sup-realm { color: var(--text3); font-size: 11.5px; }
.gi-sup-amt { margin-left: auto; font-weight: 800; color: var(--goldb); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gi-sup-amt small { color: var(--text3); font-weight: 600; }
.gi-sup-ok { color: var(--ok); font-size: 12px; }
.gi-sup-empty { color: var(--text3); font-size: 12.5px; padding: 6px 4px; }
@media (max-width: 720px) { .gi-sup-body { grid-template-columns: 1fr; } .gi-sup-head { grid-template-columns: 1fr; } }

/* 打赏面板 · 打赏榜 tab（2026-09-12） */
.gi-help-wall { max-height: 420px; overflow: auto; }
.gi-help-wall-stats { display: flex; gap: 12px; font-size: 11.5px; color: var(--text3); margin-bottom: 8px; }
.gi-help-wall-stats b { color: var(--goldb); font-size: 14px; }
.gi-help-wall-t { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin: 8px 0 4px; }
.gi-help-wall-list { list-style: none; margin: 0; padding: 0; }
.gi-help-wall-list li { display: flex; align-items: center; gap: 6px; padding: 5px 2px; border-bottom: 1px solid rgba(255 255 255 / .05); font-size: 12.5px; color: var(--text); }
.gi-help-wall-list li:last-child { border-bottom: none; }
.gi-help-wall-list .rk { width: 20px; text-align: center; flex: none; color: var(--text3); font-weight: 800; font-size: 11px; }
.gi-help-wall-list .wh { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-help-wall-list .wh em { font-style: normal; color: var(--text3); font-size: 11.5px; margin-left: 4px; }
.gi-help-wall-list li.r1 .wh b { color: var(--goldb); } .gi-help-wall-list li.r2 .wh b { color: var(--text); } .gi-help-wall-list li.r3 .wh b { color: #d9a072; }
.gi-help-wall-realm { color: var(--text3); font-size: 11px; }
.gi-help-wall-list .am { margin-left: auto; font-weight: 800; color: var(--goldb); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gi-help-wall-list .am small { color: var(--text3); font-weight: 600; }
.gi-help-wall-list .ok { color: var(--ok); font-size: 11px; }
.gi-help-wall-empty { color: var(--text3); font-size: 12px; padding: 4px 2px; }
/* 侧卡空态：列表 li 是三列 grid，空态那条要退回 block，否则一字一行（2026-09-12 用户截图） */
.gi-wall-side .gi-wall-side-list li.gi-help-wall-empty { display: block; grid-template-columns: none; }

/* 常驻打赏榜侧栏（2026-09-12） */
.gi-wall-side { position: fixed; right: 12px; top: 110px; width: 224px; z-index: 40; }
.gi-wall-side.is-hidden { display: none; }
.gi-wall-side-body { background: radial-gradient(70% 50% at 50% 0%, rgba(200 168 75 / .12), transparent 70%), var(--s1);
  border: 1px solid rgba(200 168 75 / .3); border-radius: 14px; padding: 10px 12px 12px; box-shadow: 0 10px 30px rgba(0 0 0 / .45); }
.gi-wall-side.is-collapsed .gi-wall-side-body { display: none; }
.gi-wall-side-tab { display: none; font: inherit; font-size: 12px; font-weight: 800; color: #17130a; background: linear-gradient(135deg, var(--goldb), var(--gold));
  border: 0; border-radius: 999px 0 0 999px; padding: 10px 12px; cursor: pointer; writing-mode: vertical-rl; position: fixed; right: 0; top: 140px; }
.gi-wall-side.is-collapsed .gi-wall-side-tab { display: block; }
/* 留白不够（1536 宽）时的展开态：盖在内容上，带更重的投影，标签藏起 */
.gi-wall-side.is-narrow:not(.is-collapsed) { z-index: 120; }
.gi-wall-side.is-narrow:not(.is-collapsed) .gi-wall-side-body { box-shadow: 0 14px 40px rgba(0 0 0 / .6); }
.gi-wall-side-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gi-wall-side-h b { font-size: 13.5px; color: var(--goldb); }
.gi-wall-side-x { font: inherit; font-size: 16px; line-height: 1; color: var(--text3); background: none; border: 0; cursor: pointer; padding: 0 4px; }
.gi-wall-side-x:hover { color: var(--text); }
.gi-wall-side-stats { display: flex; gap: 12px; font-size: 11px; color: var(--text3); margin-bottom: 4px; }
.gi-wall-side-stats b { color: var(--goldb); font-size: 13px; }
.gi-wall-side .gi-help-wall-list li { font-size: 12px; padding: 4px 0; }
.gi-wall-side-cta { width: 100%; margin-top: 10px; }
.gi-wall-side-goals { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.gi-wall-goal-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--text3); margin-bottom: 3px; }
.gi-wall-goal-h b { color: var(--text2); font-variant-numeric: tabular-nums; }
.gi-wall-goal-bar { height: 6px; border-radius: 3px; background: rgba(255 255 255 / .08); overflow: hidden; }
.gi-wall-goal-bar { display: flex; height: 8px; border-radius: 4px; }
.gi-wall-goal-bar i { display: block; height: 100%; }
.gi-wall-goal-bar i.s { background: linear-gradient(90deg, var(--gold), var(--goldb)); }
.gi-wall-goal-bar i.l { background: linear-gradient(90deg, #4f8ff7, #7fb3ff); }
.gi-wall-goal-lg { display: flex; gap: 12px; font-size: 10.5px; color: var(--text3); margin-top: 4px; }
.gi-wall-goal-lg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.gi-wall-goal-lg i.s { background: var(--goldb); } .gi-wall-goal-lg i.l { background: #6ea6ff; }
.gi-wall-goal-msg { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--goldb); line-height: 1.4; }
.gi-wall-goal-hint { font-size: 10.5px; color: var(--text3); margin-top: 2px; }
.gi-wall-side-lede { margin: 0 0 8px; font-size: 11.5px; line-height: 1.5; color: var(--text2); }

/* 侧卡 20 人两行式（2026-09-12） */
.gi-wall-side-list { flex: 1 1 auto; min-height: 120px; max-height: none; overflow: auto;   /* 2026-09-18 用户「扩充下跟下面一样长度」：列表撑满卡片剩余高度 */ margin-right: -6px; padding-right: 6px; }
/* 侧卡整体别伸到右下角「打赏 反馈」浮钮底下（用户 2026-09-13：最下面展示不全）：卡片限高，列表在卡内滚 */
.gi-wall-side-body { display: flex; flex-direction: column; max-height: calc(100vh - 110px - 100px); box-sizing: border-box; }
.gi-wall-side-body > :not(.gi-wall-side-list) { flex: 0 0 auto; }
.gi-wall-side .gi-wall-side-list li { display: grid; grid-template-columns: 20px 1fr auto; align-items: start; gap: 4px 6px; padding: 5px 0; }
.gi-wall-side .gi-wall-side-list .wh { white-space: normal; overflow: visible; display: block; line-height: 1.3; }
.gi-wall-side .gi-wall-side-list .wh small { color: var(--text3); font-size: 11px; }
.gi-wall-side .gi-wall-side-list .wh em { display: block; margin: 1px 0 0; font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 鼠标移上去整句展开（2026-09-20 用户「祝福的话，鼠标移动上去能展示全」） */
.gi-wall-side .gi-wall-side-list li:hover .wh em { white-space: normal; overflow: visible; text-overflow: clip; }
.gi-wall-side .gi-wall-side-list .rk { padding-top: 1px; }
.gi-wall-side.is-loading .gi-wall-side-stats,
.gi-wall-side.is-loading .gi-wall-side-goals { opacity: .55; }
.gi-wall-skeleton { height: 12px; margin: 7px 0; border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(232,200,106,.2), rgba(255,255,255,.05)); background-size: 220% 100%; animation: gi-wall-shimmer 1.25s ease-in-out infinite; }
.gi-wall-side .gi-wall-side-list .gi-wall-skeleton { display:block; height: 24px; margin: 8px 0; }
@keyframes gi-wall-shimmer { 0% { background-position: 180% 0; } 100% { background-position: -20% 0; } }
.gi-wall-side-all { display: block; text-align: right; margin-top: 8px; font-size: 11.5px; color: var(--goldb); text-decoration: none; }
.gi-wall-side-all:hover { text-decoration: underline; }
/* 首页快捷入口：收进内容宽度，别被侧卡压住（用户 2026-09-12「刷本规划到后面了」） */
.gi-hero-links { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* 支持榜独立页（2026-09-12） */
.gi-supg { max-width: 1120px; margin: 0 auto; padding: 28px 24px 70px; }
.gi-supg h1 { font-size: 30px; color: var(--goldb); margin: 0 0 6px; }
.gi-supg-lede { color: var(--text2); max-width: 720px; line-height: 1.6; margin: 0 0 18px; }
.gi-supg-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.gi-supg-stats > div { background: var(--s1); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; min-width: 150px; }
.gi-supg-stats b { display: block; font-size: 24px; color: var(--goldb); line-height: 1.1; }
.gi-supg-stats span { font-size: 12px; color: var(--text3); }
.gi-supg-goal { background: var(--s1); border: 1px solid rgba(200 168 75 / .3); border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; }
.gi-supg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.gi-supg-card { background: var(--s1); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; }
.gi-supg-card h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.gi-bars { display: flex; flex-direction: column; gap: 6px; }
.gi-bar { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 8px; font-size: 12px; }
.gi-bar .k { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.gi-bar .t { height: 10px; background: rgba(255 255 255 / .06); border-radius: 5px; overflow: hidden; }
.gi-bar .t i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--goldb)); border-radius: 5px; }
.gi-bar .v { text-align: right; color: var(--goldb); font-weight: 700; font-variant-numeric: tabular-nums; }
.gi-bar .v small { color: var(--text3); font-weight: 500; }
.gi-cols { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 14px; }
.gi-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; position: relative; }
.gi-col i { display: block; width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--goldb), var(--gold)); border-radius: 4px 4px 0 0; min-height: 2px; }
.gi-col b { position: absolute; top: -14px; font-size: 10px; color: var(--goldb); white-space: nowrap; }
.gi-col span { font-size: 10px; color: var(--text3); margin-top: 4px; white-space: nowrap; }
.gi-supg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gi-supg-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.gi-supg-table td { padding: 8px; border-bottom: 1px solid rgba(255 255 255 / .05); vertical-align: top; }
.gi-supg-table td.n { color: var(--text3); width: 36px; }
.gi-supg-table td.am { text-align: right; color: var(--goldb); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gi-supg-table td.ts { color: var(--text3); white-space: nowrap; }
.gi-supg-table td .rm { color: var(--text3); font-size: 12px; }
.gi-supg-table td .msg { display: block; color: var(--text2); font-size: 12px; margin-top: 2px; }
.gi-supg-table td .ok { color: var(--ok); margin-left: 4px; }
.gi-supg-note { color: var(--text3); font-size: 12px; margin: 8px 0 0; }
/* 每月运营费构成（10-16）。⛔ 只排百分比，这里永远不会有金额 */
.gi-supg-opex { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255 255 255 / .07); }
.gi-supg-opex h4 { margin: 0 0 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); font-weight: 700; }
.gi-supg-opex ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gi-supg-opex li { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--text2); }
.gi-supg-opex li span { flex: 1; min-width: 0; }
.gi-supg-opex li b { color: var(--goldb); font-weight: 700; font-variant-numeric: tabular-nums; }
.gi-supg-opex li em { font-style: normal; color: var(--ok); font-size: 11px; }
.gi-supg.is-loading .gi-supg-stats,
.gi-supg.is-loading .gi-supg-goal,
.gi-supg.is-loading .gi-supg-grid { opacity: .55; }
.gi-sup-loading { height: 14px; border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(232,200,106,.2), rgba(255,255,255,.05)); background-size: 220% 100%; animation: gi-wall-shimmer 1.25s ease-in-out infinite; }
.gi-supg-more { display: block; margin: 10px auto 0; padding: 7px 18px; font-size: 12px; font-weight: 700; color: var(--text2); background: rgba(255 255 255 / .04); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.gi-supg-more:hover { color: var(--text1); border-color: var(--goldb); }
@media (max-width: 900px) { .gi-supg-grid { grid-template-columns: 1fr; } .gi-supg-table td.ts { display: none; } .gi-supg-table th.ts { display: none; } }

/* 刷本网格 · 多专精行（2026-09-12） */
.gi-fg-specrows { display: flex; flex-direction: column; gap: 4px; }
.gi-fg-specart { width: 44px; height: 44px; border-radius: 9px; }
.gi-fg-specrow .gi-fg-left { flex-basis: 210px; }
body.gi-fg-toponly .gi-fg-emptyrow { display: none; }

/* 本站兜底物品提示（2026-09-12，Wowhead 加载不出时） */
.gi-tip { position: fixed; z-index: 9999; max-width: 320px; padding: 10px 12px; background: rgba(8, 10, 22, .96); border: 1px solid #3a3f5c; border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0 0 0 / .6); font-size: 13px; line-height: 1.45; color: #fff; pointer-events: none; }  /* theme-ok */
.gi-tip-name { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.gi-tip-name.q2 { color: #1eff00; } .gi-tip-name.q3 { color: #0070dd; } .gi-tip-name.q4 { color: #a335ee; } .gi-tip-name.q5 { color: #ff8000; } .gi-tip-name.q6 { color: #e6cc80; }  /* theme-ok */
.gi-tip-ilvl { color: #ffd100; } .gi-tip-slot { color: #fff; }  /* theme-ok */
.gi-tip-line { color: #fff; } .gi-tip-line.sec { color: #1eff00; }  /* theme-ok */
.gi-tip-fx { color: #1eff00; margin-top: 4px; }
.gi-tip-src { color: var(--mute,#8a93a6); font-size: 11px; margin-top: 6px; border-top: 1px solid rgba(255 255 255 / .08); padding-top: 4px; }

/* 感谢弹窗（2026-09-12） */
.gi-thanks { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(4 5 12 / .72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; padding: 20px; }
.gi-thanks.is-in { opacity: 1; }
.gi-thanks-card { position: relative; overflow: hidden; width: min(440px, 100%); padding: 34px 30px 26px; text-align: center; border-radius: 20px;
  background: linear-gradient(180deg, #1a1630 0%, #0f0e1c 100%); border: 1px solid rgba(232 200 106 / .45);  /* theme-ok */
  box-shadow: 0 30px 80px rgba(0 0 0 / .6), 0 0 0 1px rgba(232 200 106 / .12), 0 0 60px rgba(232 200 106 / .18);
  transform: translateY(14px) scale(.96); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.gi-thanks.is-in .gi-thanks-card { transform: none; }
.gi-thanks-glow { position: absolute; left: 50%; top: -80px; width: 320px; height: 220px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(232 200 106 / .35), transparent); pointer-events: none; }
.gi-thanks-heart { font-size: 54px; line-height: 1; color: #ff6b8a; text-shadow: 0 0 24px rgba(255 107 138 / .6); animation: gi-beat 1.6s ease-in-out infinite; position: relative; }
@keyframes gi-beat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.12); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } }
.gi-thanks-card h3 { margin: 12px 0 8px; font-size: 22px; color: var(--goldb); position: relative; }
.gi-thanks-card p { margin: 6px 0; color: var(--text2); font-size: 14px; line-height: 1.6; position: relative; }
.gi-thanks-card p.gi-thanks-p1 { color: #fff; font-weight: 700; }  /* theme-ok */
.gi-thanks-card p.gi-thanks-p3 { color: var(--text3); font-size: 12.5px; margin-top: 10px; }
.gi-thanks-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; position: relative; }
.gi-thanks-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #17130a; text-decoration: none; background: linear-gradient(135deg, var(--goldb), var(--gold)); box-shadow: 0 6px 20px rgba(232 200 106 / .35); }
.gi-thanks-x { font: inherit; font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text2); cursor: pointer; }
.gi-thanks-x:hover { color: var(--text); border-color: var(--bhl); }
.gi-thanks-spark { position: absolute; top: 100%; font-size: 14px; color: var(--goldb); opacity: 0; pointer-events: none; animation: gi-spark linear infinite; }
@keyframes gi-spark { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-420px); opacity: 0; } }
.gi-thanks-prog { position: relative; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255 255 255 / .04); border: 1px solid rgba(232 200 106 / .2); text-align: left; }
.gi-thanks-prog-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); }
.gi-thanks-prog-h b { color: var(--goldb); font-size: 16px; font-variant-numeric: tabular-nums; }
.gi-thanks-bar { position: relative; height: 10px; border-radius: 5px; background: rgba(255 255 255 / .08); margin-top: 8px; overflow: hidden; }
.gi-thanks-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--gold), var(--goldb)); box-shadow: 0 0 12px rgba(232 200 106 / .5); }
.gi-thanks-bar i.is-anim { transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.gi-thanks-bar em { position: absolute; top: 0; height: 100%; background: rgba(255 255 255 / .35); animation: gi-gain 1.2s ease-in-out infinite; }
@keyframes gi-gain { 0%,100% { opacity: .2; } 50% { opacity: .8; } }
.gi-thanks-up { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--goldb); opacity: 0; transform: translateY(6px); transition: all .4s; min-height: 18px; }
.gi-thanks-up.is-in { opacity: 1; transform: none; }

/* 刷本规划 · 一起刷的专精（2026-09-12，对齐插件） */
.gi-fg-specbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 14px; }
.gi-fg-specbar-l { font-size: 12.5px; color: var(--text3); margin-right: 2px; }
.gi-fg-spec { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12.5px; font-weight: 700; padding: 3px 10px 3px 4px; border-radius: 999px; cursor: pointer;
  background: rgba(200 168 75 / .10); border: 1px solid rgba(200 168 75 / .45); color: var(--goldb); }
.gi-fg-spec img { width: 22px; height: 22px; border-radius: 6px; }
.gi-fg-spec[data-on="0"] { background: transparent; border-color: var(--border); color: var(--text3); }
.gi-fg-spec[data-on="0"] img { filter: grayscale(1); opacity: .5; }
.gi-fg-spec .gi-fg-cur { font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--goldb); color: #17130a; }
.gi-fg-spec-quick { font: inherit; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; cursor: pointer; background: transparent; border: 1px solid var(--border); color: var(--text2); }
.gi-fg-spec-quick:hover { color: var(--text); border-color: var(--bhl); }
.gi-fg-specrow.gi-fg-specoff { display: none; }
section.gi-boss.gi-fg-nogroup { display: none; }

/* 万奥宝典选法表（循环页，2026-09-14） */
.gi-cx-table td{vertical-align:top}
.gi-cx-row{font-weight:600;white-space:nowrap}
.gi-cx-pick{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;padding:3px 0;opacity:.72}
.gi-cx-pick.top{opacity:1;font-weight:600}
.gi-cx-pct{font-variant-numeric:tabular-nums;text-align:right}
.gi-cx-bar{grid-column:1/-1;height:3px;background:rgba(127,127,127,.18);border-radius:2px;overflow:hidden}
.gi-cx-bar i{display:block;height:100%;background:#c9a227}
.gi-cx-pick:not(.top) .gi-cx-bar i{background:#8a8f99}
.gi-cx-none{opacity:.55}
.gi-cx-unlock{margin-top:8px}.gi-cx-unlock summary{cursor:pointer;font-size:.92em;opacity:.8}
.gi-cat-skipnote{font-size:.85em;opacity:.7;margin:10px 0 4px;padding-left:4px}

/* 坯子横评（套装件缺件行，2026-09-14） */
.gi-fil-row{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;padding:4px 0 6px}
.gi-fil-lbl{align-self:center;font-size:.85em;opacity:.7;margin-right:4px;white-space:nowrap}
.gi-fil-chip{display:flex;flex-direction:column;gap:2px;padding:6px 10px;border:1px solid rgba(127,127,127,.25);border-radius:8px;font-size:.92em;min-width:150px}
.gi-fil-chip.best{border-color:#c9a227;background:rgba(201,162,39,.08)}
.gi-fil-chip .gi-cat-fstat{margin-left:0}
.gi-fil-src{font-style:normal;opacity:.75;font-size:.9em}
.gi-fil-fit{font-style:normal;opacity:.6;font-size:.85em}
/* 揭晓卡 · 本站三口径排名 + WCL 分位色 */
.gi-reveal-ranks{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.gi-rank-chip{display:flex;flex-direction:column;padding:8px 12px;border:1px solid rgba(127,127,127,.25);border-radius:10px;min-width:120px}
.gi-rank-chip i{font-style:normal;font-size:.85em;opacity:.75}
.gi-rank-chip b{font-size:1.5em;line-height:1.2}
.gi-rank-chip s{text-decoration:none;font-size:.75em;opacity:.55}
.wcl-0{color:#9d9d9d}.wcl-25{color:#1eff00}.wcl-50{color:#0070ff}.wcl-75{color:#a335ee}.wcl-95{color:#ff8000}.wcl-99{color:#e268a8}.wcl-100{color:#e5cc80}  /* theme-ok */
.gi-me-avatar-img{object-fit:cover;background:#000}  /* theme-ok */

/* 套装坯子竖列（与插件弹窗同款，2026-09-14） */
.gi-fil-box{padding:6px 0 8px}
.gi-fil-hd{font-size:.9em;opacity:.8;margin-bottom:6px}
.gi-fil-rec{color:#c9a227;opacity:1}
.gi-fil-list{list-style:none;margin:0;padding:0}
.gi-fil-li{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:8px;font-size:.95em}
.gi-fil-li.best{background:rgba(201,162,39,.08);border:1px solid rgba(201,162,39,.35)}
.gi-fil-li:not(.best){opacity:.85}
.gi-fil-no{min-width:1.4em;opacity:.6}
.gi-fil-li .gi-spell-icon{width:22px;height:22px;border-radius:4px}
.gi-fil-li .gi-cat-fstat{margin-left:2px}
.gi-fil-src{opacity:.7;font-size:.9em}

/* 页脚关注/频道栏 */
.gi-footer-ch{max-width:1200px;margin:28px auto 0;padding:10px 16px;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:.85em;opacity:.75}
.gi-footer-ch .lb{opacity:.6;margin-right:4px}
.gi-footer-ch a,.gi-footer-ch span{color:inherit;text-decoration:none}
.gi-footer-ch a:hover{color:#c9a227}
.gi-footer-ch i{opacity:.4;font-style:normal}

/* 2026-09-14 排版 */
/* ① 纸娃娃：格子别拉成整列宽的长条 —— 两侧列限宽、贴向中间 */
/* ⛔ 这几条写在文件末尾，会压过上面 @media(max-width:700px) 的手机两列布局（2026-09-15 手机截图：
   三列变成 40/230/40，左右格子挤成一条）—— 所以只在 PC 宽度生效，手机走原来的规则。 */
@media (min-width: 701px) {
  .gi-doll { grid-template-columns: minmax(0,1fr) minmax(170px, 230px) minmax(0,1fr); gap: 6px 22px; }
  #gi-doll-l { justify-self: end; } #gi-doll-r { justify-self: start; }
  .gi-doll-col { width: 100%; max-width: 380px; }
  .gi-doll-weapons .gi-doll-slot { width: 300px; }
}
@media (min-width: 701px) and (max-width: 900px) { .gi-doll-col { max-width: none; } #gi-doll-l, #gi-doll-r { justify-self: stretch; } }
/* ② 揭晓卡与纸娃娃同宽同缩进 */
.gi-reveal { margin: 0 0 18px; }
/* ③ 首页：插件卡 / 社区卡 与职业格之间留白 */
.gi-community { padding-bottom: 22px; }
/* ④ 社区卡：关注 / 频道全套 */
.gi-comm-ch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gi-comm-ch a, .gi-comm-ch span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--s2); font-size: 12.5px; color: var(--text2); text-decoration: none; }
.gi-comm-ch a:hover { border-color: rgba(200 168 75 / .6); color: var(--goldb); }
.gi-comm-ch b { color: var(--text); font-weight: 700; }
html[data-gi-comm="intl"] .gi-comm-ch .cn { display: none; }
html:not([data-gi-comm="intl"]) .gi-comm-ch .intl { display: none; }

/* 折叠块提示字：收起时只显示「点击展开」，展开时只显示「收起」（BiS 页少了这条规则，两句一起印） */
.gi-fold .fx-close{display:none}.gi-fold[open] .fx-open{display:none}.gi-fold[open] .fx-close{display:inline}
.gi-fold .gi-fold-n{margin-left:8px;padding:1px 8px;border-radius:999px;border:1px solid var(--border);font-size:.8em;opacity:.8}

/* 微信群二维码弹窗（2026-09-14） */
#gi-wxgroup-modal{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px}
#gi-wxgroup-modal[hidden]{display:none}
.gi-wxg-box{position:relative;background:#fff;color:#222;border-radius:14px;padding:22px 22px 18px;max-width:360px;width:100%;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.4)}
.gi-wxg-x{position:absolute;top:6px;right:10px;border:0;background:none;font-size:26px;line-height:1;color:#888;cursor:pointer}
.gi-wxg-t{font-weight:700;font-size:17px;margin-bottom:10px}
.gi-wxg-img{width:260px;height:260px;display:block;margin:0 auto 10px;image-rendering:pixelated}
.gi-wxg-s{font-size:12.5px;color:#666;line-height:1.5}
.gi-wxg-s b{color:#c9a227}
.gi-wxg-save{display:inline-block;margin-top:12px;padding:8px 18px;border-radius:999px;background:#c9a227;color:#1a1a1a;font-weight:700;text-decoration:none;font-size:14px}
.gi-comm-ch a.gi-wxgroup-btn b{color:#2aae67}
html[data-theme="light"] .gi-comm-ch a.gi-wxgroup-btn b{color:#1b7a48}

.gi-comm-ch a, .gi-comm-ch span[data-qq] { cursor: pointer; }
.gi-comm-ch span[data-qq]:hover { border-color: rgba(200 168 75 / .6); color: var(--goldb); }

/* 我的角色 · 多角色 / 导出串 / 同步码（2026-09-17） */
.gi-me-lbl { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text2); padding: 4px 12px 2px; }
.gi-me-char { position: relative; padding-right: 30px; }
/* ⛔ 2026-09-18 玩家截图：角色名一字一行——通用规则 `.gi-me-opt span{width:16px}` 比 .gi-me-char-txt 特异性高，把文字列压成 16px */
.gi-me-opt .gi-me-char-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; width: auto; flex: 1 1 auto; text-align: left; }
.gi-me-char-txt b { font-size: 13px; font-weight: 650; color: var(--text); }
.gi-me-char-txt i { font-style: normal; font-size: 10.5px; color: var(--text2); }
.gi-me-mini { width: 16px; height: 16px; border-radius: 4px; display: block; }
.gi-me-strong { color: #59c27a; font-style: normal; font-size: 12px; margin-left: auto; }
.gi-me-strong-lbl { text-decoration: none; color: #59c27a; }
.gi-me-del { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12px; color: var(--text2); padding: 2px 5px; border-radius: 5px; }
.gi-me-del:hover { color: #e5636b; background: rgba(229 99 107 / .12); }
.gi-me-back { background: none; border: none; color: var(--text2); font: inherit; font-size: 12px; cursor: pointer; padding: 4px 8px 0; }
.gi-me-back:hover { color: var(--text); }
.gi-me-form textarea { width: 100%; box-sizing: border-box; background: var(--s1); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--text); resize: vertical; }
.gi-me-form textarea:focus { outline: none; border-color: var(--bhl); }
.gi-me-err { font-size: 12px; color: #e5636b; line-height: 1.4; padding: 0 2px; }
.gi-me-acct { border-color:rgba(89,194,122,.35); }
.gi-me-acct .gi-me-char-txt b { font-weight:600; }
.gi-me-sup { color: var(--warn); font-weight: 700; margin-left: 4px; cursor: help; }
.gi-me-warn { margin: 6px 10px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.gi-me-steps { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--text3); }
.gi-me-steps div { margin-top: 3px; }
#gi-me-token { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.gi-me-qr { text-align:center; }
.gi-me-qr-box { margin:8px auto 4px; padding:10px; width:200px; background:#fff; border-radius:12px; border:1px solid var(--bhl); }
.gi-me-qr-box img { display:block; width:180px; height:180px; margin:0 auto; }
.gi-me-qr-hint { margin-top:6px; font-size:12px; line-height:1.4; color:#333; }
/* 出码等待态：按钮转圈 + 占位框骨架呼吸（不出这个用户以为卡住了，2026-09-20） */
.gi-me-qr button.busy { opacity:.75; cursor:progress; }
.gi-me-spin { display:inline-block; width:12px; height:12px; margin-right:6px; vertical-align:-2px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:gi-ai-spin .7s linear infinite; }
.gi-me-qr-box.skeleton img { visibility:hidden; }
.gi-me-qr-box.skeleton { position:relative; overflow:hidden; }
.gi-me-qr-box.skeleton::after { content:""; position:absolute; inset:10px 10px auto; height:180px; border-radius:8px; background:linear-gradient(90deg,#eee 25%,#f7f7f7 50%,#eee 75%); background-size:200% 100%; animation:gi-teaser-sheen 1.1s ease-in-out infinite; }
.gi-me-qr-or { text-align:center; font-size:12px; color:var(--text3); margin:10px 0 4px; }
.gi-me-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .12em; text-align: center; color: var(--gold); padding: 6px 0 2px; }
.gi-me-alt-links { flex-wrap: wrap; }
.gi-me-alt-links button { background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--text2); font: inherit; font-size: 12px; padding: 4px 9px; cursor: pointer; }
.gi-me-alt-links button:hover { color: var(--text); border-color: var(--bhl); }
.gi-me-busy .gi-me-drop { opacity: .6; pointer-events: none; }


/* 打赏登记金额快捷键（2026-09-18） */
.gi-help-reg-amts{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0 8px}
.gi-help-amt{border:1px solid rgba(226,184,92,.45);background:rgba(226,184,92,.08);color:var(--amber);border-radius:14px;padding:3px 12px;font-size:13px;cursor:pointer}
.gi-help-amt:hover,.gi-help-amt.on{background:#e2b85c;color:#1a1a1a}
.gi-help-reg-amts.nudge .gi-help-amt{animation:giAmtNudge .9s ease-in-out 3;border-color:#e2b85c;box-shadow:0 0 0 2px rgba(226,184,92,.35)}
@keyframes giAmtNudge{0%,100%{transform:none}50%{transform:translateY(-2px)}}

html[data-theme="light"] .gi-qq-toast { color: #1e7a32; }
html[data-theme="light"] [style*="--cls:"] { color: color-mix(in srgb, var(--cls) 58%, #1a1a2e) !important; }
/* 职业色当文字（2026-09-19 根解）：所有 `color: var(--cc)` 都改成了 `var(--cc-txt, var(--cc))`。
   深色主题 --cc-txt 未定义 → 原色；浅色主题在设了 --cc 的元素上按 58% 混深 → 战士金 / 法师青 / 牧师白
   在白底上都能读。⛔ 新规则里写文字色别再直接 var(--cc)，scripts/gi_theme_lint.py 不查这个，靠 _theme_ui_test 兜。 */
html[data-theme="light"] [style*="--cc:"] { --cc-txt: color-mix(in srgb, var(--cc) 58%, #1a1a2e); }

/* ── 主导航 · 大气版（2026-09-24 用户「大气美化主导航」）────────────────────────────
   ⛔ 结构不动：giNavFit（wow_i18n.js）靠 .gi-nav-inner > .gi-nav-link + .gi-more 从右往左收链接，
      这里只改外观；下划线指示用 ::after 画在链接自己身上，挪进「更多」后换成 .gi-more-opt 自然消失。 */
.gi-nav {
  background: linear-gradient(180deg, rgba(10,10,22,.94), rgba(7,7,15,.86));
  border-bottom: 1px solid rgba(255 255 255 / .05);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.8);
}
.gi-nav::after {                         /* 金色细光底线：中间亮两头淡 */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(200,168,75,.15) 18%, rgba(232,200,106,.7) 50%, rgba(200,168,75,.15) 82%, transparent 100%);
}
html[data-theme="light"] .gi-nav { background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(243,243,248,.9)); box-shadow: 0 8px 24px -18px rgba(20,20,60,.35); }
html[data-theme="light"] .gi-nav::after { background: linear-gradient(90deg, transparent, rgba(154,122,30,.55), transparent); }
.gi-nav-inner { height: 64px; gap: 6px; }
.gi-logo { font-size: 18px; letter-spacing: -.2px; margin-right: 10px; }
.gi-logo::before { width: 28px; height: 28px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(232,200,106,.45), 0 0 16px rgba(232,200,106,.28), 0 2px 8px rgba(0,0,0,.45); }
.gi-realm { padding: 3px; margin-right: 10px; }
.gi-realm-btn { font-size: 12.5px; padding: 5px 12px; letter-spacing: .02em; transition: color .15s, background .2s; }
.gi-realm-btn.on { box-shadow: 0 2px 10px rgba(232,200,106,.35); }
.gi-nav-link {
  position: relative; font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  padding: 8px 12px; border-radius: 9px; color: var(--text2);
}
.gi-nav-link::after {                    /* 下划线指示：hover 从中间长出来，当前栏目常亮 */
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -12px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--goldb)); opacity: 0;
  transition: left .22s ease, right .22s ease, opacity .22s ease;
}
.gi-nav-link:hover { color: var(--text); background: rgba(255 255 255 / .045); }
.gi-nav-link:hover::after { left: 30%; right: 30%; opacity: .55; }
.gi-nav-link.active { color: var(--goldb); background: rgba(200 168 75 / .08); }
.gi-nav-link.active::after { left: 14%; right: 14%; opacity: 1; box-shadow: 0 0 10px rgba(232,200,106,.6); }
html[data-theme="light"] .gi-nav-link:hover { background: rgba(20 20 60 / .05); }
html[data-theme="light"] .gi-nav-link.active { background: rgba(154 122 30 / .1); }
.gi-more-btn { font-size: 14.5px; font-weight: 600; padding: 8px 11px; border-radius: 9px; }
.gi-more-drop { border-radius: 12px; padding: 8px; min-width: 210px; box-shadow: 0 20px 50px rgba(0 0 0 / .55), 0 0 0 1px rgba(200,168,75,.12); }
.gi-more-opt { padding: 9px 12px; border-radius: 8px; font-weight: 500; }
@media (max-width: 1180px) {
  .gi-nav-link { padding: 7px 9px; font-size: 13.5px; }
  .gi-nav-link::after { bottom: -13px; }
}

/* 手机菜单：≤768 才出现。宫格面板从导航下方展开，栏目 = 主栏 + 更多（无限侧 = 无限主栏） */
.gi-menu-btn { display: none; flex: none; width: 38px; height: 34px; margin-left: 6px; padding: 0 9px;
  background: var(--s2); border: 1px solid var(--border); border-radius: 9px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 4px; }
.gi-menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--text2); transition: transform .2s, opacity .2s; }
.gi-menu-open .gi-menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gi-menu-open .gi-menu-btn span:nth-child(2) { opacity: 0; }
.gi-menu-open .gi-menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.gi-menu { position: fixed; left: 0; right: 0; top: 64px; bottom: 0; z-index: 150; overflow-y: auto;
  background: rgba(7,7,15,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 18px 16px 40px; animation: giMenuIn .18s ease-out; }
html[data-theme="light"] .gi-menu { background: rgba(243,243,248,.98); }
.gi-menu[hidden] { display: none; }
@keyframes giMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.gi-menu-realm { display: flex; gap: 8px; margin-bottom: 14px; }
.gi-menu-realm a { flex: 1; text-align: center; padding: 10px; border-radius: 12px; font-weight: 700;
  background: var(--s2); border: 1px solid var(--border); color: var(--text2); }
.gi-menu-realm a.on { color: #1a1405; background: linear-gradient(135deg, var(--goldb), var(--gold)); border-color: transparent; }
.gi-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gi-menu-link { display: block; padding: 14px 14px; border-radius: 12px; font-weight: 600; font-size: 15px;
  background: var(--s1); border: 1px solid var(--border); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-menu-link:active, .gi-menu-link:hover { border-color: var(--gold); }
.gi-menu-link.active { color: var(--goldb); border-color: rgba(200,168,75,.55); background: rgba(200 168 75 / .08); }
.gi-menu-open, .gi-menu-open body { overflow: hidden; }
@media (max-width: 768px) {
  /* ⛔ 手机导航条是可横滑的（≤640 overflow-x:auto），按钮放行尾会被挤出屏外（390 宽实测 x=518）→ 钉在右上角 */
  .gi-menu-btn { display: inline-flex; position: fixed; top: 12px; right: 12px; z-index: 160; margin: 0;
    box-shadow: 0 0 0 4px var(--bg); }
  .gi-nav-inner { padding-right: 62px !important; }
  .gi-nav-inner { height: 58px; }
  .gi-menu { top: 58px; }
}

.gi-tier-plan[hidden]{display:none!important}

/* 10-05 用户真机截图：手机顶栏右侧（登录 / 主题 / 语言）被切掉一半。新加的正式服⇄无限切换 + 主题键把 390px 又撑破了。
   ⛔ 仍按上面的规矩「别藏功能件」：只把 logo 旁的「GearInsight」字收掉（图标留着，点了照样回首页），切换胶囊再收紧一点。 */
@media (max-width: 480px) {
  .gi-logo { font-size: 0; gap: 0; margin-right: 2px; }
  .gi-realm { margin-right: 2px; }
  .gi-realm-btn { padding: 4px 8px; }
  /* 菜单键钉在右上角、导航只剩 390−10−62=318px：「微信登录 / 角色名」文字收掉只留图标（按钮还在，点了照样登录 / 打开我的）。
     实测 390：352→约 280；360 也放得下。 */
  .gi-me-txt { display: none; }
  .gi-me-btn { padding: 4px 6px; }
}

/* 10-05 手机：「登录拿 BiS…」提示气泡是相对登录胶囊 absolute 的，而 ≤640 的导航行是横滑容器（overflow-x:auto 连带裁掉纵向）
   → 气泡被切得只剩一个小三角 + 一截边。窄屏改 fixed 浮在顶栏下方、贴右，三角去掉（它指不准了）。 */
@media (max-width: 640px) {
  .gi-me-tip { position: fixed; top: 64px; right: 12px; left: auto; width: min(300px, calc(100vw - 24px)); }
  .gi-me-tip::before { display: none; }
}

/* 专精数据页「常见问题」（wow_faq.py，10-08 Google 长尾词 + 可见内容） */
.gi-pfaq { max-width: 860px; margin: 26px 0 18px; }
.gi-pfaq h2 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.gi-pfaq h3 { font-size: 14.5px; font-weight: 700; color: var(--text); margin: 14px 0 4px; }
.gi-pfaq p { font-size: 14px; line-height: 1.65; color: var(--text2); margin: 0; }
