:root {
  --bg: #f1f7f3;
  --paper: #ffffff;
  --ink: #24382f;
  --muted: #647a70;
  --line: #c9ddd2;
  --green: #2f806b;
  --green-dark: #246853;
  --orange: #d17d50;
  --blue: #5d7d91;
  --shadow: 0 14px 32px rgba(43, 78, 62, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif; line-height: 1.7; }
a { color: inherit; }
.guide-header, .guide-main, .guide-footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.guide-header { padding: 24px 0 46px; }
.back-link { display: inline-flex; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--orange); }
.guide-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; align-items: center; padding-top: 38px; }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { max-width: 680px; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: 0; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
.hero-copy { max-width: 680px; margin: 18px 0; color: var(--muted); font-size: 1.05rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags span, .setting-chip { display: inline-flex; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #e5f2eb; color: var(--green-dark); font-size: .8rem; font-weight: 800; }
.guide-video-wrap { position: relative; width: 248px; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 50%; background: #e5f2eb; box-shadow: var(--shadow); }
.guide-video-wrap video { display: block; width: 226px; height: 226px; object-fit: cover; border-radius: 50%; background: #dcefe6; }
.guide-video-wrap figcaption { position: absolute; right: -20px; bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .74rem; font-weight: 800; }
.guide-main { display: grid; gap: 64px; padding-bottom: 56px; }
.intro-band, .tips-band { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 22px; align-items: start; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.intro-band p:last-child, .tips-band p:last-child { margin-bottom: 0; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-note { margin: 0; color: var(--muted); font-size: .88rem; }
.section-number, .tip-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #dcefe6; color: var(--green-dark); font-weight: 900; }
.step-grid, .subject-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card, .subject-guide { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 8px 20px rgba(43, 78, 62, .05); }
.step-card p, .subject-guide p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.step-index { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-top: 18px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }
.step-card h3 { display: inline; margin-left: 8px; }
.step-art { display: grid; place-items: center; height: 118px; border-radius: 12px; background: #f2f8f4; color: var(--green-dark); }
.art-text { width: 100%; align-content: center; gap: 8px; }
.art-text span { padding: 5px 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-weight: 800; }
.art-text i { width: 52%; height: 5px; border-radius: 4px; background: #c9ddd2; }
.art-sliders { gap: 13px; }
.art-sliders span { position: relative; width: 68%; height: 5px; border-radius: 4px; background: #c9ddd2; }
.art-sliders span::after { content: ""; position: absolute; top: 50%; left: 38%; width: 14px; height: 14px; border: 3px solid var(--orange); border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.art-sliders span:nth-child(2)::after { left: 70%; border-color: var(--green); }
.art-sliders span:nth-child(3)::after { left: 20%; border-color: var(--blue); }
.art-output { grid-template-columns: 64px 30px; gap: 10px; }
.art-output b { display: grid; place-items: center; width: 58px; height: 70px; border: 2px solid var(--green); border-radius: 7px; background: #fff; color: var(--green); }
.art-output span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dcefe6; color: var(--green-dark); font-weight: 900; }
.subject-guide { min-height: 220px; }
.subject-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 12px; background: #dcefe6; color: var(--green-dark); font-size: 1.25rem; font-weight: 900; }
.subject-guide strong { display: block; margin-top: 16px; color: var(--green-dark); font-size: .82rem; }
.subject-guide.chinese { border-top: 4px solid #a55c4d; }
.subject-guide.science { border-top: 4px solid var(--green); }
.subject-guide.social { border-top: 4px solid var(--blue); }
.settings-list { display: grid; gap: 12px; }
.setting-row { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: start; padding: 18px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row h3 { font-size: 1rem; }
.setting-row p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.tips-band { grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; background: #e5f2eb; }
.guide-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; border-radius: 9px; background: var(--green); color: #fff; font-weight: 800; text-decoration: none; }
.guide-button:hover { background: var(--green-dark); }
.guide-footer { padding: 22px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) {
  .guide-hero { grid-template-columns: 1fr; gap: 28px; }
  .guide-video-wrap { width: 190px; justify-self: start; }
  .guide-video-wrap video { width: 168px; height: 168px; }
  .step-grid, .subject-guide-grid { grid-template-columns: 1fr; }
  .step-art { height: 96px; }
  .tips-band { grid-template-columns: 42px 1fr; }
  .guide-button { grid-column: 2; justify-self: start; }
}
@media (max-width: 480px) {
  .guide-header, .guide-main, .guide-footer { width: min(100% - 20px, 1120px); }
  .intro-band, .tips-band { padding: 20px; }
  .intro-band { grid-template-columns: 42px 1fr; gap: 14px; }
  .setting-row { grid-template-columns: 1fr; gap: 8px; }
  .section-heading { display: block; }
  .section-note { margin-top: 8px; }
}
