/* 東琉線航行燈號：深青色的水，燈號三色只用在燈上。大字給長輩，數字等寬。 */
:root { --bg: #eef4f4; --surface: #fff; --ink: #10262b; --muted: #55696e; --line: #d5e1e2; --sea: #0b6b7c;
  --g: #1f9d55; --y: #f2b705; --r: #d6342c; --n: #8a9a9e; --g-tint: #e3f5ea; --y-tint: #fff4cf; --r-tint: #fde9e7; --n-tint: #edf0f1; }
@media (prefers-color-scheme: dark) { :root { --bg: #0a1a1e; --surface: #11262b; --ink: #e8f1f2; --muted: #9ab0b5; --line: #214047; --sea: #6fc3d3;
  --g: #3fcf80; --y: #f5c84c; --r: #ff6b60; --n: #7d9196; --g-tint: #12301f; --y-tint: #2a2410; --r-tint: #331a18; --n-tint: #17292d; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.75 "Noto Sans TC", "PingFang TC", system-ui, "Microsoft JhengHei", sans-serif; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
main { max-width: 40rem; margin: 0 auto; padding: 1.2rem 1.1rem 3.5rem; }
a { color: var(--sea); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: .4rem; }
.top { margin-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 900; text-decoration: none; }
h2 { margin: 0 0 .6rem; font-size: 1.45rem; font-weight: 900; line-height: 1.4; }
h3 { margin: 1.6rem 0 .5rem; font-size: 1.15rem; font-weight: 900; }
p { margin: 0 0 .8rem; }
.hero { display: flex; gap: 1.1rem; align-items: center; padding: 1.2rem; border-radius: 1.2rem; background: var(--n-tint); border: 2px solid var(--n); }
.hero.g { background: var(--g-tint); border-color: var(--g); } .hero.y { background: var(--y-tint); border-color: var(--y); } .hero.r { background: var(--r-tint); border-color: var(--r); }
.lamp { flex: none; width: 5.2rem; height: 5.2rem; border-radius: 50%; background: var(--n); }
/* 呼吸：光暈慢慢變亮再變暗。越危險越快，但最快也是 2.5 秒一個來回（0.4 次／秒），遠低於會讓光敏感的人不舒服的閃爍頻率（每秒 3 次）；
   灰燈（沒資料）不動，免得看起來像「有在更新」；系統設「減少動態效果」就不動，只留固定的光暈。 */
.g .lamp { --c: var(--g); --t: 6s; } .y .lamp { --c: var(--y); --t: 4s; } .r .lamp { --c: var(--r); --t: 2.5s; }
.g .lamp, .y .lamp, .r .lamp { background: var(--c); box-shadow: 0 0 1.6rem var(--c); animation: breathe var(--t) ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 .7rem var(--c); transform: scale(1); } 50% { box-shadow: 0 0 2.3rem var(--c); transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .lamp { animation: none !important; } }
.state { margin: 0; font-size: 1.4rem; font-weight: 900; line-height: 1.4; }
.sub { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.tabs { display: flex; gap: .5rem; margin: 1.2rem 0; flex-wrap: wrap; }
.tabs a { padding: .35rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.tabs a[aria-current] { background: var(--sea); border-color: var(--sea); color: #fff; }
@media (prefers-color-scheme: dark) { .tabs a[aria-current] { color: #06181c; } }
section { margin: 0 0 2rem; }
.note { color: var(--muted); font-size: .95rem; }
.warnline { color: var(--r); font-weight: 700; }
.box { padding: .9rem 1.1rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--line); } .box p { margin: .3rem 0 0; }
.box.warn { border-color: var(--r); background: var(--r-tint); margin-bottom: 1.5rem; } .box ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.bar { display: flex; gap: 2px; list-style: none; margin: .4rem 0 0; padding: 0; }
.bar li { flex: 1; height: 2.2rem; border-radius: 3px; background: var(--n); } .bar .g { background: var(--g); } .bar .y { background: var(--y); } .bar .r { background: var(--r); }
.axis { display: flex; justify-content: space-between; margin: .3rem 0 .8rem; color: var(--muted); font-size: .85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 50%; background: var(--n); vertical-align: -.05rem; }
.dot.g { background: var(--g); } .dot.y { background: var(--y); } .dot.r { background: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: .45rem .3rem; border-bottom: 1px solid var(--line); text-align: left; } th { color: var(--muted); font-weight: 500; font-size: .85rem; }
ul { padding-left: 1.2rem; } li { margin-bottom: .4rem; }
footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
table + .note, .bar + .axis { margin-top: .8rem; }
a[href^="tel:"] { white-space: nowrap; }
.box ul.tel { list-style: none; padding: 0; margin: .4rem 0 0; } .tel li { margin: 0; } .tel a { display: block; padding: .5rem 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 700; }

/* /privacy 頁（靜態網頁，沒有航行燈號的版面） */
.doc article h1 { margin: 0.6rem 0 0; font-size: 1.6rem; font-weight: 900; letter-spacing: 0.06em; }
.doc-date { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.85rem; }
.doc article h2 { margin: 1.8rem 0 0.4rem; font-size: 1.08rem; font-weight: 700; }
.doc article p { margin: 0 0 0.6rem; line-height: 1.9; }
.doc footer { margin-top: 2.2rem; }
.doc article ul, .doc article ol { margin: 0 0 0.6rem; padding-left: 1.4rem; line-height: 1.9; }
.doc article li { margin: 0.15rem 0; }
.doc article code { font-size: 0.92em; }
.faq h3 { margin: 1.3rem 0 .3rem; font-size: 1.1rem; font-weight: 700; } .faq p { margin: 0; }
