:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --panel: #f1f5f9;
  --line: #e2e8f0;
  --text: #334155;
  --heading: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --warn-soft: #fffbeb;
  --warn-border: #fde68a;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 6px 20px rgba(37, 99, 235, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.8;
}

.wrap {
  max-width: 54rem;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.wrap--wide {
  max-width: 72rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.site-brand:hover {
  color: var(--accent);
}

.site-brand:hover .site-brand__mark {
  transform: translateY(-1px);
}

.site-brand__mark {
  display: block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-brand__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: inherit;
}

.site-brand__sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.site-brand:hover .site-brand__sub {
  color: var(--accent);
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.site-footer__logo {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--lg {
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
}

.btn--primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

.btn--secondary {
  color: var(--accent);
  background: var(--surface);
  border-color: #bfdbfe;
}

.btn--secondary:hover {
  background: var(--accent-soft);
  border-color: #93c5fd;
  color: var(--accent-hover);
}

.btn--ghost {
  color: var(--heading);
  background: transparent;
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: #cbd5e1;
  color: var(--accent);
}

.header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

.notice-bar {
  background: var(--warn-soft);
  border-bottom: 1px solid var(--warn-border);
}

.notice-bar p {
  margin: 0;
  padding: 0.65rem 0;
  font-size: 0.86rem;
  color: #92400e;
  text-align: center;
}

/* Hub / nav homepage */
.page-hub h1,
.page-nav h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4.6vw, 2.75rem);
}

.hero-band--nav {
  padding-top: 2.2rem;
  padding-bottom: 2.6rem;
}

.resource-hub {
  padding: 1.25rem 1.3rem;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-hover);
}

.resource-hub__title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.resource-hub__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.resource-hub__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.65rem 0;
  border-bottom: 1px solid #dbeafe;
  font-size: 0.9rem;
}

.resource-hub__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resource-hub__list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.resource-hub__list a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.resource-hub__list a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.entry-grid {
  display: grid;
  gap: 0.85rem;
}

.entry-grid--3 {
  grid-template-columns: 1fr;
}

.entry-grid--6 {
  grid-template-columns: repeat(2, 1fr);
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.entry-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.entry-card__label {
  font-weight: 700;
  color: var(--heading);
}

.entry-card__desc {
  font-size: 0.84rem;
  color: var(--muted);
}

.device-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 0.25rem;
  border: none;
  background: transparent;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.device-card:hover {
  transform: translateY(-2px);
}

.device-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.device-card__img {
  display: block;
  width: 5.5rem;
  max-width: 100%;
  height: auto;
  aspect-ratio: 390 / 480;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease;
}

.device-card:hover .device-card__img {
  box-shadow: var(--shadow-hover);
}

.device-card__title {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--heading);
}

.device-card:hover .device-card__title {
  color: var(--accent);
}

