/*
Theme Name: ilianji
Theme URI: https://www.ilianji.com
Description: 爱联机 · 科技风联机教程专题主题
Version: 1.1
Author: ilianji
*/

:root {
  --bg: #060911;
  --bg-2: #04070e;
  --panel: rgba(13, 20, 36, .72);
  --panel-solid: #0b1220;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(56, 189, 248, .30);
  --text: #c3cfe0;
  --muted: #8b9bb4;
  --ink: #f1f6ff;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --violet: #a855f7;
  --green: #34d399;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
  --radius: 14px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(99, 102, 241, .16), transparent 62%),
    radial-gradient(760px 420px at 4% 4%, rgba(34, 211, 238, .10), transparent 62%);
  background-repeat: no-repeat;
  font: 15.5px/1.8 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #67e8f9; text-decoration: none; transition: color .18s; }
a:hover { color: #a5f3fc; }
img { max-width: 100%; height: auto; border-radius: 10px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
::selection { background: rgba(34, 211, 238, .28); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: #041018; padding: 8px 14px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #041018; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid rgba(148, 163, 184, .08);
  font-size: 12px;
  color: #6b7c95;
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 34px; }
.topbar-tag { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .4px; }
.topbar-links { display: inline-flex; align-items: center; gap: 8px; }
.topbar-links a { color: #7c8ba1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.topbar-links a:hover { color: var(--cyan); }
.topbar-links .sep { color: #334155; }

.live {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, .16);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .32; }
}

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 9, 17, .84);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; flex: none; filter: drop-shadow(0 0 10px rgba(34, 211, 238, .28)); }
.brand-mark svg { display: block; }
.brand-words { display: flex; flex-direction: column; line-height: 1.15; }
.brand-words b { font-size: 19px; letter-spacing: 1px; color: var(--ink); font-weight: 700; }
.brand-words small {
  font-size: 9.5px; letter-spacing: 1.7px; color: #6b7c95;
  margin-top: 3px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: 10px; flex: none; }
