:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --paper-2: #ebe4d8;
  --ink: #1d2521;
  --muted: #6c716b;
  --line: rgba(29, 37, 33, 0.14);
  --green: #183c31;
  --green-2: #27594a;
  --amber: #db9c43;
  --white: #fffdf8;
  --shadow: 0 20px 60px rgba(33, 41, 36, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar {
  width: min(1180px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: #f8f1df; background: var(--green); border-radius: 50%; font: 700 19px/1 Georgia, serif;
}
.brand b { display: block; }
.brand b { font-size: 16px; letter-spacing: .04em; }
.topnav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.topnav a { white-space: nowrap; }
.nav-contact { padding: 0; border: 0; color: var(--green); background: transparent; cursor: pointer; white-space: nowrap; font: inherit; }
.nav-contact:hover { color: var(--green-2); }
.contact-menu { position: relative; }
.contact-menu::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 14px; }
.contact-popover { position: absolute; top: calc(100% + 12px); right: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 96px); z-index: 80; overflow-y: auto; border-radius: 10px; box-shadow: 0 18px 60px rgba(20, 35, 27, .18); color: var(--ink); text-align: left; }
.contact-popover[hidden] { display: none; }
@media (hover: hover) {
  .contact-menu:not(.contact-dismissed):hover > .contact-popover { display: block; }
}
.demo-collection-bar .contact-popover { left: 0; right: auto; }
.contact-popover .contact-card { padding: 24px; gap: 20px; }
.contact-popover .contact-copy h2 { font-size: 20px; }
.contact-popover .contact-copy p { font-size: 13px; }
.contact-popover .wechat-row { gap: 8px; padding-left: 10px; }
.contact-popover .wechat-row b { font-size: 15px; margin-left: 4px; }
.contact-popover .copy-wechat { padding: 9px; }
.contact-popover .contact-qr svg { width: 176px; height: 176px; }
.topnav > a:not(.nav-action) { color: var(--muted); }
.topnav a:hover { color: var(--green); }
.nav-setting { white-space: nowrap; }
.nav-action { padding: 11px 18px; color: #fff; background: var(--green); border-radius: 999px; }
.topnav .nav-action:hover { color: #fff; background: var(--green-2); }

.eyebrow { color: var(--green-2); font-size: 11px; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
.primary-button, .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border: 0; cursor: pointer; transition: .2s ease;
}
.primary-button { min-height: 49px; padding: 0 22px; color: #fff; background: var(--green); border-radius: 4px; font-weight: 650; }
.primary-button:hover { transform: translateY(-2px); background: var(--green-2); box-shadow: 0 8px 22px rgba(24, 60, 49, .18); }
.primary-button:disabled { opacity: .64; cursor: wait; transform: none; }
.secondary-button { padding: 10px 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; }
.secondary-button:hover { border-color: var(--accent, var(--green)); background: rgba(255,255,255,.7); }
.secondary-button:disabled { opacity: .55; cursor: default; }

.catalog { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 64px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 8px 0 0; font: 650 clamp(28px, 3vw, 40px)/1.15 Georgia, "Songti SC", serif; }
.search-box { min-width: 300px; height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.search-box span { color: var(--muted); font-size: 22px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.filter-block { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); }
.filter-block:last-of-type { border-bottom: 1px solid var(--line); }
.filter-label { color: var(--muted); font-size: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; color: #5d665f; background: transparent; cursor: pointer; }
.pill:hover { background: rgba(255,255,255,.5); }
.pill.active { color: #fff; background: var(--green); }
.catalog-meta { height: 70px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.text-button { border: 0; color: var(--green-2); background: transparent; cursor: pointer; }
.workbench-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.workbench-card {
  min-height: 380px; padding: 24px; display: flex; flex-direction: column;
  background: rgba(255,253,248,.78); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 4px;
  transition: .22s ease;
}
.workbench-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: var(--white); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-number { color: var(--accent); font: 600 28px/1 Georgia, serif; }
.demo-badge { padding: 5px 9px; color: var(--accent, var(--green)); background: color-mix(in srgb, var(--accent, var(--green)) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent, var(--green)) 23%, transparent); border-radius: 999px; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.demo-badge.large { padding: 7px 13px; font-size: 11px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 27px; }
.card-tags span { color: #687069; font-size: 11px; }
.card-tags span + span::before { content: "/"; margin-right: 7px; color: #aaa89f; }
.workbench-card h3 { margin: 15px 0 13px; font-size: 19px; line-height: 1.4; }
.workbench-card > p { margin: 0; color: #697069; font-size: 14px; line-height: 1.75; }
.card-value { margin: 25px 0 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.card-value span, .card-value b { display: block; }
.card-value span { margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.card-value b { font-size: 13px; font-weight: 500; line-height: 1.7; }
.card-link { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-size: 13px; font-weight: 700; }
.empty-state { grid-column: 1 / -1; padding: 80px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.empty-state p { color: var(--muted); }

.detail-page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.detail-hero { padding: 32px 0; display: grid; grid-template-columns: 78px 1fr auto; gap: 28px; align-items: start; border-bottom: 1px solid var(--line); }
.detail-title .card-tags { margin-top: 0; }
.detail-index { color: var(--accent); font: 600 44px/1 Georgia, serif; }
.detail-title h1 { max-width: 760px; margin: 14px 0 17px; font: 650 clamp(32px, 4vw, 50px)/1.12 Georgia, "Songti SC", serif; letter-spacing: -.025em; }
.detail-title > p { max-width: 720px; margin: 0; color: #59625c; font-size: 15px; line-height: 1.8; }
.detail-cta { margin-top: 32px; background: var(--accent); white-space: nowrap; }
.detail-cta:hover { color: #fff; background: color-mix(in srgb, var(--accent) 82%, #000); }
.detail-layout { padding: 20px 0 56px; display: grid; grid-template-columns: 1fr 300px; gap: 64px; }
.detail-section { padding: 28px 0; display: grid; grid-template-columns: 48px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.section-number { color: var(--accent); font: 600 17px/1.5 Georgia, serif; }
.detail-section h2 { margin: 0 0 12px; font-size: 19px; }
.detail-section p { margin: 0; color: #58615b; font-size: 14px; line-height: 1.85; }
.output-list { display: flex; flex-wrap: wrap; gap: 9px; }
.output-list span { padding: 10px 13px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.detail-aside { position: sticky; top: 30px; height: fit-content; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.detail-aside span, .detail-aside b { display: block; }
.detail-aside span { margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 750; }
.detail-aside b, .detail-aside p { font-size: 13px; line-height: 1.75; }
.detail-aside hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }

.demo-app { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; background: #f6f5f1; }
.demo-sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 18px; display: flex; flex-direction: column; color: #eef2ef; background: #202925; }
.demo-brand { padding: 5px 8px 24px; display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.demo-brand > span { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 8px; font: 600 13px/1 Georgia, serif; }
.demo-brand b { font-size: 13px; line-height: 1.25; }
.demo-brand small { margin-top: 3px; color: #8fa097; font-size: 10px; letter-spacing: .1em; }
#module-nav { margin-top: 24px; display: grid; gap: 6px; }
.module-button { width: 100%; padding: 12px 11px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 7px; color: #b7c2bc; background: transparent; text-align: left; cursor: pointer; }
.module-button span { color: #74837c; font: 500 10px/1 Georgia, serif; }
.module-button:hover { background: rgba(255,255,255,.06); }
.module-button.active { color: #fff; background: color-mix(in srgb, var(--accent) 70%, #202925); }
.module-button.active span { color: rgba(255,255,255,.66); }
.demo-side-note { margin-top: auto; padding: 14px; color: #98a59f; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 7px; font-size: 11px; line-height: 1.65; }
.settings-link { margin-top: 12px; padding: 11px 9px; color: #d6ded9; background: rgba(255,255,255,.055); border-radius: 7px; font-size: 11px; }
.settings-link:hover { background: rgba(255,255,255,.1); }
.back-link { padding: 18px 7px 3px; color: #9aa69f; font-size: 11px; }
.demo-main { min-width: 0; padding: 34px 44px 70px; }
.demo-topbar { min-height: 82px; display: flex; align-items: start; justify-content: space-between; border-bottom: 1px solid #dedfd9; }
.demo-topbar h1 { margin: 7px 0 0; font-size: 23px; }
.demo-intro { padding: 39px 0 27px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.demo-intro h2 { max-width: 650px; margin: 9px 0 0; font: 650 clamp(29px, 3vw, 43px)/1.15 Georgia, "Songti SC", serif; }
.demo-intro > p { max-width: 390px; margin: 0; color: #6a716c; font-size: 13px; line-height: 1.7; }
.demo-workspace { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.input-card, .result-card { min-height: 465px; padding: 24px; background: #fff; border: 1px solid #ddded9; border-radius: 9px; box-shadow: 0 10px 30px rgba(30,40,34,.04); }
.panel-heading, .result-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading span, .result-heading span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.panel-heading h3, .result-heading h3 { margin: 5px 0 0; font-size: 18px; }
.input-card textarea { width: 100%; min-height: 305px; margin: 22px 0 16px; padding: 17px; resize: vertical; border: 1px solid #dcddd8; border-radius: 7px; outline: 0; color: #2c342f; background: #fafaf8; line-height: 1.75; }
.input-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent); }
.input-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.input-footer > span { color: #89908b; font-size: 11px; }
.result-placeholder, .demo-loading { min-height: 415px; display: grid; place-content: center; justify-items: center; text-align: center; color: #8b918d; }
.result-placeholder > span { width: 53px; height: 53px; margin-bottom: 17px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); border-radius: 50%; font-size: 22px; }
.result-placeholder b, .demo-loading b { color: #505852; }
.result-placeholder p, .demo-loading p { margin: 8px 0 0; font-size: 12px; }
.demo-loading span { width: 36px; height: 36px; margin-bottom: 18px; border: 3px solid #e3e6e3; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-dot { padding: 6px 10px; color: #34724e !important; background: #edf7f0; border-radius: 999px; letter-spacing: 0 !important; }
.result-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.result-grid article { min-height: 126px; padding: 16px; background: #f7f6f2; border-left: 3px solid var(--accent); border-radius: 3px; }
.result-grid article span { color: var(--accent); font-size: 11px; font-weight: 800; }
.result-grid article p { margin: 10px 0 0; color: #4f5852; font-size: 13px; line-height: 1.7; }
.result-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.result-error { min-height: 415px; padding: 30px; display: grid; place-content: center; justify-items: start; color: #676e69; }
.result-error > span { color: #ad493a; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.result-error h3 { max-width: 520px; margin: 10px 0 8px; color: var(--ink); font-size: 20px; }
.result-error p { max-width: 540px; margin: 0 0 20px; font-size: 13px; line-height: 1.7; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.module-item { min-height: 150px; padding: 20px; display: flex; flex-direction: column; align-items: start; border: 1px solid #dedfd9; border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.module-item > span { color: var(--accent); font: 600 13px/1 Georgia, serif; }
.module-item b { margin-top: 27px; font-size: 15px; }
.module-item small { margin-top: auto; color: #969c98; }
.module-item:hover, .module-item.active { border-color: var(--accent); box-shadow: 0 8px 24px rgba(30,40,34,.06); }
.module-detail { min-height: 150px; margin-top: 17px; padding: 25px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #8c928e; background: #edece7; border-radius: 8px; }
.module-detail h3 { margin: 7px 0; color: var(--ink); }
.module-detail p { max-width: 760px; margin: 0; color: #5f6762; font-size: 13px; line-height: 1.75; }

.settings-page { width: min(880px, calc(100% - 48px)); min-height: calc(100vh - 182px); margin: 0 auto; padding: 70px 0 100px; }
.settings-card { padding: 42px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.settings-heading h1 { margin: 12px 0 12px; font: 650 clamp(36px, 5vw, 56px)/1.1 Georgia, "Songti SC", serif; }
.settings-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.security-note { margin: 32px 0; padding: 18px 20px; color: #375247; background: #edf3ef; border-left: 3px solid var(--green-2); }
.security-note b { display: block; margin-bottom: 6px; }
.security-note p { margin: 0; font-size: 13px; line-height: 1.7; }
.key-field { display: block; }
.key-field > span { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 750; }
.key-field > div { height: 50px; display: flex; border: 1px solid var(--line); background: #fff; }
.key-field input { min-width: 0; flex: 1; padding: 0 15px; border: 0; outline: 0; }
.key-field button { width: 70px; border: 0; color: var(--green-2); background: transparent; cursor: pointer; }
.model-row { margin-top: 14px; padding: 14px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 13px; }
.model-row span { color: var(--muted); }
.settings-status { margin: 20px 0; padding: 12px 14px; color: #75685e; background: #f2eee8; border-radius: 5px; font-size: 13px; }
.settings-status.connected { color: #286344; background: #eaf5ee; }
.settings-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.secondary-button.danger { color: #a14336; }
.settings-help { margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.settings-help a { color: var(--green-2); text-decoration: underline; }

.footer { min-height: 90px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #8b918c; background: #e9e3d8; border-top: 1px solid var(--line); font-size: 12px; }
.contact-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto 56px; }
.contact-card { padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 36px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.contact-copy { min-width: 0; }
.contact-copy h2 { margin: 10px 0 12px; font-size: 24px; line-height: 1.4; font-weight: 650; }
.contact-copy p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.wechat-row { display: inline-flex; align-items: center; gap: 22px; padding: 10px 10px 10px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; }
.wechat-row > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.wechat-row b { margin-left: 7px; color: var(--ink); font-size: 17px; font-weight: 600; user-select: all; }
.copy-wechat { padding: 10px 13px; border: 0; border-radius: 5px; color: #fff; background: var(--green); font-size: 12px; cursor: pointer; white-space: nowrap; }
.copy-wechat:hover { background: var(--green-2); }
.contact-qr { flex: 0 0 auto; margin: 0; text-align: center; }
.contact-qr svg { display: block; width: 200px; height: 200px; overflow: hidden; background: #fff; }
.contact-qr figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; }
.collection-contact { padding: 0; border: 0; color: #dce5e0; background: transparent; font: inherit; cursor: pointer; white-space: nowrap; }
.collection-contact:hover { color: #fff; }
.demo-collection-bar {
  position: relative; z-index: 40;
  min-height: 58px; padding: 0 22px; display: flex; align-items: center; gap: 22px;
  color: #f7f3ea; background: #1f2925; border-bottom: 3px solid var(--accent, var(--green));
  font-size: 13px;
}
.demo-collection-bar a { color: #dce5e0; }
.demo-collection-bar a:hover { color: #fff; }
.demo-collection-bar > span, .demo-collection-bar > b { margin-left: auto; font-size: 13px; }
.has-collection-bar { min-height: calc(100vh - 58px); }
.original-demo-page { min-height: 100vh; display: flex; flex-direction: column; background: #f4f0e8; }
.original-demo-frame { width: 100%; min-height: 0; flex: 1; border: 0; background: #fff; }
.trial-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; height: calc(100dvh - 58px); }
.trial-layout .original-demo-frame { height: 100%; }
.trial-contact { min-width: 0; padding: 24px 16px; overflow-y: auto; background: var(--paper); border-left: 1px solid var(--line); }
.trial-contact-card { padding: 20px 14px; flex-direction: column; align-items: stretch; gap: 24px; }
.trial-contact .contact-copy h2 { margin-top: 12px; font-size: 20px; }
.trial-contact .contact-copy p { font-size: 13px; margin-bottom: 18px; }
.trial-contact .eyebrow { font-size: 10px; letter-spacing: .06em; }
.trial-contact .wechat-row { display: flex; justify-content: space-between; gap: 5px; padding: 8px 6px; }
.trial-contact .wechat-row > span { font-size: 10px; }
.trial-contact .wechat-row b { display: block; margin: 3px 0 0; font-size: 13px; }
.trial-contact .copy-wechat { padding: 9px 7px; font-size: 10px; }
.trial-contact .contact-qr { align-self: center; }
.trial-contact .contact-qr svg { width: 180px; height: 180px; }
.trial-layout-inline { height: auto; min-height: calc(100dvh - 58px); }
.trial-layout-inline .trial-contact { position: sticky; top: 0; height: calc(100dvh - 58px); }
.trial-layout-inline .demo-app { min-width: 0; }
.not-found { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.not-found > span { color: var(--green-2); font: 650 90px/1 Georgia, serif; }
.not-found p { color: var(--muted); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 12px 17px; color: #fff; background: #1f2b25; border-radius: 6px; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .2s ease; font-size: 13px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .trial-layout { grid-template-columns: minmax(0, 1fr); height: auto; }
  .trial-layout .original-demo-frame { height: calc(100dvh - 58px); min-height: 550px; }
  .trial-contact, .trial-layout-inline .trial-contact { position: static; height: auto; overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
  .trial-contact-card { max-width: 680px; margin: auto; flex-direction: row; align-items: center; padding: 24px; }
  .trial-contact .wechat-row { justify-content: start; gap: 18px; }
  .workbench-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { grid-template-columns: 70px 1fr; }
  .detail-cta { grid-column: 2; margin-top: 0; width: fit-content; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .demo-workspace { grid-template-columns: 1fr; }
  .demo-sidebar { width: 210px; }
  .demo-app { grid-template-columns: 210px 1fr; }
  .demo-intro { align-items: start; flex-direction: column; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .trial-contact-card { flex-direction: column; align-items: stretch; }
  .trial-contact .wechat-row { justify-content: space-between; }
  .trial-contact .contact-qr svg { width: 200px; height: 200px; }
  .topbar { width: calc(100% - 30px); min-height: 74px; }
  .nav-setting { display: none; }
  .topnav { gap: 10px; }
  .nav-action { padding: 9px 13px; font-size: 12px; }
  .brand b { max-width: 150px; font-size: 13px; line-height: 1.25; }
  .topbar { flex-wrap: wrap; column-gap: 12px; row-gap: 8px; padding: 12px 0; }
  .topnav { margin-left: auto; font-size: 12px; }
  .contact-section { width: calc(100% - 30px); margin-bottom: 32px; }
  .contact-card, .contact-popover .contact-card { flex-direction: column; align-items: stretch; padding: 24px 20px; gap: 20px; }
  .contact-copy h2 { font-size: 22px; }
  .wechat-row, .contact-popover .wechat-row { display: flex; justify-content: space-between; gap: 8px; padding-left: 10px; }
  .wechat-row b { margin-left: 3px; font-size: 16px; }
  .copy-wechat { padding: 10px; }
  .contact-qr { align-self: center; }
  .catalog { width: calc(100% - 30px); padding: 28px 0 48px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .filter-block { grid-template-columns: 1fr; gap: 10px; }
  .workbench-grid { grid-template-columns: 1fr; }
  .workbench-card { min-height: 390px; }
  .detail-page { width: calc(100% - 30px); }
  .detail-hero { padding: 28px 0; grid-template-columns: 1fr; gap: 14px; }
  .detail-index { font-size: 38px; }
  .detail-title h1 { font-size: 32px; }
  .detail-cta { grid-column: auto; }
  .detail-layout { padding: 16px 0 48px; gap: 28px; }
  .detail-section { grid-template-columns: 36px 1fr; gap: 12px; }
  .footer { padding: 22px 18px; align-items: start; flex-direction: column; }
  .demo-collection-bar { min-height: 52px; padding: 0 13px; gap: 12px; font-size: 11px; }
  .demo-collection-bar > span, .demo-collection-bar > b { display: none; }
  .demo-app { display: block; }
  .demo-sidebar { position: static; width: 100%; height: auto; padding: 14px 15px 10px; }
  .demo-brand { padding: 0 0 13px; }
  #module-nav { margin-top: 12px; padding-bottom: 3px; display: flex; overflow-x: auto; }
  .module-button { width: auto; min-width: max-content; padding: 10px 12px; }
  .demo-side-note, .back-link { display: none; }
  .settings-link { margin: 10px 0 0; }
  .demo-main { padding: 22px 15px 45px; }
  .demo-topbar { min-height: 67px; }
  .demo-topbar h1 { font-size: 19px; }
  .demo-intro { padding: 28px 0 20px; gap: 13px; }
  .demo-intro h2 { font-size: 29px; }
  .input-card, .result-card { min-height: auto; padding: 18px; }
  .input-card textarea { min-height: 230px; }
  .input-footer { align-items: stretch; flex-direction: column; }
  .input-footer .primary-button { width: 100%; }
  .result-placeholder, .demo-loading { min-height: 280px; }
  .result-grid, .module-grid { grid-template-columns: 1fr; }
  .module-detail { align-items: start; flex-direction: column; }
  .toast { right: 15px; bottom: 15px; left: 15px; text-align: center; }
  .settings-page { width: calc(100% - 30px); padding: 38px 0 70px; }
  .settings-card { padding: 24px 18px; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-actions > * { width: 100%; }
}

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