/* =========================================================
   天文教育 · Astronomy — 3D 模型與課程頁
   只載在 /resources/classes/astronomy/ 與 /human-body/ 底下（build.py 的 _astro_head、_body_head）
   ========================================================= */

.zh { font-family: var(--zh); }
.h1-zh { display: block; font-family: var(--zh); font-weight: 600; font-size: .52em; letter-spacing: .04em; margin-top: .45em; color: rgba(255,255,255,.86); }

/* ---------- 一句話看懂 ---------- */
.big-idea { position: relative; margin: 0 0 clamp(2.4rem, 5vw, 3.6rem); padding: 1.4rem 1.6rem 1.3rem 1.8rem; background: linear-gradient(120deg, #fff 0%, var(--cream) 100%); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); }
.big-idea-k { display: block; font-weight: 800; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dk); margin-bottom: .45rem; }
.big-idea p { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.6; color: var(--ink); }
.big-idea p .zh { display: inline-block; margin-top: .35rem; font-size: .9em; }
.al-how { max-width: 70ch; }
.al-how .zh { font-size: .95em; }

/* ---------- 3D 模型面板 ---------- */
.astro-lab {
  --al-bg: #060a16; --al-panel: #0c1428; --al-line: rgba(160,180,230,.16);
  --al-text: #e8edf7; --al-mute: #9fb0cf; --al-teal: #4fd1c5; --al-sun: #ffd36e;
  margin-top: 1.6rem; background: radial-gradient(120% 90% at 20% 0%, #13224a 0%, var(--al-bg) 55%); color: var(--al-text);
  border-radius: 24px; box-shadow: 0 30px 70px -30px rgba(6,12,30,.75), 0 0 0 1px rgba(255,255,255,.04) inset; overflow: hidden;
}
.al-stage { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.al-space { position: relative; min-height: 560px; border-right: 1px solid var(--al-line); }
.al-space-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: none; }
.al-space-cv:active { cursor: grabbing; }
.al-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.al-lab { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .12rem .55rem; border-radius: 999px; background: rgba(6,10,22,.62); color: #dfe7f7; border: 1px solid rgba(255,255,255,.14); transition: opacity .2s; font-family: var(--sans); }
.al-lab.sun { color: #ffe3a3; border-color: rgba(255,211,110,.4); }
.al-lab.sun b { display: none; font-weight: 800; margin-left: .35rem; transform: rotate(var(--ang, 0rad)); }
.al-lab.sun.edge { background: rgba(40,28,6,.8); box-shadow: 0 0 22px 4px rgba(255,200,80,.35); }
.al-lab.sun.edge b { display: inline-block; }
.al-lab.moon { color: #fff; }
.al-hint { position: absolute; left: 1rem; bottom: .7rem; margin: 0; font-size: .74rem; color: var(--al-mute); pointer-events: none; }
.al-home { position: absolute; right: .8rem; top: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--al-line); background: rgba(12,20,40,.75); color: var(--al-text); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background .2s, transform .3s; }
.al-home:hover { background: #1a2a52; transform: rotate(-60deg); }
.al-nogl-msg { display: none; position: absolute; inset: 0; margin: 0; padding: 2rem; place-content: center; text-align: center; color: var(--al-mute); font-size: 1rem; }
.al-nogl .al-nogl-msg { display: grid; }
.al-nogl .al-space-cv, .al-nogl .al-hint, .al-nogl .al-home, .al-nogl .al-sky, .al-nogl .al-controls { display: none; }
.al-nogl .al-stage { grid-template-columns: 1fr; }

/* 從地球看 */
.al-sky { padding: 1.1rem 1.1rem 1.2rem; background: linear-gradient(180deg, rgba(12,20,40,.9), rgba(6,10,22,.95)); display: flex; flex-direction: column; }
.al-sky-k { margin: 0 0 .6rem; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--al-sun); }
.al-sky-view { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--al-line); background: #02040c; }
.al-sky-cv { width: 100%; height: 100%; display: block; }
.al-sun-dir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.al-sun-dir i { position: absolute; left: 0; top: 0; font-style: normal; font-size: 1.3rem; color: var(--al-sun); text-shadow: 0 0 12px rgba(255,200,80,.9); transform: translate(-50%, -50%) rotate(var(--ang, 0rad)) translateX(clamp(40px, 43cqw, 150px)) rotate(calc(-1 * var(--ang, 0rad))); opacity: 0; transition: opacity .3s; }
.al-sky-view { container-type: inline-size; }
.al-sun-dir.dir i { opacity: 1; }
.al-sun-dir em { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(clamp(40px, 43cqw, 150px) - 50%)); white-space: nowrap; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--al-sun); background: rgba(6,10,22,.7); padding: .1rem .5rem; border-radius: 999px; }
.al-sun-dir em:empty { display: none; }
.al-badge { position: absolute; left: .6rem; top: .6rem; margin: 0; padding: .2rem .65rem; white-space: nowrap; border-radius: 999px; font-size: .72rem; font-weight: 800; color: #1b1405; background: var(--al-sun); box-shadow: 0 6px 20px -6px rgba(255,211,110,.8); }
.al-badge b { font-weight: 700; margin-left: .25rem; }
.al-hemi-note { margin: .5rem 0 0; font-size: .72rem; color: var(--al-mute); text-align: center; }
.al-readout { margin-top: .8rem; }
.al-phase-en { margin: 0; font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; color: #fff; }
.al-phase-zh { margin: .15rem 0 .7rem; font-family: var(--zh); font-size: 1.2rem; font-weight: 600; color: var(--al-sun); letter-spacing: .06em; }
.al-readout dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .8rem; }
.al-readout dl div:nth-child(4), .al-readout dl div:nth-child(5) { grid-column: span 1; }
.al-readout dt { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--al-mute); }
.al-readout dd { margin: 0; font-size: .86rem; font-weight: 700; color: var(--al-text); font-variant-numeric: tabular-nums; }
.al-when { margin: .8rem 0 0; padding-top: .7rem; border-top: 1px solid var(--al-line); font-size: .86rem; line-height: 1.55; color: var(--al-text); }
.al-when span { display: block; font-family: var(--zh); color: var(--al-mute); margin-top: .15rem; }

/* 控制列 */
.al-controls { padding: 1rem 1.2rem 1.1rem; border-top: 1px solid var(--al-line); background: rgba(10,16,34,.9); }
.al-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.al-play, .al-today, .al-speed button { font-family: var(--sans); font-weight: 800; cursor: pointer; border-radius: 999px; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.al-play { display: inline-flex; align-items: center; gap: .55rem; padding: .62rem 1.3rem .62rem 1rem; border: 0; background: var(--al-sun); color: #1b1405; font-size: .95rem; box-shadow: 0 10px 26px -12px rgba(255,211,110,.9); }
.al-play:hover { transform: translateY(-2px); }
.al-play-i { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.is-playing .al-play-i { width: 11px; height: 13px; border: 0; background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%); }
.al-fresh .al-play { animation: alPulse 1.8s ease-in-out infinite; }
@keyframes alPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,211,110,.55); } 50% { box-shadow: 0 0 0 12px rgba(255,211,110,0); } }
.al-speed { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--al-line); }
.al-speed button { border: 0; background: transparent; color: var(--al-mute); font-size: .8rem; padding: .38rem .8rem; }
.al-speed button[aria-pressed="true"] { background: #22345f; color: #fff; }
.al-today { margin-left: auto; border: 1px solid rgba(255,211,110,.45); background: transparent; color: var(--al-sun); font-size: .88rem; padding: .55rem 1rem; }
.al-today:hover { background: rgba(255,211,110,.12); }

.al-slider { display: block; margin: .9rem 0 .2rem; }
.al-slider > span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--al-mute); margin-bottom: .2rem; }
.al-age { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
.al-age::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--al-sun) 0 var(--p, 0%), rgba(255,255,255,.12) var(--p, 0%)); }
.al-age::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); }
.al-age::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--al-sun); }
.al-age::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--al-sun); box-shadow: 0 0 0 4px rgba(255,211,110,.18); }
.al-age::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--al-sun); }
.al-age:focus-visible { outline: 2px solid var(--al-teal); outline-offset: 4px; border-radius: 6px; }

.al-chips { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .4rem; margin: .5rem 0 .9rem; }
.al-chip { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .5rem .2rem .45rem; border-radius: 12px; border: 1px solid var(--al-line); background: rgba(255,255,255,.03); color: var(--al-text); cursor: pointer; font-family: var(--sans); transition: background .2s, border-color .2s, transform .2s; }
.al-chip:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.al-chip.on { border-color: var(--al-sun); background: rgba(255,211,110,.1); box-shadow: 0 0 0 1px var(--al-sun) inset; }
.al-chip-en { font-size: .66rem; font-weight: 700; line-height: 1.15; text-align: center; }
.al-chip-zh { font-family: var(--zh); font-size: .78rem; color: var(--al-sun); }

