
  :root {
    --bg: #F7F7F6;
    --surface: #FFFFFF;
    --panel: #EDEEEC;
    --ink: #1A2223;
    --ink-mid: #465557;
    --ink-soft: #6C7B7D;
    --line: #E0E2DF;
    --accent: #0C6F75;
    --accent-soft: #E1EFEF;
    --cta-ink: #FFFFFF;
    --heat: #C2551F;
    --f-body: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0F1415; --surface: #161D1E; --panel: #1A2223; --ink: #E4E9E9; --ink-mid: #C2CFD0;
      --ink-soft: #9CABAC; --line: #2E3839; --accent: #3AB2B8; --accent-soft: #12302F;
      --cta-ink: #05191B; --heat: #EE8552;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0F1415; --surface: #161D1E; --panel: #1A2223; --ink: #E4E9E9; --ink-mid: #C2CFD0;
    --ink-soft: #9CABAC; --line: #2E3839; --accent: #3AB2B8; --accent-soft: #12302F;
    --cta-ink: #05191B; --heat: #EE8552;
  }

  * { box-sizing: border-box; }
  body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
  .wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.5rem; }
  a { color: var(--accent); }
  :is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

  .top { border-bottom: 1px solid var(--line); }
  .brandmark { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; text-decoration: none; color: inherit; width: max-content; }
  .logochip { background: #241A18; border-radius: 6px; padding: .55rem .8rem; display: flex; }
  .logochip img { height: 44px; width: auto; display: block; }
  .brandmark .name { display: block; font-weight: 900; font-size: 1.25rem; letter-spacing: .03em; line-height: 1.3; }
  .brandmark .name b { font-weight: 700; font-size: .62em; color: var(--ink-mid); margin-left: .3rem; }
  .brandmark .cat { display: block; font-size: .95rem; color: var(--ink-mid); }

  .hero { padding: 3.5rem 0 1.5rem; }
  .eyebrow { font-size: .88rem; font-weight: 700; letter-spacing: .28em; color: var(--accent); margin: 0 0 .8rem; }
  h1 { font-weight: 900; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.3; letter-spacing: -.015em; margin: 0 0 1.2rem; text-wrap: balance; }
  .lede { font-size: 1.08rem; color: var(--ink-mid); max-width: 40rem; margin: 0; }

  .howto { background: var(--panel); border-radius: 10px; padding: 1.2rem 1.4rem; margin: 1.5rem 0 3rem; }
  .howto h2 { font-size: 1rem; margin: 0 0 .5rem; }
  .howto ul { margin: 0; padding-left: 1.2rem; color: var(--ink-mid); font-size: .98rem; }
  .howto li + li { margin-top: .35rem; }

  .step { display: flex; align-items: center; gap: .7rem; font-size: 1.3rem; font-weight: 700; margin: 0 0 1.2rem; }
  .step span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--cta-ink); font-family: var(--f-mono); font-size: 1rem; flex: none; }

  .tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 3rem; }
  .tier { display: grid; gap: .55rem; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: .8rem; cursor: pointer; }
  .tier[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
  .tier svg { width: 100%; height: auto; display: block; border-radius: 6px; }
  .tier .t { font-weight: 900; font-size: 1.15rem; line-height: 1.3; }
  .tier .s { font-size: .88rem; color: var(--ink-mid); line-height: 1.5; }
  .tier .c { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); }
  .tier .c.has { color: var(--accent); font-weight: 600; }

  .panelhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.2rem; }
  .panelhead .step { margin: 0; }
  .panelhead p { margin: 0; color: var(--ink-mid); }

  .film { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; margin-bottom: 1.5rem; }
  .fhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
  .fhead .brand { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .12em; color: var(--ink-soft); margin: 0; }
  .fhead h3 { font-size: 1.5rem; margin: 0; line-height: 1.35; }
  .vlt { font-family: var(--f-mono); font-weight: 600; font-size: .9rem; background: var(--accent); color: var(--cta-ink); border-radius: 4px; padding: .2rem .65rem; white-space: nowrap; }

  .specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 1.6rem; }
  .specs div { background: var(--surface); padding: .8rem .9rem; }
  .specs dt { font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
  .specs dd { margin: 0; font-family: var(--f-mono); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }

  .delta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: 0 0 1rem; }
  .delta b { font-family: var(--f-mono); font-size: 2.6rem; font-weight: 600; color: var(--accent); line-height: 1.1; letter-spacing: -.02em; }
  .delta span { font-weight: 700; font-size: 1.05rem; }
  /* ═══ 實測對照（實拍＋熱像） ═══ */
  .cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .cmp-col { display: grid; grid-template-columns: 1fr; gap: 0.5rem; align-content: start; }
  .cmp-h { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; border-top: 4px solid; padding-top: 0.45rem; }
  .cmp-h span { font-weight: 700; font-size: 1.02rem; }
  .cmp-h b { font-family: var(--f-mono); font-size: 2.1rem; font-weight: 600; line-height: 1.1; }
  .cmp-h b small { font-family: var(--f-body); font-size: 0.95rem; font-weight: 700; margin-right: 0.2rem; }
  .cmp-img { position: relative; margin: 0; }
  .cmp-img img { display: block; width: 100%; height: auto; border-radius: 4px; }
  .cmp-img i { position: absolute; right: 0.4rem; top: 0.4rem; font-style: normal; font-size: 0.78rem; font-weight: 700; padding: 0.12rem 0.5rem; border-radius: 3px; background: rgba(0,0,0,.62); color: #fff; }
  .filmbox { position: absolute; left: .5%; top: .5%; width: 90.5%; height: 35.5%; border: 2px dashed #3AB2B8; border-radius: 3px; pointer-events: none; }
  .filmbox em, .nofilm { position: absolute; font-style: normal; font-weight: 700; font-size: 1rem; line-height: 1.3; color: #fff; padding: .15rem .5rem; border-radius: 4px; white-space: nowrap; pointer-events: none; }
  .filmbox em { left: .35rem; bottom: .35rem; background: #0C6F75; }
  .nofilm { left: 3%; bottom: 65.5%; background: #C2551F; }
  @media (max-width: 760px) { .filmbox em, .nofilm { font-size: .74rem; padding: .08rem .3rem; } .filmbox em { left: .2rem; bottom: .2rem; } }
  .tmk { position: absolute; transform: translate(-50%, 12px); white-space: nowrap; pointer-events: none; font-family: var(--f-mono); font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: #fff; background: rgba(0,0,0,.74); padding: .12rem .45rem; border-radius: 4px; }
  .tmk small { font-family: var(--f-body); font-size: .74em; font-weight: 700; margin-right: .25rem; }
  .tmk.hot-film { background: #0C6F75; }
  .tmk.hot-sun { background: #C2551F; }
  .tmk.up { transform: translate(-50%, calc(-100% - 12px)); }
  @media (max-width: 760px) { .tmk { font-size: .8rem; padding: .08rem .3rem; transform: translate(-50%, 8px); } .tmk.up { transform: translate(-50%, calc(-100% - 8px)); } }
  .cmp .is-film .cmp-h { border-color: var(--accent); } .cmp .is-film .cmp-h span, .cmp .is-film .cmp-h b { color: var(--accent); }
  .cmp .is-sun .cmp-h { border-color: var(--heat); } .cmp .is-sun .cmp-h span, .cmp .is-sun .cmp-h b { color: var(--heat); }
  @media (max-width: 760px) {
    .cmp { gap: 0.7rem; }
    .cmp-col { grid-template-columns: 1fr; }
    .cmp-h { gap: 0 0.5rem; }
    .cmp-h span { font-size: 0.92rem; width: 100%; }
    .cmp-h b { font-size: 1.6rem; }
  }
  .tnote { font-size: .95rem; color: var(--ink-mid); margin: 1.1rem 0 .5rem; }
  .cond { font-size: .85rem; color: var(--ink-soft); margin: 0; }
  .glass { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
  .glass h4 { font-size: 1.05rem; margin: 0 0 .9rem; }
  .glass h4 span { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
  .gpair { display: grid; grid-template-columns: repeat(2, minmax(0, 13rem)); gap: .9rem; }
  .gpair figure { margin: 0; }
  .gpair img { width: 100%; height: auto; display: block; border-radius: 8px; }
  .gpair figcaption { display: grid; margin-top: .45rem; line-height: 1.5; }
  .gpair .lab { font-weight: 700; }
  .lab.mute { color: var(--ink-mid); }
  .gpair .lab.warm { color: var(--heat); }
  .gpair .tp { font-family: var(--f-mono); font-size: 1.05rem; }

  /* ═══ 篩選 ═══ */
  .filters { display: grid; gap: 2rem; margin-bottom: 3rem; }
  .fgroup .step { margin-bottom: .8rem; }
  .step small { font-size: .85rem; font-weight: 500; color: var(--ink-soft); }
  .chips { display: flex; flex-wrap: wrap; gap: .6rem; }
  .chip { font: inherit; color: inherit; background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: .5rem .9rem; cursor: pointer; display: grid; text-align: left; line-height: 1.4; }
  .chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
  .chip .cl { font-weight: 700; font-size: 1rem; }
  .chip .co { font-size: .78rem; color: var(--ink-soft); }
  .chip .cn { font-family: var(--f-mono); font-size: .78rem; color: var(--accent); font-weight: 600; }
  .chip .cn.zero { color: var(--ink-soft); font-weight: 400; }
  .tiers { grid-template-columns: repeat(5, 1fr); margin-bottom: 0; }
  .allsw { display: grid; place-items: center; aspect-ratio: 120 / 72; border-radius: 6px; font-weight: 700; color: var(--ink-mid); background: linear-gradient(90deg, #9CC7E8 0 20%, #7FA2BC 20% 40%, #5F7A8E 40% 60%, #3F5060 60% 80%, #26313A 80%); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

  /* ═══ 結果 ═══ */
  .rhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; margin-bottom: 1.2rem; }
  .rhead .step { margin: 0; }
  .rhead em { font-style: normal; font-family: var(--f-mono); color: var(--accent); }
  .sort { font-size: .95rem; color: var(--ink-mid); }
  .sort select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .5rem; margin-left: .3rem; }

  .frow { display: grid; grid-template-columns: 9rem 1fr 17rem; gap: 1.4rem; align-items: center; }
  .fsw svg { width: 100%; height: auto; display: block; border-radius: 6px; }
  .fsw span { display: block; font-family: var(--f-mono); font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; text-align: center; }
  .finfo .brand { font-family: var(--f-mono); font-size: .85rem; letter-spacing: .1em; color: var(--ink-soft); margin: 0; }
  .finfo .brand span { font-family: var(--f-body); letter-spacing: 0; margin-left: .6rem; }
  .finfo h3 { font-size: 1.45rem; margin: 0; line-height: 1.35; }
  .tested { margin: .3rem 0 0; font-weight: 700; color: var(--accent); }
  .tested b { font-family: var(--f-mono); font-size: 1.3rem; }
  .untested { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-soft); }
  .fbars { display: grid; gap: .3rem; }
  .bar { display: grid; grid-template-columns: 5.6rem 1fr 3.2rem; align-items: center; gap: .5rem; font-size: .88rem; }
  .bar .bl { color: var(--ink-mid); font-weight: 700; }
  .bar .bt { height: 8px; background: var(--panel); border-radius: 4px; overflow: hidden; }
  .bar .bt i { display: block; height: 100%; border-radius: 4px; background: var(--ink-soft); }
  .bar.b-irr .bt i, .bar.b-tser .bt i { background: var(--accent); }
  .bar.b-uv .bt i { background: #7B5EA7; }
  .bar b { font-family: var(--f-mono); text-align: right; font-weight: 600; }
  .warr { margin: .2rem 0 0; font-size: .88rem; color: var(--ink-mid); }
  .factions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
  .ghost { font: inherit; font-weight: 700; font-size: .95rem; color: var(--accent); background: transparent; border: 2px solid var(--accent); border-radius: 6px; padding: .4rem 1rem; cursor: pointer; }
  .ghost.on { background: var(--accent); color: var(--cta-ink); }
  .fdetail { margin-top: 1.4rem; }

  /* ═══ 比較 ═══ */
  #compare:not(:empty) { margin-top: 3rem; scroll-margin-top: 1rem; }
  .tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .ctable { width: 100%; border-collapse: collapse; min-width: 30rem; }
  .ctable th, .ctable td { padding: .75rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
  .ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: 0; }
  .ctable thead th { font-size: 1.05rem; position: relative; padding-right: 2rem; }
  .ctable thead th small { display: block; font-family: var(--f-mono); font-size: .78rem; color: var(--ink-soft); font-weight: 500; }
  .ctable tbody th { font-size: .9rem; color: var(--ink-mid); white-space: nowrap; width: 8rem; }
  .ctable td { font-family: var(--f-mono); font-size: 1.1rem; }
  .ctable td.hi { color: var(--accent); font-weight: 700; }
  .ctable td.sw svg { width: 7rem; height: auto; display: block; border-radius: 4px; }
  .ctable .dt { color: var(--accent); }
  .ctable td small { font-family: var(--f-body); font-size: .78rem; color: var(--ink-soft); }
  .ctable .x { position: absolute; top: .5rem; right: .5rem; font: inherit; font-size: 1.1rem; line-height: 1; background: none; border: 0; color: var(--ink-soft); cursor: pointer; padding: .2rem .35rem; }
  .cnote { font-size: .88rem; color: var(--ink-soft); margin: .7rem 0 0; }

  .tray { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.12); padding: .8rem 1.1rem; margin-top: 2rem; }
  .tray[hidden] { display: none; }
  .tray span { font-weight: 700; margin-right: auto; }
  .tray b { font-family: var(--f-mono); color: var(--accent); }
  .tray .cta { padding: .5rem 1.1rem; }

  .empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 1.8rem 1.5rem; display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: center; }
  .empty svg { width: 100%; height: auto; border-radius: 8px; display: block; }
  .empty h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
  .empty p { color: var(--ink-mid); margin: 0 0 1rem; }

  .cta { display: inline-block; background: var(--accent); color: var(--cta-ink); font-weight: 700; padding: .75rem 1.5rem; border-radius: 4px; text-decoration: none; }

  .contact { border-top: 1px solid var(--line); margin-top: 3rem; padding: 3rem 0; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
  .contact h2 { font-size: 1.45rem; margin: 0 0 .5rem; }
  .contact p { color: var(--ink-mid); margin: 0 0 1rem; }
  .phones { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-family: var(--f-mono); }
  .phones a { color: var(--ink); text-decoration: none; }
  .phones b { font-family: var(--f-body); font-size: .88rem; color: var(--ink-soft); margin-right: .45rem; }
  .line { display: flex; align-items: center; gap: .9rem; }
  .line img { width: 92px; height: 92px; background: #fff; padding: 5px; border-radius: 6px; display: block; }
  .line span { font-size: .92rem; color: var(--ink-mid); line-height: 1.6; }


  @media (max-width: 760px) {
    .tiers { grid-template-columns: 1fr 1fr; }
    .tiers .tier:first-child { grid-column: 1 / -1; grid-template-columns: 6rem 1fr; align-items: center; column-gap: .8rem; }
    .tiers .tier:first-child > * { grid-column: 2; }
    .tiers .tier:first-child .allsw { grid-column: 1; grid-row: 1 / span 3; }
    .frow { grid-template-columns: 7rem 1fr; gap: 1rem; }
    .fbars { grid-column: 1 / -1; }
    .finfo h3 { font-size: 1.25rem; }
    .specs { grid-template-columns: 1fr 1fr; }
    .empty { grid-template-columns: 1fr; }
    .empty svg { max-width: 14rem; }
    .contact { grid-template-columns: 1fr; }
    .film { padding: 1.1rem; }
    .delta b { font-size: 2.1rem; }
  }
