:root {
  --bg: #05070a;
  --surface: #0c1118;
  --surface-strong: #111923;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f7fa;
  --muted: #a8b2bf;
  --accent: #42e8c9;
  --accent-blue: #63a4ff;
  --max-width: 1120px;
  --reading-width: 760px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0, rgba(66, 232, 201, 0.12), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(99, 164, 255, 0.1), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #8ff5e3; }
a:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 4px; border-radius: 5px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px max(24px, calc((100vw - var(--max-width)) / 2));
  background: rgba(5, 7, 10, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 20px; font-weight: 800; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.header-links { display: flex; align-items: center; gap: 20px; }
.header-links a { color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.header-links a:hover { color: var(--text); }

.guide-hero {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 52px;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; color: #7e8997; font-size: 13px; }
.breadcrumbs a { color: #95a2b1; text-decoration: none; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 920px; margin-bottom: 20px; font-size: clamp(38px, 6vw, 68px); line-height: 1.08; letter-spacing: -0.04em; }
.lead { max-width: 800px; margin: 0; color: #d6dee7; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.65; }
.updated { display: inline-block; margin-top: 24px; color: #7f8a98; font-size: 13px; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading-width)) 260px;
  gap: 58px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 96px;
  align-items: start;
}

.guide-content section { margin-bottom: 54px; scroll-margin-top: 96px; }
.guide-content h2 { margin-bottom: 18px; font-size: clamp(26px, 3vw, 36px); line-height: 1.25; letter-spacing: -0.025em; }
.guide-content h3 { margin: 30px 0 10px; font-size: 20px; }
.guide-content p, .guide-content li { color: #bbc5d0; }
.guide-content strong { color: var(--text); }
.guide-content ul, .guide-content ol { display: grid; gap: 10px; padding-left: 24px; }
.guide-content li::marker { color: var(--accent); font-weight: 800; }

.note, .steps, .model-grid, .link-card {
  border: 1px solid var(--border);
  background: rgba(12, 17, 24, 0.72);
}

.note { margin: 26px 0; padding: 20px 22px; border-left: 3px solid var(--accent); border-radius: 12px; }
.note p { margin: 0; }
.steps { margin: 24px 0; padding: 24px 28px; border-radius: 16px; }
.steps ol { margin: 0; }

.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; padding: 1px; border-radius: 16px; background: var(--border); }
.model-card { padding: 22px; background: var(--surface); }
.model-card h3 { margin-top: 0; }
.model-card p { margin-bottom: 0; font-size: 15px; }

.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: rgba(12, 17, 24, 0.7); }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--text); font-size: 14px; }
td { color: #b8c2cd; }
tr:last-child td { border-bottom: 0; }

.guide-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside-card { padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: rgba(12, 17, 24, 0.76); }
.aside-card h2 { margin-bottom: 13px; font-size: 15px; }
.aside-card nav { display: grid; gap: 9px; }
.aside-card a { color: var(--muted); font-size: 14px; text-decoration: none; }
.aside-card a:hover { color: var(--accent); }
.aside-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.cta { display: inline-flex; justify-content: center; width: 100%; padding: 10px 15px; border-radius: 999px; background: var(--accent); color: #04110e; font-weight: 800; text-decoration: none; }
.cta:hover { background: #83f2df; color: #04110e; }

.related { width: min(var(--max-width), calc(100% - 48px)); margin: 0 auto 92px; }
.related h2 { font-size: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card { display: block; padding: 22px; border-radius: 15px; color: var(--text); text-decoration: none; }
.link-card:hover { border-color: rgba(66, 232, 201, 0.42); color: var(--text); transform: translateY(-2px); }
.link-card strong { display: block; margin-bottom: 6px; }
.link-card span { color: var(--muted); font-size: 14px; }

.guide-footer { padding: 38px 24px 48px; border-top: 1px solid var(--border); color: #818d9a; text-align: center; }
.guide-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.guide-footer a { color: #9da8b4; font-size: 14px; text-decoration: none; }
.guide-footer p { margin-bottom: 0; font-size: 13px; }

@media (max-width: 860px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-aside { position: static; grid-row: 1; }
  .aside-card:first-child { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-links a:not(:last-child) { display: none; }
  .guide-hero, .guide-layout, .related { width: min(100% - 32px, var(--max-width)); }
  .guide-hero { padding-top: 54px; }
  .guide-layout { padding-top: 42px; gap: 34px; }
  .model-grid { grid-template-columns: 1fr; }
  .steps { padding: 20px; }
}