.al-toggles { gap: .5rem 1.1rem; }
.al-tg { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .84rem; font-weight: 700; user-select: none; }
.al-tg small { display: block; font-family: var(--zh); font-size: .74rem; font-weight: 500; color: var(--al-mute); }
.al-tg span:last-child { line-height: 1.2; }
.al-tg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.al-sw { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .2s; }
.al-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #cfd8ea; transition: transform .2s, background .2s; }
.al-tg input:checked + .al-sw { background: var(--al-teal); }
.al-tg input:checked + .al-sw::after { transform: translateX(16px); background: #fff; }
.al-tg input:focus-visible + .al-sw { outline: 2px solid var(--al-sun); outline-offset: 3px; }

.al-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.2rem 2rem; padding: 1rem 1.3rem 1.3rem; border-top: 1px solid var(--al-line); font-size: .82rem; line-height: 1.6; color: var(--al-mute); }
.al-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.al-legend li { display: flex; gap: .7rem; align-items: flex-start; }
.al-legend i { flex: none; width: 18px; height: 18px; margin-top: .15rem; border-radius: 50%; border: 3px solid; }
.al-lg-sun i { border-color: var(--al-sun); }
.al-lg-earth i { border-color: var(--al-teal); }
.al-lg-both i { border: 0; background: conic-gradient(var(--al-sun) 0 50%, var(--al-teal) 0); }
.al-lg-both span { color: var(--al-text); font-weight: 700; }
.al-legend .zh, .al-scale .zh { color: #7f90b0; }
.al-scale { margin: 0; }
.al-true .al-scale { color: var(--al-text); }

@media (max-width: 1020px) {
  .al-stage { grid-template-columns: 1fr; }
  .al-space { border-right: 0; border-bottom: 1px solid var(--al-line); aspect-ratio: 4 / 3; min-height: 320px; }
  .al-sky { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 1.1rem; }
  .al-sky-k { grid-column: 1 / -1; }
  .al-sky-view { grid-column: 1; grid-row: 2; }
  .al-hemi-note { grid-column: 1; grid-row: 3; align-self: start; }
  .al-readout { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
  .al-foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .astro-lab { border-radius: 18px; margin-inline: -2vw; }
  .al-space { aspect-ratio: 1 / 1; min-height: 0; }
  .al-sky { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); padding: .9rem; }
  .al-phase-en { font-size: 1.2rem; }
  .al-badge { left: .35rem; top: .35rem; padding: .1rem .45rem; font-size: .6rem; }
  .al-phase-zh { font-size: 1rem; margin-bottom: .4rem; }
  .al-readout dl { grid-template-columns: 1fr; gap: .25rem; }
  .al-when { font-size: .8rem; }
  .al-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .al-today { margin-left: 0; }
  .al-hint { display: none; }
  .al-controls { padding: .9rem .85rem 1rem; }
  .al-toggles { gap: .6rem .9rem; }
}

/* ---------- 月相八態 ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.ph-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.2rem 1.1rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.ph-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.ph-ico { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #16264a, #070b17); margin-bottom: .9rem; box-shadow: 0 10px 24px -14px rgba(6,12,30,.9); }
.ph-card h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.ph-card h3 .zh { display: block; font-size: .95rem; font-weight: 600; color: var(--gold-dk); margin-top: .2rem; }
.ph-meta { display: flex; flex-direction: column; gap: .1rem; font-size: .8rem; font-weight: 700; color: var(--brand-dk); margin: 0 0 .6rem; }
.ph-when { font-size: .9rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 .9rem; flex: 1; }
.ph-when .zh { color: var(--ink-soft); opacity: .85; }
.ph-go { align-self: flex-start; font-family: var(--sans); font-weight: 800; font-size: .8rem; color: var(--brand-dk); background: var(--brand-lt); border: 0; border-radius: 999px; padding: .42rem .9rem; cursor: pointer; transition: background .2s, color .2s; }
.ph-go:hover { background: var(--brand); color: #fff; }
.ph-go i { font-style: normal; }

/* ---------- 迷思 ---------- */
.myth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.myth { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.myth p { margin: 0; padding: 1rem 1.3rem; font-size: .98rem; line-height: 1.65; }
.myth p b { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .3rem; }
.myth p .zh { display: block; margin-top: .3rem; color: var(--ink-soft); font-size: .92rem; }
.myth-x { background: #fbece6; color: #7a3419; text-decoration-color: rgba(210,100,60,.5); }
.myth-x b { color: var(--sunset); }
.myth-v b { color: var(--brand); }

/* ---------- 口訣 ---------- */
.trick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.trick { position: relative; padding: 1.3rem 1.4rem 1.1rem; border-radius: 16px; background: linear-gradient(150deg, #fff, var(--cream)); border: 1px solid var(--line); }
.trick::before { content: ""; position: absolute; left: 0; top: 1.3rem; bottom: 1.3rem; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--gold), var(--sunset)); }
.trick h3 { font-size: 1.15rem; margin: 0 0 .6rem; }
.trick h3 .zh { display: block; font-size: .95rem; color: var(--gold-dk); margin-top: .25rem; }
.trick p { margin: 0; font-size: .96rem; line-height: 1.7; }
.trick p .zh { display: inline-block; margin-top: .35rem; }

/* ---------- 課堂活動 ---------- */
.act { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 1.5rem 2.2rem; margin-top: 1rem; }
.act ul, .act ol { margin: 0; padding-left: 1.2em; }
.act li { margin: 0 0 .75rem; font-size: .98rem; line-height: 1.6; }
.act li .zh { display: block; color: var(--ink-soft); font-size: .92rem; }
.act ol li::marker { font-weight: 800; color: var(--gold-dk); }
.act-tip { margin: 1.4rem 0 0; padding: 1rem 1.2rem; border-left: 3px solid var(--brand); background: #fff; border-radius: 0 12px 12px 0; font-size: .95rem; line-height: 1.7; }
.act-tip .zh { color: var(--ink-soft); }


@media (max-width: 1020px) { .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .myth-grid, .trick-grid, .act { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ph-grid { grid-template-columns: 1fr; } .ph-card { flex-direction: row; flex-wrap: wrap; gap: 0 1rem; } .ph-ico { width: 72px; height: 72px; } .ph-card h3 { flex: 1; align-self: center; } .ph-meta, .ph-when { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .al-fresh .al-play { animation: none; }
  .al-home:hover, .al-chip:hover, .ph-card:hover { transform: none; }
}

/* 本系列 h2 的副標是中文，不要套英文副標的斜體 */
.section .tp-h2-en { font-style: normal; font-family: var(--zh); font-weight: 600; }

/* =========================================================
   第二課：日食與月食（.ecl-lab、日月食種類卡、即將到來的日月食清單）
   ========================================================= */
.ec-view { position: absolute; left: .8rem; top: .8rem; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(12,20,40,.8); border: 1px solid var(--al-line); z-index: 2; }
.ec-view button, .ec-where button, .ec-jump button { font-family: var(--sans); font-weight: 800; font-size: .78rem; border: 0; background: transparent; color: var(--al-mute); padding: .38rem .8rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.ec-view button[aria-pressed="true"], .ec-where button[aria-pressed="true"] { background: #22345f; color: #fff; }
.ec-view button:hover, .ec-where button:hover, .ec-jump button:hover { color: #fff; }
.ec-yearview .al-hint { opacity: .6; }

.ec-aside { gap: 0; }
.ec-where { display: inline-flex; align-self: flex-start; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--al-line); margin-bottom: .7rem; }
.ec-where button { font-size: .72rem; padding: .32rem .7rem; }
.ec-views { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.ec-fig { margin: 0; }
.ec-box { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--al-line); background: #02040c; }
.ec-box canvas { width: 100%; height: 100%; display: block; }
.ec-fig figcaption { margin-top: .3rem; font-size: .66rem; line-height: 1.35; color: var(--al-mute); text-align: center; min-height: 2.7em; }
.ec-readout { margin-top: .5rem; }
.ec-date { margin: 0 0 .55rem; font-size: .84rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.ec-date span { display: block; font-family: var(--zh); font-weight: 500; font-size: .76rem; color: var(--al-mute); }
.ec-status { margin: 0; font-family: var(--serif); font-size: 1.28rem; line-height: 1.2; color: #fff; }
.ec-status.on-solar { color: var(--al-sun); }
.ec-status.on-lunar { color: #ff9a6b; }
.ec-sub { margin: .3rem 0 .75rem; font-size: .8rem; line-height: 1.5; color: var(--al-text); }
.ec-sub span { display: block; font-family: var(--zh); color: var(--al-mute); }
.ec-readout .ec-wide { grid-column: 1 / -1; }
.ec-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .76rem; color: var(--al-mute); }
.ec-season { display: inline-block !important; margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px; background: var(--al-sun); color: #1b1405 !important; font-family: var(--sans) !important; font-size: .66rem !important; font-weight: 800 !important; }
.ec-season[hidden] { display: none !important; }

.ec-jump { display: inline-flex; flex-wrap: wrap; gap: .3rem; margin-left: auto; }
.ec-jump button { border: 1px solid rgba(255,211,110,.45); color: var(--al-sun); font-size: .8rem; }
.ec-jump .ec-now { border-color: var(--al-line); color: var(--al-text); }
.ec-jump button:hover { background: rgba(255,211,110,.12); }

.ec-slider { display: block; margin: .9rem 0 .5rem; }
.ec-slider-k { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: baseline; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--al-mute); margin-bottom: .2rem; }
.ec-slider-k em { font-style: normal; letter-spacing: .02em; text-transform: none; font-weight: 600; font-family: var(--zh); }
.ec-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 .3rem 0 .2rem; vertical-align: -1px; }
.ec-dot.ec-solar { background: var(--al-sun); }
.ec-dot.ec-lunar { background: #ff7a45; }
.ec-dot.ec-season-dot { width: 16px; border-radius: 3px; background: rgba(255,211,110,.35); }
.ec-time { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; display: block; }
.ec-time::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.28) 0 var(--p, 0%), rgba(255,255,255,.12) var(--p, 0%)); }
.ec-time::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); }
.ec-time::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--al-teal); }
.ec-time::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--al-teal); }
.ec-time:focus-visible { outline: 2px solid var(--al-sun); outline-offset: 4px; border-radius: 6px; }
.ec-track { position: relative; height: 44px; margin: 0 11px; }
.ec-band { position: absolute; top: 2px; height: 18px; border-radius: 4px; background: rgba(255,211,110,.22); border: 1px solid rgba(255,211,110,.35); }
.ec-mark { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid #0a1022; padding: 0; cursor: pointer; transition: transform .2s; }
.ec-mark.ec-solar { background: var(--al-sun); }
.ec-mark.ec-lunar { background: #ff7a45; }
.ec-mark:hover, .ec-mark:focus-visible { transform: scale(1.35); outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.ec-tick { position: absolute; top: 24px; transform: translateX(-50%); font-size: .62rem; color: #7f90b0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ec-tick::before { content: ""; position: absolute; left: 50%; top: -5px; width: 1px; height: 4px; background: rgba(160,180,230,.4); }
.ec-tick-y { color: var(--al-text); font-weight: 800; }

.al-lg-orbit i { border-color: var(--al-teal); border-style: solid; border-radius: 50%; }
.al-lg-node i { border: 0; width: 13px; height: 13px; margin: .3rem .15rem 0; background: var(--al-sun); transform: rotate(45deg); border-radius: 2px; }
.al-lg-shadow i { border: 0; border-radius: 3px; background: linear-gradient(90deg, #000, rgba(0,0,0,.25)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.al-lg-season i { border: 0; border-radius: 3px; background: rgba(255,211,110,.35); box-shadow: inset 0 0 0 1px rgba(255,211,110,.5); }

@media (max-width: 1020px) {
  .ec-aside { display: block; }
  .ec-views { max-width: 460px; }
  .ec-readout { margin-top: .8rem; }
}
@media (max-width: 640px) {
  .ec-view { left: .5rem; top: .5rem; }
  .ec-view button { font-size: .7rem; padding: .3rem .6rem; }
  .ec-jump { margin-left: 0; width: 100%; }
  .ec-jump button { flex: 1; font-size: .72rem; padding: .4rem .4rem; }
  .ec-tick { font-size: .56rem; }
  .ec-tick:not(.ec-tick-y):nth-child(odd) { visibility: hidden; }
}

/* 六種日月食 */
.ty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ty-card .ph-ico { background: radial-gradient(circle at 50% 40%, #1d3a72, #0a1430); }
.ty-lunar .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
.ty-facts { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .45rem; }
.ty-facts li { font-size: .88rem; line-height: 1.5; color: var(--ink); }
.ty-facts b { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dk); }
.ty-facts .zh { display: block; color: var(--ink-soft); font-size: .84rem; }
.ty-safe { margin: 0 0 .9rem; padding: .55rem .75rem; border-radius: 10px; font-size: .84rem; line-height: 1.5; flex: 1; }
.ty-safe b { margin-right: .35rem; }
.ty-safe .zh { display: block; }
.ty-safe.ok { background: var(--brand-lt); color: var(--brand-dk); }
.ty-safe.no { background: #fbece6; color: #8a3a1b; }
@media (max-width: 1020px) { .ty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ty-grid { grid-template-columns: 1fr; } }

/* 即將到來的日月食 */
.ecl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.ecl-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; animation: eclIn .5s both; }
.ecl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ecl-card.ecl-tw { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow-sm); }
@keyframes eclIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ecl-ico { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
.ecl-body { flex: 1; min-width: 0; }
.ecl-date { margin: 0; font-size: .78rem; font-weight: 800; color: var(--gold-dk); font-variant-numeric: tabular-nums; }
.ecl-card h3 { font-size: 1.15rem; margin: .15rem 0 .45rem; }
.ecl-card h3 .zh { display: inline; margin-left: .45rem; font-size: .95rem; color: var(--ink-soft); }
.ecl-vis { margin: 0 0 .3rem; font-size: .86rem; line-height: 1.5; }
.ecl-vis b { margin-right: .35rem; color: var(--ink-soft); }
.ecl-tw .ecl-vis b { color: var(--brand); }
.ecl-vis .zh { display: block; color: var(--ink-soft); }
.ecl-max { margin: 0 0 .7rem; font-size: .76rem; color: var(--ink-soft); }
@media (max-width: 760px) { .ecl-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ecl-card { animation: none; } }

/* =========================================================
   第三課：四季（.se-lab、四個轉折點、二十四節氣）
   ========================================================= */
.se-where { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--al-line); margin-bottom: .7rem; }
.se-where button { flex: 1 1 auto; font-family: var(--sans); font-weight: 800; font-size: .7rem; border: 0; background: transparent; color: var(--al-mute); padding: .32rem .55rem; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.se-where button[aria-pressed="true"] { background: #22345f; color: #fff; }
.se-where button:hover { color: #fff; }
.se-fig { margin: 0 0 .55rem; }
.se-box { border-radius: 12px; overflow: hidden; border: 1px solid var(--al-line); background: #02040c; line-height: 0; }
.se-box canvas { width: 100%; height: auto; display: block; }
.se-fig figcaption { margin-top: .3rem; font-size: .68rem; line-height: 1.4; color: var(--al-mute); text-align: center; }
.se-readout { margin-top: .3rem; }
.se-readout dl + .se-place { margin-top: .8rem; }
.se-place { margin: .8rem 0 .4rem; padding-top: .6rem; border-top: 1px solid var(--al-line); font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: var(--al-sun); }
.se-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.se-whatif { margin: 0 0 .6rem; padding: .35rem .7rem; border-radius: 10px; background: rgba(255,122,69,.16); color: #ffb08f; font-size: .78rem; font-weight: 800; }
.se-whatif[hidden] { display: none; }
.se-lab .al-sky { overflow: hidden; }

.se-track { height: 40px; }
.se-mark { position: absolute; top: 2px; transform: translateX(-50%); padding: .05rem .4rem; border-radius: 999px; border: 1px solid rgba(255,211,110,.6); background: rgba(40,28,6,.85); color: var(--al-sun); font-family: var(--zh); font-size: .66rem; font-weight: 700; cursor: pointer; line-height: 1.5; transition: background .2s; }
.se-mark:hover { background: rgba(255,211,110,.25); }
.se-track .ec-tick { top: 24px; }
.se-time-row { margin-top: .2rem; }
.se-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.se-chips .season-svg { width: 30px; height: 30px; }
.se-close .al-hint { opacity: .7; }

.al-lab.pol { color: #fff; border-color: rgba(255,255,255,.3); }
.al-lab.place { color: #ffb4a0; border-color: rgba(255,90,54,.5); }
.al-lab.sub { color: var(--al-sun); border-color: rgba(255,211,110,.5); }
.al-lab.aps { color: #bfe6ff; border-color: rgba(159,216,255,.45); font-size: .66rem; }
.al-lab.ghost b { display: block; text-align: center; font-weight: 800; color: var(--al-sun); }

.al-lg-place i { border-color: #ffc84d; border-style: solid; box-shadow: inset 0 0 0 2px #5a8cff; }
.al-lg-tropic i { border: 2px dashed #ffd36e; }
.al-lg-subsolar i { border: 0; background: radial-gradient(circle, #fff6c8 0 30%, rgba(255,211,110,.8) 45%, rgba(255,211,110,0) 70%); }
.al-lg-axis i { border: 0; width: 3px; height: 20px; margin: 0 7px; border-radius: 2px; background: #fff; }

/* 四個轉折點 */
.ky-card .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
.ky-nums { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin: 0 0 .7rem; }
.ky-nums span { padding: .45rem .5rem; border-radius: 10px; background: var(--cream); font-size: .7rem; font-weight: 700; color: var(--ink-soft); text-align: center; line-height: 1.3; }
.ky-nums b { display: block; font-family: var(--serif); font-size: 1.02rem; color: var(--brand-dk); white-space: nowrap; }

/* 二十四節氣 */
.st-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; margin-top: 1.4rem; }
.st-chip { --st: var(--brand); display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .7rem .75rem .65rem; border-radius: 12px; border: 1px solid var(--line); border-top: 4px solid var(--st); background: #fff; cursor: pointer; text-align: left; font-family: var(--sans); transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.st-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.st-chip.st-key { box-shadow: 0 0 0 2px var(--st) inset, var(--shadow-sm); }
.st-spring { --st: #4f9a5e; } .st-summer { --st: #d2643c; } .st-autumn { --st: #c9921f; } .st-winter { --st: #4a78b8; }
.st-zh { font-family: var(--zh); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: .06em; }
.st-en { font-size: .68rem; font-weight: 700; color: var(--ink-soft); line-height: 1.25; min-height: 2.5em; }
.st-date { font-size: .8rem; font-weight: 800; color: var(--st); font-variant-numeric: tabular-nums; }
.st-cap { margin-top: .9rem; font-size: .88rem; }
@media (max-width: 1020px) { .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .se-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .se-where button { font-size: .66rem; padding: .3rem .4rem; }
}
@media (max-width: 1020px) { .se-aside { display: block; } .se-aside .se-fig { max-width: 520px; } }
.se-strip { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr .9fr; gap: .9rem 1.4rem; padding: 1rem 1.3rem 1.05rem; border-top: 1px solid var(--al-line); background: rgba(8,13,28,.92); }
.se-cell { min-width: 0; }
.se-cell dl { margin: 0; display: grid; gap: .45rem; }
.se-cell dl.se-2col { grid-template-columns: 1fr 1fr; gap: .35rem .8rem; }
.se-cell dt { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--al-mute); }
.se-cell dd { margin: 0; font-size: .86rem; font-weight: 700; color: var(--al-text); font-variant-numeric: tabular-nums; }
.se-cell dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.se-cell .se-place { margin: 0 0 .35rem; padding: 0; border: 0; }
.al-lab.aps b { display: block; text-align: center; font-weight: 700; color: #9fd8ff; font-size: .6rem; }
@media (max-width: 1020px) { .se-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .se-strip { grid-template-columns: 1fr; padding: .9rem .85rem; } }
@media (max-width: 640px) {
  .se-lab .al-lab.aps { display: none; }
  .se-lab:not(.se-close) .al-lab.pol { display: none; }
  .se-lab .al-lab.ghost { font-size: .62rem; }
}

/* =========================================================
   第四課：潮汐（.td-lab、月相與潮汐卡、潮汐用語）
   ========================================================= */
.td-aside .al-sky-k.td-k2 { margin-top: .5rem; }
.td-why button, .td-span button { flex: 1 1 0; }
.td-kind { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.td-kind.td-spring { color: var(--al-sun); }
.td-kind.td-neap { color: #9fd8ff; }
.td-kind.td-mid { color: var(--al-text); }
.td-safe p { margin: 0; padding: .65rem .8rem; border-radius: 12px; background: rgba(255,122,69,.12); border: 1px solid rgba(255,122,69,.35); font-size: .8rem; line-height: 1.55; color: var(--al-text); }
.td-safe b { display: block; color: #ffb08f; margin-bottom: .2rem; }
.td-safe span { display: block; font-family: var(--zh); color: var(--al-mute); margin-top: .2rem; }
.td-safe a { color: var(--al-sun); text-decoration: underline; text-underline-offset: 2px; }
.td-mark.td-spring { color: var(--al-sun); }
.td-mark.td-neap { color: #9fd8ff; border-color: rgba(159,216,255,.55); background: rgba(10,25,45,.85); }

.al-lab.tide { color: #bfe6ff; border-color: rgba(124,196,255,.55); background: rgba(8,30,60,.75); }
.al-lab.tide.lo { color: #9fb0cf; border-color: rgba(159,176,207,.35); }
.al-lg-ocean i { border: 0; border-radius: 50%; background: radial-gradient(circle, #2d6fbf 0 45%, rgba(111,192,255,.7) 46% 100%); transform: scaleX(1.35); }
.al-lg-arrows i { border: 0; width: 18px; height: 3px; margin-top: .6rem; border-radius: 2px; background: #ffd36e; position: relative; }
.al-lg-arrows i::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 7px solid #ffd36e; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.al-lg-pin i { border: 0; width: 12px; height: 12px; margin: .25rem 3px 0; background: #ff5a36; }

/* 月相與潮汐 */
.mt-tide { margin: 0 0 .6rem; font-family: var(--zh); font-size: .95rem; font-weight: 700; color: var(--ink-soft); }
.mt-tide b { display: inline-block; margin-right: .4rem; padding: .1rem .55rem; border-radius: 999px; font-family: var(--sans); font-size: .78rem; }
.mt-spring .mt-tide b { background: #fbe8c4; color: #7a5310; }
.mt-neap .mt-tide b { background: #dcecfb; color: #1d4f91; }

/* 潮汐用語 */
.tw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.tw-card { padding: 1.1rem 1.25rem 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #3a8ee6; box-shadow: var(--shadow-sm); }
.tw-card h3 { font-size: 1.12rem; margin: 0 0 .45rem; }
.tw-card h3 .zh { margin-left: .45rem; font-size: .95rem; color: #1d4f91; }
.tw-card p { margin: 0; font-size: .92rem; line-height: 1.6; }
@media (max-width: 1020px) { .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tw-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .td-lab .al-lab.tide.lo { display: none; } }
.td-lab .al-lab.tide { font-size: .64rem; padding: .08rem .45rem; }
@media (max-width: 640px) { .td-lab .al-lab.place { display: none; } }

/* =========================================================
   第五課：四季星空（.cn-lab、四季星空卡、今晚彰化的星空、東西方星空）
   ========================================================= */
.cn-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.cn-aside { display: flex; flex-direction: column; }
.cn-dome-box { position: relative; aspect-ratio: 1; border-radius: 50%; line-height: 0; }
.cn-dome-cv { width: 100%; height: 100%; display: block; }
.cn-badge { display: inline-block; margin: 0 0 .45rem; padding: .12rem .6rem; border-radius: 999px; background: var(--al-sun); color: #1b1405; font-size: .7rem; font-weight: 800; }
.cn-badge[hidden] { display: none; }
.cn-readout .ec-sub { margin-bottom: .6rem; }
.cn-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .76rem; color: var(--al-mute); }
.cn-lab .ec-jump .cn-tonight { border-color: rgba(255,211,110,.45); color: var(--al-sun); }
.cn-lab .se-chips .star-svg { width: 26px; height: 26px; }
.cn-credit { margin: 0; padding: .8rem 1.3rem 1.1rem; font-size: .72rem; line-height: 1.55; color: var(--al-mute); border-top: 1px solid var(--al-line); }
.cn-credit a { color: var(--al-text); text-decoration: underline; text-underline-offset: 2px; }
.cn-credit .zh { color: #7f90b0; }

.al-lab.cst { font-size: .68rem; background: rgba(6,10,22,.5); border-color: rgba(127,159,224,.35); color: #c9d6f5; text-align: center; line-height: 1.15; padding: .1rem .5rem .14rem; }
.al-lab.cst small { display: block; font-family: var(--zh); font-weight: 600; font-size: .64rem; color: #9fb0cf; letter-spacing: .06em; }
.al-lab.cst.zod { color: #ffe3a3; border-color: rgba(255,211,110,.35); }
.al-lab.cst.st-night { color: #b9fff4; border-color: rgba(79,209,197,.7); background: rgba(6,40,40,.7); box-shadow: 0 0 14px rgba(79,209,197,.35); }
.al-lab.cst.st-sun { filter: saturate(.3) brightness(.7); }
.al-lab.cst.st-sun::after { content: "☀"; margin-left: .25rem; color: var(--al-sun); }
.al-lab.cn-ast { color: #ffb3a1; border-color: rgba(255,138,112,.5); background: rgba(40,12,6,.6); }
.al-lab.cn-mid, .al-lab.cn-hid { text-align: center; line-height: 1.25; }
.al-lab.cn-mid { color: #b9fff4; border-color: rgba(79,209,197,.6); background: rgba(6,34,36,.8); }
.al-lab.cn-hid { color: #ffe3a3; border-color: rgba(255,211,110,.45); background: rgba(40,28,6,.75); }
.al-lab.cn-mid b, .al-lab.cn-hid b { display: block; font-weight: 600; font-size: .62rem; opacity: .85; }

.al-lg-arrow i { border: 0; width: 20px; height: 3px; margin-top: .6rem; border-radius: 2px; background: var(--al-teal); position: relative; }
.al-lg-arrow i::after { content: ""; position: absolute; right: -3px; top: -4px; border-left: 7px solid var(--al-teal); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.al-lg-night i { border: 0; width: 20px; height: 20px; border-radius: 0; background: linear-gradient(135deg, transparent 45%, #9fe8de 45% 55%, transparent 55%); }
.al-lg-hidden i { border: 0; width: 20px; height: 20px; border-radius: 0; background: linear-gradient(135deg, transparent 45%, rgba(127,159,224,.35) 45% 55%, transparent 55%); }
.al-lg-ecl i { border: 2px dashed var(--al-sun); }

@media (max-width: 1020px) {
  .cn-lab .al-stage { grid-template-columns: 1fr; }
  .cn-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
  .cn-aside .al-sky-k { grid-column: 1 / -1; }
  .cn-aside .cn-dome-box { grid-column: 1; grid-row: 2; }
  .cn-aside .al-hemi-note { grid-column: 1; grid-row: 3; }
  .cn-aside .cn-readout { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
}
@media (max-width: 640px) {
  .cn-aside { display: block; }
  .cn-aside .cn-dome-box { max-width: 420px; margin: 0 auto; }
  .cn-aside .cn-readout { margin-top: .8rem; }
  .cn-lab .al-lab.cst:not(.zod):not(.cn-ast) { display: none; }
  .cn-lab .al-lab.cst { font-size: .6rem; padding: .06rem .4rem; }
  .cn-lab .al-lab.cst small { font-size: .58rem; }
  .cn-lab .al-lab.cn-mid b, .cn-lab .al-lab.cn-hid b { display: none; }
  .cn-lab .ec-jump button { flex: 1 1 40%; }
  .cn-credit { padding: .8rem .85rem 1rem; }
}

/* 四季星空卡 */
.sk-card .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
.sk-list { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .3rem; }
.sk-list li { font-size: .86rem; line-height: 1.45; color: var(--ink-soft); font-family: var(--zh); }
.sk-list li b { font-family: var(--sans); color: var(--ink); }
.sk-winter { border-top: 4px solid #4a78b8; } .sk-spring { border-top: 4px solid #4f9a5e; }
.sk-summer { border-top: 4px solid #d2643c; } .sk-autumn { border-top: 4px solid #c9921f; }

/* 今晚彰化的星空 */
.tn-box { margin-top: 1.4rem; }
.tn-when { margin: 0 0 1rem; font-weight: 800; color: var(--gold-dk); font-variant-numeric: tabular-nums; }
.tn-when span { display: block; font-family: var(--zh); font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.tn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.tn-item { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem .95rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tn-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #16264a, #070b17); color: #ffe3a3; font-size: 1rem; }
.tn-item h3 { font-size: 1rem; margin: 0 0 .2rem; }
.tn-item h3 .zh { margin-left: .35rem; font-size: .88rem; color: var(--gold-dk); }
.tn-item p { margin: 0; font-size: .82rem; line-height: 1.5; }
.tn-item p .zh { display: block; color: var(--ink-soft); }
.tn-h { margin: 1.6rem 0 .7rem; font-size: 1.15rem; }
.tn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 720px; }
.tn-pair > div { padding: .9rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.tn-pair b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--brand-dk); }
.tn-pair span { display: block; font-family: var(--zh); font-size: .86rem; color: var(--ink-soft); }
.tn-pair p { margin: .5rem 0 0; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.6; }
.tn-note { margin: .9rem 0 0; font-size: .9rem; color: var(--ink-soft); max-width: 72ch; }
@media (max-width: 1020px) { .tn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tn-grid, .tn-pair { grid-template-columns: 1fr; } }

/* 東西方的星空 */
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin-top: 1.4rem; }
.cc-card { padding: 1.2rem 1.35rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); box-shadow: var(--shadow-sm); }
.cc-k { margin: 0 0 .3rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dk); }
.cc-card h3 { font-size: 1.2rem; margin: 0 0 .6rem; }
.cc-card h3 .zh { margin-left: .45rem; font-size: 1rem; color: var(--ink-soft); }
.cc-q { margin: 0 0 .75rem; padding: .6rem .9rem; border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 10px 10px 0; font-size: .88rem; font-style: italic; color: var(--ink-soft); }
.cc-q .zh { display: block; font-style: normal; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; letter-spacing: .04em; }
.cc-card p { margin: 0; font-size: .95rem; line-height: 1.65; }
.cc-card p .zh { display: inline-block; margin-top: .35rem; color: var(--ink-soft); }
.cc-tbl-wrap { margin-top: 1.6rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.cc-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cc-tbl caption { text-align: left; padding: .9rem 1.1rem .4rem; font-weight: 800; color: var(--gold-dk); }
.cc-tbl th { text-align: left; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: .5rem 1.1rem; border-bottom: 1px solid var(--line); }
.cc-tbl td { padding: .65rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.cc-tbl tr:last-child td { border-bottom: 0; }
.cc-tbl td b { display: block; }
.cc-tbl td span { display: block; color: var(--ink-soft); font-size: .84rem; }
.cc-tbl td b.zh { font-size: 1.02rem; letter-spacing: .04em; }
@media (max-width: 760px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-tbl thead { display: none; }
  .cc-tbl, .cc-tbl tbody, .cc-tbl tr, .cc-tbl td { display: block; width: 100%; }
  .cc-tbl tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .cc-tbl td { border: 0; padding: .2rem 1rem; }
}

/* =========================================================
   第六課：北極星（.ns-lab、斗柄四季、各地北極星表、今晚找北方）
   ========================================================= */
.ns-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.ns-where button { flex: 1 1 30%; }
.ns-geo-msg { margin: -.3rem 0 .6rem; font-size: .74rem; color: var(--al-sun); }
.ns-geo-msg[hidden] { display: none; }
.ns-readout .se-place { margin-top: .2rem; }
.ns-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .76rem; color: var(--al-mute); }
.ns-lab .se-chips .polaris-svg { width: 26px; height: 26px; }
.al-lab.ns-pol { color: #ffe3a3; border-color: rgba(255,211,110,.55); background: rgba(40,28,6,.8); }
.al-lab.ns-ang { color: #1b1405; background: var(--al-sun); border-color: transparent; font-weight: 800; }
.al-lab.ns-n { color: #ffb4a0; border-color: rgba(255,138,107,.5); font-size: .64rem; }
.al-lab.ns-dir { font-size: .66rem; color: #cfe9d4; border-color: rgba(159,216,168,.45); background: rgba(10,30,20,.7); }
.al-lab.ns-never { color: #b9fff4; border-color: rgba(79,209,197,.7); background: rgba(6,40,40,.75); font-size: .64rem; }
.al-lab.ns-nrise { color: #ffb3a1; border-color: rgba(255,122,107,.5); background: rgba(40,12,6,.7); font-size: .64rem; }
.al-lg-ground i { border: 0; border-radius: 50%; background: rgba(79,209,138,.55); box-shadow: inset 0 -3px 0 #ff8a6b; }
.al-lg-arc i { border: 3px solid var(--al-sun); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-45deg); }
.al-lg-never i { border: 3px solid #4fd1c5; box-shadow: 0 0 0 3px rgba(255,122,107,.45); }
@media (max-width: 1020px) {
  .ns-lab .al-stage { grid-template-columns: 1fr; }
  .ns-aside { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
  .ns-aside .al-sky-k, .ns-aside .ns-where, .ns-aside .ns-geo-msg { grid-column: 1 / -1; }
  .ns-aside .se-fig { grid-column: 1; max-width: none; }
  .ns-aside .ns-readout { grid-column: 2; margin-top: 0; }
}
@media (max-width: 640px) {
  .ns-aside { display: block; }
  .ns-aside .ns-readout { margin-top: .6rem; }
  .ns-lab .al-lab.ns-n { display: none; }
  .ns-lab .al-lab.ns-dir { font-size: .58rem; }
  .ns-lab .al-lab.cst { font-size: .6rem; padding: .06rem .4rem; }
}
.ns-tbl td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ns-tbl .ns-go { display: inline-block; margin-top: .45rem; }
.ns-tn .tn-ico { font-weight: 800; }
@media (min-width: 1021px) { .ns-tn { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =========================================================
   第七課：行星（.pl-lab、五星卡、今晚的行星）
   ========================================================= */
.pl-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.pl-readout .se-place { margin-top: .2rem; }
.pl-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .76rem; color: var(--al-mute); }
.pl-readout .pl-move.back { color: #ffb27a; }
.pl-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pl-chips .planet-svg { width: 28px; height: 28px; }
.pl-band, .ec-dot.pl-band-dot { background: rgba(255,154,74,.35); border-color: rgba(255,154,74,.6); }
.pl-nowtick { position: absolute; top: -2px; width: 2px; height: 24px; margin-left: -1px; background: #fff; border-radius: 1px; box-shadow: 0 0 6px rgba(255,255,255,.6); }
.pl-lab .ec-jump .pl-prev, .pl-lab .ec-jump .pl-nextbtn { border-color: rgba(255,154,74,.5); color: #ffb27a; }
.al-lab.pl-lab { font-size: .64rem; opacity: .75; }
.al-lab.pl-lab.on { font-size: .72rem; color: #fff; border-color: rgba(255,255,255,.35); }
.al-lab.pl-earth.on { color: #bcd8ff; border-color: rgba(79,156,255,.6); }
.al-lab.pl-sky { color: #ffd9b8; border-color: rgba(255,154,74,.6); background: rgba(40,18,6,.75); }
.al-lab.pl-num { min-width: 1.5em; padding: .05rem .4rem; text-align: center; font-size: .7rem; font-weight: 800; color: #062a26; background: #9fe8de; border: 0; }
.al-lab.pl-num.back { background: #ff9a4a; color: #2a1204; }
.al-lg-sight i { border: 0; width: 20px; height: 2px; margin-top: .6rem; border-radius: 1px; background: #fff; }
.al-lg-fan i { border: 0; border-radius: 0; background: linear-gradient(160deg, transparent 42%, #9fe8de 42% 50%, transparent 50%), linear-gradient(200deg, transparent 42%, #ff9a4a 42% 50%, transparent 50%); }
.al-lg-trail i { border: 0; width: 22px; height: 6px; margin-top: .45rem; border-radius: 3px; background: linear-gradient(90deg, #4fd1c5 0 45%, #ff9a4a 45% 75%, #4fd1c5 75%); }
@media (max-width: 1020px) {
  .pl-lab .al-stage { grid-template-columns: 1fr; }
  .pl-aside { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
  .pl-aside .al-sky-k { grid-column: 1 / -1; }
  .pl-aside .se-fig { grid-column: 1; max-width: none; }
  .pl-aside .pl-readout { grid-column: 2; margin-top: 0; }
}
@media (max-width: 640px) {
  .pl-aside { display: block; }
  .pl-aside .pl-readout { margin-top: .6rem; }
  .pl-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; }
  .pl-chips .al-chip-en { font-size: .58rem; }
  .pl-lab .al-lab.pl-lab:not(.on) { display: none; }
  .pl-lab .al-lab.cst { font-size: .58rem; padding: .05rem .35rem; }
  .pl-lab .ec-jump button { flex: 1 1 30%; font-size: .66rem; }
}
/* 五星卡 */
.pl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pl-card .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
.pl-retro { margin: 0 0 .8rem; padding: .5rem .7rem; border-radius: 10px; background: #fff3e6; color: #7a3a0c; font-size: .82rem; font-weight: 700; line-height: 1.45; }
.pl-retro:empty { display: none; }
.pl-retro .zh { display: block; font-weight: 600; }
@media (max-width: 1180px) { .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pl-grid { grid-template-columns: 1fr; } }
/* 今晚的行星 */
@media (min-width: 1021px) { .pl-tn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-tn.dim { opacity: .62; }
.pl-tn p + p { margin-top: .35rem; }
.pl-tn p b { color: var(--brand-dk); }
.pl-dot::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--c) 45%, #3a2a14); }
.pl-badge { display: inline-block; margin-left: .4rem; padding: .05rem .5rem; border-radius: 999px; background: #ff9a4a; color: #2a1204; font-size: .66rem; font-weight: 800; vertical-align: 2px; }
.pl-times { font-size: .78rem !important; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* =========================================================
   第八課：日晷（.sd-lab、太陽的時鐘、今天彰化的日晷）
   ========================================================= */
.sd-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.sd-aside .cn-badge { margin-bottom: .35rem; }
.sd-clocks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .2rem 0 .55rem; }
.sd-clocks div { padding: .5rem .7rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--al-line); }
.sd-clocks span { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--al-mute); }
.sd-clocks b { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.sd-clocks div + div b { color: var(--al-sun); }
.sd-diff { margin: 0 0 .3rem; font-family: var(--serif); font-size: 1.1rem; color: #fff; line-height: 1.25; }
.sd-diff span, .sd-why span { display: block; font-family: var(--zh); font-size: .78rem; color: var(--al-mute); }
.sd-why { margin: 0 0 .7rem; font-size: .76rem; line-height: 1.5; color: var(--al-text); }
.sd-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .76rem; color: var(--al-mute); }
.sd-lab .se-chips .sundial-svg { width: 26px; height: 26px; }
.sd-key-d { font-family: var(--sans); color: #fff; font-weight: 700; }
.al-lab.sd-mark { min-width: 1.5em; padding: .02rem .3rem; text-align: center; font-size: .6rem; font-weight: 800; color: #1b1405; background: rgba(255,255,255,.88); border: 0; }
.al-lab.sd-mark.noon { background: var(--al-sun); }
.al-lab.sd-face { font-size: .64rem; color: #ffe3a3; border-color: rgba(255,211,110,.45); }
.al-lab.sd-sol { font-size: .62rem; }
.al-lab.sd-sum { color: #ffd2b0; border-color: rgba(255,178,122,.55); }
.al-lab.sd-win { color: #cde9ff; border-color: rgba(159,216,255,.55); }
.al-lab.sd-f8 { color: #ffe3a3; border-color: rgba(255,211,110,.5); }
.al-lg-sun i { border: 0; width: 22px; height: 11px; margin-top: .3rem; border-radius: 11px 11px 0 0; border-top: 3px solid var(--al-sun); border-left: 3px solid var(--al-sun); border-right: 3px solid var(--al-sun); background: transparent; }
.al-lg-marks i { border: 0; width: 8px; height: 8px; margin: .4rem 5px 0; background: #fff; box-shadow: 10px 0 0 #ffd36e; }
.al-lg-solst i { border: 0; border-radius: 0; width: 20px; height: 8px; margin-top: .35rem; background: linear-gradient(#ffb27a 0 35%, transparent 35% 65%, #9fd8ff 65%); }
@media (max-width: 1020px) {
  .sd-lab .al-stage { grid-template-columns: 1fr; }
  .sd-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
  .sd-aside > .al-sky-k { grid-column: 1 / -1; }
  .sd-aside .se-fig { grid-column: 2; grid-row: 2 / 7; max-width: none; }
  .sd-aside .sd-readout { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sd-aside { display: block; }
  .sd-clocks b { font-size: 1.45rem; }
  .sd-lab .al-lab.sd-sol { display: none; }
  .sd-lab .ec-jump button { flex: 1 1 40%; }
}
/* 今天彰化的日晷 */
.sd-today { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.2rem; align-items: start; }
.sd-big { display: grid; gap: .7rem; }
.sd-big p { margin: 0; padding: .9rem 1.1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .88rem; font-weight: 700; color: var(--ink-soft); }
.sd-big b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--brand-dk); font-variant-numeric: tabular-nums; }
.sd-big span { display: block; font-family: var(--zh); font-weight: 600; font-size: .84rem; }
.sd-tbl td { font-variant-numeric: tabular-nums; }
.sd-tbl tr.sd-noonrow td { background: #fff6dc; }
@media (max-width: 760px) { .sd-today { grid-template-columns: 1fr; } .sd-tbl thead { display: table-header-group; } .sd-tbl, .sd-tbl tbody { display: table; width: 100%; } .sd-tbl tr { display: table-row; padding: 0; } .sd-tbl td { display: table-cell; width: auto; padding: .45rem .6rem; border-bottom: 1px solid var(--line); } }

/* =========================================================
   第九課：太陽系有多大（.ss-lab、八大行星卡、比例模型計算器）
   ========================================================= */
.ss-lab .al-stage { grid-template-columns: minmax(0, 1fr) 380px; }
.ss-aside .al-sky-k.ss-k2 { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--al-line); }
.ss-log { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.ss-log li { font-size: .78rem; color: var(--al-text); font-variant-numeric: tabular-nums; }
.ss-log li b { color: var(--al-sun); margin-right: .4rem; }
.ss-today-wrap { overflow-x: auto; }
.ss-today { width: 100%; border-collapse: collapse; font-size: .74rem; font-variant-numeric: tabular-nums; }
.ss-today th { text-align: left; font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--al-mute); padding: .2rem .3rem; border-bottom: 1px solid var(--al-line); }
.ss-today td { padding: .3rem .3rem; border-bottom: 1px solid rgba(160,180,230,.08); color: var(--al-text); vertical-align: top; }
.ss-today td span { display: block; font-family: var(--zh); font-size: .66rem; color: var(--al-mute); }
.ss-today td i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .35rem; vertical-align: 1px; }
.ss-lab .se-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ss-lab .se-chips .solar-svg { width: 26px; height: 26px; }
.ss-preset.on { border-color: var(--al-sun); background: rgba(255,211,110,.1); }
.al-lab.ss-pl { font-size: .64rem; padding: .06rem .45rem; }
.al-lab.ss-light { color: #1b1405; background: var(--al-sun); border-color: transparent; font-weight: 800; }
.al-lg-dots i { border: 0; width: 18px; height: 6px; margin-top: .45rem; background: radial-gradient(circle, #ff7a4a 0 2.5px, transparent 3px) 0 0/6px 6px repeat-x; }
.al-lg-orbits i { border: 2px solid #e8c9a0; }
.al-lg-ring i { border: 3px solid #fff1b0; box-shadow: 0 0 6px rgba(255,211,110,.8); }
@media (max-width: 1020px) {
  .ss-lab .al-stage { grid-template-columns: 1fr; }
  .ss-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 1.2rem; align-items: start; }
  .ss-aside > * { grid-column: 1; }
  .ss-aside .ss-k2:last-of-type, .ss-aside .ss-today-wrap { grid-column: 2; }
  .ss-aside .ss-k2:last-of-type { grid-row: 1; margin-top: 0; padding-top: 0; border-top: 0; }
  .ss-aside .ss-today-wrap { grid-row: 2 / 8; }
}
@media (max-width: 640px) {
  .ss-aside { display: block; }
  .ss-aside .ss-k2:last-of-type { margin-top: .9rem; padding-top: .7rem; border-top: 1px solid var(--al-line); }
  .ss-lab .al-lab.ss-pl:not(.ss-earth):not(.ss-jupiter):not(.ss-saturn):not(.ss-neptune) { display: none; }
  .ss-lab .ec-view button { font-size: .64rem; padding: .28rem .5rem; }
}
/* 八大行星卡 */
.ss-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ss-card .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
@media (max-width: 1020px) { .ss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ss-grid { grid-template-columns: 1fr; } }
/* 比例模型計算器 */
.ss-calc { margin-top: 1.4rem; }
.ss-voyager { margin: 0 0 1rem; padding: .85rem 1.1rem; border-radius: 14px; background: #0c1428; color: #e8edf7; font-weight: 700; line-height: 1.5; }
.ss-voyager b { font-family: var(--serif); font-size: 1.6rem; color: var(--al-sun, #ffd36e); margin-right: .4rem; }
.ss-voyager span { display: block; font-family: var(--zh); font-weight: 600; color: #9fb0cf; font-size: .9rem; }
.ss-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; }
.ss-pick > span { font-weight: 800; font-size: .9rem; }
.ss-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.ss-btns button { font-family: var(--sans); font-weight: 800; font-size: .82rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.ss-btns button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.ss-pick label { font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.ss-pick input { width: 6em; margin: 0 .3rem; padding: .35rem .5rem; border-radius: 8px; border: 1px solid var(--line); font: inherit; }
.ss-tbl td { font-variant-numeric: tabular-nums; }
.ss-tbl tr.ss-far td { background: #f4f1ea; }
@media (max-width: 760px) { .ss-tbl thead { display: table-header-group; } .ss-tbl, .ss-tbl tbody { display: table; width: 100%; } .ss-tbl tr { display: table-row; padding: 0; } .ss-tbl td { display: table-cell; width: auto; padding: .45rem .5rem; border-bottom: 1px solid var(--line); font-size: .84rem; } }
@media (max-width: 560px) {
  .ss-tbl { table-layout: fixed; }
  .ss-tbl th, .ss-tbl td { word-break: break-word; overflow-wrap: anywhere; font-size: .76rem; padding: .4rem .35rem; }
  .ss-tbl th:nth-child(1), .ss-tbl td:nth-child(1) { width: 28%; }
  .ss-tbl th:nth-child(2), .ss-tbl td:nth-child(2) { width: 34%; }
}

/* =========================================================
   第十課：星星離我們多遠（.dl-lab、由近到遠卡、星光時光機、生日星）
   ========================================================= */
.dl-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.dl-lab .se-chips { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.dl-lab .se-chips .star-svg { width: 26px; height: 26px; }
.dl-readout dd span, .dl-count span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.dl-readout dd { line-height: 1.35; }
.dl-count { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--al-line); }
.dl-lab .ec-view button { padding: .38rem .65rem; }
.al-lab.dl-earth { color: #cfe2ff; border-color: rgba(79,156,255,.55); }
.al-lab.dl-earth2 { color: #ffd9b8; border-color: rgba(255,154,74,.6); }
.al-lab.dl-star { color: #fff; font-weight: 800; border-color: rgba(255,255,255,.4); }
.al-lab.dl-arc { color: #1b1405; background: var(--al-sun); border: 0; font-weight: 800; font-size: .66rem; }
.al-lab.dl-hit1, .al-lab.dl-hit2 { font-size: .62rem; padding: .04rem .4rem; }
.al-lab.dl-hit1 { color: #9fe8de; border-color: rgba(79,209,197,.55); }
.al-lab.dl-hit2 { color: #ffd9b8; border-color: rgba(255,154,74,.55); }
.al-lab.dl-far { color: var(--al-sun); }
.al-lab.dl-ring { background: transparent; border: 0; color: #8fa2c6; font-size: .62rem; padding: 0; }
.al-lab.dl-nm { font-size: .64rem; padding: .05rem .45rem; }
.al-lab.dl-nm.on { color: #1b1405; background: var(--al-sun); border-color: transparent; font-weight: 800; }
.al-lg-dl-sight i { border: 0; border-radius: 0; width: 20px; height: 8px; margin-top: .4rem; background: linear-gradient(#4fd1c5 0 2px, transparent 2px 6px, #ff9a4a 6px 8px); }
.al-lg-dl-shift i { border: 3px solid transparent; border-top-color: var(--al-sun); }
.al-lg-dl-bars i { border: 0; border-radius: 2px; width: 20px; height: 4px; margin-top: .55rem; background: #ff9a4a; }
@media (max-width: 1020px) {
  .dl-lab .al-stage { grid-template-columns: 1fr; }
  .dl-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: 1.2rem; align-items: start; }
  .dl-aside .al-sky-k { grid-column: 1 / -1; }
  .dl-aside .se-fig { grid-column: 1; max-width: none; }
  .dl-aside .dl-readout { grid-column: 2; margin-top: 0; }
}
@media (max-width: 640px) {
  .dl-aside { display: block; }
  .dl-aside .se-fig { max-width: 340px; margin-inline: auto; }
  .dl-lab .se-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
  .dl-lab .se-chips .al-chip-en { font-size: .6rem; }
  .dl-lab .ec-view button { font-size: .64rem; padding: .28rem .45rem; }
  .dl-lab .ec-jump button { flex: 1 1 40%; }
  .dl-lab .al-lab.dl-hit1, .dl-lab .al-lab.dl-hit2, .dl-lab .al-lab.dl-ring { display: none; }
  .dl-lab .al-lab.dl-nm:not(.on) { font-size: .56rem; padding: .02rem .3rem; }
}
/* 由近到遠卡 */
.dl-card .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
.dl-depart { margin: 0 0 .8rem; padding: .5rem .7rem; border-radius: 10px; background: #fff6dc; color: #6b4a08; font-size: .82rem; font-weight: 700; line-height: 1.45; }
.dl-depart:empty { display: none; }
.dl-depart .zh { display: block; font-weight: 600; }
/* 星光時光機 */
@media (min-width: 1021px) { .dl-tn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dl-tn p + p { margin-top: .3rem; }
.dl-tn-left b { color: var(--brand-dk); }
.dl-tn-where { font-size: .78rem !important; color: var(--ink-soft); }
/* 生日星 */
.dl-bd-box { margin-top: 1.2rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: 16px; background: #0c1428; color: #e8edf7; }
.dl-bd-in { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-weight: 800; }
.dl-bd-in input { width: 6.5em; padding: .45rem .6rem; border-radius: 10px; border: 1px solid rgba(160,180,230,.35); background: #fff; color: #111; font: inherit; font-size: 1.05rem; }
.dl-bd-lead, .dl-bd-none { margin: 1rem 0 .8rem; line-height: 1.55; }
.dl-bd-lead span, .dl-bd-none span { display: block; font-family: var(--zh); color: #9fb0cf; font-size: .92rem; }
.dl-bd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.dl-bd { padding: .8rem .95rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(160,180,230,.18); }
.dl-bd b { display: block; font-family: var(--serif); font-size: 1.15rem; color: #ffd36e; }
.dl-bd .zh { display: block; font-size: .9rem; color: #cfd8ea; }
.dl-bd p { margin: .45rem 0 0; font-size: .82rem; line-height: 1.6; color: #e8edf7; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .dl-bd-grid { grid-template-columns: 1fr; } }

/* =========================================================
   第十一課：流星雨（.mt-lab、八大流星雨卡、接下來的流星雨）
   ========================================================= */
.mt-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.mt-lab .se-chips { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.mt-lab .se-chips .meteor-svg { width: 26px; height: 26px; }
.mt-hour { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .5rem; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--al-line); }
.mt-hour button { flex: 1 1 auto; font-size: .7rem; padding: .3rem .5rem; }
.mt-aside .se-fig figcaption span, .mt-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.mt-aside .se-fig figcaption { font-size: .74rem; color: var(--al-text); font-weight: 700; }
.mt-readout dd { line-height: 1.35; }
.mt-note { margin: .2rem 0 .2rem; }
.mt-note span, .mt-date span { display: inline; margin-left: .5rem; }
.al-lab.mt-earth { color: #cfe2ff; border-color: rgba(79,156,255,.55); }
.al-lab.mt-mark { color: #1b1405; background: var(--al-sun); border: 0; font-weight: 800; font-size: .66rem; }
.al-lab.mt-parent { font-size: .64rem; color: #fff1d0; }
.al-lab.mt-fwd { font-size: .62rem; color: #9fe8de; border-color: rgba(79,209,197,.55); }
.al-lg-mt-dust i { border: 0; width: 20px; height: 8px; margin-top: .4rem; background: radial-gradient(circle, #ffc27a 0 1.5px, transparent 2px) 0 0/5px 4px; }
.al-lg-mt-ring i { border: 2px solid var(--al-sun); }
.al-lg-mt-streak i { border: 0; border-radius: 1px; width: 18px; height: 2px; margin-top: .6rem; background: #fff1b0; transform: rotate(-25deg); }
@media (max-width: 1020px) {
  .mt-lab .al-stage { grid-template-columns: 1fr; }
  .mt-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 1.2rem; align-items: start; }
  .mt-aside .al-sky-k { grid-column: 1 / -1; }
  .mt-aside .se-fig, .mt-aside .mt-hour { grid-column: 1; max-width: none; }
  .mt-aside .mt-readout { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
}
@media (max-width: 640px) {
  .mt-aside { display: block; }
  .mt-aside .se-fig { max-width: 360px; margin-inline: auto; }
  .mt-lab .se-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
  .mt-lab .se-chips .al-chip-en { font-size: .58rem; }
  .mt-lab .ec-jump button { flex: 1 1 40%; }
  .mt-lab .al-speed button { padding: .32rem .5rem; font-size: .7rem; }
  .mt-lab .al-lab.mt-parent { display: none; }
  .mt-note span, .mt-date span { display: block; margin-left: 0; }
}
/* 接下來的流星雨 */
.mt-tbl td { vertical-align: top; font-variant-numeric: tabular-nums; }
.mt-tbl td span { display: block; font-family: var(--zh); font-size: .8rem; color: var(--ink-soft); }
.mt-tbl .mt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; vertical-align: 0; }
.mt-v-good .mt-dot { background: #2f9e6a; } .mt-v-fair .mt-dot { background: #e0a020; } .mt-v-poor .mt-dot { background: #c8553d; }
.mt-tbl .mt-go { margin: 0; white-space: nowrap; }
@media (max-width: 760px) {
  .mt-tbl thead { display: none; }
  .mt-tbl, .mt-tbl tbody, .mt-tbl tr, .mt-tbl td { display: block; width: 100%; }
  .mt-tbl tr { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
  .mt-tbl td { padding: .15rem .5rem; border: 0; }
}
.mt-readout dl div.ec-wide, .dl-readout dl div.ec-wide { grid-column: 1 / -1; }

/* =========================================================
   第十二課：星星的顏色（.cl-lab、由紅到藍卡、今晚星星的顏色）
   ========================================================= */
.cl-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.cl-lab .se-chips { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.cl-sw { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fff 0 8%, var(--c, #fff) 45%, color-mix(in srgb, var(--c, #fff) 55%, #000) 100%); box-shadow: 0 0 10px 2px color-mix(in srgb, var(--c, #fff) 55%, transparent); }
.cl-sw-big { width: 44px; height: 44px; box-shadow: 0 0 22px 6px color-mix(in srgb, var(--c, #fff) 45%, transparent); }
.cl-card .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
.cl-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.cl-readout dl div.ec-wide { grid-column: 1 / -1; }
.cl-readout dl div:not(.ec-wide) { grid-column: span 1; }
.cl-slider .cl-temp-sl::-webkit-slider-runnable-track { height: 10px; background: var(--grad, linear-gradient(90deg, #ff8d15, #fff, #a6beff)); }
.cl-slider .cl-temp-sl::-moz-range-track { height: 10px; background: var(--grad, linear-gradient(90deg, #ff8d15, #fff, #a6beff)); }
.cl-slider .cl-temp-sl::-webkit-slider-thumb { margin-top: -6px; border-color: #fff; background: #0c1428; }
.cl-sort { padding: .62rem 1.3rem; }
.al-lab.cl-star { text-align: center; font-size: .8rem; color: #fff; }
.al-lab.cl-ax { background: transparent; border: 0; color: #9fb0cf; font-size: .7rem; }
.al-lab.cl-grp { color: #ffd36e; border-color: rgba(255,211,110,.45); font-size: .68rem; }
.al-lab.cl-nm { font-size: .62rem; padding: .04rem .4rem; }
.al-lab.cl-nm.on { color: #1b1405; background: var(--al-sun); border-color: transparent; font-weight: 800; }
.al-lg-cl-hot i { border: 0; border-radius: 4px; width: 22px; height: 8px; margin-top: .45rem; background: linear-gradient(90deg, #ff8d15, #ffd1a3, #fff, #ccdbff, #a6beff); }
.al-lg-cl-sun i { border: 0; background: radial-gradient(circle, #fff1ea 0 45%, transparent 50%); }
.al-lg-cl-hr i { border: 0; border-radius: 0; background: linear-gradient(135deg, transparent 40%, #ffd36e 40% 55%, transparent 55%); }
@media (max-width: 1020px) {
  .cl-lab .al-stage { grid-template-columns: 1fr; }
  .cl-aside { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
  .cl-aside .al-sky-k { grid-column: 1 / -1; }
  .cl-aside .se-fig { grid-column: 1; max-width: none; }
  .cl-aside .cl-readout { grid-column: 2; margin-top: 0; }
}
@media (max-width: 640px) {
  .cl-aside { display: block; }
  .cl-lab .se-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
  .cl-lab .se-chips .al-chip-en { font-size: .58rem; }
  .cl-lab .al-lab.cl-ax, .cl-lab .al-lab.cl-grp { font-size: .58rem; }
}
/* 今晚星星的顏色 */
@media (min-width: 1021px) { .cl-tn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cl-tn .cl-sw { flex: none; width: 30px; height: 30px; margin-top: .2rem; }
.cl-tn p + p { margin-top: .3rem; }
.cl-where { font-size: .78rem !important; color: var(--ink-soft); }
.cl-bar { display: flex; height: 14px; margin: 0 0 1rem; border-radius: 999px; overflow: hidden; background: #0c1428; padding: 3px; gap: 3px; }
.cl-bar i { flex: 1; border-radius: 999px; }

/* =========================================================
   第十三課：月亮同一面（.mf-lab、正面與背面卡、今天的月亮怎麼搖）
   ========================================================= */
.mf-lab .al-stage { grid-template-columns: minmax(0, 1fr) 330px; }
.mf-readout dd span, .mf-note span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.mf-readout dl div.ec-wide { grid-column: 1 / -1; }
.mf-note { margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--al-line); }
.mf-mode button { padding: .38rem .7rem; }
.al-lab.mf-earth { color: #cfe2ff; border-color: rgba(79,156,255,.55); }
.al-lab.mf-arrow { color: #ffd2c4; border-color: rgba(255,122,92,.6); font-size: .64rem; }
.al-lg-mf-arrow i { border: 0; border-radius: 1px; width: 20px; height: 3px; margin-top: .55rem; background: #ff7a5c; }
.al-lg-mf-sight i { border: 0; border-radius: 0; width: 20px; height: 2px; margin-top: .6rem; background: repeating-linear-gradient(90deg, #9fe8de 0 4px, transparent 4px 7px); }
.al-lg-mf-orbit i { border: 2px solid #9fb0cf; border-radius: 50%; transform: scaleX(1.2); }
@media (max-width: 1020px) {
  .mf-lab .al-stage { grid-template-columns: 1fr; }
  .mf-aside { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1.1rem; }
  .mf-aside .al-sky-k { grid-column: 1 / -1; }
  .mf-aside .al-sky-view { grid-column: 1; grid-row: 2; }
  .mf-aside .mf-readout { grid-column: 2; grid-row: 2; margin-top: 0; }
}
@media (max-width: 640px) {
  .mf-aside { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); }
  .mf-mode button { font-size: .64rem; padding: .28rem .45rem; }
  .mf-lab .al-lab.mf-arrow { display: none; }
}
.mf-card .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
/* 今天的月亮怎麼搖 */
.mf-tn { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 1.6rem; align-items: start; margin-top: 1.2rem; }
.mf-fig { margin: 0; }
.mf-fig canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 50%; background: #02040c; box-shadow: 0 0 0 10px #0c1428, 0 24px 50px -20px rgba(6,12,30,.7); }
.mf-fig2 canvas { border-radius: 14px; box-shadow: none; max-width: 300px; }
.mf-fig figcaption { margin-top: 1rem; font-size: .82rem; line-height: 1.55; color: var(--ink-soft); }
.mf-big { font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink); margin: 0 0 1rem; }
.mf-big span { display: block; font-family: var(--zh); font-size: 1rem; color: var(--ink-soft); }
.mf-best { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; }
.mf-best li { padding: .65rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .88rem; line-height: 1.5; }
.mf-best li b { color: var(--brand-dk); margin-right: .4rem; }
.mf-best li span { display: block; font-family: var(--zh); color: var(--ink-soft); }
@media (max-width: 760px) { .mf-tn { grid-template-columns: 1fr; } .mf-fig:first-child { max-width: 300px; margin-inline: auto; } }

/* =========================================================
   第十四課：銀河（.mw-lab、我們的星系卡、今晚彰化的銀河）
   ========================================================= */
.mw-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.mw-lab .al-space { min-height: 600px; }
.mw-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.mw-readout dl div.ec-wide { grid-column: 1 / -1; }
.mw-whenb { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .4rem; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--al-line); }
.mw-whenb button { flex: 1 1 auto; font-size: .68rem; padding: .3rem .45rem; }
.al-lab.mw-sun { color: #1b1405; background: var(--al-sun); border: 0; font-weight: 800; text-align: center; }
.al-lab.mw-gc { color: #ffe2a8; border-color: rgba(255,211,110,.45); }
.al-lab.mw-ruler { background: transparent; border: 0; color: #9fb0cf; font-size: .66rem; }
.al-lab.mw-dir { color: #ffe2a8; border-color: rgba(255,211,110,.4); text-align: center; font-size: .66rem; }
.al-lab.mw-star { color: #cfe2ff; font-size: .64rem; }
.al-lab small { font-weight: 600; font-size: .58rem; color: #9fb0cf; }
.al-lab.mw-sun small { color: #3a2a08; }
.al-lg-mw-sun i { border: 2px solid var(--al-sun); background: radial-gradient(circle, var(--al-sun) 0 25%, transparent 30%); }
.al-lg-mw-arm i { border: 0; background: conic-gradient(#b8c8ff 0 50%, #ffe2a8 0); }
.al-lg-mw-band i { border: 0; border-radius: 4px; width: 22px; height: 8px; margin-top: .45rem; background: linear-gradient(90deg, transparent, rgba(200,210,255,.8), transparent); }
@media (max-width: 1020px) {
  .mw-lab .al-stage { grid-template-columns: 1fr; }
  .mw-lab .al-space { min-height: 320px; }
  .mw-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
  .mw-aside .al-sky-k { grid-column: 1 / -1; }
  .mw-aside .se-fig, .mw-aside .mw-whenb { grid-column: 1; }
  .mw-aside .mw-readout { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
}
@media (max-width: 640px) {
  .mw-aside { display: block; }
  .mw-aside .se-fig { max-width: 360px; margin-inline: auto; }
  .mw-lab .ec-view button { font-size: .62rem; padding: .28rem .45rem; }
  .mw-lab .al-lab.mw-star, .mw-lab .al-lab small { display: none; }
}
.mw-card .ph-ico { background: radial-gradient(circle at 50% 40%, #16264a, #070b17); }
.mw-num { margin: 0 0 .7rem; font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
.mw-num b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--brand-dk); }
/* 今晚彰化的銀河 */
@media (min-width: 1021px) { .mw-tn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mw-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .4rem; align-items: end; height: 170px; padding: .8rem; border-radius: 14px; background: #0c1428; }
.mw-bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.mw-bar i { display: block; width: 70%; min-height: 2px; border-radius: 6px 6px 0 0; background: #3a4a72; }
.mw-bar.up i { background: linear-gradient(180deg, #ffe2a8, #d9a43c); }
.mw-bar b { order: -1; font-size: .64rem; color: #cfd8ea; margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.mw-bar span { margin-top: .3rem; font-size: .62rem; color: #9fb0cf; text-align: center; line-height: 1.2; }
.mw-bar span em { display: block; font-style: normal; font-family: var(--zh); }
.mw-bar.now span { color: #ffd36e; font-weight: 800; }
@media (max-width: 560px) { .mw-bars { gap: .15rem; padding: .5rem; } .mw-bar b { font-size: .52rem; } .mw-bar span { font-size: .52rem; } }

/* =========================================================
   第十五課：月亮錯覺（.mi-lab、四種看法卡、今晚的月出與今年的滿月）
   ========================================================= */
.mi-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.mi-lab .al-space-cv { cursor: grab; }
.mi-ring { position: absolute; left: 0; top: 0; border: 2px dashed var(--al-sun); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .2s; box-shadow: 0 0 12px rgba(255,211,110,.35); }
.mi-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.mi-readout dl div.ec-wide { grid-column: 1 / -1; }
.mi-ill { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .4rem; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--al-line); }
.mi-ill button { flex: 1 1 auto; font-size: .68rem; padding: .3rem .45rem; }
.mi-night button[aria-pressed="true"] { background: rgba(255,211,110,.18); color: #fff; }
.al-lab.mi-tower { font-size: .62rem; color: #cfd8ea; }
.al-lab.mi-card { background: transparent; border: 0; color: #9fb0cf; font-size: .7rem; }
.al-lab.mi-you { color: #1b1405; background: var(--al-sun); border: 0; font-weight: 800; }
.al-lg-mi-ring i { border: 2px dashed var(--al-sun); }
.al-lg-mi-tower i { border: 0; border-radius: 2px; width: 6px; height: 18px; margin-left: 6px; background: #3a4560; }
.al-lg-mi-space i { border: 0; border-radius: 0; width: 20px; height: 6px; margin-top: .45rem; background: linear-gradient(#ffd36e 0 2px, transparent 2px 4px, #9fb0cf 4px 6px); }
@media (max-width: 1020px) {
  .mi-lab .al-stage { grid-template-columns: 1fr; }
  .mi-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
  .mi-aside .al-sky-k { grid-column: 1 / -1; }
  .mi-aside .se-fig, .mi-aside .mi-ill { grid-column: 1; }
  .mi-aside .mi-readout { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
}
@media (max-width: 640px) {
  .mi-aside { display: block; }
  .mi-lab .ec-view button { font-size: .62rem; padding: .28rem .45rem; }
  .mi-lab .ec-jump button { flex: 1 1 30%; font-size: .64rem; }
}
/* 今年的滿月 */
@media (min-width: 1021px) { .mi-tn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mi-discs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; padding: 1rem; border-radius: 16px; background: #0c1428; }
.mi-disc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: .5rem .2rem; border-radius: 12px; }
.mi-disc i { display: block; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fffaf0, #e8dcc0 60%, #b9ab8a); margin: auto 0 .3rem; }
.mi-disc b { font-size: .8rem; color: #fff; }
.mi-disc span { font-size: .66rem; color: #9fb0cf; font-variant-numeric: tabular-nums; }
.mi-disc em { font-style: normal; font-size: .62rem; font-weight: 800; color: #1b1405; background: #ffd36e; border-radius: 999px; padding: .05rem .45rem; }
.mi-disc.mic em { background: #9fb0cf; }
.mi-disc.sup { background: rgba(255,211,110,.08); box-shadow: 0 0 0 1px rgba(255,211,110,.35) inset; }

/* =========================================================
   第十六課：日出的方位（.sr-lab、四個日出點卡、今天的日出與懸日查詢）
   ========================================================= */
.sr-lab .al-stage { grid-template-columns: minmax(0, 1fr) 360px; }
.sr-lab .al-space-cv { cursor: grab; }
.sr-readout dd span { display: block; font-family: var(--zh); font-weight: 500; font-size: .74rem; color: var(--al-mute); }
.sr-readout dl div.ec-wide { grid-column: 1 / -1; }
.sr-readout [hidden] { display: none; }
.sr-place { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .4rem; padding: 3px; border-radius: 14px; }
.sr-place button { flex: 1 1 auto; font-size: .68rem; padding: .3rem .45rem; }
.sr-key button[aria-pressed="true"] { background: rgba(255,211,110,.18); color: #fff; }
.al-lab.sr-ws { color: #bcd6ff; border-color: rgba(127,180,255,.5); }
.al-lab.sr-ve { color: #fff; }
.al-lab.sr-ss { color: #ffd0a8; border-color: rgba(255,162,90,.5); }
.al-lab.sr-tick { background: transparent; border: 0; color: #9fb0cf; font-size: .62rem; padding: 0; }
.al-lab.sr-slot { color: #1b1405; background: #e7c48f; border: 0; font-size: .66rem; }
.al-lab.sr-axis { font-size: .64rem; color: #cfd8ea; }
.al-lg-sr-trail i { border: 0; width: 22px; height: 8px; margin-top: .4rem; border-radius: 4px; background: linear-gradient(90deg, #ffa25a, #e8eefc, #7fb4ff); }
.al-lg-sr-posts i { border: 0; border-radius: 0; width: 18px; height: 18px; background: linear-gradient(90deg, transparent 2px, #ffa25a 2px 4px, transparent 4px 8px, #e8eefc 8px 10px, transparent 10px 14px, #7fb4ff 14px 16px, transparent 16px); }
.al-lg-sr-paths i { border: 0; border-radius: 0; width: 22px; height: 12px; margin-top: .3rem; border-top: 2px solid #ffd36e; border-radius: 50% 50% 0 0; }
@media (max-width: 1020px) {
  .sr-lab .al-stage { grid-template-columns: 1fr; }
  .sr-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.2rem; align-items: start; }
  .sr-aside .al-sky-k { grid-column: 1 / -1; }
  .sr-aside .se-fig, .sr-aside .sr-place { grid-column: 1; }
  .sr-aside .sr-readout { grid-column: 2; grid-row: 2 / 4; margin-top: 0; }
}
@media (max-width: 640px) {
  .sr-aside { display: block; }
  .sr-lab .ec-view button { font-size: .64rem; padding: .28rem .5rem; }
  .sr-lab .ec-jump button { flex: 1 1 30%; font-size: .64rem; }
}
.sr-card.sr-ws .ph-ico { background: radial-gradient(circle at 50% 40%, #1a2c52, #070b17); }
.sr-card.sr-ss .ph-ico { background: radial-gradient(circle at 50% 40%, #3a2a24, #0d0b10); }
@media (min-width: 1021px) { .sr-tn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sr-swing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.sr-swing > div { padding: .75rem .85rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: .8rem; line-height: 1.45; }
.sr-swing b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--brand-dk); margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.sr-swing span { display: block; }
.sr-swing .zh { color: var(--ink-soft); }
@media (max-width: 760px) { .sr-swing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr-henge { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.2rem; padding: 1rem; border-radius: 16px; background: #0c1428; color: #e8edf7; }
.sr-henge-ctl { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.sr-roads { display: flex; flex-wrap: wrap; gap: .25rem; padding: 3px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(160,180,230,.22); }
.sr-roads button { flex: 1 1 auto; font: inherit; font-size: .72rem; font-weight: 700; padding: .32rem .55rem; border-radius: 999px; border: 0; background: transparent; color: #cfd8ea; cursor: pointer; }
.sr-roads button[aria-pressed="true"] { background: #ffd36e; color: #1b1405; }
.sr-custom { display: block; font-size: .78rem; color: #9fb0cf; opacity: .6; transition: opacity .2s; }
.sr-custom.on { opacity: 1; }
.sr-custom b { color: #ffd36e; margin: 0 .2rem; font-variant-numeric: tabular-nums; }
.sr-custom input { display: block; width: 100%; margin-top: .4rem; accent-color: #ffd36e; }
.sr-compass { display: block; width: 100%; max-width: 260px; margin: 0 auto; border-radius: 12px; }
.sr-henge-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8rem 1.2rem; align-content: start; min-width: 0; }
.sr-where { grid-column: 1 / -1; margin: 0; font-weight: 800; color: #ffd36e; }
.sr-hcol h4 { margin: 0 0 .5rem; font-size: .95rem; color: #fff; }
.sr-hcol h4 .zh { display: block; font-size: .8rem; color: #9fb0cf; font-family: var(--zh); }
.sr-hcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.sr-hcol li { padding: .5rem .7rem; border-radius: 10px; background: rgba(255,211,110,.08); border: 1px solid rgba(255,211,110,.25); font-size: .8rem; }
.sr-hcol li b { color: #fff; }
.sr-hcol li .zh, .sr-none .zh, .sr-small .zh { display: block; color: #9fb0cf; font-family: var(--zh); }
.sr-none { margin: 0; font-size: .8rem; color: #cfd8ea; }
.sr-small { margin: .6rem 0 0; font-size: .72rem; color: #9fb0cf; }
@media (max-width: 760px) { .sr-henge, .sr-henge-out { grid-template-columns: 1fr; } }
