: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);
  --sticky-offset: 194px;
  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(1360px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header { position: sticky; top: 0; z-index: 15; padding: 4px 0; background: var(--page); border: 0; }
.site-header-inner {
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: #ffffff;
}
.header-home-link { justify-self: end; color: #66738a; font-size: 14px; text-decoration: none; }
.header-home-link:hover { color: var(--brand); text-decoration: underline; }
.header-actions {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #3977f3;
}
.header-actions::before, .header-actions::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 214px;
  height: 106px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  pointer-events: none;
}
.header-actions::before {
  top: -44px;
  left: -38px;
  background: linear-gradient(135deg, #1770f5, #3d7ef6);
  transform: rotate(15deg);
}
.header-actions::after {
  right: -38px;
  bottom: -36px;
  background: linear-gradient(150deg, #3d7ef6, #1770f5);
  transform: rotate(-13deg);
}
.header-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 128px;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease;
}
.header-action:hover { color: #ffffff; }
.header-action:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: 2px solid #ffffff;
  outline-offset: -6px;
}
@media (hover: hover) and (pointer: fine) {
  .header-action:hover {
    background: rgba(255, 255, 255, 0.08);
  }
}
.header-action:active {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.08);
}
.header-action:first-child:hover, .header-action:first-child:focus-visible { background: rgba(255, 255, 255, .16); }
.header-action-icon {
  position: relative;
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}
.header-action-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}
.header-action:first-child .header-action-icon {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(117,236,255,.55), 0 0 9px rgba(0,204,255,.55);
  animation: shop-glow 3s ease-in-out infinite;
}
@keyframes shop-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(117,236,255,.55), 0 0 9px rgba(0,204,255,.55); }
  50% { box-shadow: 0 0 0 5px rgba(177,248,255,.95), 0 0 24px rgba(0,221,255,.95); }
}
.header-action:first-child .header-action-image {
  position: absolute;
  width: 116.509434%;
  height: 124.056604%;
  max-width: none;
  padding: 0;
  left: -4.716981%;
  top: -11.320755%;
}
.header-action-label { flex-shrink: 0; min-width: 0; color: #ffffff; font-size: clamp(18px, 2.2vw, 28px); font-weight: 800; line-height: 1.4; white-space: nowrap; }
.support-group-dialog, .coupon-dialog {
  position: fixed;
  inset: 0;
  width: min(480px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #dce4f1;
  border-radius: 24px;
  color: #23334e;
  background: #f4f7fc;
  box-shadow: 0 24px 80px rgba(17, 34, 63, .28);
  overflow: auto;
  overscroll-behavior: contain;
}
.support-group-dialog:not([open]), .coupon-dialog:not([open]) { display: none; }
.support-group-dialog::backdrop, .coupon-dialog::backdrop { background: rgba(15, 29, 52, .32); backdrop-filter: blur(3px); }
.support-group-card-heading, .coupon-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.support-group-close, .coupon-close { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #dce4f1; border-radius: 12px; color: #617492; background: #f4f7fc; font-size: 28px; line-height: 1; cursor: pointer; }
.support-group-close:hover, .coupon-close:hover { color: #23334e; background: #e8eef8; }
.support-group-body, .coupon-body { padding: 20px; }
.support-group-card, .coupon-card { padding: 22px; border: 1px solid #dce4f1; border-radius: 18px; background: #ffffff; }
.support-group-name, .coupon-name { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 800; line-height: 1.5; }
.support-group-message { color: #c62828; font-size: 16px; font-weight: 700; line-height: 1.8; }
.support-group-message p { margin: 0 0 10px; }
.support-group-message p:last-child { margin-bottom: 0; }
.support-group-join { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; margin-top: 24px; padding: 12px 18px; border-radius: 12px; color: #ffffff; background: #2f63e8; font-size: 17px; font-weight: 800; text-decoration: none; }
.support-group-join:hover { color: #ffffff; background: #204ec6; }
.coupon-message { color: #23334e; font-size: 16px; font-weight: 700; line-height: 1.8; }
.coupon-message p { margin: 0 0 10px; }
.coupon-message p:last-child { margin-bottom: 0; }
.coupon-contact-link { color: #2f63e8; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.coupon-contact-link:hover { color: #204ec6; }
.directory-shell {
  margin-top: 16px;
  padding: 0;
  margin-bottom: 64px;
  border: 1px solid #edf0f5;
  border-radius: 18px;
  background: #ffffff;
}
.directory-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; }
.tutorial-sidebar { min-width: 0; padding: 24px 14px; border-right: 1px solid #edf0f5; }
.tutorial-content { min-width: 0; padding: 24px; container-type: inline-size; }
.tutorial-nav {
  position: sticky;
  top: var(--sticky-offset);
  display: grid;
  gap: 8px;
}
.tutorial-tab {
  position: relative;
  display: flex;
  min-height: 58px;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  padding: 15px 18px;
  border: 0;
  border-radius: 10px;
  color: #495771;
  background: transparent;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
  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"] {
  color: #ffffff;
  background: #3977f3;
}
.tutorial-tab.is-active::before { position: absolute; content: ""; width: 3px; left: 0; top: 14px; bottom: 14px; border-radius: 3px; background: #ffffff; }
.category-brand { flex: 0 0 24px; display: block; width: 24px; height: 24px; object-fit: contain; }
.category-toggle { width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; border: 0; border-radius: 10px; background: #3977f3; color: #ffffff; font-weight: 750; text-align: left; cursor: pointer; }
.tutorial-panel { min-width: 0; margin-bottom: 36px; scroll-margin-top: var(--sticky-offset); }
[id] { scroll-margin-top: var(--sticky-offset); }
.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(3, minmax(0, 1fr)); gap: 16px; }
.tutorial-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.tutorial-card-link { display: flex; flex-direction: column; 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: 15px; }
.card-cover { flex: 0 0 112px; height: 112px; overflow: hidden; background: #eef5ff; }
.card-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  /* Enhance decorative cover illustrations only; preserve original asset bytes. */
  filter: saturate(1.8) brightness(0.92) contrast(1.18);
}
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 18px; padding: 15px; }
.card-copy h2 { margin: 0; color: #183552; font-size: 16px; 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-flex;
  align-items: center;
  min-height: 32px;
  margin-top: auto;
  padding: 6px 12px;
  border: 1px solid #b9cdf7;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #edf4ff;
  font-size: 14px;
  font-weight: 750;
}
.tutorial-card-link:hover .card-read-more, .tutorial-card-link:focus-visible .card-read-more { border-color: var(--brand); background: #e1ecff; }

.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: 1100px) {
  .directory-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .tutorial-sidebar { padding-inline: 10px; }
  .tutorial-tab { font-size: 14px; padding-inline: 12px; gap: 10px; }
  .tutorial-content { padding: 20px; }
  .tutorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  :root { --sticky-offset: 174px; }
  .header-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
  .header-action { flex-direction: column; min-height: 108px; padding: 8px 2px; gap: 6px; }
  .header-action-label { font-size: clamp(10px, 2.8vw, 22px); }
  .header-action-icon { flex-basis: 48px; width: 48px; height: 48px; }
}

@media (max-width: 760px) {
  .page-shell, .site-header-inner, .site-footer-inner, .article-shell, .not-found-shell { width: calc(100% - 28px); }
  .site-header { padding-top: 4px; }
  .site-header-inner { padding: 6px; }
  .header-home-link { font-size: 12px; }
  .directory-shell { margin-top: 12px; padding: 0; margin-bottom: 42px; }
  .prerequisite-card { padding: 12px 15px; font-size: 13px; }
  .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: 700px) {
  .directory-layout { grid-template-columns: minmax(0, 1fr); }
  .tutorial-sidebar { border-right: 0; border-bottom: 1px solid #edf0f5; padding: 12px; }
  .tutorial-nav { position: static; }
  .tutorial-sidebar.menu-enhanced .category-toggle { display: flex; }
  .tutorial-sidebar.menu-enhanced .tutorial-nav { display: none; margin-top: 8px; }
  .tutorial-sidebar.menu-open .tutorial-nav { display: grid; }
  .tutorial-tab { min-height: 50px; font-size: 14px; }
  .tutorial-content { padding: 16px 12px; }
  .tutorial-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-cover { flex-basis: 104px; height: 104px; }
}

@media (max-width: 360px) {
  .article-card { padding-inline: 16px; }
  .header-action-label { font-size: 10px; }
  .header-action-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .support-group-body, .coupon-body { padding: 14px; }
  .support-group-card, .coupon-card { padding: 18px; }
  .support-group-name, .coupon-name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .header-action:first-child .header-action-icon { animation: none; }
}
