:root {
  --paper: #f8fbff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --ink: #0b1824;
  --muted: #5e7184;
  --line: rgba(35, 77, 112, 0.16);
  --blue: #2d7ff9;
  --cyan: #33c7df;
  --orange: #f0643c;
  --green: #2fad77;
  --shadow: 0 22px 70px rgba(24, 78, 124, 0.14);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(230, 244, 255, 0.92), rgba(255, 255, 255, 0.72) 42%, rgba(255, 238, 232, 0.44)),
    radial-gradient(circle at 18% 0%, rgba(45, 127, 249, 0.16), transparent 30%),
    #f8fbff;
  color: var(--ink);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 10px 14px; background: #fff; border: 1px solid var(--line); }
.skip-link:focus { left: 12px; }
.top-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(23, 72, 112, 0.08);
  border-radius: 18px;
}
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-glyph {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(45, 127, 249, 0.9), rgba(51, 199, 223, 0.72)),
    linear-gradient(45deg, transparent 42%, rgba(255,255,255,.8) 42% 58%, transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.52), 0 10px 20px rgba(45,127,249,.18);
}
.brand-lockup strong { font-size: 18px; }
.brand-lockup em { font-style: normal; color: var(--muted); font-size: 13px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { padding: 9px 11px; border-radius: 12px; color: #234155; font-size: 14px; }
.main-nav a:hover { background: rgba(45, 127, 249, 0.08); }
.nav-toggle { display: none; border: 0; border-radius: 12px; padding: 9px 12px; background: var(--ink); color: #fff; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero-config {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 26px;
  align-items: center;
  min-height: 640px;
  padding: 50px 0 38px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-lead span, .page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-copy h1, .page-hero h1 {
  margin: 16px 0;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-copy p, .page-hero p, .section-lead p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 17px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.primary-action, .secondary-action, .inline-link, .support-band a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 800;
}
.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #12a8dc);
  box-shadow: 0 14px 30px rgba(45, 127, 249, .24);
}
.secondary-action, .inline-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: #184158;
}
.hero-hints { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-hints span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.64);
  padding: 8px 10px;
  border-radius: 999px;
  color: #38586a;
  font-size: 13px;
}
.hero-visual {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid rgba(255,255,255,.78);
  padding: 8px;
  border-radius: 28px;
  background: rgba(255,255,255,.4);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-visual img { width: 100%; height: auto; border-radius: 20px; aspect-ratio: 16/9; object-fit: cover; }
.config-panel {
  position: absolute;
  right: 42px;
  bottom: 34px;
  z-index: 3;
  width: min(420px, 46%);
  border: 1px solid rgba(255,255,255,.82);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 18px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--muted); }
.panel-head strong { color: var(--ink); }
.resource-row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.resource-row span { color: var(--muted); font-size: 13px; }
.resource-row i { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--blue) var(--w), rgba(45,127,249,.14) var(--w)); }

