:root {
  --ink: #211a35;
  --muted: #5e566e;
  --purple: #6343ca;
  --purple-hover: #5135b4;
  --paper: #f9f8fd;
  --line: #e7e1f0;
  --white: #fff;
  --container: 1160px;
  --header-height: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  line-break: strict;
}

body, button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #7b55e9; outline-offset: 4px; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(249, 248, 253, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner { min-height: var(--header-height); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; white-space: nowrap; }
.brand img { border-radius: 10px; }
.main-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; }
.main-nav a { color: #514861; font-size: 14px; font-weight: 550; padding-block: 10px; transition: color .18s ease; }
.main-nav a:hover { color: var(--purple); }

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7caed;
  border-radius: 9px;
  padding: 0 14px;
  min-height: 38px;
  color: #4f33a6;
  background: #f0eaff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.nav-download:hover { color: #fff; background: var(--purple); border-color: var(--purple); }

.hero {
  background:
    radial-gradient(ellipse at 85% 67%, #dfd4fb 0%, transparent 48%),
    radial-gradient(ellipse at 21% 97%, #f5eaf8 0%, transparent 47%),
    linear-gradient(125deg, #fbfaff, #f3edfe);
  border-bottom: 1px solid #eae2f6;
}

.hero-inner {
  min-height: clamp(660px, calc(100svh - 134px), 770px);
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
  padding-block: 70px;
}

.hero h1 { font-size: clamp(46px, 5vw, 76px); font-weight: 850; line-height: 1.12; }
.hero-subtitle { margin-top: 20px; color: #5c3cb2; font-size: clamp(23px, 2.55vw, 36px); font-weight: 750; line-height: 1.38; }
.hero-lead { max-width: 24em; margin-top: 19px; color: #524763; font-size: 17px; line-height: 1.85; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 730;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button-primary { margin-top: 29px; min-width: 224px; background: var(--purple); color: #fff; box-shadow: 0 9px 22px #5e3ab737; }
.button-primary:hover { background: var(--purple-hover); box-shadow: 0 12px 25px #5e3ab752; transform: translateY(-2px); }

.download-icon { position: relative; flex: 0 0 17px; width: 17px; height: 16px; border-bottom: 2px solid currentColor; }
.download-icon::before { content: ""; position: absolute; height: 10px; width: 2px; left: 7.5px; top: 0; background: currentColor; }
.download-icon::after { content: ""; position: absolute; width: 7px; height: 7px; left: 5px; top: 3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.hero-meta { display: flex; gap: 20px; margin-top: 28px; color: #46395b; font-size: 14px; font-weight: 650; }
.hero-meta > span { display: grid; gap: 1px; }
.hero-meta > span + span { border-left: 1px solid #d9cdef; padding-left: 20px; }
.hero-meta small { font-size: 13px; color: #665a74; font-weight: 450; }

.studio {
  min-width: 0;
  padding: 17px;
  border: 1px solid #4b3867;
  border-radius: 24px;
  color: #f5effc;
  background: #241a37;
  box-shadow: 0 28px 60px -22px #4a277f7d, 0 6px 22px #39214f1a;
}

.studio-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.studio-header h2 { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; line-height: 1.4; }
.studio-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid #bba2ef; border-radius: 50%; }
.studio-icon::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #d8c3ff; }

.preview-controls fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.preview-controls label { position: relative; }
.preview-controls input[type="radio"] { position: absolute; inset: 0; z-index: 1; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.preview-controls input[type="radio"]:focus-visible + span { outline: 2px solid #decaff; outline-offset: 2px; }
.preview-controls input[type="radio"]:disabled { cursor: default; }

.preview-controls .background-options { display: flex; padding: 3px; border-radius: 9px; background: #312643; }
.background-options label > span { display: grid; place-items: center; min-width: 49px; min-height: 34px; border-radius: 6px; color: #c2b6d2; font-size: 13px; }
.background-options input:checked + span { color: #fff; background: #514064; }

.preview-stage {
  --marker-size: 48px;
  --marker-color: #ffd381;
  --marker-opacity: 1;
  --grid-line: #b5a3f01e;
  --guide: #b2a0ec5e;
  --stage-glow: #684c9fa3;
  --stage-background: #282039;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.94;
  min-height: 195px;
  overflow: hidden;
  border: 1px solid #69548b;
  border-radius: 13px;
  background:
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) center / 29px 29px,
    linear-gradient(var(--grid-line) 1px, transparent 1px) center / 29px 29px,
    radial-gradient(ellipse at center, var(--stage-glow), transparent 68%),
    var(--stage-background);
}

.preview-stage[data-background="light"] {
  --grid-line: #60458025;
  --guide: #654f8c77;
  --stage-glow: #c9b5f0;
  --stage-background: #eee7fa;
}

.target-guide {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle closest-side, transparent 63%, var(--guide) 63.5%, transparent 64.4%, transparent 95%, var(--guide) 95.5%, transparent 96.5%) center / 100% 91% no-repeat,
    linear-gradient(var(--guide), var(--guide)) center / 100% 1px no-repeat,
    linear-gradient(var(--guide), var(--guide)) center / 1px 100% no-repeat;
  opacity: .72;
}

.stage-corner { position: absolute; width: 17px; height: 17px; border: solid var(--guide); }
.corner-top-left { top: 13px; left: 13px; border-width: 1px 0 0 1px; }
.corner-top-right { top: 13px; right: 13px; border-width: 1px 1px 0 0; }
.corner-bottom-left { bottom: 13px; left: 13px; border-width: 0 0 1px 1px; }
.corner-bottom-right { bottom: 13px; right: 13px; border-width: 0 1px 1px 0; }

.reticle {
  position: relative;
  width: var(--marker-size);
  height: var(--marker-size);
  color: var(--marker-color);
  opacity: var(--marker-opacity);
  filter: drop-shadow(0 0 8px currentColor);
}

.reticle::before, .reticle::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.reticle::before { width: 24%; aspect-ratio: 1; background: currentColor; border-radius: 50%; }
[data-shape="cross"] .reticle::before, [data-shape="cross"] .reticle::after { width: 100%; height: 2px; background: linear-gradient(90deg, currentColor 38%, transparent 38% 62%, currentColor 62%); border-radius: 2px; }
[data-shape="cross"] .reticle { background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px); }
[data-shape="cross"] .reticle::after { transform: translate(-50%, -50%) rotate(90deg); }
[data-shape="ring"] .reticle::before { width: 100%; border: 2px solid currentColor; background: transparent; }
[data-shape="line"] .reticle::before { width: 134%; height: 2px; background: currentColor; border-radius: 1px; }

.preview-controls .style-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.style-options label > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; padding: 4px; border: 1px solid #4a3b5e; border-radius: 9px; color: #ece2f9; background: #302440; font-size: 13px; white-space: nowrap; transition: background .18s ease; }
.style-options label:hover > span { background: #443358; }
.style-options input:checked + span { border-color: #a589da; background: #4b3666; color: #fff; }
.shape-icon { width: 13px; height: 13px; display: inline-block; flex: 0 0 13px; color: #dfc7ff; }
.shape-basic { background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px); }
.shape-cross { background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.shape-ring { border: 1px solid currentColor; border-radius: 50%; }
.shape-line { background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }

.adjustments { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 23px); align-items: start; margin-top: 15px; }
.adjustments legend, .slider > div { font-size: 13px; line-height: 1.5; font-weight: 550; }
.color-options { display: flex; align-items: center; gap: 4px; }
.color-options label { display: grid; place-items: center; width: 31px; height: 34px; }
.color-options label > span:first-of-type { width: 18px; height: 18px; border-radius: 50%; background: var(--swatch); border: 1px solid #ffffff55; }
.color-options input:checked + span { outline: 1px solid #e9d9ff; outline-offset: 3px; }
.slider > div { display: flex; justify-content: space-between; gap: 7px; }
.slider output { color: #cbb5eb; font-size: 12px; font-variant-numeric: tabular-nums; }
.slider input { display: block; width: 100%; height: 33px; margin: 0; accent-color: #c8b0fa; cursor: pointer; }
.slider input:disabled { cursor: default; }

.studio-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; padding-top: 5px; border-top: 1px solid #49395d; color: #c5b5d7; font-size: 12px; }
.studio-bottom button { padding: 4px 0 4px 8px; border: 0; color: #e7d6ff; background: transparent; cursor: pointer; }
.studio-bottom button:hover { color: #ffda96; }
.studio-bottom button:disabled { cursor: default; opacity: .7; }
.no-script { font-size: 12px; color: #e7d6ff; }

.section { padding-block: 80px; }
.section-heading { margin-bottom: 32px; }
.section-heading-centered { text-align: center; }
.section-heading h2, .final-inner h2 { font-size: clamp(28px, 3.15vw, 40px); line-height: 1.32; font-weight: 780; }
.section-heading p { margin-top: 9px; color: var(--muted); }

.features-section { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card {
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(153deg, #fcfaff, #fff 61%);
  box-shadow: 0 6px 18px #33215408;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.feature-card:hover { transform: translateY(-4px); border-color: #c6b0ee; box-shadow: 0 14px 27px #47258516; }
.feature-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 12px; color: #613fb9; background: #eae0fc; }
.feature-target i { width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; background: radial-gradient(circle, currentColor 0 2px, transparent 2.7px); }
.feature-target::before, .feature-target::after { content: ""; position: absolute; width: 26px; height: 1.5px; background: currentColor; }
.feature-target::after { transform: rotate(90deg); }
.feature-adjust { color: #236d66; background: #dff4ed; }
.feature-adjust i, .feature-adjust::after { content: ""; position: absolute; width: 22px; height: 1.5px; border-radius: 1px; background: currentColor; }
.feature-adjust i { transform: translateY(-4px); }
.feature-adjust::after { transform: translateY(5px); }
.feature-adjust::before { content: ""; position: absolute; width: 5px; height: 5px; top: 17px; left: 17px; background: currentColor; border-radius: 50%; box-shadow: 9px 9px currentColor; }
.feature-text { color: #935723; background: #ffeddb; font-size: 19px; font-weight: 700; }
.feature-card h3 { font-size: 19px; font-weight: 730; line-height: 1.4; }
.feature-card p { margin-top: 8px; max-width: 24em; color: var(--muted); font-size: 15px; line-height: 1.76; }

.screenshots-section { background: #f5f1fc; border-block: 1px solid #eae3f4; }

.shot-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  justify-content: center;
  align-items: end;
  gap: clamp(12px, 1.6vw, 24px);
  list-style: none;
  margin: 0 auto;
  padding: 5px 5px 9px;
}

.shot-card { min-width: 0; }
.shot-card a { display: flex; align-items: center; flex-direction: column; gap: 12px; border-radius: 18px; }
.shot-card img { width: auto; max-height: 420px; object-fit: contain; border: 1px solid #ddd2ef; border-radius: 16px; box-shadow: 0 10px 24px #5135771b; transition: box-shadow .2s ease; }
.shot-card a:hover img { box-shadow: 0 12px 28px #51357738; }
.shot-title { color: #4f425e; font-size: 14px; font-weight: 650; text-align: center; }

.guide-section { background: #fff; }
.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 8px 0;
  list-style: none;
  counter-reset: step;
  border-block: 1px solid var(--line);
}

.setup-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-content: start; column-gap: 13px; padding: 20px 23px; counter-increment: step; }
.setup-steps li + li { border-left: 1px solid var(--line); }
.setup-steps li::before { content: counter(step); display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: #5333ab; background: #eee6fd; font-weight: 700; }
.setup-steps strong { align-self: center; font-size: 17px; line-height: 1.4; }
.setup-steps p { grid-column: 2; margin-top: 8px; color: var(--muted); font-size: 15px; }

.faq-section { padding-top: 58px; background: var(--paper); border-top: 1px solid #eee8f7; }
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-list details[open] { border-color: #d9caef; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 56px; padding: 13px 19px; font-size: 16px; line-height: 1.5; font-weight: 650; cursor: pointer; list-style: none; border-radius: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--purple); }
.faq-toggle { position: relative; width: 16px; height: 16px; flex: 0 0 16px; color: #7050c0; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; inset: 7px 1px auto; height: 2px; border-radius: 1px; background: currentColor; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-list details[open] .faq-toggle::after { transform: none; }
.faq-list details p { margin: 0 19px; padding: 11px 0 15px; border-top: 1px solid #eee9f5; color: var(--muted); font-size: 15px; line-height: 1.8; }

.final-cta {
  padding-block: 56px;
  background:
    repeating-radial-gradient(circle at center, #eee1ff20 0 1px, transparent 1.5px 33px),
    radial-gradient(ellipse at center, #7050a3, transparent 62%),
    linear-gradient(110deg, #2e1e50, #422f69);
  color: #fff;
}

.final-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.final-inner img { border-radius: 17px; }
.final-inner h2 { font-size: clamp(26px, 2.8vw, 36px); }
.button-final { min-width: 224px; background: #f5edff; color: #402773; }
.button-final:hover { background: #fff; box-shadow: 0 9px 24px #22153355; transform: translateY(-2px); }

.site-footer { padding: 36px 0 29px; background: #211831; color: #f7f0ff; }
.footer-inner { display: grid; justify-items: center; gap: 15px; text-align: center; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-nav a { padding-block: 4px; color: #ded1eb; font-size: 14px; transition: color .18s ease; }
.footer-nav a:hover { color: #ffd381; }
.footer-inner > p { color: #bfb0ce; font-size: 13px; }

.image-dialog { width: fit-content; max-width: calc(100% - 24px); max-height: calc(100% - 22px); padding: 10px 12px 12px; overflow: auto; border: 1px solid #665082; border-radius: 14px; background: #261a39; color: #fff; }
.image-dialog::backdrop { background: #170e25d6; }
.image-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 8px; }
.image-toolbar h2 { font-size: 15px; }
.image-toolbar button { background: #3d2d55; color: #fff; border: 1px solid #7b6595; border-radius: 7px; padding: 7px 12px; cursor: pointer; font-size: 14px; }
.image-content img { width: auto; max-height: calc(100dvh - 90px); margin-inline: auto; object-fit: contain; border-radius: 5px; }
body:has(.image-dialog[open]) { overflow: hidden; }

@media (max-width: 1000px) {
  .nav-inner { gap: 20px; }
  .main-nav { gap: 18px; }
  .hero-inner { gap: 26px; min-height: 620px; padding-block: 54px; }
  .adjustments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 14px; }
  .adjustments .palette { grid-column: 1 / -1; }
  .palette legend { float: left; margin-right: 9px; line-height: 34px; }
  .section { padding-block: 64px; }
  .setup-steps li { padding-inline: 15px; }
}

@media (max-width: 760px) {
  :root { --header-height: 58px; }
  .container { width: min(var(--container), calc(100% - 36px)); }
  .nav-inner { justify-content: space-between; gap: 12px; }
  .site-header .brand { font-size: 16px; }
  .site-header .brand img { width: 31px; }
  .main-nav { display: none; }
  .nav-download { min-height: 42px; padding-inline: 11px; font-size: 13px; }
  .hero-inner { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 34px 35px; }
  .hero h1 { font-size: clamp(43px, 11vw, 61px); }
  .hero-subtitle { margin-top: 9px; font-size: clamp(22px, 5.7vw, 30px); }
  .hero-lead { max-width: 34em; margin-top: 10px; font-size: 15px; line-height: 1.75; }
  .button-primary { min-width: 0; margin-top: 18px; min-height: 48px; width: 100%; }
  .hero-meta { margin-top: 14px; color: #5e506e; font-size: 12px; gap: 12px; }
  .hero-meta > span { display: flex; gap: 5px; align-items: baseline; }
  .hero-meta > span + span { padding-left: 12px; }
  .hero-meta small { font-size: inherit; }
  .studio { padding: 12px; border-radius: 18px; }
  .studio-header { margin-bottom: 9px; }
  .studio-header h2 { font-size: 16px; }
  .preview-stage { min-height: 150px; aspect-ratio: 1.85; }
  .preview-controls .style-options { gap: 5px; }
  .style-options label > span { min-height: 42px; gap: 5px; }
  .adjustments { margin-top: 9px; }
  .section { padding-block: 44px; }
  .section-heading { margin-bottom: 20px; }
  .section-heading p { margin-top: 7px; font-size: 14px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .feature-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 4px 12px; padding: 15px; }
  .feature-icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; border-radius: 10px; }
  .feature-adjust::before { top: 13px; left: 13px; }
  .feature-card h3 { font-size: 17px; }
  .feature-card p { margin: 0; max-width: none; font-size: 14px; }
  .shot-list {
    display: flex;
    justify-content: start;
    gap: 9px;
    width: calc(100% + 36px);
    max-width: none;
    margin-inline: -18px;
    padding: 2px 18px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 18px;
    scroll-snap-type: x proximity;
  }
  .shot-card { flex: 0 0 calc((100% - 18px) / 2.2); scroll-snap-align: start; }
  .shot-card:has(img.landscape) { flex-basis: 74%; }
  .shot-card img { max-height: none; width: 100%; border-radius: 8px; }
  .shot-card a { gap: 8px; border-radius: 8px; }
  .shot-title { font-size: 13px; }
  .setup-steps { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .setup-steps li { grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; padding: 14px 0; }
  .setup-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .setup-steps li::before { width: 27px; height: 27px; font-size: 14px; }
  .setup-steps p { font-size: 14px; margin-top: 5px; }
  .faq-list summary { font-size: 15px; padding-inline: 13px; min-height: 51px; }
  .faq-list details p { margin-inline: 13px; font-size: 14px; }
  .final-cta { padding-block: 33px; }
  .final-inner { grid-template-columns: auto minmax(0, 1fr); gap: 14px 12px; }
  .final-inner img { width: 47px; border-radius: 11px; }
  .final-inner h2 { font-size: 25px; }
  .button-final { grid-column: 1 / -1; min-height: 47px; }
  .site-footer { padding-block: 25px; }
  .footer-nav { gap: 2px 13px; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .shot-list {
    grid-auto-columns: calc((100% - 32px) / 3.4);
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  .shot-card { scroll-snap-align: start; }
}

@media (hover: hover) and (pointer: fine) and (max-width: 1000px) {
  .shot-list { cursor: grab; }
  .shot-list.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
}

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