:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg-strong: #eef4ff;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: #f1f5f9;
  --text: #111827;
  --text-soft: #526071;
  --line: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(37, 99, 235, 0.22);
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --cyan: #0891b2;
  --cyan-deep: #0e7490;
  --cyan-soft: rgba(8, 145, 178, 0.11);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.11);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --danger: #dc2626;
  --danger-deep: #b91c1c;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  --shadow-strong: 0 24px 64px rgba(15, 23, 42, 0.22);
  --shell: 1260px;
  --header-offset: 110px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-offset) + 18px);
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #f8fafc 0%, var(--bg-strong) 42%, var(--bg) 100%);
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

code {
  font-family: Consolas, "SFMono-Regular", monospace;
}

.shell {
  width: min(var(--shell), calc(100vw - 32px));
  margin: 0 auto;
}

.contact-banner {
  background: linear-gradient(100deg, #0f766e 0%, #2563eb 58%, #1d4ed8 100%);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-banner-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.contact-banner-copy {
  display: grid;
  gap: 4px;
}

.contact-banner-copy strong {
  font-size: 20px;
  line-height: 1.2;
}

.contact-banner-copy span {
  font-size: 14px;
  color: rgba(248, 250, 252, 0.9);
}

.group-entry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.contact-inline-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-inline-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  text-underline-offset: 0;
  white-space: nowrap;
}

.contact-inline-link:hover,
.contact-inline-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.contact-banner-action {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-banner-action:hover,
.contact-banner-action:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.page-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  box-shadow: var(--shadow);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-size: 19px;
}

.brand-copy small {
  font-size: 13px;
  color: var(--text-soft);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-soft);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

.scroll-progress {
  height: 3px;
  background: rgba(15, 23, 42, 0.08);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--accent), var(--success));
  transition: width 120ms linear;
}

.intro-band {
  padding: 28px 0 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 22px;
}

.intro-copy,
.intro-highlights,
.toc-panel,
.doc-section,
.step-card,
.flow-step,
.download-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-copy {
  border-radius: 20px;
  padding: 34px;
  background: var(--surface);
}

.eyebrow,
.section-kicker,
.mini-step-index,
.flow-index {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent-deep);
  width: fit-content;
}

.intro-copy h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: 0;
}

.intro-copy p {
  margin: 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.82;
  color: var(--text-soft);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  outline: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--cyan-deep));
  color: #ffffff;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--text);
}

.intro-highlights {
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 12px;
}

.focus-card {
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.focus-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.focus-card p,
.focus-card small {
  margin: 0;
  line-height: 1.75;
  color: var(--text-soft);
}

.mini-alert-list {
  display: grid;
  gap: 12px;
}

.mini-alert {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 6px;
}

.mini-alert strong,
.mini-alert em {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.mini-alert p {
  color: inherit;
}

.mini-alert-danger {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.1), rgba(255, 255, 255, 0.96));
  border-color: rgba(220, 38, 38, 0.22);
  color: #991b1b;
}

.mini-alert-warning {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.12), rgba(255, 255, 255, 0.96));
  border-color: rgba(217, 119, 6, 0.22);
  color: #92400e;
}

.focus-card-hot {
  background: linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
  color: #fff;
}

.focus-card-hot p,
.focus-card-hot small {
  color: rgba(248, 250, 252, 0.92);
}

.group-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.focus-link {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.focus-link-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  text-underline-offset: 0;
  white-space: nowrap;
}

.focus-link:hover,
.focus-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.domain-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.domain-pills-stack {
  margin-bottom: 12px;
}

.domain-pill {
  min-height: 42px;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  width: 100%;
}

.domain-pill code {
  font-size: 14px;
  word-break: break-all;
}

.domain-pill strong,
.domain-pill em {
  font-style: normal;
}

.domain-pill strong {
  font-size: 13px;
}

.domain-pill em {
  font-size: 12px;
  font-weight: 700;
}

.domain-pill-accent {
  background: var(--cyan-soft);
  border-color: rgba(8, 145, 178, 0.22);
  color: #155e75;
}

.domain-pill-danger {
  background: var(--danger-soft);
  border-color: rgba(220, 38, 38, 0.22);
  color: #991b1b;
}

.doc-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-bottom: max(46px, 34vh);
}

.doc-toc {
  position: sticky;
  top: calc(var(--header-offset) + 6px);
}

.toc-panel {
  max-height: calc(100vh - var(--header-offset) - 24px);
  overflow-y: auto;
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 18px;
}

.toc-panel h2 {
  margin: 0;
  font-size: 19px;
}

.toc-group {
  display: grid;
  gap: 8px;
}

.toc-group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
}

.toc-panel a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.toc-panel a:hover,
.toc-panel a:focus-visible,
.toc-panel a.active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  transform: translateX(2px);
  outline: none;
}

.doc-main {
  display: grid;
  gap: 22px;
}

.doc-section {
  border-radius: 20px;
  padding: 30px;
  background: var(--surface);
  scroll-margin-top: calc(var(--header-offset) + 20px);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.12;
}