section { scroll-margin-top: 96px; }
.resource-strip, .device-dock, .config-board, .route-console, .article-rack, .faq-panel, .install-matrix, .step-rail, .scenario-panel, .latency-note, .device-guide, .help-console, .text-layout, .contact-panel, .support-band {
  margin: 26px 0;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(24,78,124,.08);
  padding: 26px;
}
.section-lead { display: grid; gap: 8px; margin-bottom: 18px; }
.section-lead h2, .install-matrix h2, .step-rail h2, .scenario-panel h2, .latency-note h2, .text-layout h2, .contact-panel h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.14;
}
.resource-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-strip article {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.58);
}
.resource-strip span { color: var(--orange); font-weight: 900; }
.resource-strip h2, .article-card h3 { margin: 12px 0 8px; line-height: 1.25; }
.resource-strip p, .article-card p, .install-grid p, .scenario-grid p, .device-guide p, .text-layout p, .contact-panel p, .support-band p, .latency-note p { color: var(--muted); line-height: 1.8; }
.dock-grid, .install-grid, .scenario-grid, .route-matrix, .article-list {
  display: grid;
  gap: 14px;
}
.dock-grid { grid-template-columns: repeat(4, 1fr); }
.dock-grid a, .install-grid article, .scenario-grid article, .route-matrix article, .article-card, .issue-rail article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  padding: 18px;
}
.dock-grid strong, .install-grid strong, .route-matrix strong, .issue-rail strong { display: block; font-size: 19px; margin-bottom: 8px; }
.dock-grid span, .install-grid small, .route-matrix span, .issue-rail span { color: var(--muted); line-height: 1.7; }
.board-table { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.58); }
.board-header, .plan-row { display: grid; grid-template-columns: 1fr 1.6fr 1.4fr 1fr; align-items: center; }
.board-header { background: rgba(45,127,249,.08); font-weight: 900; color: #24475f; }
.board-header span, .plan-row span { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.plan-row:last-child span { border-bottom: 0; }
.route-matrix { grid-template-columns: repeat(4, 1fr); }
.article-list { grid-template-columns: repeat(4, 1fr); }
.index-rack .article-list { grid-template-columns: repeat(2, 1fr); }
.article-card time { display: inline-block; color: var(--muted); margin-right: 8px; }
.article-card > span { color: var(--orange); font-weight: 800; }
.faq-stack { display: grid; gap: 10px; }
.faq-stack details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  padding: 14px 16px;
}
.faq-stack summary { cursor: pointer; font-weight: 850; line-height: 1.5; }
.faq-stack p { color: var(--muted); line-height: 1.8; }
.page-hero {
  margin: 46px 0 24px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(237,248,255,.72)),
    radial-gradient(circle at 88% 10%, rgba(240,100,60,.14), transparent 28%);
  box-shadow: 0 18px 54px rgba(24,78,124,.09);
}
.install-grid { grid-template-columns: repeat(4, 1fr); }
.source-panel {
  margin-top: 16px;
  border: 1px solid rgba(240,100,60,.24);
  background: rgba(255,245,241,.72);
  border-radius: 18px;
  padding: 16px;
  color: #643623;
}
.source-panel p { margin-bottom: 0; line-height: 1.8; }
.step-rail ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-rail li { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.64); padding: 18px; }
.step-rail span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.75; }
.note-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.device-guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.device-guide article { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: rgba(255,255,255,.62); }
.device-guide h2 { margin-top: 0; }
.device-guide li { margin: 8px 0; color: #345166; }
.issue-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.text-layout, .article-body { max-width: 860px; margin-left: auto; margin-right: auto; }
.text-layout p { font-size: 17px; }
.contact-panel a { color: var(--blue); font-weight: 900; }
.support-band { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.support-band div { display: flex; gap: 10px; flex-wrap: wrap; }
.support-band a { border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.article-page { max-width: 920px; margin: 46px auto; }
.article-head {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 54px rgba(24,78,124,.09);
}
.article-head span { color: var(--orange); font-weight: 900; }
.article-head time { color: var(--muted); margin-left: 10px; }
.article-head h1 { font-size: clamp(32px, 4vw, 56px); line-height: 1.12; margin: 14px 0; }
.article-head p, .article-body p { color: var(--muted); line-height: 1.9; font-size: 17px; }
.article-body { padding: 16px 4px; }
.article-body h2 { margin-top: 34px; font-size: 28px; }
.article-next { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.article-next a { border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; background: rgba(255,255,255,.72); }
.not-found {
  min-height: 58vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
}
.not-found h1 { font-size: clamp(40px, 6vw, 76px); margin: 0; }
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 42px auto 24px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 26px;
}
.footer-chip { color: var(--blue); font-weight: 900; }
.footer-core h2 { margin: 10px 0; font-size: 28px; }
.footer-core p { color: var(--muted); line-height: 1.8; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.footer-grid h3 { margin-top: 0; }
.footer-grid a { display: block; color: #345166; margin: 8px 0; }

@media (max-width: 920px) {
  .top-shell { width: min(100% - 20px, 720px); align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .main-nav.is-open { display: flex; }
  .main-nav a { background: rgba(255,255,255,.66); }
  .top-shell { flex-wrap: wrap; }
  main, .site-footer { width: min(100% - 20px, 720px); }
  .hero-config { grid-template-columns: 1fr; min-height: auto; padding-top: 34px; }
  .config-panel { position: relative; width: 100%; right: auto; bottom: auto; }
  .hero-copy h1, .page-hero h1 { font-size: clamp(34px, 10vw, 52px); }
  .resource-strip, .dock-grid, .route-matrix, .article-list, .index-rack .article-list, .install-grid, .step-rail ol, .note-columns, .device-guide, .issue-rail, .site-footer, .footer-grid {
    grid-template-columns: 1fr;
  }
  .board-header { display: none; }
  .plan-row { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .plan-row:last-child { border-bottom: 0; }
  .plan-row span { border-bottom: 0; padding: 8px 16px; }
  .page-hero { padding: 28px; }
  .support-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  body { background: linear-gradient(180deg, #f7fbff, #fff7f4); }
  .top-shell { border-radius: 16px; padding: 10px; }
  .brand-lockup em { display: none; }
  .hero-actions, .support-band div { width: 100%; }
  .primary-action, .secondary-action, .support-band a { width: 100%; }
  .hero-visual, .resource-strip, .device-dock, .config-board, .route-console, .article-rack, .faq-panel, .install-matrix, .step-rail, .scenario-panel, .latency-note, .device-guide, .help-console, .text-layout, .contact-panel, .support-band {
    border-radius: 18px;
    padding: 18px;
  }
  .article-head { padding: 24px; border-radius: 20px; }
}
