:root {
  --bg: #eef2f6;
  --panel: #ffffff;
  --ink: #1d2430;
  --muted: #5b6778;
  --line: #dce3ec;
  --blue: #1677ff;
  --blue-2: #3d8bff;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bar-h: 58px;
  --side-w: 232px;
}
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.65; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(1100px, calc(100% - 36px)); margin-inline: auto; }

.bar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.bar-inner.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--bar-h);
  flex-wrap: nowrap;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; letter-spacing: 0.04em;
  flex: 0 0 var(--side-w);
  width: var(--side-w);
  padding-left: 18px;
  box-sizing: border-box;
}
.logo img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.logo small { margin-left: 2px; color: var(--blue); font-weight: 700; }
.lang {
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap;
}
.lang:hover { color: var(--blue); border-color: var(--blue); }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { filter: brightness(1.06); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta .btn-line { background: transparent; border: 1px solid rgba(255,255,255,.55); color: #fff; }
.foot-tg { margin-top: 8px; }
.foot-tg a { color: var(--blue); font-weight: 700; }
.bar nav {
  display: flex; gap: 14px; color: var(--muted); font-size: 0.9rem;
  flex: 1 1 auto; flex-wrap: nowrap; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.bar nav::-webkit-scrollbar { display: none; }
.bar nav a { white-space: nowrap; }
.bar nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.bar .btn-tg { flex-shrink: 0; }
.btn {
  min-height: 40px; padding: 0 16px; border-radius: 6px; border: 0;
  display: inline-flex; align-items: center; font-weight: 700; cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-line { background: #fff; border: 1px solid var(--line); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.3rem; }

.app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  align-items: start;
}
.side {
  position: sticky;
  top: var(--bar-h);
  z-index: 15;
  align-self: start;
  height: calc(100vh - var(--bar-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f7f9fc;
  border-right: 1px solid var(--line);
  padding: 16px 10px 28px;
}
.side a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); margin-bottom: 2px;
}
.side a:hover, .side a.is-on { background: #e8f2ff; color: var(--blue); font-weight: 700; }
.side a.is-on { box-shadow: inset 3px 0 0 var(--blue); }
.side .hint { font-size: 0.75rem; color: #8a96a8; padding: 16px 12px 6px; margin: 0; }

.main.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 0 0;
  padding: 32px 28px 80px;
}
h1 { font-size: clamp(1.85rem, 3vw, 2.35rem); margin: 0 0 10px; letter-spacing: -0.03em; }
.lead { color: var(--muted); max-width: 40rem; }
.actions { display: flex; gap: 10px; margin: 20px 0 28px; }
.stage {
  background: #1b1f28; border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 30, 50, 0.18);
}
.stage .cap { display: flex; gap: 6px; align-items: center; padding: 8px 12px; background: #2a3140; color: #9aa6b8; font-size: 0.78rem; }
.stage video, .stage img { width: 100%; background: #111; }

.pills { display: none; }
.pills a, .pills span {
  background: #e8f2ff; color: var(--blue); padding: 5px 12px;
  border-radius: 999px; font-size: 0.82rem; font-weight: 700;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 22px; }
.panel h2 { margin: 0 0 10px; font-size: 1.25rem; }
.feat .lead-s { color: var(--muted); margin: 0 0 10px; max-width: 46rem; }
.points { margin: 0 0 4px; padding-left: 1.2rem; color: var(--muted); }
.points li { margin: 5px 0; }
.more { margin: 12px 0 0; }
.more a { color: var(--blue); font-weight: 700; }
.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mod { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fbfcfe; }
.mod h3 { margin: 0 0 6px; font-size: 1rem; }
.mod p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.mod a { color: var(--blue); font-weight: 700; }
.shot { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 12px 28px rgba(20, 30, 50, 0.08); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--muted); background: #f7f9fc; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table a { color: var(--blue); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.cta {
  margin-top: 28px; background: var(--blue); color: #fff; border-radius: 12px;
  padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.cta .btn-primary { background: #fff; color: var(--blue); }
footer { padding: 20px 0 32px; color: var(--muted); font-size: 0.85rem; }
footer nav { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
footer nav a { color: var(--blue); }
.crumbs { font-size: 0.86rem; color: var(--muted); margin: 0 0 12px; }
.crumbs a { color: var(--blue); }
.prose { color: var(--muted); max-width: 42rem; }
.prose a { color: var(--blue); font-weight: 700; }
.modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,.4); z-index: 40; padding: 16px; }
.modal.open { display: grid; }
.modal-card { width: min(400px,100%); background: #fff; border-radius: 12px; padding: 22px; }
.field { width: 100%; margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.cite {
  margin: 0 0 22px; padding: 16px 18px;
  border-left: 4px solid var(--blue);
  background: #e8f2ff; border-radius: 0 10px 10px 0;
}
.cite p { margin: 0; color: var(--ink); max-width: 46rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 14px 14px 14px 52px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 12px; top: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.85rem;
}
.steps h3 { margin: 0 0 4px; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--muted); }
.term { padding: 16px 0; border-bottom: 1px solid var(--line); }
.term:last-child { border-bottom: 0; }
.term h3 { margin: 0 0 6px; font-size: 1.05rem; }
.term p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.open {
    display: block;
    position: sticky;
    top: var(--bar-h);
    height: auto;
    max-height: calc(100vh - var(--bar-h));
    z-index: 25;
    border-bottom: 1px solid var(--line);
  }
  .bar-inner.wrap {
    flex-wrap: wrap;
    padding: 0 16px;
  }
  .logo {
    width: auto;
    flex: 1 1 auto;
    padding-left: 0;
  }
  .bar nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 0 12px;
    overflow: visible;
  }
  .bar nav.open { display: flex; }
  .bar nav a { padding: 8px 0; }
  .menu-btn { display: block; margin-left: auto; }
  .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
  .main.wrap {
    width: min(1100px, calc(100% - 32px));
    margin-inline: auto;
    padding: 24px 0 64px;
  }
  .mods, .cta { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
}
