/* 安装教程（彼岸花 / 猪猪助手）共用样式。配色沿用首页分屏：彼岸花是酒红，猪猪助手是琥珀 + 青。 */
.ig {
  --accent: #ff9d1c;
  --accent-soft: #ffd08a;
  --accent-ink: #1b1004;
  --page: #05080d;
  --panel: #0a1119;
  --rule: rgba(118, 173, 206, .2);
  --ink: #f2f6f8;
  --dim: #a9bac6;
  --step-gap: clamp(56px, 8vh, 96px);
  background: var(--page);
  color: var(--ink);
}
.ig--bianhua {
  --accent: #ff3b5c;
  --accent-soft: #ff9cae;
  --accent-ink: #fff;
  --page: #0b0407;
  --panel: #14080c;
  --rule: rgba(255, 156, 174, .18);
  --dim: #d3b8be;
}
.ig-wrap { width: min(1180px, 100% - clamp(32px, 7vw, 112px)); margin-inline: auto; }
.ig-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ig a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 首屏 ---------- */
.ig-hero { position: relative; isolation: isolate; padding: clamp(40px, 7vh, 72px) 0 clamp(44px, 7vh, 76px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.ig-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.ig--zhu .ig-hero::before {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 157, 28, .12), transparent 36%),
    radial-gradient(circle at 60% 90%, rgba(15, 105, 145, .22), transparent 44%),
    repeating-linear-gradient(90deg, rgba(118, 173, 206, .05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(118, 173, 206, .04) 0 1px, transparent 1px 64px),
    linear-gradient(248deg, #06101a, #03070c 60%);
}
.ig--bianhua .ig-hero::before {
  background:
    radial-gradient(ellipse at 84% 110%, rgba(220, 28, 64, .34), transparent 46%),
    radial-gradient(circle at 6% 0%, rgba(150, 14, 52, .36), transparent 40%),
    radial-gradient(circle, rgba(255, 210, 220, .09) 1px, transparent 1.4px) 0 0 / 26px 26px,
    linear-gradient(200deg, #1a0710, #0d0408 60%, #070205);
}

.ig-switch { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.ig-switch-item { display: grid; gap: 1px; padding: 9px 20px 10px; border-radius: 8px; color: #8fa1ab; line-height: 1.3; transition: color .18s, background .18s; }
.ig-switch-item strong { font-size: 1.06rem; font-weight: 800; letter-spacing: .04em; }
.ig-switch-item span { font-size: .82rem; }
.ig-switch-item:hover { color: var(--ink); }
.ig-switch-item[aria-current="page"] { color: #fff; background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 65%, transparent); }
.ig-switch-item[aria-current="page"] span { color: var(--accent-soft); }

.ig-title { margin: clamp(26px, 4vh, 40px) 0 0; font-family: var(--body); font-size: clamp(2.5rem, 5.4vw, 4.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.ig--bianhua .ig-title { width: fit-content; letter-spacing: .04em; background: linear-gradient(180deg, #fff1f3 8%, #ff8fa3 58%, #e2203f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ig-lead { max-width: 34em; margin: 18px 0 0; color: var(--dim); font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.75; }

.ig-prep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px clamp(20px, 3vw, 40px); margin-top: clamp(30px, 5vh, 48px); padding: 20px clamp(18px, 2.4vw, 28px); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, rgba(4, 7, 11, .5)); }
.ig-prep h2 { margin: 0; color: var(--accent-soft); font-size: 1rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.ig-prep ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.ig-prep li { position: relative; padding-left: 22px; color: #dfe6ea; font-size: .96rem; line-height: 1.6; }
.ig-prep li::before { content: ""; position: absolute; left: 2px; top: .58em; width: 9px; height: 5px; border: solid var(--accent); border-width: 0 0 2px 2px; rotate: -45deg; }
.ig-prep li a, .ig-step-text a, .ig-note a { color: var(--accent-soft); font-weight: 700; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 4px; }
.ig-prep li a:hover, .ig-step-text a:hover { color: #fff; }
.ig-download { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 8px; color: var(--accent-ink); background: var(--accent); font-weight: 750; white-space: nowrap; transition: transform .18s; }
.ig--bianhua .ig-download { background: linear-gradient(135deg, #ff5a73, #c8102e); }
.ig-download svg { width: 19px; height: 19px; }
.ig-download:hover { transform: translateY(-2px); }
.ig-download--ghost, .ig--bianhua .ig-download--ghost { color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: transparent; }

/* ---------- 步骤 ---------- */
.ig-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(48px, 8vh, 88px) clamp(56px, 9vh, 104px); }
.ig-rail { position: sticky; top: 104px; align-self: start; }
.ig-rail ol { display: grid; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.ig-rail a { display: flex; align-items: baseline; gap: 12px; margin-left: -1px; padding: 9px 0 9px 16px; border-left: 2px solid transparent; color: #8fa1ab; font-size: .95rem; line-height: 1.45; transition: color .18s, border-color .18s; }
.ig-rail a b { font-family: var(--display); font-size: 1rem; font-weight: 700; }
.ig-rail a:hover { color: var(--ink); }
.ig-rail a[aria-current="step"] { color: #fff; border-left-color: var(--accent); }
.ig-rail a[aria-current="step"] b { color: var(--accent); }

.ig-steps { display: grid; gap: var(--step-gap); min-width: 0; margin: 0; padding: 0; list-style: none; }
.ig-step { position: relative; display: grid; grid-template-columns: clamp(44px, 5vw, 68px) minmax(0, 1fr); gap: clamp(14px, 2vw, 26px); scroll-margin-top: 104px; }
.ig-step-num { font-family: var(--display); font-size: clamp(2.6rem, 4.4vw, 4rem); font-weight: 700; line-height: .9; color: var(--accent); }
/* 步骤之间的竖线：前后步骤是连续的一条流程 */
.ig-step:not(:last-child)::before { content: ""; position: absolute; left: calc(clamp(44px, 5vw, 68px) / 2 - 10px); top: clamp(3.2rem, 5.2vw, 4.8rem); bottom: calc(var(--step-gap) * -1 + 10px); width: 1px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--rule)); }
.ig-step-body { min-width: 0; }
.ig-step h2 { margin: 0; font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 800; line-height: 1.25; letter-spacing: .01em; }
.ig-step-text { max-width: 40em; margin-top: 14px; color: #d5dee3; font-size: 1.04rem; line-height: 1.85; }
.ig--bianhua .ig-step-text { color: #e4d3d7; }
.ig-step-text p { margin: 0; }
.ig-step-text p + p, .ig-step-text p + .ig-paths, .ig-step-text .ig-paths + p, .ig-step-text p + .ig-keys { margin-top: 14px; }
.ig code, .ig kbd { padding: .12em .45em; border: 1px solid var(--rule); border-radius: 5px; background: rgba(255, 255, 255, .05); color: #fff; font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-size: .92em; overflow-wrap: anywhere; }
.ig kbd { border-bottom-width: 2px; }

.ig-step-figures { display: grid; gap: 22px; margin-top: 26px; }
.ig-shot { margin: 0; }
.ig-shot-frame { position: relative; border: 1px solid var(--rule); border-radius: 12px; background: var(--panel); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.ig-shot-frame img { display: block; width: 100%; height: auto; border-radius: 11px; }
.ig-shot--small .ig-shot-frame { width: fit-content; max-width: 100%; padding: 12px; background: #e9eef2; }
.ig-shot--small .ig-shot-frame img { width: auto; max-width: 100%; border-radius: 4px; }
.ig-shot figcaption { margin-top: 10px; color: var(--dim); font-size: .88rem; }

/* 截图上的编号：和下面的图例一一对应 */
.ig-pin, .ig-legend li::before { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: .95rem; font-weight: 700; line-height: 1; }
.ig-pin { position: absolute; translate: -50% -50%; box-shadow: 0 0 0 3px var(--panel), 0 6px 16px rgba(0, 0, 0, .5); }
.ig-box { position: absolute; border: 2px solid #fa5151; border-radius: 3px; }
.ig-pin--register-1 { left: 69.4%; top: 20%; }
.ig-pin--register-2 { left: 49.8%; top: 42%; }
.ig-pin--activate-1 { left: 75.8%; top: 34.1%; }
.ig-pin--activate-2 { left: 48.4%; top: 58.2%; }
.ig-pin--dashboard-1, .ig-box--dashboard-1 { left: 21.8%; top: 45.7%; }
.ig-box--dashboard-1 { width: 38%; height: 49.2%; }
.ig-pin--dashboard-2, .ig-box--dashboard-2 { left: 80.5%; top: 32.3%; }
.ig-box--dashboard-2 { width: 18.6%; height: 12%; }
.ig-pin--settings-1 { left: 1.8%; top: 27.2%; }
.ig-pin--settings-2 { left: 22%; top: 15%; }
.ig-pin--settings-3 { left: 22.6%; top: 48.8%; }
.ig-pin--settings-4 { left: 82.1%; top: 33.7%; }

.ig-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 32px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: pin; }
.ig-legend li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: start; column-gap: 12px; counter-increment: pin; font-size: .96rem; line-height: 1.6; }
.ig-legend li::before { content: counter(pin); grid-row: span 2; }
.ig-legend strong { font-weight: 800; }
.ig-legend span { color: var(--dim); }

/* 无限服 / 正式服各自对应的 Wow.exe —— 徽章和首页的服务器徽章是同一套 */
.ig-paths { display: grid; gap: 10px; }
.ig-path { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.ig-path-server { flex: none; padding: 5px 14px 6px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 7px; background: color-mix(in srgb, var(--accent) 20%, rgba(4, 7, 11, .55)); color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; line-height: 1.2; }
.ig-path code { padding: 0; border: 0; background: none; color: var(--dim); font-size: 1rem; }
.ig-path code b { color: var(--accent-soft); font-weight: 700; }

.ig-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 0; }
.ig-keys div { display: flex; align-items: baseline; gap: 12px; padding: 9px 14px; border: 1px solid var(--rule); border-radius: 8px; }
.ig-keys dt { color: var(--accent-soft); font-family: Consolas, "Cascadia Mono", "Courier New", monospace; font-weight: 700; }
.ig-keys dd { margin: 0; color: var(--dim); }

.ig-note { max-width: 42em; margin: 22px 0 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--accent) 8%, transparent); color: #dfe6ea; font-size: .98rem; line-height: 1.75; }
.ig-note strong { display: block; }
.ig-note ul { margin: 6px 0 0; padding-left: 1.2em; }

/* 进游戏那一步的示意图 */
.ig-game { position: relative; max-width: 640px; aspect-ratio: 16 / 9; margin-top: 26px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 60% 30%, rgba(120, 140, 200, .16), transparent 55%), linear-gradient(180deg, #151b2c, #0b0e17); }
.ig-game-bar { position: absolute; left: 50%; translate: -50% 0; height: 7%; border-radius: 5px; background: rgba(255, 255, 255, .07); }
.ig-game-bar--top { top: 5%; width: 26%; }
.ig-game-bar--bottom { bottom: 5%; width: 44%; height: 9%; }
.ig-game-icon { position: absolute; left: 4%; bottom: 6%; display: grid; place-items: center; width: 13%; aspect-ratio: 1; border: 2px solid var(--accent); border-radius: 50%; background: #1c0a10; color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 34px color-mix(in srgb, var(--accent) 55%, transparent); }
.ig-game-icon svg { width: 64%; height: 64%; }
.ig-game-label { position: absolute; left: 21%; bottom: 10.5%; padding-left: 14px; color: #fff; font-size: clamp(.86rem, 1.3vw, 1rem); font-weight: 700; }
.ig-game-label::before { content: ""; position: absolute; left: -2px; top: 50%; width: 10px; height: 2px; background: var(--accent); }

/* 小截图（猪猪助手的旧图）放在文字右侧，不拉伸放大 */
@media (min-width: 1000px) {
  .ig-step--side .ig-step-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(28px, 4vw, 56px); align-items: start; }
  .ig-step--side .ig-step-body > h2, .ig-step--side .ig-step-text { grid-column: 1; }
  .ig-step--side .ig-step-figures { grid-column: 2; grid-row: 1 / span 3; margin-top: 4px; }
}

/* ---------- 底部求助 ---------- */
.ig-help { padding: clamp(40px, 7vh, 72px) 0; border-top: 1px solid var(--rule); background: var(--panel); }
.ig-help h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; }
.ig-help-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 22px; }
.ig-help-links a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 10px; transition: border-color .18s, background .18s; }
.ig-help-links a:first-child { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.ig-help-links a:hover { border-color: var(--accent); }
.ig-help-links strong { font-weight: 800; }
.ig-help-links span { color: var(--dim); font-size: .9rem; }

@media (max-width: 900px) {
  .ig-layout { grid-template-columns: 1fr; }
  .ig-rail { position: static; }
  .ig-rail ol { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-left: 0; }
  .ig-rail a { margin-left: 0; padding: 8px 12px; border-left: 0; border-bottom: 2px solid var(--rule); }
  .ig-rail a[aria-current="step"] { border-bottom-color: var(--accent); }
  .ig-prep { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .ig-switch { display: flex; }
  .ig-switch-item { flex: 1; padding-inline: 12px; }
  .ig-step { grid-template-columns: 1fr; gap: 6px; }
  .ig-step:not(:last-child)::before { display: none; }
  .ig-step-num { font-size: 2.4rem; }
  .ig-pin, .ig-legend li::before { width: 22px; height: 22px; font-size: .8rem; }
  .ig-legend li { grid-template-columns: 22px minmax(0, 1fr); }
  .ig-download { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-download, .ig-switch-item, .ig-rail a { transition: none; }
}
