:root {
  --base: #161418;
  --deep: #100f13;
  --surface: #211e24;
  --line: #3b333d;
  --ink: #fff5f1;
  --muted: #c6bbc5;
  --accent: #ff5b65;
  --accent-hover: #ff8188;
  --measure: 1120px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--base); color: var(--ink); font: 16px/1.8 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", system-ui, sans-serif; line-break: strict; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }
.container { width: min(var(--measure), calc(100% - 56px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 3; top: 0; background: #151318; border-bottom: 1px solid #302731; }
.header-inner { display: flex; align-items: center; gap: 29px; min-height: 67px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; font-size: 19px; font-weight: 780; white-space: nowrap; }
.brand img { width: 37px; height: 37px; border-radius: 9px; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px clamp(15px, 2.8vw, 36px); margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.site-nav a:hover, .site-footer nav a:hover { color: var(--accent-hover); }
.header-action { position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; min-height: 36px; padding: 3px 15px; border: 1px solid #96505b; border-radius: 8px; color: #ffe6e5; font-size: 14px; font-weight: 660; }
.header-action::after { position: absolute; inset: -4px 0; content: ""; }
.header-action:hover { border-color: var(--accent); background: #37232d; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(494px, 46vw, 637px); overflow: hidden; background: #141217; }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: min(100%, 1500px); height: 100%; object-fit: cover; object-position: 70% 46%; }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #161318 0%, #161318f0 24%, #16131832 72%, transparent), linear-gradient(0deg, #161418, transparent 21%); content: ""; }
.hero-inner { padding-block: 72px 85px; }
.hero h1 { font-size: clamp(64px, 7.6vw, 111px); font-weight: 830; letter-spacing: -.05em; line-height: 1.11; }
.hero-subtitle { margin-top: 22px; color: #ff9a9f; font-size: clamp(23px, 3vw, 40px); line-height: 1.32; font-weight: 740; }
.hero-description { max-width: 26em; margin-top: 18px; color: #e4d6df; line-height: 1.9; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: clamp(220px, 22vw, 275px); max-width: 100%; min-height: 52px; padding: 11px 22px; border: 1px solid #ff8590; border-radius: 9px; background: var(--accent); color: #221419; font-weight: 750; white-space: nowrap; box-shadow: 0 9px 25px #300d19aa; transition: background .18s, transform .18s; }
.button:hover { transform: translateY(-2px); background: var(--accent-hover); }
.hero .button { margin-top: 28px; }
.down-arrow { position: relative; width: 15px; height: 16px; flex: 0 0 auto; background: linear-gradient(currentColor,currentColor) center 1px / 2px 11px no-repeat; }
.down-arrow::after { position: absolute; top: 6px; left: 3px; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); content: ""; }
.button[data-download] .down-arrow { border-bottom: 1.5px solid; height: 19px; }

.section { padding-block: clamp(60px, 7vw, 89px); }
.section-heading { margin-bottom: 31px; text-align: center; }
.section-heading h2, .download-brand h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 780; line-height: 1.25; }
.section-heading p { margin-top: 11px; color: var(--muted); }
.screenshots { padding-top: clamp(39px, 5vw, 63px); background: linear-gradient(#161418, #1e1a21); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 2.8vw, 33px); max-width: 830px; margin-inline: auto; }
.shot-link { min-width: 0; overflow: hidden; display: block; border: 1px solid #57505c; border-radius: 14px; background: #151418; transition: border-color .18s, box-shadow .18s; }
.shot-link:hover { border-color: #eb858d; box-shadow: 0 12px 31px #0b070bb0; }
.shot-link img { width: 100%; height: auto; aspect-ratio: 9 / 16; }

.features { border-top: 1px solid #302a33; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 25px 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); transition: border-color .18s, background .18s, transform .18s; }
.feature:hover { transform: translateY(-3px); border-color: #a45868; background: #2b202a; }
.feature h3, .guide h3 { margin-top: 12px; font-size: 20px; line-height: 1.45; font-weight: 730; }
.feature p, .guide p { margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.82; }
.feature-icon { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #38242e; color: #ff8c94; }
.feature-icon::before, .feature-icon::after { content: ""; }
.feature-icon::after { position: absolute; }
.icon-calendar::before { width: 19px; height: 17px; border: 1.8px solid; border-radius: 3px; background: linear-gradient(currentColor,currentColor) center 5px / 100% 1.5px no-repeat; }
.icon-calendar::after { top: 11px; width: 10px; height: 5px; border-inline: 1.8px solid; }
.icon-search::before { width: 14px; height: 14px; margin: -4px 4px 0 0; border: 1.8px solid; border-radius: 50%; }
.icon-search::after { left: 26px; top: 25px; width: 2px; height: 7px; transform: rotate(-45deg); background: currentColor; }
.icon-filter::before { width: 20px; height: 17px; background: repeating-linear-gradient(to bottom,currentColor 0 1.7px,transparent 1.7px 7px); }
.icon-filter::after { left: 14px; top: 10px; width: 5px; height: 6px; border: 1.5px solid; border-radius: 2px; background: #38242e; box-shadow: 8px 7px 0 -1px #38242e,8px 7px 0 .4px currentColor; }
.icon-shelves::before { width: 19px; height: 18px; border: 1.8px solid; border-radius: 3px; background: linear-gradient(currentColor,currentColor) center / 1.5px 100% no-repeat; }
.icon-film::before { width: 22px; height: 16px; border: 1.8px solid; border-radius: 3px; }
.icon-film::after { width: 0; height: 0; border: 4.5px solid transparent; border-left: 6px solid; transform: translateX(2px); }
.icon-history::before { width: 19px; height: 19px; border: 1.8px solid; border-radius: 50%; }
.icon-history::after { width: 5px; height: 6px; top: 15px; left: 20px; border: solid; border-width: 0 0 1.7px 1.7px; }

.guide { border-block: 1px solid #372e38; background: #1a171d; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-grid article { padding: 6px clamp(17px, 3vw, 35px) 8px; border-left: 1px solid #51333b; }
.guide h3 { margin: 0; color: #ffb2b6; }
.faq-inner { max-width: 850px; }
.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: 17px; min-height: 62px; padding: 14px 3px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 680; line-height: 1.6; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { width: 8px; height: 8px; flex: 0 0 auto; margin: 0 4px 3px 0; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); content: ""; }
.faq-list details[open] summary::after { transform: rotate(225deg); margin: 4px 4px 0 0; }
.faq-list summary:hover, .faq-list details[open] summary { color: #ffabaf; }
.faq-list details p { max-width: 44em; padding: 0 25px 18px 3px; color: var(--muted); font-size: 15px; line-height: 1.9; }

.download-section { padding-bottom: clamp(54px, 7vw, 85px); }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 5vw, 52px); border: 1px solid #754151; border-radius: 20px; background: radial-gradient(ellipse at 80% 0, #482332, transparent 70%), #231a23; }
.download-brand { display: flex; align-items: center; gap: 16px; }
.download-brand img { width: 59px; height: 59px; border-radius: 13px; }
.download-brand h2 { font-size: clamp(27px, 4vw, 40px); }
.site-footer { background: var(--deep); border-top: 1px solid #2f2831; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 24px; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 30px; height: 30px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 17px; color: var(--muted); font-size: 14px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer p { color: #ac9fae; font-size: 13px; }

.image-dialog { width: min(515px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 13px; overflow: auto; border: 1px solid #584751; border-radius: 15px; background: #241f27; color: var(--ink); }
.image-dialog::backdrop { background: #09070bd9; }
body:has(.image-dialog[open]) { overflow: hidden; }
.dialog-heading, .dialog-controls { display: flex; align-items: center; justify-content: space-between; gap: 11px; }
.dialog-heading h2 { font-size: 18px; }
.image-dialog button { min-height: 44px; padding: 5px 12px; border: 1px solid #6d5967; border-radius: 8px; background: #211a25; cursor: pointer; }
.image-dialog button:hover { border-color: var(--accent); }
.image-dialog button:disabled { opacity: .55; cursor: default; }
.dialog-image { margin-block: 10px; }
.dialog-image img { width: auto; height: auto; max-height: min(70vh, 768px); margin-inline: auto; border: 1px solid #604d5b; border-radius: 8px; }
.dialog-controls { color: var(--muted); font-size: 14px; }

@media (max-width: 720px) {
  html { scroll-padding-top: 116px; }
  .container { width: calc(100% - 36px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding-block: 8px 3px; }
  .brand { font-size: 17px; }
  .brand img { width: 33px; height: 33px; }
  .site-nav { grid-column: 1 / -1; justify-content: space-between; gap: 3px 8px; margin: 0; }
  .site-nav a { min-height: 42px; font-size: 14px; }
  .header-action { grid-column: 2; grid-row: 1; }
  .hero { min-height: 407px; }
  .hero-art { object-position: 71% center; }
  .hero::after { background: linear-gradient(90deg, #151218ed, #15121887 51%, #15121838), linear-gradient(0deg, #161418, transparent 45%); }
  .hero-inner { padding-block: 48px 51px; }
  .hero h1 { font-size: clamp(58px, 13vw, 75px); }
  .hero-subtitle { margin-top: 12px; font-size: clamp(22px, 5.5vw, 28px); }
  .hero-description { max-width: 25em; margin-top: 12px; font-size: 15px; }
  .hero .button { margin-top: 21px; }
  .button { width: 100%; }
  .section { padding-block: 53px; }
  .screenshots { padding-top: 28px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading p { font-size: 14px; }
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max(128px, 43%); gap: 10px; padding: 4px 4px 9px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-color: #8b6c80 transparent; scrollbar-width: thin; }
  .shot-link { border-radius: 9px; scroll-snap-align: start; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature { padding: 16px 13px 18px; }
  .feature-icon { width: 39px; height: 39px; }
  .feature h3, .guide h3 { font-size: 17px; }
  .feature p, .guide p { font-size: 14px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .guide-grid article { padding-left: 16px; }
  .faq-list summary { min-height: 56px; font-size: 15px; }
  .faq-list details p { font-size: 14px; }
  .download-panel { flex-direction: column; gap: 13px; text-align: center; }
  .download-brand img { width: 43px; height: 43px; }
  .footer-inner { flex-direction: column; gap: 7px; }
  .site-footer nav { justify-content: center; }
}

@media (hover: none) {
  .button:hover, .feature:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