.device-card__desc {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

.feature-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.webterminal-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.webterminal-visual {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.webterminal-visual svg,
.webterminal-visual img,
.webterminal-visual__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.webterminal-visual--photo {
  background: var(--surface);
  border: 1px solid var(--line);
}

.webterminal-visual--photo img {
  object-fit: contain;
}

.webterminal-copy h2 {
  margin-top: 0;
  padding-bottom: 0;
  border: none;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.tutorial-more {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.tutorial-more > p {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--heading);
}

.tutorial-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tutorial-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.tutorial-links a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.hero-band {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 2.2rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-tagline {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--heading);
}

.hero-desc {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0;
  font-size: 0.84rem;
  color: #94a3b8;
}

.hero-visual {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-visual svg,
.hero-visual img,
.hero-visual__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero-visual--photo {
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero-visual--photo img,
.hero-visual__img {
  object-fit: contain;
}

.section {
  padding: 2.6rem 0;
}

.section--soft {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  padding: 0;
  border: none;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--heading);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.path-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.path-step {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.path-step__num {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.path-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.path-step p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.path-step a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.path-step a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.topic-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.topic-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.topic-card__label {
  font-weight: 700;
  color: var(--heading);
}

.topic-card__count {
  font-size: 0.82rem;
  color: var(--muted);
}

.topic-lists {
  display: grid;
  gap: 2rem;
}

.topic-block h3 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}

.topic-block__note {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.about-panel {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-panel h2 {
  margin-top: 0;
  padding-bottom: 0;
  border: none;
  font-size: 1.35rem;
}

.about-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.about-list li {
  margin: 0.35rem 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 0;
  padding: 2.2rem 0 1.5rem;
  background: var(--heading);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.site-footer__desc {
  margin: 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.site-footer__title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer__links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__links li {
  margin: 0.35rem 0;
}

.site-footer__contact {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #94a3b8;
}

.site-footer__contact a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.contact-panel {
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-address {
  font-style: normal;
}

.contact-list {
  display: grid;
  gap: 0.85rem 1.5rem;
  margin: 0;
}

.contact-item {
  display: grid;
  gap: 0.2rem;
}

.contact-item dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.contact-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--heading);
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (min-width: 640px) {
  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.site-footer__copy {
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid #334155;
  font-size: 0.8rem;
  color: #94a3b8;
}

.tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}

.faq-list .faq-item h3 {
  margin-top: 0;
}

.article-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.article-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.article-card a {
  display: block;
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
}

.article-card h3,
.article-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--heading);
}

.article-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.article-card time {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: #94a3b8;
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .path-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .entry-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .entry-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.5rem;
  }

  .hero-band--nav .hero-copy {
    max-width: none;
  }

  .path-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .article-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .entry-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .entry-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .device-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .device-card__img {
    width: 5rem;
  }

  .webterminal-grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .article-sidebar .toc {
    position: static;
    max-height: none;
    overflow: visible;
    margin: 0 0 1.5rem;
  }
}

@media (max-width: 720px) {
  .header-cta {
    display: none;
  }
}

/* Article list page */
.page-articles .hero {
  padding-top: 1.5rem;
}

.hub-section {
  margin: 2rem 0 2.4rem;
}

.hub-section h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  color: var(--heading);
}

/* Article pages */
.hero {
  padding: 2rem 0 1.1rem;
}

h1 {
  margin: 0 0 0.95rem;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--heading);
}

.meta {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta time {
  color: #475569;
}

p {
  margin: 0 0 1.1rem;
  color: var(--text);
}

h2 {
  margin: 2.45rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.34rem;
  color: var(--heading);
}

h3 {
  margin: 1.55rem 0 0.75rem;
  font-size: 1.08rem;
  color: var(--heading);
}

ul,
ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--text);
}

li {
  margin: 0.45rem 0;
}

strong {
  color: var(--heading);
}

.article-page.wrap {
  max-width: 72rem;
}

.article-layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.article-sidebar {
  position: relative;
  align-self: stretch;
  min-height: 100%;
}

.article-main {
  min-width: 0;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1rem 0 2rem;
  box-shadow: var(--shadow);
}

.article-sidebar .toc {
  position: sticky;
  top: calc(4.25rem + 1rem);
  max-height: calc(100vh - 4.25rem - 2rem);
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.toc p {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--heading);
}

.toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.toc li {
  margin: 0;
  padding: 0.4rem 0.55rem 0.4rem 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.toc li:has(a.is-active) {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.toc a {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.45;
}

.toc a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.toc a.is-active {
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

.toc a.is-active:hover {
  color: var(--heading);
}

.tip {
  margin: 1.2rem 0;
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  border-left: 3px solid #f59e0b;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  color: #78350f;
}

.tip strong {
  color: #92400e;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 36rem;
}

th,
td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--text);
}

th {
  background: var(--panel);
  color: var(--heading);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.related {
  margin-top: 2rem;
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.related > p {
  margin: 0 0 0.65rem;
  font-weight: 700;
  color: var(--heading);
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related li {
  margin: 0.45rem 0;
  padding-left: 0.85rem;
  border-left: 2px solid #dbeafe;
}

.related a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.related a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer {
  margin-top: 1.4rem;
  padding: 1.2rem 0 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-weight: 500;
}

article a:hover {
  color: var(--accent-hover);
}

.faq-item {
  margin-bottom: 1.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.02rem;
}

.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-hover);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .scroll-top {
    right: 1rem;
    bottom: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

.page-error {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 1.2rem 4rem;
}

.error-panel {
  width: min(100%, 36rem);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-code {
  margin: 0 0 0.5rem;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #dbeafe;
}

.error-panel h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--heading);
}

.error-lead {
  margin: 0 0 1.6rem;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
