:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #eeedf3;
  background: #0b0b0e;
  --muted: #93909e;
  --line: #ffffff13;
  --accent: #b6a0f8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse at 80% 4%, #8970d40a, transparent 40%); }
body.preview-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button { cursor: pointer; }
button, a, select, summary, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg { display: block; width: 20px; height: 20px; flex: none; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 30; padding: 12px 18px; border-radius: 8px; background: #eeedf3; color: #17151d; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.help-header { height: 76px; display: flex; align-items: center; gap: 44px; padding: 0 max(24px, calc((100vw - 1240px)/2)); border-bottom: 1px solid var(--line); background: #0b0b0eea; backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 10; }
.help-header .brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.help-header .brand img { width: 36px; height: 36px; object-fit: contain; }
.help-header .brand .wordmark { width: 126px; height: 52px; object-position: left center; }
.help-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 15px; }
.help-nav a, .back-link { transition: color .18s; }
.help-nav a:hover, .back-link:hover { color: #fff; }
.help-header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.back-link { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.language-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.language-control select { border: 1px solid #ffffff1b; border-radius: 7px; padding: 7px 9px; background: #151419; color: #d8d5df; }
.help-shell, footer { width: min(100%, 1240px); margin: 0 auto; padding-inline: 24px; }
section[id] { scroll-margin-top: 108px; }
.quick-start-section { padding: 42px 0 56px; }
.section-heading { margin-bottom: 24px; }
.eyebrow { display: block; margin-bottom: 14px; font-size: 11px; color: var(--accent); font-weight: 600; letter-spacing: .14em; }
h1, h2, h3, p { margin: 0; }
.section-heading h1 { font-size: clamp(29px, 3vw, 36px); line-height: 1.25; font-weight: 500; letter-spacing: -.035em; }
.section-heading > p { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.tutorial-layout { display: grid; gap: 18px; }
.tutorial-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tutorial-step { display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 18px 20px; text-align: left; border: 2px solid #70687f; border-radius: 10px; background: linear-gradient(135deg, #211e29, #17161c); color: inherit; transition: background .25s, border-color .3s, box-shadow .3s, transform .25s; }
.tutorial-step:hover:not(.selected) { background: #292431; border-color: #a99dbd; box-shadow: 0 6px 20px #0003; }
.tutorial-step.selected { background: linear-gradient(120deg, #382d4b, #241e32); border-color: #bda5ff; box-shadow: 0 0 0 1px #b6a0f826, 0 8px 24px #0004; }
.tutorial-step.selected:hover { border-color: #dac9ff; }
.tutorial-step.is-pending { border-color: #dac9ff; }
.tutorial-step:active, .contact-button:active, .preview-controls button:active { transform: scale(.98); }
.step-number { color: #b7aec8; font: 13px/1.5 ui-monospace, monospace; }
.selected .step-number { color: #ddceff; }
.step-copy { display: grid; gap: 5px; }
.step-tag { color: #b7aec8; font-size: 11px; letter-spacing: .08em; }
.selected .step-tag { color: #ddceff; }
.step-copy strong { color: #dcd9e4; font-size: 14px; font-weight: 500; line-height: 1.5; }
.selected .step-copy strong { color: #fff; }
.tutorial-panel { min-width: 0; overflow: hidden; border: 1px solid #ffffff1b; border-radius: 12px; background: #111115; }
.tutorial-details { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.tutorial-details h2 { font-size: 14px; font-weight: 500; line-height: 1.6; color: #e1dce9; }
.tutorial-details p { margin-top: 6px; min-height: 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.tutorial-preview { position: relative; isolation: isolate; display: block; padding: 24px; width: 100%; overflow: hidden; border: 0; border-radius: 0; background: #25202e; cursor: zoom-in; }
.tutorial-preview::before, .tutorial-preview::after { content: ""; position: absolute; pointer-events: none; }
.tutorial-preview::before { inset: -80px; background: var(--tutorial-image, url('./assets/tutorial-zh-01.png')) center / cover no-repeat; filter: blur(48px) brightness(1.7) saturate(.7); opacity: .5; }
.tutorial-preview::after { inset: 0; background: linear-gradient(90deg, #b6a0f81c, #16121e55 35%, #16121e55 65%, #b6a0f81c); }
.tutorial-preview img { position: relative; z-index: 1; display: block; width: min(100%, 768px); height: auto; max-height: 480px; margin-inline: auto; aspect-ratio: 8/5; object-fit: contain; border: 1px solid #d0c1f64a; border-radius: 6px; box-shadow: 0 18px 48px #0009, 0 0 0 1px #ffffff08; }
.tutorial-preview .image-transition { display: grid; place-items: center; padding: inherit; }
.preview-affordance { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #ffffff26; border-radius: 7px; color: #efecf7; background: #15131edb; backdrop-filter: blur(10px); font-size: 11px; z-index: 2; transition: background .25s, border-color .25s, transform .35s; }
.preview-affordance svg { width: 14px; height: 14px; }
.tutorial-preview:hover .preview-affordance { background: #383044; border-color: #b6a0f870; transform: translateY(-2px); }
.tutorial-caption { padding: 10px 22px; border-top: 1px solid var(--line); color: #81798f; font-size: 11px; line-height: 1.6; }
.faq-section { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 64px; border-top: 1px solid var(--line); padding: 62px 0 72px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro h2 { font-size: 30px; line-height: 1.25; font-weight: 500; letter-spacing: -.035em; }
.faq-intro > p { margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.faq-categories { display: grid; gap: 3px; margin-top: 28px; }
.faq-categories button { display: flex; align-items: center; gap: 12px; border: 0; padding: 11px 0; color: var(--muted); background: transparent; text-align: left; font-size: 13px; }
.faq-categories button::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #4d4758; }
.faq-categories button.selected { color: #efebf8; }
.faq-categories button.selected::before { background: var(--accent); box-shadow: 0 0 9px #b6a0f850; }
.faq-categories button:hover { color: #fff; }
.faq-list { min-width: 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 23px 0; color: #dedbe5; font-size: 14px; font-weight: 500; line-height: 1.6; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1px solid #8f849f; border-bottom: 1px solid #8f849f; transform: rotate(45deg) translateY(-2px); transition: transform .18s; }
.faq-list details[open] summary { color: #fff; }
.faq-list details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-list details p { max-width: 690px; margin: -3px 30px 24px 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.contact-section { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; margin-bottom: 56px; padding: 32px; border: 1px solid #ffffff16; border-radius: 12px; background: #ffffff02; }
.contact-copy .eyebrow { margin-bottom: 10px; }
.contact-copy h2 { font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.contact-copy p { max-width: 540px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.contact-copy .contact-alternative { margin-top: 12px; color: #797181; font-size: 12px; }
.contact-actions { min-width: 0; }
.contact-button { display: flex; align-items: center; justify-content: center; gap: 20px; min-width: 150px; padding: 12px 20px; border: 1px solid #b6a0f840; border-radius: 7px; background: #b6a0f80c; color: #e6ddfb; font-size: 13px; transition: background .25s, border-color .25s, transform .25s, box-shadow .3s; }
.contact-button:hover { background: #b6a0f81c; border-color: #b6a0f880; box-shadow: 0 6px 24px #b6a0f815; }
.contact-button > span:last-child { transition: transform .3s; }
.contact-button:hover > span:last-child { transform: translate(2px, -2px); }
footer { display: flex; align-items: center; gap: 20px; padding-block: 24px 32px; border-top: 1px solid var(--line); color: #756f80; font-size: 11px; }
footer > :last-child { margin-left: auto; }
footer a:hover { color: #e1dae9; }
.image-dialog { width: min(1480px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #ffffff25; border-radius: 13px; color: #eeeaf6; background: #111116; box-shadow: 0 32px 120px #0009; }
.image-dialog::backdrop { background: #050508dc; backdrop-filter: blur(12px); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.preview-toolbar h2 { font-size: 13px; font-weight: 500; line-height: 1.6; }
.preview-controls { display: flex; gap: 8px; flex: none; }
.preview-controls button { border: 1px solid #ffffff1b; border-radius: 6px; padding: 7px 10px; color: #c1b9ce; background: #ffffff04; font-size: 11px; }
.preview-controls button:hover { color: #fff; background: #ffffff0c; }
.preview-controls .preview-close { padding: 5px; }
.preview-close svg { width: 22px; height: 22px; }
.preview-viewport { display: grid; place-items: center; overflow: auto; max-height: calc(100dvh - 160px); background: #09090c; }
.preview-viewport img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 160px); }
.preview-viewport.actual-size { display: block; }
.preview-viewport.actual-size img { max-width: none; max-height: none; }
.preview-hint { padding: 11px 18px; color: #8e869c; font-size: 11px; line-height: 1.6; }
@media (max-width: 1000px) {
  .help-header { gap: 28px; }
  .help-nav { gap: 18px; }
  .help-header-actions { gap: 16px; }
  .tutorial-step { padding: 16px 12px; gap: 12px; }
  .faq-section { grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 760px) {
  .help-header { height: auto; min-height: 72px; flex-wrap: wrap; gap: 20px; padding-top: 16px; padding-bottom: 14px; }
  .help-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; font-size: 12px; }
  .language-control > span { display: none; }
  .quick-start-section { padding-top: 38px; padding-bottom: 44px; }
  .tutorial-steps { gap: 6px; }
  .tutorial-step { flex-direction: column; justify-content: flex-start; gap: 10px; padding: 13px 11px; border-radius: 9px; }
  .step-copy { gap: 5px; }
  .step-copy strong { font-size: 12px; line-height: 1.6; }
  .step-tag { font-size: 10px; }
  .tutorial-details { padding: 16px; }
  .tutorial-details p { min-height: 66px; }
  .tutorial-caption { font-size: 10px; }
  .tutorial-preview { padding: 12px; }
  .tutorial-preview::before { filter: blur(32px) brightness(1.7) saturate(.7); }
  .preview-affordance { right: 9px; bottom: 9px; padding: 6px 8px; font-size: 10px; }
  .faq-section { display: block; padding: 42px 0 46px; }
  .faq-intro { position: static; }
  .faq-intro h2 { font-size: 27px; }
  .faq-categories { display: flex; gap: 18px; flex-wrap: wrap; margin: 20px 0 16px; }
  .faq-categories button { gap: 6px; font-size: 11px; }
  .faq-list summary { font-size: 13px; padding-block: 20px; }
  .contact-section { grid-template-columns: minmax(0, 1fr); padding: 23px; gap: 24px; margin-bottom: 40px; }
  .contact-actions { min-width: 0; }
  .contact-copy h2 { font-size: 20px; }
  .image-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .preview-toolbar { padding: 12px; align-items: start; }
  .preview-toolbar h2 { font-size: 12px; }
  .preview-controls { gap: 5px; }
  .preview-hint { padding-inline: 12px; font-size: 10px; }
  section[id] { scroll-margin-top: 132px; }
}
@media (max-width: 420px) {
  .help-header, .help-shell, footer { padding-inline: 18px; }
  .help-header { gap: 12px; }
  .help-header .brand { gap: 7px; }
  .help-header .brand img { width: 30px; height: 30px; }
  .help-header .brand .wordmark { width: 88px; height: 36px; object-position: left center; }
  .help-header-actions { gap: 12px; }
  .language-control select { max-width: 83px; padding: 6px; }
  .back-link { gap: 5px; font-size: 11px; }
  .back-link > span:first-child { display: none; }
  .section-heading h1 { font-size: 29px; }
  .step-copy strong { font-size: 11px; }
  .tutorial-step { padding-inline: 8px; }
  footer { gap: 12px; flex-wrap: wrap; }
  footer > :last-child { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
