:root {
  --bg: #f7f1e6;
  --surface: #fffdf8;
  --surface-soft: #f3eadb;
  --text: #1c201b;
  --muted: #6e6b62;
  --accent: #f1d34f;
  --accent-deep: #b4870a;
  --accent-soft: #fff4ba;
  --apricot: #efd2b7;
  --border: #dfd3bf;
  --shadow: 0 24px 70px rgba(73, 57, 28, 0.11);
  --shadow-soft: 0 12px 34px rgba(73, 57, 28, 0.08);
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-ui: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 7%, rgba(255, 223, 102, .22), transparent 24rem),
    radial-gradient(circle at 92% 34%, rgba(239, 210, 183, .32), transparent 28rem),
    var(--bg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--surface);
  background: var(--text);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #997300;
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient--one {
  top: 12%;
  left: -18rem;
  background: rgba(245, 208, 69, .18);
}

.ambient--two {
  right: -20rem;
  bottom: 12%;
  background: rgba(235, 180, 141, .2);
  animation-delay: -9s;
}

@keyframes drift {
  to { transform: translate3d(3rem, 2rem, 0); }
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

.brand__logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 6px 18px rgba(72, 57, 26, .07);
  object-fit: cover;
}

.hero {
  display: grid;
  min-height: calc(100svh - 88px);
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: clamp(44px, 6vw, 80px) clamp(72px, 8vw, 110px);
}

.eyebrow {
  margin-bottom: 18px;
  color: #80600d;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3rem, 6.2vw, 6.2rem);
  font-weight: 800;
}

.hero h1 span {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  right: -.04em;
  bottom: .08em;
  left: -.05em;
  z-index: -1;
  height: .2em;
  border-radius: 999px;
  background: var(--accent);
  opacity: .72;
  transform: rotate(-1deg);
}

.hero__lead {
  max-width: 560px;
  margin: 30px 0 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.hero__tags li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #55534c;
  background: rgba(255, 253, 248, .58);
  font-size: .82rem;
  font-weight: 700;
}

.hero__actions,
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .2s var(--ease), box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(.98);
}

.button--primary {
  color: var(--text);
  border-color: #cfad20;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(181, 137, 9, .2), inset 0 1px rgba(255, 255, 255, .7);
}

.button--primary:hover {
  background: #f6d955;
  box-shadow: 0 14px 30px rgba(181, 137, 9, .25), inset 0 1px rgba(255, 255, 255, .7);
}

.button--secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 253, 248, .72);
}

.button--secondary:hover {
  border-color: #cbbc9f;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.button--ink {
  color: var(--surface);
  background: var(--text);
  box-shadow: 0 12px 26px rgba(28, 32, 27, .18);
}

.button--ink:hover {
  background: #30342d;
  box-shadow: 0 16px 32px rgba(28, 32, 27, .23);
}

.hero-enter {
  animation: hero-in .8s var(--ease) both;
}

