:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --ink: #161b2c;
  --muted: #6b7280;
  --brand: #2f63e8;
  --brand-dark: #204ec6;
  --line: #e0e7f2;
  --reader-soft: #f3f6fc;
  --shadow: 0 8px 28px rgba(31, 50, 84, 0.045);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}
button, input, select, textarea { font: inherit; }
img, video { max-width: 100%; }
[hidden], [data-tutorial-archived] { display: none !important; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus { color: #ffffff; transform: translateY(0); }

.page-shell, .site-header-inner, .site-footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header { background: rgba(255, 255, 255, 0.9); border-bottom: 1px solid var(--line); }
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--brand);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #14235d;
}
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Crop the screenshot to its centered SWS circle; keep source bytes intact. */
  transform: scale(1.18);
}
.header-home-link { flex-shrink: 0; color: #66738a; font-size: 14px; text-decoration: none; }
.header-home-link:hover { color: var(--brand); text-decoration: underline; }
.directory-shell { padding-top: 26px; padding-bottom: 64px; }

.site-notice { margin-bottom: 24px; }
.hero-notice {
  display: grid;
  width: 100%;
  gap: 5px;
  margin: 0;
  padding: 19px 23px;
  border: 1px solid #eee1bd;
  border-radius: 16px;
  color: #695323;
  background: #fff9e9;
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.hero-notice-line {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
}
.hero-notice-line::before {
  color: #b28631;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  content: "›";
}
.hero-contact-link { color: var(--brand); font-weight: 750; text-decoration: underline; }
.hero-reseller-link { color: inherit; font-weight: 400; text-decoration: underline; }
.hero-reseller-link:hover { color: #896016; }

.tutorial-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}
.tutorial-tab {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #495771;
  background: var(--surface);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.tutorial-tab:hover { border-color: #b1c4f5; color: var(--brand); background: #f0f5ff; }
.tutorial-tab.is-active, .tutorial-tab[aria-current="location"] {
  border-color: var(--brand);
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(47, 99, 232, 0.14);
}
.tutorial-panel { min-width: 0; margin-bottom: 36px; scroll-margin-top: 24px; }
.tutorial-panel:last-child { margin-bottom: 0; }
.prerequisite-card {
  margin-bottom: 22px;
  padding: 12px 20px;
  border: 1px solid #dbe7fd;
  border-radius: 12px;
  color: #4c6283;
  background: #edf4ff;
  font-size: 14px;
}
.prerequisite-card ul { margin: 0; padding-left: 19px; }
.prerequisite-card li + li { margin-top: 3px; }
.prerequisite-card li::marker { color: var(--brand); }

.tutorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tutorial-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.tutorial-card-link { display: block; height: 100%; color: inherit; text-decoration: none; }
.tutorial-card:hover, .tutorial-card:focus-within {
  border-color: var(--brand);
  box-shadow: 0 10px 32px rgba(47, 99, 232, 0.11);
}
.tutorial-card-link:hover, .tutorial-card-link:focus { color: inherit; }
.tutorial-card-link:focus-visible { outline-offset: -4px; border-radius: 19px; }
.card-cover { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #eef5ff; }
.card-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Enhance illustrations only; keep overlaid titles and original assets intact. */
  filter: saturate(1.8) brightness(0.92) contrast(1.18);
}
.cover-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 36px);
  pointer-events: none;
}
.cover-heading {
  max-width: 64%;
  color: #183552;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.card-copy { padding: 24px; }
.card-copy h2 { margin: 0; font-size: 22px; font-weight: 750; line-height: 1.5; overflow-wrap: anywhere; }
.tutorial-card-link:hover h2, .tutorial-card-link:focus-visible h2 { color: var(--brand); }
.card-read-more { display: inline-block; margin-top: 18px; color: var(--brand); font-size: 14px; font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); color: #606c80; font-size: 13px; }
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 76px;
  padding-block: 18px;
}
.site-footer p { margin: 0; }
.site-footer a { color: #606c80; }

.article-shell { width: min(960px, calc(100% - 48px)); margin: 28px auto 72px; }
.breadcrumbs { margin: 0 0 20px; color: #606c80; font-size: 14px; overflow-wrap: anywhere; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: 10px; color: #a3afbf; content: "/"; }
.breadcrumbs a { color: #5e6e8c; text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.article-card {
  min-width: 0;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.article-category {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid #e1eafe;
  border-radius: 7px;
  color: var(--brand);
  background: #f1f5ff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.article-header { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-header h1 {
  margin: 16px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.article-content { min-width: 0; color: var(--ink); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content > :last-child { margin-bottom: 0; }
.article-content p { margin: 0 0 18px; }
.article-content h2, .article-content h3, .article-content h4 { color: var(--ink); font-weight: 750; line-height: 1.5; }
.article-content h2 { margin: 32px 0 16px; font-size: 25px; }
.article-content h3 { margin: 30px 0 16px; font-size: 21px; }
.article-content h4 { margin: 24px 0 12px; font-size: 18px; }
.article-content a { color: var(--brand); text-underline-offset: 3px; }
.article-content a:hover { color: var(--brand-dark); }
.article-content ul, .article-content ol { padding-left: 25px; }
.article-content li + li { margin-top: 9px; }
.article-content strong { color: #202d45; font-weight: 750; }
.article-content img, .article-content video { display: block; max-width: 100%; height: auto; border-radius: 14px; }
.article-content figure { margin: 26px 0; }
.article-content figcaption { margin: 0 0 12px; color: #596579; font-size: 14px; line-height: 1.75; text-align: left; }
.single-image { width: 100%; max-width: 100%; }
.single-image > a { display: block; }
.tutorial-image { width: 100%; border: 1px solid #e3e8f1; background: #f5f7fb; }
.image-grid { display: grid; gap: 18px; margin-block: 26px; }
.image-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.image-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-content .image-grid figure { min-width: 0; margin: 0; }
.step-caption-title, .step-resource-link { display: block; }
.step-caption-title { color: #344565; font-weight: 650; }
.step-resource-link { margin-top: 5px; font-size: 14px; font-weight: 400; }

.article-content .steps { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.article-content .steps li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 60px;
  border: 1px solid #e4ebf8;
  border-radius: 12px;
  background: #f4f7fd;
}
.steps li > span {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--brand);
  background: #e3ecfe;
  font-size: 14px;
  font-weight: 750;
}
.steps li > a { min-width: 0; }
.article-content .check-list { margin: 22px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 25px; }
.check-list li::before { position: absolute; left: 0; color: #20846d; font-weight: 800; content: "✓"; }
.article-content .callout {
  margin: 22px 0;
  padding: 16px 19px;
  border: 1px solid #dce7fb;
  border-left: 3px solid #779eea;
  border-radius: 10px;
  color: #365579;
  background: #f1f6ff;
}
.article-content .callout.warning { border-color: #f0dfb6; border-left-color: #dba53c; color: #805e1b; background: #fff9e9; }
.article-content .critical-note { color: #bf3040; font-weight: 750; }
.video-card { margin: 26px 0; }
.video-heading { margin-bottom: 12px; }
.article-content .video-heading h3 { margin: 0; font-size: 19px; }
.video-frame { overflow: hidden; border: 1px solid #dce4f0; border-radius: 14px; background: #101624; }
.video-frame .tutorial-video { display: block; width: 100%; height: auto; border-radius: 0; background: #101624; }
.video-fallback { display: inline-block; margin-top: 11px; font-size: 14px; }

.article-content .codex-flow-title { margin: 0 0 18px; }
.article-content .codex-step-flow { margin: 22px 0 30px; padding: 0; list-style: none; }
.article-content .codex-step-flow > .codex-login-step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid #e3eaf7;
  border-radius: 16px;
  background: #f4f7fd;
}
.article-content .codex-step-flow > .codex-login-step:nth-child(even) { border-color: #deeee9; background: #f2f9f7; }
.codex-step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: var(--brand);
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
}
.codex-login-step:nth-child(even) .codex-step-number { background: #22816e; }
.codex-step-content { min-width: 0; }
.article-content .codex-step-content h4 { margin: 2px 0 12px; font-size: 19px; }
.article-content .codex-step-content > p { margin: 0 0 14px; }
.article-content .codex-step-content > :last-child { margin-bottom: 0; }
.article-content .codex-guide-figure { margin: 18px 0 0; }
.codex-guide-figure > a { display: block; }
.article-content .codex-guide-figure img { width: 100%; height: auto; border-radius: 11px; }
code, kbd {
  padding: 2px 6px;
  border: 1px solid #dfe6f2;
  border-radius: 5px;
  color: #344565;
  background: #eff3f9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
kbd { box-shadow: 0 1px 0 #cfd8e8; }
pre { max-width: 100%; padding: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--reader-soft); }
pre code { padding: 0; border: 0; background: transparent; }
.article-footer { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 14px; font-weight: 650; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.not-found-shell { width: min(660px, calc(100% - 48px)); margin: 72px auto; }
.not-found-card { padding: clamp(28px, 6vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.not-found-code { margin: 0 0 12px; color: var(--brand); font-size: 14px; font-weight: 750; letter-spacing: 0.08em; }
.not-found-card h1 { margin: 0 0 16px; font-size: clamp(26px, 5vw, 36px); line-height: 1.4; }
.not-found-card > p:not(.not-found-code) { margin: 0 0 26px; color: var(--muted); }

@media (max-width: 760px) {
  .page-shell, .site-header-inner, .site-footer-inner, .article-shell, .not-found-shell { width: calc(100% - 28px); }
  .site-header-inner { min-height: 66px; gap: 12px; }
  .site-brand { gap: 8px; font-size: 16px; }
  .brand-mark { flex-basis: 30px; width: 30px; height: 30px; }
  .header-home-link { font-size: 12px; }
  .directory-shell { padding-top: 18px; padding-bottom: 42px; }
  .hero-notice { gap: 6px; padding: 15px 16px; border-radius: 13px; font-size: 13px; line-height: 1.8; }
  .site-notice { margin-bottom: 18px; }
  .tutorial-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
  .tutorial-tab { min-height: 50px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
  .prerequisite-card { padding: 12px 15px; font-size: 13px; }
  .tutorial-grid { grid-template-columns: 1fr; gap: 18px; }
  .tutorial-card { border-radius: 17px; }
  .cover-copy { padding: 20px; }
  .cover-heading { font-size: clamp(22px, 6vw, 32px); }
  .card-copy { padding: 20px; }
  .card-copy h2 { font-size: 20px; }
  .article-shell { margin-top: 20px; margin-bottom: 42px; }
  .article-card { padding: 23px 20px; border-radius: 18px; }
  .article-header { margin-bottom: 24px; padding-bottom: 22px; }
  .article-header h1 { margin-top: 14px; font-size: 26px; }
  .article-content { font-size: 15px; line-height: 1.85; }
  .article-content h3 { font-size: 20px; }
  .article-content .codex-step-flow > .codex-login-step { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 17px 13px; border-radius: 12px; }
  .codex-step-number { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
  .article-content .codex-step-content h4 { margin-top: 0; font-size: 17px; }
  .article-content .steps li { padding: 13px 13px 13px 51px; }
  .steps li > span { top: 13px; left: 13px; }
  .image-grid-two, .image-grid-three { grid-template-columns: 1fr; }
  .article-content .callout { padding: 13px 15px; }
  .not-found-shell { margin-top: 36px; }
}

@media (max-width: 360px) {
  .site-brand { font-size: 14px; }
  .article-card { padding-inline: 16px; }
  .cover-copy { padding: 17px; }
  .cover-heading { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
