:root {
  color-scheme: light;
  --ink: #1d2d3b;
  --muted: #526272;
  --accent: #b63e2e;
  --accent-dark: #963120;
  --accent-soft: #f9e8e3;
  --navy: #263c53;
  --line: #dce4e9;
  --paper: #fff;
  --pale: #f3f6f8;
  --gutter: clamp(16px, 4.1vw, 44px);
  --header-height: 65px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 14px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; line-break: strict; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { line-height: 1.27; }
h2 { font-size: clamp(28px, 3.1vw, 40px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section { padding-block: clamp(44px, 6.5vw, 82px); }

.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #fff; }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: calc(var(--header-height) - 1px); }
.brand { display: inline-flex; gap: 10px; align-items: center; width: max-content; font-size: 18px; line-height: 1.25; font-weight: 760; }
.brand img { border-radius: 9px; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(15px, 2.4vw, 28px); color: var(--muted); font-size: 14px; }
nav a { display: flex; align-items: center; min-height: 36px; white-space: nowrap; }
nav a:hover { color: var(--accent-dark); text-underline-offset: 4px; text-decoration: underline; }
.top-download { display: inline-flex; align-items: center; justify-content: center; justify-self: end; min-height: 36px; padding: 4px 17px; border: 1px solid #edc7be; border-radius: 7px; color: var(--accent-dark); font-size: 14px; font-weight: 740; white-space: nowrap; }
.top-download:hover { background: var(--accent-soft); }

.hero { border-bottom: 1px solid var(--line); background: linear-gradient(124deg, #f9fafb 38%, #eaf0f4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: clamp(28px, 6vw, 78px); padding-block: clamp(49px, 7.2vw, 95px); }
.intro h1 { font-size: clamp(39px, 5.15vw, 69px); font-weight: 770; letter-spacing: -.025em; }
.intro h1 em { color: var(--accent-dark); font-style: normal; }
.intro p { max-width: 28em; margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.45vw, 18px); }
.actions { margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: min(100%, 242px); min-height: 52px; padding: 9px 24px; border: 1px solid transparent; border-radius: 9px; color: #fff; background: var(--accent); font-weight: 730; }
.button::before { width: 15px; height: 16px; background: currentColor; clip-path: polygon(47% 0, 58% 0, 58% 51%, 80% 30%, 89% 39%, 52% 76%, 14% 39%, 23% 30%, 47% 53%, 47% 0, 0 0, 0 88%, 100% 88%, 100% 100%, 0 100%, 0 0); content: ""; }
.button:hover { background: var(--accent-dark); }

.tag-demo { min-inline-size: 0; margin: 0; padding: 13px 19px 18px; border: 1px solid #aebdca; border-radius: 17px; background: #f8fafb; box-shadow: 0 18px 39px #1f3c5511; }
.tag-demo legend { margin-left: 9px; padding: 0 9px; color: #3e5265; font-size: 14px; font-weight: 700; }
.tag-choice { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tag-stage { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; min-height: clamp(173px, 19vw, 242px); gap: clamp(13px, 2vw, 22px); padding: clamp(17px, 3vw, 32px); border-radius: 11px; background: radial-gradient(circle, #ffffff35 1px, transparent 1.2px) 0 0 / 16px 16px, linear-gradient(145deg, #3e566a, #243749); }
.tag-sticker { position: relative; display: grid; width: min(100%, 139px); aspect-ratio: 1.05; place-items: center; justify-self: center; transform: rotate(-8deg); border: 1px solid #eee7df; border-radius: 25%; color: #344655; background: linear-gradient(150deg,#fff,#e7edf0 87%); box-shadow: 0 13px 22px #0a172952; font: 760 clamp(19px, 3vw, 31px)/1 system-ui, sans-serif; }
.tag-coil { position: absolute; inset: 11%; border: 1px solid #a9bccb; border-radius: 23%; }
.tag-coil::before, .tag-coil::after { position: absolute; border: 1px solid #b5c6d1; border-radius: 20%; content: ""; }
.tag-coil::before { inset: 7%; }
.tag-coil::after { inset: 14%; }
.record-list { min-width: 0; }
.record { display: none; padding: clamp(10px, 1.5vw, 15px); border: 1px solid #ffffff27; border-left: 3px solid #f7ad9f; border-radius: 9px; color: #fff; background: #182c3fd9; }
.record span { display: block; margin-bottom: 4px; color: #faddd5; font-size: 12px; }
.record strong { display: block; overflow-wrap: anywhere; font-size: clamp(12px, 1.2vw, 16px); line-height: 1.5; }
.record-link strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.record-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.record-choices label { display: grid; min-height: 42px; padding: 5px 2px; place-items: center; border: 1px solid #d3dfe7; border-radius: 7px; background: #fff; color: #415668; font-size: 13px; line-height: 1.45; text-align: center; cursor: pointer; }
.record-choices label:hover { border-color: var(--accent); }
#record-link:checked ~ .tag-stage .record-link, #record-text:checked ~ .tag-stage .record-text, #record-contact:checked ~ .tag-stage .record-contact { display: block; }
#record-link:checked ~ .record-choices [for="record-link"], #record-text:checked ~ .record-choices [for="record-text"], #record-contact:checked ~ .record-choices [for="record-contact"] { border-color: #ecc0b5; color: var(--accent-dark); background: var(--accent-soft); font-weight: 740; }
#record-link:focus-visible ~ .record-choices [for="record-link"], #record-text:focus-visible ~ .record-choices [for="record-text"], #record-contact:focus-visible ~ .record-choices [for="record-contact"] { outline: 2px solid var(--accent); outline-offset: 2px; }

.gallery-section h2 { text-align: center; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; width: min(100%, 944px); margin: 25px auto 0; padding: 3px 3px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-color: #a9bccb transparent; }
.gallery-track a { display: block; overflow: hidden; border: 1px solid #d2dbe2; border-radius: 13px; background: var(--pale); scroll-snap-align: start; }
.gallery-track a:hover { border-color: var(--accent); }
.gallery-track a:focus-visible { outline-offset: -3px; }
.gallery-track img { width: 100%; height: auto; aspect-ratio: 480 / 1066; }

.feature-section { border-block: 1px solid var(--line); background: var(--pale); }
.feature-section h2 { text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }
.feature-grid article { padding: clamp(19px, 2.6vw, 29px); border: 1px solid #dde6eb; border-radius: 13px; background: #fff; }
.feature-icon { display: grid; width: 39px; height: 39px; margin-bottom: 13px; place-items: center; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); }
.feature-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature-grid p, .setup p, .steps p { margin-top: 8px; color: var(--muted); }

.workflow-layout { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(23px,6.5vw,80px); align-items: start; margin-top: 24px; }
.setup { padding: clamp(19px,3vw,34px); border: 1px solid #d7e2e9; border-radius: 15px; background: #eef3f6; }
.setup-record { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin-top: 20px; padding: 13px; border: 1px solid #dae4ea; border-radius: 8px; background: #fff; }
.setup-record span { color: var(--muted); font-size: 13px; }
.setup-record code { grid-column: 1/-1; color: var(--navy); font: 15px/1.55 ui-monospace, "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.steps { padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 15px; padding: 3px 0 19px; counter-increment: step; }
.steps li + li { margin-top: 10px; }
.steps li:not(:last-child)::after { position: absolute; top: 42px; bottom: -6px; left: 17px; border-left: 1px solid #e1b0a3; content: ""; }
.steps li::before { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #ebc2b8; border-radius: 50%; color: var(--accent-dark); background: #fff3ef; font-weight: 760; line-height: 1; content: counter(step); }
.steps li h3 { margin-top: 3px; }
.steps li:last-child { padding-bottom: 0; }

.faq-section { padding-top: 4px; }
.faq-wrap { width: min(852px, calc(100% - var(--gutter) * 2)); }
.faq-wrap h2 { text-align: center; }
.faq-list { margin-top: 24px; 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: 11px; padding: 16px 3px; font-weight: 720; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { width: 8px; height: 8px; flex: none; margin: -4px 5px 0 0; transform: rotate(45deg); border: solid var(--accent); border-width: 0 2px 2px 0; content: ""; }
.faq-list details[open] summary { color: var(--accent-dark); }
.faq-list details[open] summary::after { margin-top: 4px; transform: rotate(225deg); }
.faq-list p { max-width: 42em; padding: 0 3px 18px; color: var(--muted); }
.product-name { white-space: nowrap; }

.download-section { padding-bottom: clamp(45px, 6vw, 75px); }
.download-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px,4.5vw,46px); border-radius: 15px; color: #fff; background: linear-gradient(128deg, #2d455d, #20374c); }
.download-panel h2 { font-size: clamp(24px, 3vw, 36px); }
.download-panel p { margin-top: 8px; color: #e0e9f1; }
.download-panel .button { flex: none; background: #fff; color: var(--accent-dark); }
.download-panel .button:hover { background: #fff0e9; }
.download-panel .button:focus-visible { outline-color: #fff; }
.site-footer { border-top: 1px solid var(--line); background: var(--pale); }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 13px; }
.footer-bar .brand { font-size: 15px; }
.footer-bar .brand img { width: 29px; height: 29px; border-radius: 7px; }

@media (max-width: 760px) {
  :root { --header-height: 91px; }
  .bar { grid-template-columns: 1fr auto; row-gap: 4px; column-gap: 9px; padding-block: 7px 4px; }
  .bar nav { grid-column: 1/-1; grid-row: 2; justify-content: space-between; gap: 6px; font-size: 13px; }
  .bar .top-download { grid-column: 2; grid-row: 1; }
  .hero-grid { grid-template-columns: 1fr; gap: 25px; padding-block: 32px 36px; }
  .intro h1 { font-size: clamp(37px, 8.5vw, 59px); }
  .intro p { margin-top: 13px; }
  .actions { margin-top: 17px; }
  .tag-demo { width: min(100%, 510px); }
  .gallery-track { grid-auto-columns: clamp(150px, 41vw, 210px); gap: 10px; margin-top: 17px; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workflow-layout { grid-template-columns: 1fr; }
  .setup { max-width: 496px; }
}
@media (max-width: 520px) {
  .intro h1 { font-size: clamp(35px, 8.5vw, 46px); }
  .actions .button, .download-panel .button { width: 100%; }
  .tag-demo { padding: 6px 11px 11px; border-radius: 12px; }
  .tag-stage { min-height: 148px; gap: 12px; padding: 13px; }
  .tag-sticker { max-width: 104px; }
  .record-choices { margin-top: 9px; }
  .feature-grid { gap: 9px; }
  .feature-grid article { padding: 14px; }
  .feature-grid h3 { font-size: 17px; }
  .feature-grid p { font-size: 14px; }
  .download-panel { flex-direction: column; align-items: stretch; gap: 16px; }
  .footer-bar { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; }
  .footer-bar nav { gap: 3px 13px; font-size: 13px; }
  .footer-bar nav a { min-height: 28px; }
}
