:root {
  color-scheme: light;
  --ink: #243a31;
  --muted: #5f7066;
  --green: #2e6d56;
  --forest: #23483a;
  --paper: #fffefa;
  --ground: #f6f5ef;
  --line: #dde3d9;
  --canvas: #eaece2;
  font-family: "Yuanti SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); line-height: 1.55; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
section, figure { scroll-margin-top: 28px; }
.wrap { width: min(1232px, calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; inset: 12px auto auto 12px; z-index: 10; transform: translateY(-150%); padding: 8px 15px; background: var(--paper); border-radius: 6px; }
.skip:focus { transform: translateY(0); }

.top { border-bottom: 1px solid var(--line); }
.nav { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; gap: 8px; align-items: center; flex: none; font-size: 17px; font-weight: 700; }
.nav nav { display: flex; align-items: center; gap: 29px; font-size: 14px; color: var(--muted); }
.nav nav a:hover, .back-top:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }
.nav-action { padding: 9px 15px; border: 1px solid #cdd9cd; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-action span { margin-left: 5px; color: var(--green); }
.nav-action:hover { background: var(--paper); }

.hero { display: grid; grid-template-columns: minmax(300px,.77fr) minmax(0,1.23fr); align-items: center; gap: clamp(25px,5.2vw,75px); min-height: 580px; padding-block: 68px 66px; }
.hero-copy { padding-bottom: 27px; }
.platform { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; color: var(--green); font-size: 14px; font-weight: 650; }
.platform span, .connection-status span { width: 7px; height: 7px; border-radius: 50%; background: #69a286; }
h1 { color: var(--forest); font-size: clamp(38px,4.7vw,73px); font-weight: 800; letter-spacing: -.054em; line-height: 1.15; }
.lede { max-width: 330px; margin-top: 23px; color: var(--muted); font-size: 17px; line-height: 1.78; }
.primary { display: inline-flex; align-items: center; gap: 19px; margin-top: 29px; padding: 12px 17px; background: var(--green); color: #fff; border-radius: 8px; font-size: 14px; font-weight: 650; }
.primary:hover { background: var(--forest); }
.primary span { font-size: 17px; }

.demo { min-width: 0; }
.app-window { overflow: hidden; border: 1px solid #ccd6ca; border-radius: 14px; background: var(--paper); box-shadow: 0 18px 44px #253b2d17, 0 2px 8px #253b2d0a; }
.window-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 45px; padding-inline: 13px; gap: 7px; border-bottom: 1px solid var(--line); background: #f9f9f4; }
.traffic { display: flex; gap: 5px; }
.traffic i { width: 8px; height: 8px; border-radius: 50%; background: #b5c1b1; }
.traffic i:first-child { background: #dc9685; }
.traffic i:nth-child(2) { background: #dfbb78; }
.traffic i:last-child { background: #8db697; }
.window-title { font-size: 12px; font-weight: 650; white-space: nowrap; }
.window-title span { margin-inline: 4px; color: #a5b1a6; }
.window-save { justify-self: end; color: var(--muted); font-size: 10px; white-space: nowrap; }
.app-body { display: grid; grid-template-columns: minmax(70px,.75fr) minmax(0,3fr) minmax(100px,1.05fr); }
.app-sidebar, .app-inspector { padding: 18px 11px; background: #f7f7f1; }
.app-sidebar { border-right: 1px solid var(--line); }
.app-inspector { border-left: 1px solid var(--line); }
.app-sidebar p, .app-inspector p { margin-bottom: 15px; font-size: 11px; font-weight: 700; }
.component { display: flex; align-items: center; min-height: 29px; gap: 6px; padding-inline: 5px; border-radius: 5px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.component span { color: var(--green); font-size: 14px; line-height: 1; }
.component.current { background: #e6ede1; color: var(--green); font-weight: 700; }
.app-center { min-width: 0; background: var(--canvas); }
.app-toolbar { display: flex; min-height: 39px; align-items: center; justify-content: space-between; padding: 6px 9px; gap: 5px; border-bottom: 1px solid #dce1d5; }
.switches { display: inline-flex; padding: 2px; border: 1px solid #d8dfd4; border-radius: 6px; background: #e0e5db; }
.switches button { border: 0; background: transparent; color: var(--muted); padding: 4px 7px; font-size: 9px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.switches button[aria-pressed=true] { background: white; color: var(--ink); box-shadow: 0 1px 2px #2221; }
.slot-count { color: var(--muted); font-size: 9px; white-space: nowrap; }
.demo-scene { min-height: 340px; padding: 15px clamp(9px,1.6vw,23px) 20px; }
.demo-paper { width: 100%; margin-inline: auto; max-width: 420px; background: white; min-height: 298px; padding: 17px 12px 13px; border: 1px solid #dfe5d9; border-radius: 4px; box-shadow: 0 3px 10px #354b2e0a; transition: max-width .22s ease; }
.demo-scene[data-mode=phone] .demo-paper { max-width: 204px; }
.paper-head { display: grid; gap: 3px; justify-items: center; padding-bottom: 13px; text-align: center; }
.paper-head span { font-size: 8px; letter-spacing: .22em; color: #58645a; }
.paper-head strong { color: #212d27; font-size: 16px; letter-spacing: .09em; }
.demo-gallery { display: grid; height: clamp(148px,16vw,210px); grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.demo-gallery[data-arrangement=hero-left] { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); grid-template-rows: repeat(2,minmax(0,1fr)); }
.demo-gallery[data-arrangement=hero-left] .photo:first-child { grid-row: span 2; }
.photo { overflow: hidden; border-radius: 6px; }
.photo img { width: 100%; height: 100%; object-fit: cover; font-size: 9px; }
.photo-mountains { background: #c0bba8; }
.photo-forest { background: #7b8e72; }
.photo-lake { background: #a2adb1; }
.paper-essay { display: grid; gap: 4px; margin-top: 11px; padding: 7px 8px; border: 1px solid #e8ebe5; border-radius: 5px; color: #545f53; font-size: 9px; }
.paper-essay strong { color: var(--ink); font-size: 10px; }
.inspector-row { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 11px; padding: 6px; border: 1px solid #e2e8dd; border-radius: 5px; white-space: nowrap; color: var(--muted); font-size: 9px; background: #fff; }
.inspector-row strong { font-size: 9px; color: var(--ink); }
.inspector-label { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.arrangements { display: flex; gap: 5px; margin-bottom: 12px; }
.arrangements button { display: grid; flex: 1; min-width: 0; height: 28px; grid-template-columns: repeat(3,1fr); gap: 2px; padding: 5px; border: 1px solid #dce3d8; border-radius: 5px; background: #fff; cursor: pointer; }
.arrangements button[data-layout=hero-left] { grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(2,1fr); }
.arrangements button[data-layout=hero-left] i:first-child { grid-row: span 2; }
.arrangements button i { background: #b3c6b4; border-radius: 1px; }
.arrangements button[aria-pressed=true] { border-color: #62937a; background: #eef5eb; }
.arrangements button[aria-pressed=true] i { background: #6fa385; }
.demo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 10px; padding-top: 11px; color: var(--muted); font-size: 11px; }

.features { padding-block: 54px 58px; border-block: 1px solid var(--line); background: #eff1e8; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 22px; margin-bottom: 27px; }
h2 { color: var(--forest); font-size: clamp(27px,3vw,43px); letter-spacing: -.025em; line-height: 1.3; }
.section-heading > p, .feature p, .wechat-copy > p:last-child { color: var(--muted); }
.section-heading > p { font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.feature { padding: 6px clamp(16px,3vw,43px) 3px; border-left: 1px solid #d9e1d6; }
.feature:first-child { padding-left: 0; border: 0; }
.feature:last-child { padding-right: 0; }
.feature-icon { display: flex; align-items: center; justify-content: center; gap: 3px; width: 41px; height: 41px; margin-bottom: 15px; border-radius: 10px; background: #deeadb; }
.feature-icon i { display: block; border-radius: 2px; background: #4b8266; }
.tile-grid i { width: 5px; height: 15px; }
.essay-icon { flex-direction: column; gap: 3px; }
.essay-icon i { width: 16px; height: 2px; }
.essay-icon i:last-child { width: 11px; margin-right: 5px; }
.phone-icon i { width: 11px; height: 18px; border: 2px solid #4b8266; background: transparent; border-radius: 3px; }
.feature h3 { margin-bottom: 7px; font-size: 18px; }
.feature p { max-width: 310px; font-size: 14px; line-height: 1.8; }

.wechat { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(25px,6vw,85px); padding-block: 65px; }
.connection-status { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: var(--green); font-size: 13px; font-weight: 650; }
.connection-status span { width: 6px; height: 6px; }
.wechat-copy > p:last-child { max-width: 500px; margin-top: 12px; font-size: 14px; line-height: 1.8; }
.flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 23px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbf5; color: var(--forest); font-size: 13px; font-weight: 600; }
.flow span { padding: 7px 8px; border-radius: 6px; background: #e7eee3; white-space: nowrap; }
.flow b { color: #748b7b; }
.footer { display: flex; align-items: center; gap: 13px; border-top: 1px solid var(--line); min-height: 69px; padding-block: 12px; color: var(--muted); font-size: 12px; }
.footer .brand { color: var(--ink); font-size: 15px; }
.photo-credit { margin-left: auto; }
.photo-credit:hover, .icp-record:hover { text-decoration: underline; text-underline-offset: 4px; }
.icp-record { white-space: nowrap; }
.back-top { white-space: nowrap; }

@media (max-width: 1040px) {
  .wrap { width: calc(100% - 72px); }
  .hero { min-height: 510px; gap: 25px; grid-template-columns: minmax(270px,.82fr) minmax(0,1.18fr); }
  .app-body { grid-template-columns: 62px minmax(0,1fr) 89px; }
  .app-sidebar, .app-inspector { padding-inline: 7px; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 45px 51px; min-height: 0; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(34px,7.7vw,60px); }
  .lede { max-width: 490px; font-size: 16px; }
  .demo { width: 100%; max-width: 650px; }
  .app-body { grid-template-columns: 75px minmax(0,1fr) 102px; }
  .demo-gallery { height: clamp(145px,24vw,196px); }
  .wechat { grid-template-columns: 1fr; gap: 20px; padding-block: 48px; }
  .flow { justify-content: flex-start; padding-inline: 16px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 61px; gap: 11px; }
  .nav nav { gap: 12px; font-size: 12px; }
  .nav-action { display: none; }
  .brand { font-size: 15px; }
  .hero { padding-top: 36px; }
  .hero-copy .platform { margin-bottom: 11px; }
  .lede { margin-top: 15px; }
  .primary { margin-top: 21px; }
  .app-sidebar { display: none; }
  .app-body { grid-template-columns: minmax(0,1fr) 82px; }
  .demo-scene { min-height: 265px; padding: 8px 8px 12px; }
  .demo-paper { min-height: 0; padding: 11px 7px 8px; }
  .demo-gallery { height: 126px; min-height: 0; }
  .demo-scene[data-mode=phone] .demo-paper { max-width: min(155px, 82%); }
  .slot-count { display: none; }
  .features { padding-block: 35px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 17px 0; border: 0; border-top: 1px solid #d9e1d6; }
  .feature:first-child { padding-top: 0; }
  .feature:last-child { padding-bottom: 0; }
  .feature-icon { margin-bottom: 9px; }
  .feature p { max-width: none; }
  .flow { gap: 5px; padding: 12px 8px; font-size: 11px; }
  .flow span { padding: 6px 5px; }
  .footer { gap: 7px; font-size: 10px; flex-wrap: wrap; }
  .photo-credit { margin-left: 0; }
  .back-top { margin-left: auto; }
}
@media (max-width: 380px) {
  .nav { flex-wrap: wrap; gap: 8px 12px; padding-block: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo-paper { transition: none; }
}