.section-head p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.82;
}

.callout-block,
.link-block,
.doc-link-panel,
.download-inline,
.repeat-reminder,
.step-card,
.flow-step,
.mini-step,
.media-card {
  scroll-margin-top: calc(var(--header-offset) + 20px);
}

.callout-block,
.link-block,
.doc-link-panel,
.download-inline {
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.callout-block p,
.link-block p,
.doc-link-panel p,
.step-card p,
.flow-step p,
.mini-step p,
.download-card p,
.media-card figcaption {
  margin: 0;
  font-size: 16px;
  line-height: 1.82;
  color: var(--text-soft);
}

.callout-block p + p,
.link-block p + p,
.step-card p + p,
.flow-step p + p,
.mini-step p + p {
  margin-top: 8px;
}

.callout-block-strong {
  background: linear-gradient(180deg, rgba(8, 145, 178, 0.1), rgba(255, 255, 255, 0.98));
  border-color: rgba(8, 145, 178, 0.2);
}

.callout-block-danger {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.1), rgba(255, 255, 255, 0.98));
  border-color: rgba(220, 38, 38, 0.24);
}

.callout-block-danger p {
  color: #991b1b;
  font-weight: 700;
}

.action-tag {
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  margin-top: 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  background: var(--success-soft);
  color: #047857;
  font-size: 14px;
  font-weight: 800;
}

.step-card {
  margin-top: 20px;
  border-radius: 18px;
  padding: 22px;
  background: var(--surface-strong);
}

.step-card-warning {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.08), rgba(255, 255, 255, 0.98));
  border-color: rgba(220, 38, 38, 0.2);
}

.step-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-card-head h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
}

.step-no {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--cyan-deep));
}

.step-no-warning {
  background: linear-gradient(135deg, var(--danger), var(--danger-deep));
}

.link-chip {
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  margin-top: 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  color: #e0f2fe;
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-x: auto;
}

.mini-flow,
.flow-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.mini-step,
.flow-step {
  border-radius: 16px;
  padding: 18px;
  background: var(--surface-muted);
}

.mini-step-copy,
.flow-step-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.mini-step-copy h4,
.flow-step-copy h4,
.doc-link-panel h3,
.download-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.32;
}

.link-block {
  margin-top: 16px;
}

.link-block a {
  color: var(--accent);
  word-break: break-all;
}

.file-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.file-chips > a,
.download-inline span {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 14px;
}

.file-chips > a {
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.file-chips > a:hover,
.file-chips > a:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  border-color: var(--line-strong);
  background: #ffffff;
  outline: none;
}

.file-chip-label {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--cyan-deep));
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.file-chip-name {
  display: inline-flex;
  align-items: center;
  word-break: break-all;
}

.download-inline {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.repeat-reminder {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.repeat-reminder span {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  background: var(--danger-soft);
  color: #991b1b;
  font-size: 15px;
  font-weight: 800;
}

.doc-link-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dual-media-grid,
.download-grid {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.dual-media-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card {
  margin: 14px 0 0;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.media-card figcaption {
  margin-top: 12px;
}

.zoomable-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
}

.zoomable-image img {
  width: 100%;
  border-radius: 12px;
  transition: transform 260ms ease, filter 260ms ease;
}

.zoomable-image::after {
  content: "点击放大";
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.94;
}

.zoomable-image:hover img,
.zoomable-image:focus-visible img {
  transform: scale(1.018);
  filter: saturate(1.04);
}

.zoomable-image:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.download-card {
  border-radius: 16px;
  padding: 20px;
  background: var(--surface-strong);
  display: grid;
  gap: 14px;
}

.download-card p code {
  word-break: break-all;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.image-modal.show {
  display: block;
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.76);
  animation: fade-in 220ms ease;
}

.image-modal-dialog {
  position: relative;
  width: min(1280px, calc(100vw - 22px));
  max-height: calc(100vh - 22px);
  margin: 11px auto;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-strong);
  animation: slide-up 240ms ease;
}

.image-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.image-modal-meta {
  display: grid;
  gap: 4px;
}

.image-modal-title {
  font-size: 14px;
  font-weight: 700;
}

.image-modal-tip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.image-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.image-modal-nav,
.image-modal-close {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.image-modal-viewport {
  padding: 16px;
  max-height: calc(100vh - 98px);
  overflow: auto;
}

.image-modal-viewport img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.reveal-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-motion .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
}

.reveal-motion .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .intro-grid,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
  }
}

@media (max-width: 960px) {
  .dual-media-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .doc-link-panel,
  .download-inline {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(var(--shell), calc(100vw - 18px));
  }

  .contact-banner-inner,
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-copy,
  .intro-highlights,
  .toc-panel,
  .doc-section,
  .step-card,
  .flow-step,
  .download-card {
    border-radius: 22px;
  }

  .intro-copy,
  .doc-section {
    padding: 22px;
  }

  .intro-copy h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .section-head h2,
  .step-card-head h3 {
    font-size: clamp(24px, 7vw, 30px);
  }

  .image-modal-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-modal-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
