:root {
  --ink: #151a18;
  --muted: #59635f;
  --paper: #f6f4ed;
  --white: #ffffff;
  --line: #ccd2ce;
  --green: #087a55;
  --green-dark: #075b42;
  --mint: #dff3e9;
  --coral: #ef725d;
  --yellow: #f4d35e;
  --shadow: 0 18px 50px rgba(21, 26, 24, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }

.site-header { min-height: 72px; padding: 12px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: rgba(246, 244, 237, .95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 7px; }
nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--green); }

.hero { min-height: 620px; padding: 76px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: center; gap: 72px; position: relative; overflow: hidden; background-color: var(--paper); background-position: center; background-size: cover; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(246,244,237,.98) 0%, rgba(246,244,237,.94) 45%, rgba(246,244,237,.68) 100%); }
.hero::after { content: ""; width: 280px; height: 280px; position: absolute; right: 3%; bottom: -160px; border: 48px solid rgba(8,122,85,.14); border-radius: 50%; }
.hero > * { position: relative; z-index: 1; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.04; letter-spacing: 0; overflow-wrap: anywhere; }
.summary { max-width: 680px; margin-top: 24px; }
.summary p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 7px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .shot:focus-visible, summary:focus-visible, .lightbox-close:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { border-color: var(--ink); background: transparent; }
.source-line { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.source-line a, .text-link { color: var(--green-dark); font-weight: 750; }

.product-panel { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.product-head { display: flex; align-items: center; gap: 18px; min-width: 0; }
.icon-frame { width: 86px; height: 86px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; background: var(--mint); border: 1px solid var(--line); border-radius: 8px; position: relative; }
.icon-frame img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.image-fallback { color: var(--green-dark); font-weight: 800; position: absolute; inset: 0; display: grid; place-items: center; }
.product-name { min-width: 0; }
.product-name p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; }
.product-name h2 { margin: 4px 0 0; font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.facts { margin: 26px 0; display: grid; gap: 0; border-block: 1px solid var(--line); }
.facts > div { padding: 13px 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 14px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.facts > [data-section]:has(dd:empty) { display: none; }
.notice { padding: 15px; display: grid; gap: 3px; background: #fff8db; border-left: 4px solid var(--yellow); }
.notice span { color: var(--muted); font-size: .88rem; }

.check-band, .screenshots, .install-band, .faq { padding: 88px max(24px, calc((100vw - 1180px) / 2)); }
.check-band { background: var(--ink); color: var(--white); }
.check-band .section-kicker { color: #71d4ac; }
.section-title { max-width: 720px; margin-bottom: 40px; }
.section-title h2, .install-copy h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: 0; }
.check-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; list-style: none; background: #48504d; border: 1px solid #48504d; }
.check-list li { min-height: 220px; padding: 28px; display: grid; align-content: space-between; background: var(--ink); }
.check-list li > span { color: #71d4ac; font-size: .8rem; font-weight: 800; }
.check-list h3 { margin: 34px 0 7px; font-size: 1.25rem; }
.check-list p { margin: 0; color: #c8cfcc; }

.screenshots { background: var(--white); }
.shot-grid { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: repeat(2, 260px); gap: 16px; }
.shot { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #e8ecea; position: relative; }
.shot-main { grid-row: 1 / span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; position: relative; z-index: 1; }
.shot:hover img { transform: scale(1.025); }
.shot .image-fallback { color: var(--muted); }
.shot[data-section]:has(img:not([src])), .shot[data-section]:has(img[src=""]) { display: none; }
.screenshots-empty { display: none; margin: 0; padding: 28px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; }
.screenshots.no-shots .shot-grid { display: none; }
.screenshots.no-shots .screenshots-empty { display: block; }

.install-band { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 80px; align-items: center; background: var(--mint); }
.installation { margin-top: 24px; max-width: 720px; color: var(--muted); }
.installation p { margin: 0; white-space: pre-line; }
.empty-install { display: none; margin-top: 24px; color: var(--muted); }
.installation:has([data-text]:empty) { display: none; }
.installation:has([data-text]:empty) + .empty-install { display: block; }
.download-box { padding: 30px; background: var(--white); border: 1px solid rgba(8, 122, 85, .28); border-radius: 8px; box-shadow: var(--shadow); }
.download-box > p { margin: 0; color: var(--muted); }
.download-box h2 { margin: 6px 0 22px; font-size: 1.55rem; line-height: 1.25; overflow-wrap: anywhere; }
.button-wide { width: 100%; }
.text-link { display: block; margin-top: 16px; text-align: center; }
.download-box small { margin-top: 18px; display: block; color: var(--muted); line-height: 1.55; }

.faq { background: var(--paper); }
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 22px 42px 22px 0; font-weight: 800; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 8px; top: 17px; color: var(--green); font-size: 1.5rem; }
details[open] summary::after { content: "−"; }
details p { margin: -6px 0 22px; color: var(--muted); }

.download-hint { max-width: min(420px, calc(100vw - 32px)); padding: 14px 18px; position: fixed; right: 20px; bottom: 20px; z-index: 40; color: var(--white); background: var(--ink); border-radius: 7px; box-shadow: var(--shadow); }
.lightbox { width: min(1040px, calc(100vw - 32px)); padding: 42px 18px 18px; border: 0; border-radius: 8px; background: var(--ink); }
.lightbox::backdrop { background: rgba(8, 12, 10, .82); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox-close { width: 38px; height: 38px; position: absolute; right: 4px; top: 2px; color: var(--white); background: transparent; border: 0; font-size: 1.8rem; line-height: 1; }
[hidden] { display: none !important; }

@media (max-width: 800px) {
  .site-header { min-height: 64px; padding-inline: 16px; }
  nav { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { min-height: auto; padding: 52px 20px 60px; grid-template-columns: 1fr; gap: 38px; }
  .hero::before { background: rgba(246,244,237,.92); }
  .hero h1 { font-size: clamp(2.3rem, 13vw, 4rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .product-panel { padding: 22px; }
  .icon-frame { width: 70px; height: 70px; }
  .facts > div { grid-template-columns: 86px minmax(0, 1fr); }
  .check-band, .screenshots, .install-band, .faq { padding: 64px 20px; }
  .check-list { grid-template-columns: 1fr; }
  .check-list li { min-height: 170px; }
  .shot-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 270px); }
  .shot-main { grid-row: auto; }
  .install-band { grid-template-columns: 1fr; gap: 40px; }
  .download-hint { right: 16px; bottom: 16px; }
}

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