:root {
  color-scheme: light;
  --brand: #523496;
  --accent: #6340b6;
  --ink: #231e2b;
  --muted: #645e70;
  --line: #e5e1ec;
  font: 16px/1.65 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
body, figure, h1, h2, h3, dl, dd { margin: 0; }
body { background: white; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #9875dc; outline-offset: 3px;
}
.wrap { width: min(88.9%, 1280px); margin-inline: auto; }
.skip { position: absolute; top: -6em; left: 1rem; z-index: 5; background: white; padding: .6em; }
.skip:focus { top: 0; }
.brandbar { background: var(--brand); color: white; }
.mast, .brand, .actions, .tabs, .links, .form-buttons { display: flex; align-items: center; }
.mast { gap: 16px; min-height: clamp(76px, 7vw, 101px); padding-block: 12px; }
.brand { gap: 14px; font-size: clamp(27px, 2.65vw, 38px); font-weight: 720; line-height: 1.2; letter-spacing: -.04em; }
.logo { display: grid; place-items: center; background: white; width: clamp(46px, 4.3vw, 62px); aspect-ratio: 1; border-radius: 12px; }
.logo img { width: 80%; }
.wordmark { display: block; width: clamp(188px, 19vw, 272px); height: auto; filter: brightness(0) invert(1); }
.actions { margin-left: auto; gap: 12px; }
.actions button, .btn, .secondary { border: 1px solid transparent; padding: .6em 1.1em; line-height: 1.45; border-radius: 9px; font-weight: 650; }
.actions button { background: transparent; border-color: #b8a3da; color: white; }
.actions .download { background: white; color: #472984; border-color: white; }
.download span { margin-right: .3em; }
.actions button:hover { box-shadow: 0 0 0 2px #ffffff55; }
nav { background: #ede6fa; border-bottom: 1px solid #d9cfea; }
.nav-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 20px; }
.visit-note { margin: 0; padding-block: 9px; color: #5b4872; font-size: .86rem; line-height: 1.6; }
.visit-note strong { color: var(--brand); font-size: 1.12em; font-variant-numeric: tabular-nums; }
.visit-note small { color: #665573; font-size: .78rem; margin-left: .55em; }
.tabs { min-width: 0; max-width: 100%; }
.tabs { min-height: clamp(54px, 4.5vw, 64px); gap: 23px; overflow-x: auto; scrollbar-width: thin; }
.tabs a { flex: none; align-self: stretch; display: grid; align-items: center; position: relative; color: #4e435f; font-size: 1.125rem; }
.tabs a[aria-current] { font-weight: 700; color: var(--brand); }
.tabs a[aria-current]::after { content: ""; position: absolute; bottom: 0; width: 100%; height: 4px; background: #613ba9; }
.tabs span { color: #89749f; user-select: none; }
.tabs a:hover, .text-link:hover { color: #432078; }
.text-link:hover { text-decoration: underline; text-underline-offset: .28em; }
.hero { overflow: hidden; background: linear-gradient(175deg, #fbfaff, #f8f5fd); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: .96fr 1.04fr; align-items: center; gap: clamp(36px, 6vw, 88px); padding-block: clamp(48px, 4.9vw, 72px) clamp(46px, 4.2vw, 62px); }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .035em; }
.eyebrow span { margin-inline: 10px; }
h1, h2, h3 { line-height: 1.25; }
.hero h1 { font-size: clamp(42px, 4.25vw, 62px); line-height: 1.38; margin: .42em 0 .48em; letter-spacing: -.045em; }
em { color: var(--accent); font-style: normal; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.85; max-width: 24em; color: var(--muted); }
.links, .form-buttons { gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.btn { background: var(--accent); color: white; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { background: var(--brand); }
.btn:disabled { background: #e6dfef; color: #5f566b; cursor: default; }
.text-link { color: var(--accent); font-weight: 650; }
.text-link b { margin-left: 4px; }
.hero-media { position: relative; }
.orientation { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(36px, 6vw, 88px); padding-block: clamp(48px, 5vw, 76px); border-bottom: 1px solid var(--line); }
.orientation-copy { grid-column: 2; grid-row: 1; }
.orientation-copy h2 { line-height: 1.35; }
.orientation .gallery { grid-column: 1; grid-row: 1; }
.gallery { position: relative; width: 100%; min-width: 0; margin-inline: auto; }
.gallery-stage { position: relative; isolation: isolate; width: 100%; }
.portrait-gallery { max-width: 510px; }
.portrait-gallery .gallery-stage { aspect-ratio: 1.14; --card: 39%; --offset: 43%; }
.landscape-gallery .gallery-stage { aspect-ratio: 3.12; --card: 60%; --offset: 25%; }
.gallery-slide { position: absolute; top: 50%; left: 50%; width: var(--card); height: auto;
  border-radius: 3%; box-shadow: 0 12px 28px #28184021;
  transform: translate(-50%, -50%) translate(calc(var(--slot) * var(--offset)), calc(var(--depth) * 3%)) scale(calc(1 - var(--depth) * .145)) rotate(calc(var(--slot) * 1.5deg));
  opacity: calc(1 - var(--depth) * .32);
  transition: transform .65s ease, opacity .65s ease;
}
.gallery-slide[data-slot="-3"] { visibility: hidden; opacity: 0; }
.gallery-slide.jump { transition: none; }
.portrait-gallery .gallery-slide { border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 10px #28184020); }
.gallery-bar { display: flex; justify-content: space-between; align-items: center; gap: .6em; margin: .8em auto 0; }
.gallery-bar figcaption { margin: 0; font-size: .88rem; }
.gallery-controls { display: flex; gap: 4px; }
.gallery-controls button { min-width: 34px; height: 34px; border: 1px solid #e0d6ee; border-radius: 50%; background: #fff; color: var(--brand); font-size: 1.15rem; line-height: 1; }
.gallery-controls button:hover { background: #ede6fa; }
.frame { position: relative; padding: 8px; border: 1px solid #d4cce3; border-radius: 17px; background: white; }
.viewfinder { aspect-ratio: 16/9; display: grid; place-items: center; background: #f5f3f9; color: #786d84; border-radius: 10px; position: relative; }
.viewfinder::before { content: ""; position: absolute; inset: 6%; pointer-events: none;
  --h: linear-gradient(#baafcd, #baafcd) no-repeat;
  background: var(--h) top left / 16px 2px, var(--h) top left / 2px 16px, var(--h) top right / 16px 2px, var(--h) top right / 2px 16px, var(--h) bottom left / 16px 2px, var(--h) bottom left / 2px 16px, var(--h) bottom right / 16px 2px, var(--h) bottom right / 2px 16px;
}
figcaption { margin: .8em .3em 0; color: var(--muted); }
.hero-media figcaption { position: relative; }
.particles { pointer-events: none; position: absolute; inset: -16% -6%; }
.particles i { position: absolute; border-radius: 50%; background: #b8a3d9; opacity: .45; animation: drift 8s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(5px, -9px); opacity: .23; } }
.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-block: clamp(42px, 4vw, 62px); align-items: center; }
h2 { font-size: clamp(25px, 2.6vw, 39px); letter-spacing: -.035em; }
h3 { font-size: 1.22rem; }
p { color: var(--muted); overflow-wrap: anywhere; }
.condition { color: var(--ink); margin-top: 1.5em; font-size: 1.1rem; }
.evidence .text-link { display: inline-block; margin-top: 12px; }
.metrics { display: grid; grid-template-columns: 1.12fr 1.06fr .9fr; }
.metrics div { border-left: 1px solid var(--line); padding-left: clamp(12px, 1.45vw, 22px); }
.metrics dd { font-size: clamp(26px, 3.2vw, 46px); line-height: 1.3; font-weight: 720; color: var(--accent); }
.metrics dt { color: var(--muted); margin-top: .65em; }
.features { background: #faf8fd; border-block: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-block: 58px; }
.feature-grid h2 { font-size: 1.45rem; }
footer { color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 24px; font-size: .875rem; }
footer a { font-weight: 700; color: var(--brand); }
.page { padding-block: clamp(40px, 5vw, 74px) 72px; animation: enter .22s ease-out; }
@keyframes enter { from { opacity: .4; transform: translateY(3px); } }
.page h1 { font-size: clamp(34px, 3.6vw, 52px); }
.intro-copy { max-width: 55em; margin-block: 1em 2.4em; font-size: 1.125rem; }
.page h2, dialog h2 { font-size: clamp(23px, 2vw, 30px); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; }
.version { scroll-margin: 1em; }
.version summary { padding: 18px 0; display: grid; grid-template-columns: 90px 1fr auto; align-items: baseline; gap: 12px; list-style: none; font-weight: 650; }
.version summary::-webkit-details-marker { display: none; }
.version summary::after { content: "+"; color: var(--accent); font-size: 1.25em; }
.version[open] > summary::after { content: "−"; }
.ver { color: var(--accent); font: 650 1.12rem/1.5 Consolas, monospace; }
.version-body { margin: 0 0 26px 102px; max-width: 60em; }
.version-body > p { margin-top: 0; }
.record { background: #f8f5fc; border-left: 3px solid #aa93d0; padding: 16px 20px; margin-block: 10px; }
.record h3 { font-size: 1.05rem; }
.record p { margin: .5em 0 0; }
.sample { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 70px); align-items: center; padding-block: 32px; border-top: 1px solid var(--line); }
.sample video { background: #16121c; aspect-ratio: 16/9; }
.vertical-sample video { aspect-ratio: 9/16; max-width: 310px; justify-self: center; }
.sample figcaption { margin: 0; }
.sample h2 { color: var(--ink); }
.sample .sample-meta { font-size: .91rem; font-weight: 650; color: var(--brand); }
.frame img, .frame video, #sample-list video { width: 100%; height: auto; display: block; border-radius: 9px; }
.test-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 76px); align-items: start; }
.guide { padding-left: 1.6rem; }
.guide-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: #efeaf7; }
.guide-switch button { border: 0; border-radius: 7px; padding: .55em 1.1em; color: var(--brand); background: transparent; }
.guide-switch [aria-pressed="true"] { color: white; background: var(--brand); }
.guide-image { padding-bottom: .7em; color: var(--brand); }
.guide-image img { display: block; max-width: 100%; max-height: 420px; margin: 1rem auto 0; }
.guide li { padding: .8em 0 .7em .65em; }
.guide li::marker { color: var(--accent); font-weight: 700; }
.guide p { margin: .5em 0 0; }
.tutorial { max-width: 560px; margin-top: 1.5em; }
.form-card { background: #f8f5fc; border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 2.4vw, 34px); }
label { display: block; font-weight: 650; margin-top: 14px; }
small { color: var(--muted); font-weight: 400; }
input, textarea { display: block; margin-top: 5px; width: 100%; min-width: 0; background: white; border: 1px solid #cfc6dc; border-radius: 7px; padding: .62em .8em; color: var(--ink); font-weight: 400; }
textarea { resize: vertical; }
.rating { min-width: 0; margin: 16px 0 0; border: 0; padding: 0; }
.rating legend { padding: 0; font-weight: 650; }
.stars { display: inline-flex; }
.stars label { position: relative; margin: 0; cursor: pointer; }
.stars input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.stars span { display: grid; place-items: center; width: 42px; height: 44px; border-radius: 6px; color: #78698c; font: 32px/1 "Segoe UI Symbol", sans-serif; }
.stars span::before { content: "☆"; }
.stars label:has(:checked) span::before, .stars label:has(~ label :checked) span::before { content: "★"; color: var(--accent); }
.stars input:focus-visible + span { outline: 2px solid var(--accent); }
.form-buttons { gap: 10px; margin-top: 20px; }
.secondary { border-color: #c9bed8; background: white; color: var(--brand); }
.status { margin-bottom: 0; color: var(--brand); }
.author-grid { margin-top: 42px; display: grid; grid-template-columns: minmax(140px, .36fr) 1fr; gap: clamp(24px, 5vw, 72px); max-width: 1000px; }
.portrait { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.page .author-name { font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; }
.bio { font-size: 1.1rem; color: var(--ink); }
.bio-toggle { padding: .15em .4em; border: 0; background: transparent; color: var(--accent); font-size: .86rem; text-decoration: underline; text-underline-offset: .2em; }
.bio-more { padding: .35em 1em; border-left: 2px solid #b7a2d9; background: #f8f5fc; }
.author-grid h3 { margin-top: 1.7em; }
dialog { width: min(92%, 570px); max-height: 84dvh; border: 1px solid #d9cfea; border-radius: 16px; padding: 0; color: var(--ink); }
dialog::backdrop { background: #20142c66; }
.dialog-body { padding: clamp(24px, 4vw, 40px); position: relative; }
.dialog-body h2 { padding-right: 36px; margin-bottom: 20px; }
.close { position: absolute; right: 12px; top: 12px; border: 0; border-radius: 8px; background: #f3edf9; color: var(--brand); width: 40px; height: 40px; font-size: 24px; }
.dialog-lead { font-size: 1.2em; color: var(--brand); }
.facts div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.facts dt { color: var(--muted); }
dialog summary { padding-block: .8em; font-weight: 650; }
dialog .text-link { display: inline-block; margin-top: 1em; }
code { font: .96em/1.5 Consolas, monospace; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .orientation, .sample { grid-template-columns: 1fr; }
  .orientation-copy, .orientation .gallery { grid-column: auto; grid-row: auto; }
  .sample { gap: 18px; }
  .sample figcaption { grid-row: 1; }
  .vertical-sample video { max-width: min(100%, 320px); }
  .hero-grid, .evidence, .test-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 620px; width: 100%; }
  .hero-grid { gap: 34px; }
  .feature-grid { grid-template-columns: 1fr; gap: 18px; }
  .evidence { gap: 24px; }
  .nav-row { display: block; }
  .visit-note { border-top: 1px solid #dacfeb; }
}
@media (max-width: 560px) {
  .wrap { width: 90%; }
  .tabs { gap: 15px; }
  .tabs a { font-size: 1rem; }
  .mast { gap: 7px; flex-wrap: wrap; }
  .wordmark { width: clamp(128px, 36vw, 194px); }
  .brand { font-size: 23px; gap: 7px; }
  .logo { width: 39px; border-radius: 9px; }
  .actions { gap: 6px; }
  .actions button, .actions .download { padding: 8px; font-size: .83rem; }
  .download span { margin: 0; }
  .metrics dt { font-size: .78rem; }
  .author-grid { grid-template-columns: 1fr; }
  .portrait { width: min(58%, 205px); }
  .version summary { grid-template-columns: 64px 1fr auto; gap: 7px; }
  .version-body { margin-left: 0; }
}
@media (max-width: 350px) {
  .mast { flex-wrap: wrap; }
  .brand { font-size: 21px; }
  .logo { width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-slide { transition: none; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

#feedback { margin: 0; padding: 0; border: 0; min-width: 0; }
