:root {
  --orange: #e2680c;
  --orange-deep: #bd5207;
  --charcoal: #222222;
  --warm-gray: #8c8c8c;
  --cream: #fff7e7;
  --cream-deep: #f3eadd;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #fff 0, var(--cream) 54%, #f5ede2 100%); }
button, select { font: inherit; }
.guide-shell { max-width: 820px; margin: auto; padding: 26px 20px 36px; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--charcoal); text-decoration: none; font-weight: 800; line-height: 1.3; }
.brand small { display: block; color: var(--warm-gray); font-size: .76rem; font-weight: 500; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--orange); border-radius: 13px; font-size: 1.25rem; box-shadow: 0 6px 18px #e2680c33; }
.index-button, .secondary-button { border: 1px solid #e4c7ad; border-radius: 999px; background: #fff; color: var(--orange-deep); padding: .6rem .9rem; cursor: pointer; }
.guide-card { background: #fff; border: 1px solid var(--cream-deep); border-top: 5px solid var(--orange); border-radius: 28px; padding: clamp(25px, 6vw, 52px); box-shadow: 0 18px 50px #6c3b1018; }
.eyebrow { margin: 0; color: var(--orange); font-size: .92rem; font-weight: 800; letter-spacing: .08em; }
.panel-number { margin: 18px 0 3px; color: #9a6a39; font-weight: 800; font-size: 1rem; }
h1 { margin: .1rem 0 1.5rem; color: var(--charcoal); font-size: clamp(1.7rem, 5vw, 2.7rem); line-height: 1.28; letter-spacing: -.035em; }
.panel-figure { margin: 0 0 1.55rem; overflow: hidden; border: 1px solid var(--cream-deep); border-radius: 16px; background: #fffaf4; }
.panel-figure img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: contain; background: #fffaf4; }
.panel-figure figcaption { padding: .5rem .75rem; color: var(--warm-gray); font-size: .8rem; text-align: right; }
.language-tabs { display: flex; gap: 8px; margin-bottom: 25px; padding-bottom: 14px; border-bottom: 1px solid var(--cream-deep); }
.language-tabs button { padding: .45rem .78rem; border: 0; border-radius: 9px; background: transparent; color: var(--warm-gray); cursor: pointer; font-weight: 700; }
.language-tabs button[aria-selected=true] { background: #fff0e4; color: var(--orange-deep); }
.script { min-height: 8.5em; margin: 0; color: #3a3a3a; font-size: clamp(1.06rem, 2.7vw, 1.2rem); white-space: pre-line; }
.player { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--cream-deep); }
.play-button { border: 0; border-radius: 999px; background: var(--orange); color: #fff; padding: .85rem 1.25rem; cursor: pointer; font-weight: 800; box-shadow: 0 6px 14px #e2680c35; }
.play-button:hover { background: var(--orange-deep); }
.play-icon { margin-right: .45rem; }
.rate-control { margin-left: auto; color: #666; font-size: .9rem; }
.rate-control select { border: 1px solid #dec7b2; border-radius: 8px; background: #fff; padding: .35rem; }
.status { min-height: 1.5em; margin: 14px 0 0; color: var(--warm-gray); font-size: .88rem; }
.panel-navigation { display: flex; justify-content: space-between; margin: 22px 3px; }
.panel-navigation a { color: var(--orange-deep); font-weight: 800; text-decoration: none; }
.notice { max-width: 600px; margin: 24px auto 0; color: #85766b; font-size: .78rem; text-align: center; }
dialog { width: min(660px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 20px 70px #4a260a55; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; color: var(--charcoal); border-bottom: 1px solid var(--cream-deep); }
.dialog-head button { border: 0; background: transparent; color: var(--orange); cursor: pointer; font-size: 1.8rem; }
.index-list { max-height: 70vh; padding: 10px; overflow: auto; }
.index-list a { display: flex; gap: 14px; padding: 11px 10px; border-radius: 11px; color: var(--charcoal); text-decoration: none; }
.index-list a:hover { background: #fff2e8; }
.index-list b { min-width: 2.2rem; color: var(--orange); }
@media (max-width: 560px) {
  .guide-shell { padding: 16px 14px 28px; }
  .site-header { margin-bottom: 18px; }
  .guide-card { padding: 24px; border-radius: 22px; }
  .rate-control { display: flex; align-items: center; gap: 8px; width: 100%; margin-left: 0; }
  .script { min-height: 11em; }
  .secondary-button { padding: .75rem .9rem; }
}
