
:root {
  --brand: #f36830;
  --ink: #172033;
  --muted: #667085;
  --line: #e5e7eb;
  --header: #f6f7f9;
  --paper: #ffffff;
  --soft: #fff7f3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.68;
  overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
html.is-embedded body {
  background: #fff;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-lockup img { width: 128px; max-height: 34px; object-fit: contain; }
.doc-label { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.lang-switch a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a.active { background: var(--brand); color: #fff; }
.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) 80px;
}
.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: 44px;
  align-items: center;
  padding: 54px 0 36px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 14px 0 18px; color: var(--brand); font-size: clamp(32px, 5vw, 58px); line-height: 1.12; letter-spacing: 0; }
.hero p { margin: 0; color: var(--muted); font-size: 17px; }
.hero-visual { width: 100%; max-height: 330px; object-fit: contain; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}
.content { min-width: 0; padding-top: 36px; grid-column: 2; }
.content h1, .content h2, .content h3 { color: var(--brand); line-height: 1.25; letter-spacing: 0; scroll-margin-top: 92px; }
.content h1 { counter-reset: h2; margin: 44px 0 18px; font-size: 30px; }
.content h2 { counter-reset: h3; margin: 34px 0 14px; font-size: 24px; }
.content h3 { margin: 26px 0 12px; font-size: 19px; }
.heading-number { font-variant-numeric: tabular-nums; }
.content p { margin: 0 0 14px; }
.content ul, .content ol { margin: 0 0 18px 1.3em; padding: 0; }
.content li { margin: 5px 0; }
.content blockquote {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  background: var(--soft);
  color: var(--ink);
}
.content table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  font-size: 15px;
}
.content th, .content td {
  border: 1px solid var(--line);
  padding: 13px 14px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.content th {
  background: var(--header);
  font-weight: 800;
}
.content table.is-step-table { table-layout: auto; }
.content .is-step-table td:first-child,
.content .is-step-table th:first-child { width: 44px; min-width: 44px; max-width: 56px; text-align: center; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.content table.is-step-table.has-images { table-layout: fixed; }
.content .is-step-table.has-images td:last-child,
.content .is-step-table.has-images th:last-child { width: 48%; }
.content table.is-label-image-table { table-layout: fixed; }
.content .is-label-image-table th:first-child,
.content .is-label-image-table td:first-child { width: 22%; }
.content .is-label-image-table th:nth-child(2),
.content .is-label-image-table td:nth-child(2),
.content .is-label-image-table th:nth-child(3),
.content .is-label-image-table td:nth-child(3) { width: 39%; }
.doc-figure { margin: 16px 0 22px; }
.image-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.image-button img {
  display: block;
  max-width: min(100%, 920px);
  max-height: 520px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
td .doc-figure { margin: 8px 0; }
td .image-button img { max-width: 100%; max-height: 360px; }
.toc {
  position: sticky;
  top: 96px;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px 24px 18px 0;
  border-right: 1px solid var(--line);
}
.toc-title { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.toc a { display: block; color: #344054; font-size: 13px; line-height: 1.35; padding: 6px 0; }
.toc a:hover { color: var(--brand); }
.toc-level-2 { padding-left: 12px !important; }
.toc-level-3 { padding-left: 24px !important; color: #667085 !important; }
html.is-embedded .topbar,
html.is-embedded .hero {
  display: none;
}
html.is-embedded .shell {
  max-width: 1320px;
  padding-top: 0;
  padding-bottom: 64px;
}
html.is-embedded .content {
  padding-top: 22px;
  grid-row: 1;
}
html.is-embedded .content h1,
html.is-embedded .content h2,
html.is-embedded .content h3 {
  scroll-margin-top: 28px;
}
html.is-embedded .toc {
  grid-row: 1;
  top: 22px;
  max-height: calc(100vh - 44px);
}
html.is-embedded .lightbox {
  display: none !important;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .88);
  padding: 28px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
}
.lightbox-caption {
  position: fixed;
  left: 28px;
  bottom: 20px;
  right: 96px;
  color: #fff;
  font-size: 14px;
}
.lightbox button {
  position: fixed;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  font-size: 22px;
  cursor: pointer;
}
.lightbox-close { top: 22px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 980px) {
  .shell { display: block; }
  .hero { grid-template-columns: 1fr; }
  .toc { display: none; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .toolbar { width: 100%; justify-content: space-between; }
}
@media (max-width: 640px) {
  .shell { padding-left: 24px; padding-right: 24px; overflow-x: hidden; }
  .hero h1 { max-width: 100%; font-size: 28px; overflow-wrap: anywhere; word-break: break-all; }
  .hero-visual { max-width: 100%; }
  .hero p, .pill { font-size: 13px; }
  .meta-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .pill { white-space: nowrap; }
  .content { overflow-x: hidden; }
  .content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; font-size: 13px; table-layout: auto; }
  .content th, .content td { padding: 10px 9px; }
  .content table:not(.has-images):not(.is-step-table):not(.is-label-image-table) th,
  .content table:not(.has-images):not(.is-step-table):not(.is-label-image-table) td { min-width: 110px; overflow-wrap: break-word; word-break: normal; }
  .content table:not(.has-images):not(.is-step-table):not(.is-label-image-table) th:nth-child(n+2),
  .content table:not(.has-images):not(.is-step-table):not(.is-label-image-table) td:nth-child(n+2) { min-width: 240px; }
  .content table.has-images th,
  .content table.has-images td { min-width: 180px; }
  .content table.has-images th:last-child,
  .content table.has-images td:last-child { min-width: 280px; }
  .content .is-step-table td:first-child,
  .content .is-step-table th:first-child { width: 40px; min-width: 40px; max-width: 46px; }
  .content .is-step-table th:nth-child(2),
  .content .is-step-table td:nth-child(2) { min-width: 260px; }
  .content .is-label-image-table th:first-child,
  .content .is-label-image-table td:first-child { width: 160px; min-width: 160px; }
  .content .is-label-image-table th:nth-child(2),
  .content .is-label-image-table td:nth-child(2),
  .content .is-label-image-table th:nth-child(3),
  .content .is-label-image-table td:nth-child(3) { width: 300px; min-width: 300px; }
  .brand-lockup img { width: 112px; }
}
