:root {
  color-scheme: light;
  --page: #f8faf6;
  --surface: #fff;
  --canvas: #edf1ea;
  --ink: #18251c;
  --secondary: #4d5c50;
  --muted: #56665a;
  --line: #dae4d8;
  --green: #235a39;
  --green-dark: #17492c;
  --selected: #dff1df;
  --selected-line: #a7c9a9;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid #286b42; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
#symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1600px; padding-inline: clamp(16px, 3.4vw, 54px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #e1e8de; background: #fbfcf9; }
.header-inner { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; color: var(--ink); font-size: 16px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.brand img { flex: none; }
.header-link { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 650; min-height: 44px; }
.header-link .icon, .size-reference .icon, .pattern-link .icon, .site-footer .icon { width: 14px; height: 14px; }
#site-title {
  margin-block: clamp(24px, 3.6vw, 52px) clamp(23px, 2.7vw, 38px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.06;
}
.section-label { color: var(--secondary); margin-bottom: 10px; font-weight: 750; font-size: 14px; letter-spacing: .1em; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: #f0f4ee; }
.tab { display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; min-height: 58px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--secondary); min-width: 0; }
.tab .icon { width: 21px; height: 21px; }
.tab b { display: block; font-size: 16px; font-weight: 740; }
.tab small { display: block; font-size: 14px; margin-top: 2px; line-height: 1.2; }
.tab:hover { background: #e8efe6; }
.tab[aria-selected=true] { background: var(--selected); color: var(--green-dark); border-color: var(--selected-line); }
.workspace { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: stretch; }
.preview, .inspector, .explanation { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); min-width: 0; }
.preview { overflow: hidden; display: flex; flex-direction: column; }
.preview-header { min-height: 62px; display: flex; align-items: center; padding: 0 17px; }
.preview-heading { display: flex; align-items: center; gap: 9px; }
.preview-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #e9f3e7; color: var(--green); }
.preview-heading h2, .inspector h2 { font-size: 19px; font-weight: 760; }
.stage { position: relative; flex: 1 0 auto; min-height: clamp(540px, 62svh, 700px); background-color: var(--canvas); border-block: 1px solid #dbe7d9; }
.stage-center { position: absolute; inset: 0; display: grid; place-items: center; padding: 26px 13px 16px 28px; }
.screen-shell { position: relative; width: 0; height: 0; }
.viewport { position: absolute; inset: 0; border-radius: 13px; outline: 1px solid #91af97; background: #fbfdf8; box-shadow: 0 13px 24px #34523b22, 0 2px 6px #284c3020; overflow: hidden; }
.axis { position: absolute; display: flex; justify-content: center; align-items: center; gap: 8px; white-space: nowrap; color: #42664c; font: 700 13px var(--mono); pointer-events: none; }
.axis::before, .axis::after { content: ""; flex: 1; border-top: 1px solid #8ba993; }
.axis-width { left: 0; right: 0; top: -24px; }
.axis-height { height: 14px; width: var(--screen-height); left: -18px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.resize { position: absolute; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; display: grid; place-items: center; border-radius: 50%; right: -22px; bottom: -22px; touch-action: none; cursor: nwse-resize; background: transparent; color: #fff; }
.resize::before { content: ""; position: absolute; inset: 9px; background: #2c6d46; border-radius: 50%; border: 2px solid #f5fcf1; box-shadow: 0 2px 5px #253e3444; }
.resize:hover::before, .resize[data-dragging=true]::before { background: #184d2e; }
.resize .icon { width: 13px; height: 13px; z-index: 1; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 16px; color: var(--secondary); font-size: 14px; min-height: 45px; }
.preview-footer p { display: flex; gap: 7px; align-items: center; }
.preview-footer .icon { width: 15px; height: 15px; color: var(--green); }
#zoom-label { font-family: var(--mono); white-space: nowrap; }
.inspector { padding: 14px 15px 11px; display: flex; flex-direction: column; }
.inspector-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.reset { display: flex; align-items: center; gap: 5px; border: 0; background: none; border-radius: 8px; color: var(--green); min-height: 38px; padding: 0 5px; font-size: 14px; font-weight: 660; }
.reset .icon { width: 15px; height: 15px; }
.reset:hover { background: #eff5ed; }
.readout { display: flex; align-items: baseline; gap: 8px; padding: 11px 12px; background: #e9f4e7; border-radius: 12px; color: var(--green-dark); }
.readout strong { font: 740 28px var(--mono); letter-spacing: -.075em; }
.readout span { font: 650 14px var(--mono); }
.size-section { margin-top: 13px; }
.size-section h3 { margin-bottom: 6px; font-size: 15px; font-weight: 740; }
.size-section h3 span { color: var(--muted); margin-left: 4px; font-size: 12px; font-weight: 550; }
.width-options { display: grid; gap: 3px; }
.size-choice { display: flex; min-height: 38px; justify-content: space-between; gap: 4px; align-items: center; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; text-align: left; background: #f7f9f6; font-size: 13px; font-weight: 700; color: var(--secondary); }
.size-choice:hover { background: #eaf2e8; }
.size-choice[aria-pressed=true] { color: var(--green-dark); background: var(--selected); border-color: var(--selected-line); }
.size-name { display: flex; align-items: center; gap: 6px; }
.size-indicator { width: 8px; height: 8px; border: 1px solid #7b9280; border-radius: 50%; flex: none; }
[aria-pressed=true] .size-indicator { background: #377a4d; border-color: #377a4d; box-shadow: inset 0 0 0 1px var(--selected); }
.size-range { color: inherit; font: 550 12px var(--mono); white-space: nowrap; }
.height-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.height-options .size-choice { min-height: 43px; flex-direction: column; justify-content: center; gap: 3px; text-align: center; padding-inline: 1px; }
.size-reference { display: flex; align-items: center; justify-content: flex-start; gap: 5px; font-size: 13px; font-weight: 670; min-height: 31px; margin-top: auto; padding-top: 6px; }
.explanation { grid-column: 1 / -1; padding: 16px; display: flex; align-items: center; gap: 12px; background: #f0f6ee; }
.explain-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; background: #dcefdc; color: var(--green); }
.explain-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.explain-title h2 { font-size: 17px; }
.mode-label { padding: 3px 7px; border-radius: 20px; font-size: 13px; font-weight: 730; background: #dcefdc; color: var(--green); }
.explain-copy p { margin-top: 5px; font-size: 15px; line-height: 1.6; color: var(--secondary); }
.pattern-link { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; min-height: 36px; font-size: 14px; font-weight: 700; }
.site-footer { min-height: 68px; display: flex; align-items: center; justify-content: flex-end; font-size: 13px; color: var(--muted); }
.site-footer a { display: flex; align-items: center; gap: 4px; }
.demo { position: absolute; inset: 0 auto auto 0; display: flex; flex-direction: column; transform-origin: 0 0; background: #fbfcf7; color: #17291d; font-size: 22px; overflow: hidden; }
.demo-top { height: 70px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 26px; background: #eff5ea; border-bottom: 1px solid #dce8da; }
.demo-brand, .demo-top small { display: flex; align-items: center; gap: 10px; }
.demo-brand { font-size: 28px; font-weight: 780; white-space: nowrap; }
.demo-brand .icon { width: 30px; height: 30px; color: #316647; }
.demo-top small { color: #4b6352; font-size: 19px; font-weight: 650; white-space: nowrap; }
.demo-body { min-height: 0; flex: 1; position: relative; display: grid; }
.demo-body.dual { grid-template-columns: minmax(320px, 33%) 1fr; }
.demo-body.support-dual { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: 24px; }
.demo-body.support-stacked { grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
.demo-scroll { overflow: auto; min-width: 0; min-height: 0; scrollbar-width: thin; scrollbar-color: #acc7aa transparent; }
.list-pane { background: #f1f6ed; padding: 27px 20px; }
.pane-title { font-size: 34px; margin: 0 0 15px; line-height: 1.2; }
.pane-kicker { font-size: 17px; font-weight: 750; letter-spacing: .08em; color: #48694e; margin: 0 0 8px; }
.trip-button { display: flex; align-items: center; gap: 13px; border: 1px solid transparent; background: transparent; text-align: left; width: 100%; min-height: 70px; padding: 8px; margin-bottom: 3px; border-radius: 15px; }
.trip-button:hover, .trip-button[aria-pressed=true] { background: #dbeed8; }
.trip-button[aria-pressed=true] { border-color: #b8d6b4; }
.trip-thumb { width: 52px; height: 52px; flex: none; border-radius: 11px; overflow: hidden; }
.trip-label { display: grid; gap: 3px; min-width: 0; }
.trip-label b { font-size: 22px; }
.trip-label small { color: #4b6352; font-size: 17px; }
.detail-pane, .support-main { padding: 25px 26px 28px; }
.empty-pane { display: grid; place-content: center; text-align: center; color: #4b6352; }
.empty-pane .icon { margin: 0 auto 10px; width: 40px; height: 40px; }
.demo-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene { height: clamp(140px, 21cqw, 280px); border-radius: 17px; overflow: hidden; background: #c8e2c2; margin-bottom: 19px; }
.demo { container-type: inline-size; }
.detail-pane h3, .support-main h3, .nav-content h3 { font-size: clamp(34px, 4cqw, 49px); line-height: 1.14; margin: 0 0 11px; letter-spacing: -.03em; }
.demo-copy { color: #485d4c; line-height: 1.5; font-size: 22px; max-width: 54ch; }
.demo-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.demo-chips span { background: #e8f1e3; color: #31583b; border-radius: 40px; padding: 6px 12px; font-size: 17px; font-weight: 680; }
.demo-action { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 13px; border-radius: 24px; border: 1px solid #b9d1b6; background: #edf6e9; color: #235a39; font-size: 21px; font-weight: 720; }
.demo-action:hover { background: #daedd7; }
.back-action { margin-bottom: 13px; }
.feed { padding: 25px; }
.feed-grid { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 14px; }
.feed-card { border: 1px solid #dce6d8; background: #f5f8f1; border-radius: 15px; overflow: hidden; }
.feed-card .scene { height: 143px; margin: 0; border-radius: 0; }
.feed-card > div:last-child { padding: 12px; }
.feed-card h4 { font-size: 24px; margin: 0 0 5px; }
.feed-card small { font-size: 18px; color: #4b6352; }
.support-main .scene { height: clamp(160px, 22cqw, 300px); }
.support-side { background: #ebf4e7; padding: 22px 20px; }
.support-side h3 { font-size: 29px; margin-bottom: 11px; }
.support-side p { font-size: 20px; margin: 0 0 12px; color: #4c6652; }
.support-side label { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #d0dfca; font-size: 21px; cursor: pointer; }
.support-side input { width: 19px; height: 19px; accent-color: #346c48; }
.support-main > .demo-action { margin-bottom: 12px; }
.nav-body { grid-template-columns: 98px 1fr; grid-template-rows: minmax(0, 1fr); }
.nav-body.bottom { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 74px; }
.sample-nav { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #eaf3e6; padding: 10px 5px; overflow: auto; }
.rail .sample-nav { justify-content: safe center; }
.bottom .sample-nav { grid-row: 2; flex-direction: row; justify-content: space-around; padding: 4px 6px; }
.sample-nav button { display: grid; gap: 4px; justify-items: center; font-size: 17px; font-weight: 680; border: 0; border-radius: 10px; background: transparent; padding: 4px 0; min-width: 72px; }
.nav-icon { display: grid; place-items: center; width: 49px; height: 33px; border-radius: 25px; }
.sample-nav .icon { width: 22px; height: 22px; }
.sample-nav button:hover .nav-icon, .sample-nav button[aria-pressed=true] .nav-icon { background: #cce7c9; color: #235a39; }
.nav-content { padding: 25px; }
.nav-content .scene { height: clamp(145px, 23cqw, 310px); }
@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 256px; }
  .wrap { padding-inline: 16px; }
  .tab { gap: 6px; padding-inline: 7px; }
  .tab b { font-size: 15px; }
  .tab .icon { width: 18px; height: 18px; }
}
@media (max-width: 740px) {
  .wrap { padding-inline: 12px; }
  .header-inner { min-height: 58px; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { padding-inline: 10px; min-height: 47px; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .stage { min-height: clamp(405px, 54svh, 525px); }
  .preview-header { min-height: 53px; padding-inline: 12px; }
  .preview-footer { padding-inline: 11px; }
  .size-choice { min-height: 44px; }
  .size-reference, .reset { min-height: 44px; }
  .explanation { flex-wrap: wrap; align-items: flex-start; }
  .explain-copy { flex: 1 1 calc(100% - 52px); }
  .pattern-link { margin-left: 50px; }
}
@media (max-width: 375px) {
  .header-inner, .brand { gap: 8px; }
  .brand, .header-link { font-size: 14px; }
  .tab b { font-size: 14px; }
  .tab small, .preview-footer { font-size: 13px; }
}
