:root {
  color-scheme: light;
  --ink: #202038;
  --muted: #50516a;
  --violet: #543ba9;
  --paper: #faf9fe;
  --line: #dedbed;
  --lavender: #f1edff;
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.75; }
a { color: var(--violet); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #805fe8; outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; transform: translateY(-200%); padding: .5rem 1rem; background: white; }
.skip:focus { transform: none; }
.topbar { background: #191a36; border-bottom: 1px solid #ffffff2b; }
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, .top-link { color: #f7f4ff; text-decoration: none; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: .55rem; background: #dcd2ff; color: #2d215d; }
.top-link { font-size: .9rem; }
.top-link:hover { text-decoration: underline; }
.hero { overflow: hidden; color: white; background: radial-gradient(ellipse at 76% 45%, #373075, transparent 55%), #191a36; }
.hero-inner { min-height: 490px; display: grid; grid-template-columns: 1.13fr 1fr; gap: 2rem; align-items: center; }
.hero-copy { padding-block: 3.6rem 4rem; }
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.065em; margin: 0 0 1.5rem; }
h1 span { color: #d5caff; letter-spacing: -.04em; }
.hero p { max-width: 34ch; color: #eeebfb; font-size: clamp(1rem, 2vw, 1.18rem); margin: 0 0 1.8rem; }
.button { display: inline-block; text-decoration: none; color: #221a46; background: #e1d8ff; border-radius: .7rem; padding: .65rem 1.15rem; font-weight: 700; }
.button:hover { background: white; }
.hero-art { display: block; width: min(100%, 425px); height: auto; justify-self: center; filter: drop-shadow(0 16px 22px #13112466); }
.guide-layout { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: 3.4rem 5rem; }
.sidebar nav { position: sticky; top: 2rem; }
.sidebar p { margin: 0 0 .7rem; font-weight: 750; }
.sidebar ol { padding: 0; margin: 0; list-style: none; border-left: 1px solid var(--line); }
.sidebar a { display: block; padding: .48rem .82rem; color: var(--muted); text-decoration: none; }
.sidebar a:hover, .sidebar a:focus-visible { background: var(--lavender); color: var(--violet); }
.chapters { min-width: 0; }
section { scroll-margin-top: 1.5rem; padding-bottom: 3.25rem; }
section + section { padding-top: 2.75rem; border-top: 1px solid var(--line); }
section:last-child { padding-bottom: 0; }
h2 { margin: 0 0 1.15rem; font-size: clamp(1.95rem, 4.1vw, 2.85rem); letter-spacing: -.035em; }
h3 { margin: 0 0 .65rem; font-size: clamp(1.18rem, 2.8vw, 1.45rem); }
h4 { margin: 0 0 .75rem; font-size: 1.05rem; }
p { margin: 0 0 .9rem; }
.section-intro, figcaption { color: var(--muted); }
article { margin-top: 2rem; }
.safety { border: 1px solid #d7cafa; border-left: 4px solid #8066ca; background: var(--lavender); border-radius: .8rem; padding: 1.25rem 1.4rem; }
.safety ul, details ul, details ol { margin: .45rem 0 0; padding-inline-start: 1.4rem; }
li + li { margin-top: .35rem; }
.sidebar li + li { margin: 0; }
figure { margin: 1rem 0 0; min-width: 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .55rem; }
figcaption { font-size: .875rem; margin-top: .45rem; }
.prompt { margin-top: .85rem; background: white; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.prompt-head { display: flex; min-height: 3.1rem; gap: .65rem; justify-content: space-between; align-items: center; padding: .45rem .95rem; background: var(--lavender); color: #3b267d; font-weight: 700; }
.prompt button { border: 1px solid #c5b7ea; border-radius: .45rem; background: white; color: #3b267d; font: inherit; font-size: .86rem; padding: .32rem .65rem; cursor: pointer; flex-shrink: 0; }
.prompt button:hover { background: #f9f7ff; }
blockquote { margin: 0; padding: .95rem; white-space: pre-line; overflow-wrap: anywhere; }
.screens { border: 1px solid var(--line); border-radius: .65rem; margin-top: .9rem; padding: .6rem .85rem; }
.screens summary { color: var(--violet); font-weight: 650; cursor: pointer; }
.screens[open] { padding-bottom: .85rem; }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.costar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin: .85rem 0 1.15rem; }
.costar > div, .compare { padding: .85rem; background: white; border: 1px solid var(--line); border-radius: .65rem; }
.costar dt { font-weight: 700; }
.costar dt b { display: inline-grid; place-items: center; min-width: 1.65rem; min-height: 1.65rem; margin-right: .25rem; color: #492e9b; background: var(--lavender); border-radius: .35rem; }
.costar dd { margin: .25rem 0 0; color: var(--muted); }
.compare.highlight { background: var(--lavender); }
.compare p:last-child { margin-bottom: 0; }
.data-table { margin: 1rem 0; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { text-align: left; margin-bottom: .4rem; font-weight: 700; }
th, td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead { background: var(--lavender); }
.workflow { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.workflow span:not([aria-hidden]) { padding: .35rem .65rem; background: var(--lavender); color: #392781; border-radius: .45rem; }
footer { color: #eae5fc; background: #191a36; }
.footer-inner { padding-block: 1.35rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; }
.footer-inner p { margin: 0; font-weight: 650; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
footer a { color: #eee9ff; font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
  .guide-layout { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.6rem; }
  .sidebar nav { position: static; }
  .sidebar ol { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; }
  .sidebar a { background: var(--lavender); border-radius: .55rem; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding-bottom: 1.15rem; }
  .hero-copy { padding-block: 2.7rem 0; }
  .hero-art { width: min(65%, 255px); }
  .pair { grid-template-columns: 1fr; }
  .costar > div { padding: .65rem; }
  .safety { padding: 1rem; }
}
@media (max-width: 370px) {
  .costar { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
