:root {
  --paper: #f7f8ff;
  --white: #fdfdff;
  --ink: #1d2142;
  --muted: #52546f;
  --line: #dedff3;
  --brand: #7a6eef;
  --accent: #5948c3;
  --accent-ink: #40309a;
  --accent-hover: #4735ae;
  --accent-line: #c5bef5;
  --soft-accent: #e8e6ff;
  --surface: #eef0fc;
  --max-width: 1120px;
  --header-height: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 14px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  line-break: strict;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { width: min(var(--max-width), calc(100% - 42px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #fbfbfff2; backdrop-filter: blur(13px); }
.header-inner { display: flex; align-items: center; min-height: var(--header-height); gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 17px; white-space: nowrap; }
.brand img { width: 34px; border-radius: 9px; }
.navigation { display: flex; align-items: center; gap: clamp(12px, 2.1vw, 28px); margin-left: auto; }
.navigation a, .footer nav a { color: var(--muted); font-size: 14px; transition: color .18s ease; white-space: nowrap; }
.navigation a:hover, .footer nav a:hover { color: var(--accent-ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; font-weight: 700; white-space: nowrap; }
.header-button { min-height: 39px; padding: 0 13px; border: 1px solid var(--accent-line); color: var(--accent-ink); font-size: 13px; transition: background .18s ease; }
.header-button:hover { background: var(--soft-accent); }
.primary-button { min-width: 218px; min-height: 51px; padding-inline: 21px; background: var(--accent); color: #fff; box-shadow: 0 7px 16px #5241aa27; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.download-icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; border-bottom: 2px solid currentColor; }
.download-icon::before { content: ""; position: absolute; top: 0; left: 7px; width: 2px; height: 10px; background: currentColor; }
.download-icon::after { content: ""; position: absolute; top: 3px; left: 4px; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.hero {
  padding-block: 47px 62px;
  background:
    radial-gradient(ellipse at 50% 10%, #dfddff 0%, transparent 46%),
    var(--paper);
}
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(46px, 5.2vw, 74px); font-weight: 850; line-height: 1.12; }
.hero-subtitle { margin-top: 10px; color: var(--accent-ink); font-size: clamp(22px, 2.65vw, 31px); font-weight: 730; line-height: 1.38; }
.hero-description { max-width: 36em; margin: 11px auto 0; color: var(--muted); line-height: 1.8; }
.hero-copy .primary-button { margin-top: 20px; }

.hero-preview { margin-top: 32px; }
.preview-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(244px, .43fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 15px 40px #3e36801a;
}
.preview-window { min-width: 0; padding: 17px; background: var(--white); }
.preview-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.preview-header h2 { font-size: 19px; line-height: 1.4; }
.surface-switch { display: flex; align-items: center; gap: 7px; min-height: 36px; color: var(--muted); font-size: 13px; cursor: pointer; white-space: nowrap; }
.surface-switch input { appearance: none; display: grid; align-items: center; width: 31px; height: 18px; margin: 0; padding: 2px; border: 1px solid #a7a3cc; border-radius: 20px; background: var(--soft-accent); cursor: pointer; }
.surface-switch input::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #625a93; transition: transform .18s ease; }
.surface-switch input:checked { border-color: var(--accent); background: var(--brand); }
.surface-switch input:checked::after { transform: translateX(13px); background: #fff; }
.preview-stage {
  --reticle-size: 68px;
  --reticle-opacity: 1;
  --reticle-color: #d9bcff;
  --stage-bg: #181c39;
  --dot: #c4c2ff28;
  --line-stage: #b4b6f052;
  --stage-light: #6e69c360;
  display: grid;
  position: relative;
  isolation: isolate;
  place-items: center;
  width: 100%;
  aspect-ratio: 2.15;
  min-height: 190px;
  border: 1px solid #555a8a;
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, var(--dot) 0 1px, transparent 1.5px) center / 20px 20px,
    radial-gradient(ellipse at 30% 10%, var(--stage-light), transparent 70%),
    var(--stage-bg);
}
.preview-stage.is-light { --stage-bg: #f0efff; --dot: #645a9d30; --line-stage: #5c5a9162; --stage-light: #d8d3ff; border-color: var(--accent-line); }
.sight-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, var(--line-stage) 23% 77%, transparent) center / 100% 1px no-repeat,
    linear-gradient(transparent, var(--line-stage) 23% 77%, transparent) center / 1px 100% no-repeat;
}
.corner { position: absolute; width: 19px; height: 19px; border: solid var(--line-stage); }
.top-left { inset: 13px auto auto 13px; border-width: 1px 0 0 1px; }
.top-right { inset: 13px 13px auto auto; border-width: 1px 1px 0 0; }
.bottom-left { inset: auto auto 13px 13px; border-width: 0 0 1px 1px; }
.bottom-right { inset: auto 13px 13px auto; border-width: 0 1px 1px 0; }
.reticle { position: relative; width: var(--reticle-size); height: var(--reticle-size); color: var(--reticle-color); opacity: var(--reticle-opacity); filter: drop-shadow(0 0 5px currentColor); }
.reticle::before, .reticle::after { position: absolute; content: ""; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
[data-shape="basic"] .reticle::before { width: 18%; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
[data-shape="ring"] .reticle::before { box-sizing: border-box; width: 100%; aspect-ratio: 1; border: 2px solid currentColor; border-radius: 50%; }
[data-shape="ring"] .reticle::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
[data-shape="cross"] .reticle::before, [data-shape="cross"] .reticle::after { width: 100%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, currentColor 41%, transparent 41% 59%, currentColor 59%); }
[data-shape="cross"] .reticle::after { transform: translate(-50%, -50%) rotate(90deg); }
[data-shape="laser"] .reticle::before { width: 128%; height: 2px; border-radius: 2px; background: currentColor; }

.preview-settings { min-width: 0; padding: 20px 17px 14px; border-left: 1px solid var(--line); background: var(--surface); }
.preview-form fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.preview-form legend, .range-control > div { color: var(--ink); font-size: 13px; font-weight: 650; }
.shape-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.shape-options legend { margin-bottom: 7px; }
.shape-options label, .color-options label { position: relative; }
.shape-options input, .color-options input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.shape-options label > span { min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #fdfdff; color: var(--muted); font-size: 13px; white-space: nowrap; }
.shape-options input:checked + span { background: var(--soft-accent); color: var(--accent-ink); border-color: var(--brand); font-weight: 690; }
.shape-options label:hover > span { border-color: var(--accent); }
.preview-form input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.mini-target { display: block; width: 12px; height: 12px; flex: 0 0 12px; color: var(--accent); }
.mini-target.dot { background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px); }
.mini-target.cross { background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat; }
.mini-target.ring { border: 1px solid currentColor; border-radius: 50%; }
.mini-target.laser { background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat; }
.adjustments { display: grid; gap: 9px; margin-top: 15px; }
.color-options { display: flex; align-items: center; gap: 4px; }
.color-options label { display: grid; place-items: center; width: 31px; height: 34px; }
.swatch { width: 18px; height: 18px; border: 1px solid #29204c29; border-radius: 50%; }
.lavender { background: #d9bcff; }
.amber { background: #ffd38a; }
.mint { background: #7cebd0; }
.violet { background: #453073; }
.color-options input:checked + .swatch { outline: 1px solid var(--accent); outline-offset: 3px; }
.range-control > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.range-control output { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.range-control input { display: block; width: 100%; height: 30px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.preview-note { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-top: 5px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.preview-note button { min-height: 36px; padding: 0 2px; border: 0; background: transparent; color: var(--accent-ink); cursor: pointer; }
.preview-note button:hover { color: var(--accent-hover); }
.preview-form :disabled { cursor: default; }
.no-script { color: var(--muted); font-size: 12px; }

.section { padding-block: 67px; }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .download h2 { font-size: clamp(28px, 3.15vw, 39px); line-height: 1.32; font-weight: 770; }
.section-heading p { margin-top: 7px; color: var(--muted); }

.setup { background: var(--white); border-block: 1px solid var(--line); }
.setup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .58fr); align-items: start; gap: clamp(22px, 4.5vw, 55px); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 11px; align-items: start; padding-block: 17px; border-bottom: 1px solid var(--line); counter-increment: step; }
.steps li:first-child { padding-top: 0; }
.steps li::before { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--accent-line); border-radius: 50%; background: var(--soft-accent); color: var(--accent-ink); font-size: 14px; font-weight: 740; content: counter(step); }
.steps h3, .feature h3, .tuning-note h3 { font-size: 18px; line-height: 1.4; }
.steps h3 { margin-top: 2px; line-height: 1.5; }
.steps p, .feature p, .tuning-note p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.steps p { margin-top: 8px; line-height: 1.88; }
.tuning-note { padding: 21px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--surface); }
.tuning-note .settings-path { margin-block: 10px; color: var(--accent-ink); font-weight: 700; }
.settings-path span { margin-inline: 4px; color: var(--accent); }

.features { border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.feature { padding: 19px 24px 17px; }
.feature:first-child { padding-left: 0; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature-icon { display: grid; position: relative; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 8px; color: var(--accent-ink); background: var(--soft-accent); }
.icon-target::before { content: ""; width: 19px; height: 19px; border: 1.5px solid currentColor; border-radius: 50%; background: radial-gradient(circle, currentColor 0 2px, transparent 2.2px); }
.icon-target::after { content: ""; position: absolute; width: 25px; height: 25px; background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat; }
.icon-adjust::before { content: ""; width: 21px; height: 20px; background: repeating-linear-gradient(0deg, transparent 0 4px, currentColor 4px 5.5px, transparent 5.5px 7px); }
.icon-adjust::after { content: ""; position: absolute; top: 14px; left: 14px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 8px 7px currentColor, 2px 14px currentColor; }
.icon-text::before { content: "Aa"; font-size: 16px; font-weight: 730; }

.screenshots { background: #242849; color: #f2f0ff; }
.screenshots .section-heading p { color: #d1d1f0; }
.screenshots :focus-visible { outline-color: #c4bbff; }
.gallery-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 21px; }
.gallery-header .section-heading { margin: 0; }
.gallery-controls { display: flex; gap: 7px; flex-shrink: 0; }
.gallery-controls button { display: grid; place-items: center; width: 41px; height: 41px; padding: 0; border: 1px solid #686c9a; border-radius: 8px; background: #32365c; color: #e0d9ff; cursor: pointer; }
.gallery-controls button::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateX(-2px) rotate(-45deg); }
.gallery-controls .gallery-previous::before { transform: translateX(2px) rotate(135deg); }
.gallery-controls button:not(:disabled):hover { background: #424674; border-color: #a49ae8; }
.gallery-controls button:disabled { opacity: .45; cursor: default; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4.15); gap: 14px; margin: 0; padding: 4px 2px 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-color: #898ab9 transparent; scrollbar-width: thin; list-style: none; }
.gallery-track li { min-width: 0; scroll-snap-align: start; }
.gallery-track a { display: block; border-radius: 10px; }
.gallery-track img { width: 100%; height: auto; aspect-ratio: 480 / 853; object-fit: contain; border: 1px solid #686c9a; border-radius: 10px; background: #3e4269; transition: border-color .18s ease; }
.gallery-track a:hover img { border-color: #b8adff; }
.gallery-track a > span { display: block; margin-top: 8px; color: #e0e0f8; font-size: 14px; text-align: center; }

.faq > .container { max-width: 840px; }
.faq-list { 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: 12px; min-height: 61px; padding: 14px 2px; list-style: none; font-weight: 680; line-height: 1.6; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary, .faq-list summary:hover { color: var(--accent-ink); }
.faq-icon { width: 8px; height: 8px; flex: 0 0 8px; margin-right: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.faq-list details[open] .faq-icon { transform: translateY(2px) rotate(225deg); }
.faq-list details p { max-width: 48em; padding: 2px 21px 18px 2px; color: var(--muted); font-size: 15px; line-height: 1.9; }

.download { padding-block: 0 42px; }
.download-inner { display: grid; justify-items: center; gap: 16px; padding: 33px 18px; border: 1px solid var(--accent-line); border-radius: 17px; background: var(--soft-accent); text-align: center; }
.download-brand { display: grid; justify-items: center; gap: 10px; }
.download-brand img { width: 46px; border-radius: 11px; }
.download h2 { font-size: clamp(24px, 2.8vw, 34px); }
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 12px; padding-block: 23px; }
.footer .brand img { width: 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 5px 18px; }
.footer p { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.image-dialog { width: fit-content; max-width: calc(100% - 22px); max-height: calc(100% - 20px); overflow: auto; padding: 10px 12px 12px; border: 1px solid #7775ad; border-radius: 13px; background: #242849; color: #f7f5ff; }
.image-dialog::backdrop { background: #15182ed5; }
body:has(.image-dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 8px; }
.dialog-header h2 { font-size: 15px; }
.dialog-header button { padding: 7px 12px; border: 1px solid #7775ad; border-radius: 7px; background: #424674; color: #f7f5ff; font-size: 14px; cursor: pointer; }
.dialog-image img { width: auto; max-height: calc(100dvh - 92px); margin-inline: auto; object-fit: contain; border-radius: 5px; }

@media (max-width: 1000px) {
  .section { padding-block: 54px; }
  .gallery-track { grid-auto-columns: calc((100% - 36px) / 3.2); }
}

@media (max-width: 760px) {
  :root { --header-height: 57px; }
  .container { width: calc(100% - 32px); }
  .header-inner { justify-content: space-between; gap: 12px; }
  .brand { font-size: 16px; }
  .header .brand img { width: 30px; }
  .navigation { display: none; }
  .header-button { min-height: 40px; padding-inline: 10px; }
  .hero { padding-block: 32px 35px; }
  .hero h1 { font-size: clamp(41px, 10vw, 59px); }
  .hero-subtitle { margin-top: 7px; font-size: clamp(21px, 5.4vw, 28px); }
  .hero-description { max-width: 23em; margin-top: 8px; font-size: 14px; }
  .hero-copy .primary-button { min-width: min(100%, 210px); min-height: 46px; margin-top: 14px; }
  .hero-preview { margin-top: 23px; }
  .preview-form { grid-template-columns: minmax(0, 1fr); border-radius: 12px; }
  .preview-window { padding: 9px 10px 10px; }
  .preview-header { margin-bottom: 5px; }
  .preview-header h2 { font-size: 16px; }
  .preview-stage { min-height: 149px; }
  .preview-settings { padding: 8px 10px 4px; border-left: 0; border-top: 1px solid var(--line); }
  .shape-options legend { margin-bottom: 4px; }
  .shape-options label > span { min-height: 39px; }
  .adjustments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 12px; margin-top: 7px; }
  .color-field { grid-column: 1 / -1; }
  .color-field legend { float: left; margin-inline-end: 8px; line-height: 34px; }
  .section { padding-block: 39px; }
  .section-heading { margin-bottom: 17px; }
  .section-heading p { margin-top: 5px; font-size: 14px; }
  .setup-layout { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); padding-block: 13px; }
  .steps li::before { width: 27px; height: 27px; }
  .steps h3, .feature h3, .tuning-note h3 { font-size: 16px; }
  .steps p, .feature p, .tuning-note p { font-size: 14px; margin-top: 4px; }
  .steps p { margin-top: 6px; }
  .tuning-note { padding: 14px; }
  .tuning-note .settings-path { margin-block: 6px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { display: grid; grid-template-columns: 37px minmax(0, 1fr); column-gap: 10px; padding: 11px 0; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .feature-icon { width: 37px; height: 37px; grid-row: span 2; margin: 0; }
  .gallery-header { align-items: flex-start; margin-bottom: 12px; gap: 9px; }
  .gallery-controls button { width: 35px; height: 37px; }
  .gallery-track { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; grid-auto-columns: calc((100% - 18px) / 2.18); gap: 9px; }
  .gallery-track a > span { margin-top: 5px; font-size: 13px; }
  .faq-list summary { min-height: 54px; font-size: 15px; }
  .faq-list details p { padding-bottom: 16px; font-size: 14px; }
  .download { padding-bottom: 30px; }
  .download-inner { padding: 21px 12px; gap: 13px; }
  .download-brand img { width: 40px; }
  .download .primary-button { min-height: 45px; min-width: min(100%, 210px); }
  .footer-inner { grid-template-columns: 1fr; gap: 9px; padding-block: 17px; }
  .footer nav { gap: 3px 12px; }
  .footer nav a { font-size: 13px; }
}

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