.nav-link {
  position: relative; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 11px; border-radius: 8px;
  font-size: 14.5px; color: #b7c4d8;
  background: none; border: 0; font-family: inherit; cursor: pointer;
  transition: color .18s, background .18s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.caret {
  width: 0; height: 0; margin-left: 2px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .65;
}

.nav-drop { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70;
  min-width: 250px; padding: 8px;
  background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu,
.nav-drop.open .nav-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.nav-menu a:hover { background: rgba(34, 211, 238, .07); }
.nav-menu b { display: block; font-size: 13.5px; color: #eaf2ff; font-weight: 600; }
.nav-menu small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.head-ops { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.head-search {
  display: flex; align-items: center;
  height: 36px; padding-left: 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 9px;
  transition: border-color .18s;
}
.head-search:focus-within { border-color: var(--line-strong); }
.head-search input {
  width: 170px; height: 100%; padding: 0; border: 0; background: none;
  color: #eaf2ff; font-size: 13.5px; outline: none;
}
.head-search input::placeholder { color: #64748b; }
.head-search button {
  display: grid; place-items: center; width: 36px; height: 100%;
  border: 0; background: none; color: #7c8ba1; cursor: pointer;
}
.head-search button:hover { color: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, border-color .18s, color .18s, background .18s;
}
.btn-grad { background: var(--grad); color: #06121f; font-weight: 700; }
.btn-grad:hover {
  color: #06121f; transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, .38);
}
.btn-line {
  border-color: rgba(148, 163, 184, .28); color: #dbe4f0;
  background: rgba(255, 255, 255, .03);
}
.btn-line:hover { border-color: var(--line-strong); color: #fff; }
.btn-xs { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }

.nav-only-m { display: none; }

.nav-toggle {
  display: none; width: 38px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; width: 16px; height: 1.6px; background: #c7d3e6; border-radius: 2px; }

.site-main { display: block; min-height: 40vh; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 74px 0 58px;
  border-bottom: 1px solid var(--line);
}
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none;
  border-radius: 50%; filter: blur(70px);
}
.hero::before {
  width: 460px; height: 460px; left: -140px; top: -180px;
  background: rgba(34, 211, 238, .16);
}
.hero::after {
  width: 520px; height: 520px; right: -160px; top: -120px;
  background: rgba(139, 92, 246, .18);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .075) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(58% 62% at 50% 42%, #000 38%, transparent 100%);
  mask-image: radial-gradient(58% 62% at 50% 42%, #000 38%, transparent 100%);
}
.hero-in { position: relative; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0; padding: 6px 14px; border-radius: 99px;
  font-size: 12.5px; letter-spacing: 1px; color: #7fe9f7;
  background: rgba(34, 211, 238, .07);
  border: 1px solid rgba(34, 211, 238, .26);
}
.hero-title {
  margin: 20px 0 14px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.28; letter-spacing: -.4px; font-weight: 700; color: #fff;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-desc { max-width: 660px; margin: 0 auto; color: #9aa8bd; font-size: 15.5px; line-height: 1.85; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.hero-search { display: flex; gap: 8px; max-width: 600px; margin: 30px auto 0; }
.hero-search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px;
  font-size: 14.5px; color: #eaf2ff;
  background: rgba(8, 12, 22, .92);
  border: 1px solid var(--line); border-radius: 11px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.hero-search input::placeholder { color: #64748b; }
.hero-search input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(34, 211, 238, .08); }
.hero-search button {
  height: 46px; padding: 0 22px; flex: none;
  border: 0; border-radius: 11px; cursor: pointer;
  background: var(--grad); color: #06121f; font-size: 14.5px; font-weight: 700;
  transition: box-shadow .18s;
}
.hero-search button:hover { box-shadow: 0 10px 26px rgba(99, 102, 241, .35); }

.hero-hot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.hero-hot a {
  display: inline-block; padding: 4px 10px; border-radius: 99px;
  font-size: 12.5px; color: #8b9bb4;
  border: 1px solid rgba(148, 163, 184, .16);
}
.hero-hot a:hover { color: var(--cyan); border-color: var(--line-strong); }

.hero-stats { display: flex; justify-content: center; list-style: none; padding: 0; margin: 38px 0 0; }
.hero-stats li { padding: 0 28px; border-left: 1px solid var(--line); }
.hero-stats li:first-child { border-left: 0; }
.hero-stats b {
  display: block; font-size: 25px; color: #fff; line-height: 1.2;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.hero-stats span { font-size: 12px; color: #6b7c95; letter-spacing: 1px; }

/* ---------- sections ---------- */
.wrap.section { padding-top: 56px; padding-bottom: 56px; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.sec-head h2 { font-size: 24px; letter-spacing: -.5px; margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.sec-more { font-size: 13.5px; color: #7fe9f7; white-space: nowrap; }
.sec-more i { font-style: normal; transition: transform .18s; display: inline-block; }
.sec-more:hover i { transform: translateX(3px); }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(23, 32, 54, .85), rgba(10, 15, 27, .92));
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cat-card:hover {
  transform: translateY(-3px); color: var(--text);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(2, 8, 20, .6), 0 0 0 1px rgba(34, 211, 238, .08) inset;
}
.cat-card::after {
  content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px;
  border-radius: 0 0 3px 3px; background: var(--grad);
  opacity: 0; transition: opacity .18s;
}
.cat-card:hover::after { opacity: 1; }
.cat-ico {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; color: #67e8f9;
  background: rgba(34, 211, 238, .09);
  border: 1px solid rgba(34, 211, 238, .2);
}
.cat-ico svg { width: 22px; height: 22px; }
.cat-body { flex: 1; min-width: 0; }
.cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cat-name { font-size: 15px; color: var(--ink); font-weight: 600; }
.cat-desc { display: block; font-size: 12px; line-height: 1.55; color: var(--muted); margin-top: 4px; }
.cat-meta { flex: none; font-size: 12px; color: #6b7c95; white-space: nowrap; }
.cat-meta b { font-size: 16px; color: #fff; margin-right: 2px; font-variant-numeric: tabular-nums; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, .42);
  box-shadow: 0 18px 40px rgba(2, 8, 20, .65);
}
.post-card-link {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; height: 100%; color: inherit;
}
.post-card-link:hover { color: inherit; }
.post-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip {
  display: inline-block; padding: 3px 9px; border-radius: 99px;
  font-size: 11.5px; letter-spacing: .4px; color: #7fe9f7;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .22);
}
.chip-live { color: #6ee7b7; background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .22); }
.post-card-date { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.post-card-title { margin: 2px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.post-card:hover .post-card-title { color: #7fe9f7; }
.post-card-ex {
  margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-go { margin-top: auto; padding-top: 10px; font-size: 12.5px; color: #67e8f9; }
.post-card-go i { font-style: normal; display: inline-block; transition: transform .18s; }
.post-card:hover .post-card-go i { transform: translateX(3px); }

.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-row {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.post-row:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 102, 241, .42);
  box-shadow: 0 14px 32px rgba(2, 8, 20, .55);
}
.post-row-link { display: flex; align-items: center; gap: 20px; padding: 18px 22px; color: inherit; }
.post-row-link:hover { color: inherit; }
.post-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.post-row-head { display: flex; align-items: center; gap: 10px; }
.post-row-title { font-size: 17px; color: var(--ink); font-weight: 600; line-height: 1.5; }
.post-row:hover .post-row-title { color: #7fe9f7; }
.post-row-ex {
  font-size: 13.5px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.post-row-go { flex: none; font-size: 12.5px; color: #67e8f9; }
.post-row-go i { font-style: normal; display: inline-block; transition: transform .18s; }
.post-row:hover .post-row-go i { transform: translateX(3px); }

/* ---------- steps ---------- */
.steps {
  padding: 28px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line);
}
.steps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.steps-head h2 { font-size: 22px; margin: 0; }
.steps-head p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.step-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  list-style: none; padding: 0; margin: 24px 0 0;
}
.step-list li {
  padding: 20px; border-radius: 12px;
  background: rgba(8, 12, 22, .6); border: 1px solid var(--line);
}
.step-list b {
  display: block; margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px; letter-spacing: 2px; color: #67e8f9;
}
.step-list h3 { font-size: 16px; margin: 0 0 6px; }
.step-list p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- cta ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 30px 32px; border-radius: 18px;
  background:
    radial-gradient(420px 200px at 12% 0%, rgba(34, 211, 238, .14), transparent 70%),
    linear-gradient(120deg, rgba(34, 211, 238, .10), rgba(99, 102, 241, .16) 52%, rgba(168, 85, 247, .12));
  border: 1px solid rgba(99, 102, 241, .28);
}
.cta-copy h3 { color: #fff; font-size: 21px; margin: 8px 0 6px; }
.cta-copy p { color: #a8b6cc; font-size: 13.5px; margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.cta-inline { margin: 36px 0 24px; }

/* ---------- article ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px;
  padding-top: 36px; padding-bottom: 64px;
}
.crumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: #6b7c95; margin-bottom: 18px;
}
.crumb a { color: #8b9bb4; }
.crumb a:hover { color: var(--cyan); }
.crumb em { font-style: normal; color: #c7d3e6; }

.article-head { margin-bottom: 26px; }
.article-head .chip { margin-bottom: 12px; }
.article-title {
  font-size: clamp(26px, 3.6vw, 36px); line-height: 1.32;
  letter-spacing: -.6px; color: #fff; margin: 0 0 14px;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #7c8ba1; }
.article-meta .dot { color: #3b4a63; }

.article-body { font-size: 15.5px; line-height: 1.85; color: var(--text); }
.article-body strong { color: #fff; }
.article-body a { color: #67e8f9; border-bottom: 1px solid rgba(103, 232, 249, .3); }
.article-body a:hover { border-bottom-color: #67e8f9; }
.article-body h2 {
  font-size: 21px; margin: 42px 0 14px; padding-left: 12px;
  border-left: 3px solid var(--cyan);
}
.article-body h3 { font-size: 17px; margin: 30px 0 10px; color: #eaf2ff; }
.article-body ul, .article-body ol { padding-left: 20px; }
.article-body li { margin-bottom: .35em; }
.article-body code {
  padding: 1px 6px; border-radius: 5px; font-size: .9em;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #7fe9f7; background: #0e1726;
  border: 1px solid rgba(148, 163, 184, .16);
}
.article-body pre {
  padding: 16px 18px; border-radius: 12px; overflow-x: auto;
  background: #050a13; border: 1px solid rgba(148, 163, 184, .15);
  font-size: 13.5px; line-height: 1.7;
}
.article-body pre code { padding: 0; background: none; border: 0; color: inherit; }
.article-body blockquote {
  margin: 20px 0; padding: 12px 18px;
  border-left: 3px solid #f59e0b; border-radius: 0 8px 8px 0;
  background: rgba(245, 158, 11, .07); color: #fcd34d;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 13.5px; }
.article-body th, .article-body td {
  border: 1px solid rgba(148, 163, 184, .18); padding: 9px 12px; text-align: left;
}
.article-body th { background: #0e1726; color: #eaf2ff; font-weight: 600; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.article-body img { border: 1px solid var(--line); }

.article-nav {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: #7c8ba1;
}
.article-nav a { color: #c7d3e6; }
.article-nav a:hover { color: var(--cyan); }

/* ---------- sidebar ---------- */
.side { display: flex; flex-direction: column; gap: 16px; align-self: start; position: sticky; top: 88px; }
.toc-box, .side-box {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  font-size: 13.5px;
}
.toc-box h4, .side-box h4 {
  margin: 0 0 10px; font-size: 11.5px; letter-spacing: 1.4px;
  text-transform: uppercase; color: #64748b; font-weight: 600;
}
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-list li { margin-bottom: 6px; line-height: 1.5; }
.toc-list a { font-size: 13px; color: #a8b6cc; }
.toc-list a:hover { color: var(--cyan); }
.toc-list .toc-h3 { padding-left: 12px; font-size: 12.5px; }
.toc-list .toc-h3 a { color: #7c8ba1; }
.toc-empty { margin: 0; color: #64748b; font-size: 12.5px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed rgba(148, 163, 184, .12); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-size: 13px; color: #b7c4d8; }
.side-list a:hover { color: var(--cyan); }
.side-cta p { font-size: 12.5px; color: #7c8ba1; }
.side-cta .btn { width: 100%; }
.side-cta-link { display: inline-block; margin-top: 10px; font-size: 12.5px; color: #67e8f9; }

.page-wrap { max-width: 860px; padding-top: 36px; padding-bottom: 64px; }

/* ---------- archive ---------- */
.archive-head { margin-bottom: 26px; }
.archive-head h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.5px; }
.archive-sub { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- pager ---------- */
.pager, .page-navigator {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; padding: 0; margin: 28px 0 0;
}
.pager a, .pager span, .page-navigator li {
  padding: 7px 13px; border-radius: 8px; font-size: 13.5px;
  color: #c7d3e6; background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
}
.page-navigator li a { display: block; color: #c7d3e6; }
.page-navigator li.current { background: var(--grad); border-color: transparent; }
.page-navigator li.current a, .pager .current { color: #06121f; font-weight: 700; }
.pager a:hover, .page-navigator li:hover { border-color: var(--line-strong); }

/* ---------- empty / 404 ---------- */
.empty { padding: 56px 0; text-align: center; color: var(--muted); }
.empty-wrap { min-height: 48vh; display: grid; place-items: center; }
.empty-404 .err-code {
  margin: 0; font-size: clamp(64px, 12vw, 96px); font-weight: 800;
  letter-spacing: 4px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.empty-404 h1 { font-size: 20px; margin: 10px 0 8px; letter-spacing: .5px; }
.empty-404 p { color: var(--muted); }
.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 30px; padding: 46px 0 16px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: #8b9bb4; font-size: 13.5px;
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand .brand img { border-radius: 0; }
.foot-brand .brand-words b { font-size: 18px; }
.foot-desc { max-width: 340px; line-height: 1.75; margin: 0; color: #7c8ba1; }
.foot-domain { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 12px; }
.foot-domain span { color: #5b6b84; }
.foot-domain a {
  padding: 4px 10px; border-radius: 6px; color: #67e8f9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: rgba(34, 211, 238, .06);
  border: 1px solid rgba(34, 211, 238, .22);
}
.foot-domain a:hover { border-color: rgba(34, 211, 238, .5); }
.foot-col h4 { margin: 0 0 12px; font-size: 13px; color: #eaf2ff; }
.foot-col a { display: block; padding: 4px 0; color: #8b9bb4; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 34px; padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .1);
  color: #5b6b84; font-size: 12.5px;
}
.foot-bottom a { color: #7c8ba1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.foot-bottom a:hover { color: var(--cyan); }

/* ---------- keyword pillars / related ---------- */
.kw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kw-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(23, 32, 54, .82), rgba(10, 15, 27, .92));
  border: 1px solid var(--line); color: var(--text);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.kw-card:hover {
  transform: translateY(-3px); color: var(--text); border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(2, 8, 20, .6);
}
.kw-card b { font-size: 16px; color: var(--ink); }
.kw-card span { font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.kw-card i { font-style: normal; font-size: 12.5px; color: #67e8f9; margin-top: 4px; }
.archive-intro { margin: 0 0 10px; max-width: 780px; color: #a8b6cc; font-size: 14px; line-height: 1.8; }
.related { margin: 34px 0 0; padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.related h2 { margin: 0 0 12px; font-size: 16px; }
.related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-list a {
  padding: 7px 12px; border-radius: 8px; font-size: 13px; color: #b7c4d8;
  background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .18);
}
.related-list a:hover { color: #fff; border-color: var(--line-strong); }
.foot-grid { grid-template-columns: 1.6fr 1fr 1.1fr 1fr .9fr; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .head-search { display: none; }
  .nav { gap: 0; margin-left: 4px; }
  .nav-link { padding: 8px 9px; font-size: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .kw-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .head-search { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px 24px 16px;
    background: rgba(7, 12, 22, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
  }
  .nav.open { display: flex; }
  .nav-only-m { display: flex; }
  .nav-link { padding: 11px 0; border-bottom: 1px dashed rgba(148, 163, 184, .12); border-radius: 0; }
  .nav-link.is-active::after { left: 0; right: auto; width: 22px; bottom: 6px; }
  .nav-drop { position: static; }
  .nav-drop-btn { width: 100%; justify-content: flex-start; }
  .nav-menu {
    position: static; min-width: 0; padding: 4px 0 8px 12px;
    background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .nav-drop.open .nav-menu { display: block; }
  .layout { grid-template-columns: 1fr; gap: 30px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; }
  .toc-box, .side-box { flex: 1 1 260px; }
  .step-list { grid-template-columns: 1fr; }
  .steps-head, .sec-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .topbar-links .sep, .topbar-links a[href$="sitemap.xml"] { display: none; }
  .head-in { min-height: 62px; gap: 12px; }
  .brand-words small { display: none; }
  .brand-words b { font-size: 18px; }
  .head-dl { display: none; }
  .hero { padding: 50px 0 42px; }
  .hero-desc { font-size: 14.5px; }
  .hero-stats { flex-wrap: wrap; row-gap: 18px; margin-top: 30px; }
  .hero-stats li { padding: 0 20px; }
  .wrap.section { padding-top: 42px; padding-bottom: 42px; }
  .cat-grid, .post-grid, .kw-grid { grid-template-columns: 1fr; }
  .post-row-link { padding: 16px; gap: 12px; }
  .post-row-ex { -webkit-line-clamp: 2; }
  .post-row-go { display: none; }
  .steps { padding: 20px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .article-title { font-size: 24px; }
  .article-body h2 { font-size: 19px; }
  .article-nav { flex-direction: column; }
  .side { flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-col:last-child { display: block; }
  .hero-search button { padding: 0 16px; }
}
