:root { color-scheme: light; --ink: #173047; --muted: #4d6563; --green: #06c755; --mint: #eff8f2; --border: #cfdfd6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--mint); color: var(--ink); font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; line-height: 1.7; }
a { color: #126540; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1649ae; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 8px 16px; background: white; z-index: 10; }
.skip-link:focus { top: 8px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px max(20px, calc((100vw - 1000px) / 2)); background: #fff; border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--green); border-radius: 12px 12px 7px 7px; }
.header-note { font-size: 13px; color: var(--muted); }
.page-shell { max-width: 960px; margin: auto; padding: 26px 22px 48px; }
.steps ol { display: flex; justify-content: space-between; gap: 8px; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; justify-items: center; gap: 5px; font-size: 12px; color: var(--muted); text-align: center; }
.steps li span { display: grid; place-items: center; border: 1px solid #8eaca0; background: #fff; width: 28px; height: 28px; border-radius: 50%; font-weight: 700; }
.steps [aria-current="step"] { color: #126540; font-weight: 800; }
.steps [aria-current="step"] span { background: var(--green); color: var(--ink); border-color: #088c43; }
.intro { padding: 36px 0 26px; max-width: 720px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.13em; color: #226342; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.4; letter-spacing: -0.025em; margin: 0 0 14px; }
h2 { font-size: 20px; line-height: 1.45; margin: 0 0 14px; }
p { margin: 0 0 14px; }
.lead { font-size: 16px; color: var(--muted); }
.intro-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.intro-tags span, .confidence { border-radius: 999px; background: #dfefe3; padding: 5px 12px; font-size: 12px; color: #214e37; }
.panel { padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: white; margin-bottom: 20px; box-shadow: 0 4px 14px #18372e05; }
.capture-stage { display: grid; gap: 1rem; }
.capture-stage[hidden] { display: none; }
.stage-button { margin-top: 8px; }
.section-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.section-heading h2 { margin: 0; }
.section-number { color: #28734a; font-size: 13px; font-weight: 800; border-bottom: 2px solid var(--green); }
.guidance-list { padding-left: 21px; margin: 0; }
.guidance-list li + li { margin-top: 9px; }
.capture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.capture-panel { display: flex; flex-direction: column; }
.capture-panel p { font-size: 14px; }
.camera-capture { display: grid; gap: 12px; }
.camera-viewport, .camera-preview { position: relative; width: min(100%, 540px); margin: 0 auto; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid #7f9f8d; border-radius: 16px; background: #15271f; }
.camera-viewport video { display: block; width: 100%; height: 100%; object-fit: cover; background: #15271f; }
.camera-preview { display: grid; place-items: center; background: #f2f7f4; border-style: dashed; color: var(--muted); font-size: 13px; }
.camera-preview img { width: 100%; height: 100%; object-fit: cover; }
.camera-guide { position: absolute; inset: 0; pointer-events: none; color: #f4fff8; }
.camera-guide__instruction { position: absolute; z-index: 2; top: 3.5%; left: 50%; width: max-content; max-width: 90%; margin: 0; transform: translateX(-50%); padding: 4px 9px; border-radius: 5px; background: #263832d9; color: #fff; font-size: clamp(10px, 2.4vw, 13px); font-weight: 800; line-height: 1.35; text-align: center; }
.camera-guide__art { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; }
.camera-guide__silhouette { fill: none; stroke: #fff; stroke-width: .7; stroke-dasharray: 1.5 1.35; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px #102e22aa); }
.camera-guide__eye-band { fill: #1596ed; stroke: #004e8c; stroke-width: .55; filter: drop-shadow(0 1px 1px #102e2288); }
.camera-guide__card-frame { fill: none; stroke: #fff; stroke-width: .7; stroke-dasharray: 1.5 1.35; stroke-linecap: round; filter: drop-shadow(0 1px 1px #102e22aa); }
.camera-guide__card-caption { position: absolute; z-index: 2; top: 65%; left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 3px; background: #263832d9; color: #fff; font-size: clamp(9px, 2.2vw, 12px); font-weight: 800; line-height: 1.2; white-space: nowrap; }
.camera-guide--side .camera-guide__card-caption { top: 61%; left: 75%; }
.camera-guide--preview { display: none; }
img:not([hidden]) ~ .camera-guide--preview { display: block; }
.camera-status { min-height: 1.7em; margin: 0; color: var(--muted); font-size: 14px; }
.camera-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.camera-actions .button { grid-column: 1 / -1; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.preview-card { margin: 0; min-width: 0; }
.preview-frame { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: 12px; background: #f2f7f4; border: 1px dashed #7f9f8d; color: var(--muted); font-size: 13px; overflow: hidden; }
.preview-frame img { max-width: 100%; width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: 7px; font-size: 12px; color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: #f3f8f5; font-size: 14px; cursor: pointer; }
.capture-retry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.text-button { padding: 7px 10px; border: 1px solid #9ab9a9; border-radius: 8px; background: #fff; color: #126540; font-weight: 700; cursor: pointer; }
.consent input { margin: 4px 0; width: 20px; height: 20px; flex-shrink: 0; accent-color: #087333; }
.form-status { font-size: 13px; color: var(--muted); margin: 16px 0 12px; }
.integration-status { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: #f7faf8; color: var(--ink); font-size: 13px; }
.integration-status small { flex-basis: 100%; color: var(--muted); }
.button { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 52px; width: 100%; padding: 12px 20px; border: 1px solid #099644; border-radius: 12px; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
.primary { background: var(--green); color: #102e22; }
.primary:hover { background: #0bbb52; }
.button:disabled { background: #dae7df; border-color: #b8cbbd; color: #4d6257; cursor: not-allowed; }
.privacy-note { margin: 12px 0 0; font-size: 12px; text-align: center; color: var(--muted); }
.notice { margin: 0 0 22px; padding: 20px; background: #fcf7e9; border: 1px solid #e1d5b0; border-radius: 16px; font-size: 14px; }
.notice p:last-child { margin-bottom: 0; }
.notice h2 { font-size: 17px; }
.recommendations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.recommendations > div { padding: 16px; border-radius: 12px; background: #ecf7ee; }
dt { font-size: 14px; color: var(--muted); }
dd { margin: 0; font-weight: 800; }
.recommendations dd { font-size: 34px; color: #145f35; white-space: nowrap; }
.recommendations dd span { font-size: 14px; font-weight: 400; }
.recommendations dd.edge-value { font-size: 26px; padding-top: 9px; }
.measurement-list { margin: 0; }
.measurement-list > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid #e2ebe5; }
.measurement-list > div:last-child { border: 0; padding-bottom: 0; }
.measurement-list dd { white-space: nowrap; }
.error-panel { margin-top: 35px; }
.site-footer { max-width: 720px; margin: auto; padding: 0 24px 32px; font-size: 12px; text-align: center; color: var(--muted); }
@media (max-width: 600px) {
  .header-note { display: none; }
  .page-shell { padding: 22px 16px 36px; }
  .steps li { font-size: 10px; gap: 7px; }
  .steps ol { gap: 4px; }
  .intro { padding-top: 28px; }
  .panel { padding: 20px; border-radius: 16px; }
  .capture-grid { grid-template-columns: 1fr; gap: 0; }
  .pose-art { height: 132px; }
  .recommendations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recommendations > div:last-child { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .recommendations dd.edge-value { padding: 0; }
  .recommendations > div { padding: 12px; }
  .recommendations dd { font-size: 30px; }
}
@media (prefers-reduced-motion: no-preference) { .button { transition: background-color 120ms ease; } }
@media (prefers-reduced-motion: reduce) { .capture-stage, .capture-stage * { transition: none !important; } }