.hero__copy .hero-enter:nth-child(2) { animation-delay: .08s; }
.hero__copy .hero-enter:nth-child(3) { animation-delay: .14s; }
.hero__copy .hero-enter:nth-child(4) { animation-delay: .2s; }
.hero-previews.hero-enter { animation-delay: .12s; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-previews {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1 / 1.06;
  justify-self: end;
}

.preview-frame {
  --preview-rotate: 0deg;
  position: absolute;
  width: 88%;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(73, 57, 28, .14);
  transform: rotate(var(--preview-rotate));
  transition: transform .25s var(--ease), box-shadow .25s ease;
}

.preview-frame:first-child {
  --preview-rotate: -1.8deg;
  top: 3%;
  left: 0;
  z-index: 1;
}

.preview-frame:last-child {
  --preview-rotate: 1.6deg;
  right: 0;
  bottom: 3%;
  z-index: 2;
}

.preview-frame:hover {
  transform: translateY(-4px) rotate(var(--preview-rotate));
  box-shadow: 0 24px 54px rgba(73, 57, 28, .18);
}

.preview-frame img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.section {
  padding-block: clamp(64px, 6vw, 84px) 52px;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.demo-heading {
  display: grid;
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 5px;
  padding: 0;
  list-style: none;
}

.demo-tags li {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #55534c;
  background: rgba(255, 253, 248, .7);
  font-size: .8rem;
  font-weight: 750;
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease);
}

.demo-tags li:hover {
  border-color: #cfb75a;
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.video-shell {
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff9ec;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.video-shell:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 78px rgba(73, 57, 28, .15);
}

.video-shell__bar {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 6px;
  padding-inline: 8px;
}

.video-shell__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dacdb9;
}

.video-shell__bar span:nth-child(1) { background: #e9bfa0; }
.video-shell__bar span:nth-child(2) { background: #ead669; }
.video-shell__bar span:nth-child(3) { background: #b9ce94; }

.video-shell__bar em {
  margin-left: auto;
  color: #9b9487;
  font-size: .63rem;
  font-style: normal;
  letter-spacing: .12em;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  background: #171a17;
}

.action-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-block: 24px 16px;
}

.action-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.action-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.action-card--download {
  color: var(--surface);
  border-color: #30342d;
  background: var(--text);
}

.action-card--download .eyebrow {
  color: #e9d46f;
}

.action-card--guide {
  background: var(--surface);
}

.site-footer {
  padding-block: 36px 48px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .04em;
  text-align: center;
}

.download-modal {
  width: min(calc(100% - 32px), 590px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  color: var(--text);
  background: transparent;
}

.download-modal::backdrop {
  background: rgba(22, 24, 20, .58);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .22s ease;
}

.download-modal[open]::backdrop {
  opacity: 1;
}

.modal__panel {
  position: relative;
  max-height: calc(100dvh - 32px);
  padding: clamp(28px, 6vw, 48px);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(16, 18, 15, .28);
  animation: modal-in .28s var(--ease) both;
}

.download-modal.is-closing .modal__panel {
  animation: modal-out .17s ease-in both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes modal-out {
  to { opacity: 0; transform: translateY(8px) scale(.985); }
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-soft);
  font: 400 1.45rem/1 var(--font-ui);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s var(--ease);
}

.modal__close:hover {
  color: var(--text);
  background: var(--accent-soft);
  transform: rotate(4deg);
}

.modal__mark {
  margin-bottom: 18px;
  font-size: 2rem;
}

.download-modal h2 {
  padding-right: 46px;
  font-size: clamp(2rem, 7vw, 3.2rem);
}

.modal__lead {
  margin: 22px 0;
  color: #55534c;
}

.modal__notice {
  padding: 18px 20px;
  border: 1px solid #ead581;
  border-radius: 17px;
  background: #fff8d7;
  font-size: .91rem;
}

.modal__notice ul {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding-left: 1.2em;
}

.modal__actions {
  justify-content: flex-end;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__copy {
    max-width: 740px;
  }

  .hero-previews {
    display: grid;
    width: min(100%, 560px);
    aspect-ratio: auto;
    justify-self: center;
    gap: 14px;
    margin-inline: auto;
  }

  .preview-frame,
  .preview-frame:first-child,
  .preview-frame:last-child {
    position: static;
    width: 100%;
    transform: none;
  }

  .demo-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .demo-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    min-height: 76px;
  }

  .brand {
    font-size: 1.35rem;
  }

  .brand__logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .hero {
    gap: 42px;
    padding-block: 46px 66px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero__lead br {
    display: none;
  }

  .hero__actions .button {
    width: 100%;
  }

  .preview-frame {
    padding: 5px;
    border-radius: 16px;
  }

  .preview-frame img {
    border-radius: 11px;
  }

  .preview-frame:hover {
    transform: none;
  }

  .section {
    padding-block: 60px 42px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .video-shell {
    padding: 7px;
    border-radius: 20px;
  }

  .video-shell__bar {
    height: 31px;
  }

  .video-shell video {
    border-radius: 14px;
  }

  .action-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 8px 12px;
  }

  .action-card {
    min-height: 210px;
    padding: 26px 22px;
    border-radius: 24px;
  }

  .action-card .button {
    width: 100%;
  }

  .modal__actions {
    flex-direction: column-reverse;
  }

  .modal__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
