:root {
  --bg: #0d1117; --bg2: #161b22; --bg3: #1c2333; --line: #30363d; --text: #e6edf3; --muted: #8b949e;
  --gold: #e3b341; --blue: #58a6ff; --green: #3fb950; --accent: #1f6feb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(13, 17, 23, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { font-weight: 800; letter-spacing: 1.5px; color: var(--text); white-space: nowrap; }
.brand span { color: var(--gold); margin-left: 6px; letter-spacing: .5px; font-weight: 700; }
nav.links { display: flex; gap: 16px; margin-left: auto; align-items: center; flex-wrap: nowrap; overflow-x: auto; }
nav.links a { color: var(--muted); font-size: 14px; white-space: nowrap; }
nav.links a:hover { color: var(--text); text-decoration: none; }
nav.links a.gh { color: #fff; background: var(--accent); padding: 6px 12px; border-radius: 6px; font-weight: 600; }
nav.links a.lang { border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; color: var(--text); }

/* hero */
.hero { padding: 64px 0 36px; text-align: center; }
.hero .kicker { color: var(--gold); font-weight: 700; letter-spacing: 1px; font-size: 14px; margin: 0 0 10px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.5px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: #c9d1d9; max-width: 820px; margin: 0 auto 26px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 700; border: 1px solid var(--line);
  color: var(--text); background: var(--bg2); }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.chips li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.shot { margin: 34px auto 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); max-width: 1040px; }

/* sections */
section { padding: 56px 0; border-top: 1px solid #21262d; }
section h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; }
section .sub { color: var(--muted); margin: 0 0 28px; max-width: 800px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: #c9d1d9; font-size: 15px; }

table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table.cmp th, table.cmp td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid #21262d; }
table.cmp thead th { background: var(--bg2); color: var(--text); white-space: nowrap; }
table.cmp tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: none; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gallery figcaption { padding: 10px 14px 12px; color: #c9d1d9; font-size: 14px; }
.gallery figcaption b { color: var(--text); }

pre { background: #010409; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; margin: 0 0 14px; }
ol.steps { padding-left: 22px; margin: 0; }
ol.steps li { margin: 6px 0; }

.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 2px; color: #c9d1d9; }

footer { border-top: 1px solid var(--line); padding: 30px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

@media (max-width: 920px) {
  nav.links a:not(.gh):not(.lang) { display: none; }
  nav.links { overflow: visible; }
}
@media (max-width: 720px) {
  header.top .wrap { gap: 10px; }
  .brand span { display: none; }
  .hero { padding-top: 40px; }
  section { padding: 42px 0; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 12px; }
  header.top .wrap, nav.links { gap: 8px; }
  .brand { letter-spacing: .5px; }
}
