/* 呆丸月曆 官網
 *
 * 配色沿用 App 圖示的品牌色：磚紅 × 米白，帶撕頁日曆的紙感。
 * 深淺色以 CSS 變數切換，跟隨系統設定。
 */

/* ---------- 色彩 ---------- */

:root {
  --brick: #C24A3B;          /* 主色。頁眉、按鈕、強調 */
  --brick-soft: #C0563F;
  --indigo: #4B5AA9;         /* 次要色。連結 */
  --paper: #FAF8F2;          /* 底色 */
  --paper-raised: #FFFDF7;   /* 卡片 */
  --paper-sunken: #F3EEE3;   /* 分區 */
  --ink: #26241F;            /* 主要文字 */
  --ink-soft: #5C564C;       /* 次要文字 */
  --ink-faint: #8B8478;      /* 說明文字 */
  --line: #E7E1D3;
  --chip-warm: #F6E8DD;
  --chip-plain: #F1ECDF;
  --on-brick: #FFF7EF;
  --shadow: rgba(40, 32, 20, .18);
  --widget-bg: #F8F1DF;      /* 小工具示意的底色 */
  --stage: linear-gradient(145deg, #EAD9C2, #D6DDE8);  /* 小工具後方的示意桌布 */
  --panel-edge: rgba(40, 32, 20, .3);  /* 面板示意裡的色塊與核取方塊描邊 */
  --nav-bg: rgba(250, 248, 242, .82);  /* 固定導覽列的底，半透明讓內容從底下透出來 */
}

/* 深色由 data-theme 屬性控制，預設為淺色。
   不使用 prefers-color-scheme 自動切換——這個網站的視覺主體是
   帶紙感的淺色設計，深色是使用者主動選擇的選項。 */
[data-theme="dark"] {
    --brick: #CE5A44;
    --brick-soft: #DD8A70;
    --indigo: #9AA6E0;
    --paper: #23201C;
    --paper-raised: #2A2723;
    --paper-sunken: #1E1B18;
    --ink: #EFE9DC;
    --ink-soft: #C6BDAE;
    --ink-faint: #8C8375;
    --line: #3A352E;
    --chip-warm: #3A2A24;
    --chip-plain: #302C26;
    --on-brick: #FFF5EE;
    --shadow: rgba(0, 0, 0, .45);
    --widget-bg: #232120;
    --stage: linear-gradient(145deg, #4A4034, #2E3542);
    --panel-edge: rgba(255, 255, 255, .32);
    --nav-bg: rgba(35, 32, 28, .84);
}

/* ---------- 基礎 ---------- */

*, *::before, *::after { box-sizing: border-box; }

/* 自訂的 display 會蓋過 hidden 屬性的預設樣式，明確補上 */
[hidden] { display: none !important; }

body {
  margin: 0;
  /* 只轉場背景。文字若也加轉場，切換瞬間會出現深底配淺字的中間狀態，
     反而比直接換色更顯眼。 */
  transition: background-color .2s ease;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC",
               "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--brick-soft); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.35; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

/* 頁面頂端的一條磚紅，呼應日曆的紅色頁眉 */
.tear { height: 8px; background: var(--brick); }

/* ---------- 導覽列 ---------- */

/* 導覽列固定在頂端。
 *
 * 外層負責全寬的底與陰影，內層維持與內容相同的最大寬度——
 * 讓 .nav 自己 sticky 的話，寬螢幕上背景只會蓋住中間 1200px。
 *
 * 分隔線只在捲離頁首後才出現：停在最上面時，導覽列與 hero 同色，
 * 一條線反而是多的。狀態由 scroll.js 觀察哨兵元素後掛上 is-stuck。
 */
.nav-bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav-bar.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(40, 32, 20, .06);
}
/* 位置參照用，本身不佔空間 */
.nav-sentinel { display: block; height: 1px; margin-bottom: -1px; }

/* 錨點連結捲過去時，標題不能被固定的導覽列蓋住 */
[id] { scroll-margin-top: 82px; }

.nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 24px; max-width: 1200px; margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.nav-brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
/* 排除 .btn：否則這條規則的特異性（0,1,1）會蓋過 .btn（0,1,0），
   讓下載按鈕拿到深灰文字色而不是按鈕該有的米白。 */
.nav-links a:not(.btn) { color: var(--ink-soft); }
.nav-links a.gh { color: var(--indigo); }

.btn {
  display: inline-block; background: var(--brick); color: var(--on-brick);
  padding: 8px 18px; border-radius: 10px; font-weight: 700;
}
.btn:hover { color: var(--on-brick); text-decoration: none; filter: brightness(1.06); }

.btn-lg {
  padding: 15px 40px; border-radius: 13px; font-size: 17px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(194, 74, 59, .3);
}
/* 版本號附在按鈕上，字重與透明度都降一階，不與「免費下載」搶主體 */
.btn-version {
  font-weight: 600; font-size: .88em; opacity: .78;
  font-variant-numeric: tabular-nums; margin-left: 2px;
}

/* 深淺色切換 */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 9px;
  color: var(--ink-soft); cursor: pointer; font-size: 15px; line-height: 1;
  transition: border-color .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--brick); color: var(--brick); }
.theme-toggle:focus-visible { outline: 2px solid var(--brick); outline-offset: 2px; }
/* 兩個圖示只顯示對應目前模式的那一個 */
.theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: inline; }

/* ---------- 主視覺 ---------- */

.hero { padding: 64px 24px 0; text-align: center; }
.hero-eyebrow {
  font-size: 13px; letter-spacing: .16em; color: var(--brick-soft); font-weight: 700;
}
.hero h1 { font-size: 58px; margin: 14px 0 0; letter-spacing: .02em; font-weight: 800; }
.hero-lead {
  font-size: 20px; color: var(--ink-soft); margin: 18px auto 0;
  max-width: 580px; line-height: 1.75;
}
.hero-sub {
  font-size: 15px; color: var(--ink-faint); margin: 12px auto 0;
  max-width: 520px;
}
.hero-cta { margin-top: 30px; }
.meta { margin-top: 14px; font-size: 13px; color: var(--ink-faint); }

/* 小工具展示台。背景是示意的桌布，讓半透明的小工具有東西可以襯 */
.stage {
  margin: 44px auto 0; max-width: 900px; background: var(--stage);
  border-radius: 24px 24px 0 0; padding: 52px 24px 56px;
  display: flex; justify-content: center; align-items: center;
  gap: 30px; flex-wrap: wrap;
}

/* ---------- 小工具示意 ---------- */

.widget {
  background: var(--widget-bg); border-radius: 18px;
  box-shadow: 0 20px 44px rgba(50, 30, 10, .28);
  padding: 11px 13px 9px; text-align: left;
}
.widget-md { width: 352px; display: flex; gap: 12px; }
.widget-sm { width: 174px; border-radius: 16px; padding: 10px 11px 8px; }

.widget-head {
  display: flex; align-items: center; gap: 8px; padding: 1px 3px 3px;
  font-size: 13px;
}
.widget-head .arrow { color: #CDBFA4; font-size: 12px; }
.widget-head .month { flex: 1; text-align: center; color: #B0492F; font-weight: 700; }
.widget-head .today { color: #B0492F; font-size: 11px; font-weight: 600; }

.widget-main { flex: 1.2; min-width: 0; }
.widget-side {
  width: 116px; flex: none; padding: 4px 0 0 12px;
  border-left: 1px solid rgba(107, 88, 68, .14);
}
.widget-side-title { font-size: 11px; font-weight: 700; color: #8F7D63; }
.widget-side-list { margin-top: 9px; display: grid; gap: 7px; }
.widget-side-list div { font-size: 10.5px; line-height: 1.4; }
.widget-side-list .date { color: #C03A2B; font-weight: 700; }
.widget-side-list .name { color: #6B5844; font-weight: 600; }

[data-theme="dark"] .widget-head .arrow { color: #6C665E; }
[data-theme="dark"] .widget-head .month,
[data-theme="dark"] .widget-head .today { color: #E8B48A; }
[data-theme="dark"] .widget-side { border-left-color: rgba(230, 224, 214, .12); }
[data-theme="dark"] .widget-side-title { color: #8F887E; }
[data-theme="dark"] .widget-side-list .date { color: #F2937D; }
[data-theme="dark"] .widget-side-list .name { color: #E6E0D6; }

/* 月曆格線（由 calendar.js 填入） */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-weekdays { padding-bottom: 2px; }
.cal-weekdays span { text-align: center; font-weight: 700; }
.cal-cell {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1;
}
.cal-lunar { line-height: 1; margin-top: 2px; font-weight: 500; }
.cal-dot {
  position: absolute; bottom: 1px; left: 50%; margin-left: -2px;
  width: 4px; height: 4px; border-radius: 50%; opacity: .9;
}

/* ---------- 功能區塊 ---------- */

.features { padding: 72px 24px 8px; display: grid; gap: 60px; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 24px; align-items: start; }
.feature-num {
  width: 44px; height: 44px; background: var(--brick); color: var(--on-brick);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
}
.feature h2 { margin: 6px 0 0; font-size: 24px; font-weight: 800; }
.feature p { margin: 12px 0 0; font-size: 16px; line-height: 1.85; color: var(--ink-soft); max-width: 640px; }

/* 特色底下的補充說明：比主要說明再退一階 */
.feature-note { font-size: 14.5px; color: var(--ink-soft); opacity: .82; }

.chips { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.chip {
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  background: var(--chip-plain); color: var(--ink-soft);
}
.chip-warm { background: var(--chip-warm); color: var(--brick-soft); font-weight: 700; }

/* 配色輪播示範 */
/* 設定畫面裡的「自訂顏色」面板示意。
 *
 * 用 HTML 畫而不是放截圖：這樣淺色深色兩種主題下都看得清楚，
 * 也不會因為 App 改版就變成一張過期的圖。面板本身固定深色，
 * 因為 App 的設定畫面在深色模式下就長這樣。
 */
.prefs {
  flex: 1 1 240px; min-width: 0; max-width: 300px;
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 14px 15px;
  box-shadow: 0 8px 20px rgba(40, 32, 20, .06);
  font-size: 11.5px; line-height: 1.4;
}
.prefs-title { color: var(--ink-faint); margin-bottom: 9px; font-size: 11px; }
.prefs-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-top: 1px solid var(--line);
}
.prefs-row:first-of-type { border-top: 0; }
.prefs-label { color: var(--ink); white-space: nowrap; }
.prefs-code {
  margin-left: auto; color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px;
}
.prefs-swatch {
  width: 34px; height: 15px; border-radius: 8px; flex: none;
  box-shadow: 0 0 0 1px var(--panel-edge) inset;
}
/* 滑桿：軌道 + 已填滿的部分 + 圓鈕，對應 App 裡的不透明度 */
.prefs-row-slider .prefs-label { color: var(--ink-soft); }
.prefs-track {
  position: relative; flex: 1 1 auto; height: 3px; border-radius: 99px;
  background: var(--line); margin-left: 4px;
}
.prefs-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--brick); }
.prefs-knob {
  position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: #FFFFFF; transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(40, 32, 20, .32), 0 0 0 .5px rgba(40, 32, 20, .16);
}
.prefs-pct {
  flex: none; width: 30px; text-align: right; font-style: normal;
  color: var(--ink-faint);
}

.showcase {
  display: flex; align-items: center; gap: 40px;
  margin-top: 24px; flex-wrap: wrap;
}
.showcase-widget {
  padding: 26px 30px; border-radius: 18px; flex: none;
  /* 用偏深的示意桌布：霧面是半透明白底配白字，設計給深色桌布，
     放在淺色台上白字會整個消失。深底則五組配色都看得清楚。 */
  background:
    radial-gradient(120% 100% at 25% 15%, #6E5B7B 0%, transparent 60%),
    radial-gradient(100% 90% at 80% 80%, #3B5A72 0%, transparent 55%),
    linear-gradient(150deg, #2E3440 0%, #4A4054 55%, #5C4A52 100%);
}
/* 換配色時底色與外框跟著變，因此不吃 .widget 的預設底色 */
.showcase-frame {
  background: #FFFFFF; transition: background-color .45s ease, box-shadow .45s ease;
}
.showcase-system    { background: #FFFFFF; }
.showcase-graphite  { background: #232120; }
.showcase-ricePaper { background: #F8F1DF; }
.showcase-minimal   { background: #FFFFFF; box-shadow: 0 0 0 1px #E3E0D8 inset, 0 16px 36px rgba(50,30,10,.24); }
.showcase-frosted {
  background: rgba(255, 255, 255, .26); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset, 0 16px 36px rgba(50,30,10,.28);
}
/* 霧面與石墨的標題列在深底上要換色，否則磚紅字會看不清 */
.showcase-frosted .widget-head .month,
.showcase-graphite .widget-head .month { color: #F0D9C4; }
.showcase-frosted .widget-head .arrow,
.showcase-graphite .widget-head .arrow { color: rgba(255,255,255,.5); }

.showcase-labels { display: flex; flex-direction: column; gap: 4px; }
.showcase-label {
  background: none; border: 0; padding: 6px 12px; border-radius: 8px;
  font: inherit; font-size: 14px; color: var(--ink-faint);
  cursor: pointer; text-align: left; transition: color .2s, background-color .2s;
}
.showcase-label:hover { color: var(--ink-soft); background: var(--chip-plain); }
.showcase-label.is-active {
  color: var(--brick-soft); background: var(--chip-warm); font-weight: 700;
}
.showcase-label:focus-visible { outline: 2px solid var(--brick); outline-offset: 1px; }

/* 背景圖展示 */
.wallpaper-band {
  margin-top: 72px; display: grid; grid-template-columns: 340px 1fr;
  gap: 40px; align-items: center;
}
.wallpaper-copy h2 { margin: 0; font-size: 24px; font-weight: 800; }
.wallpaper-copy p { margin: 12px 0 0; font-size: 16px; line-height: 1.85; color: var(--ink-soft); }

.wallpaper-demo {
  position: relative; border-radius: 20px; overflow: hidden;
  padding: 30px 26px 42px; display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}
/* 小的往左偏，兩個錯開才像散落在桌面上，而不是置中對齊的示意圖 */
.wallpaper-sm { align-self: center; margin-left: -150px; }
/* 行事曆來源勾選示意。
 *
 * 與「自訂顏色」面板同一套深色卡片樣式——兩者在 App 裡本來就是同一個設定畫面。
 */
.cal-showcase { align-items: flex-start; }
.cal-demo-widget { width: 320px; flex: none; }
.sources {
  flex: 1 1 250px; min-width: 0; max-width: 300px;
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 14px 11px;
  box-shadow: 0 8px 20px rgba(40, 32, 20, .06);
  font-size: 11.5px; line-height: 1.4;
}
.sources-title { color: var(--ink-faint); margin-bottom: 8px; font-size: 11px; }
.src {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-top: 1px solid var(--line);
}
.src:first-of-type { border-top: 0; }
.src-box {
  width: 14px; height: 14px; border-radius: 4px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--on-brick); line-height: 1;
  box-shadow: 0 0 0 1px var(--panel-edge) inset;
}
.src.is-on .src-box { background: var(--brick); box-shadow: none; }
.src-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.src-name { color: var(--ink-faint); }
.src.is-on .src-name { color: var(--ink); }
.src-kind {
  margin-left: auto; color: var(--ink-faint); opacity: .8; font-size: 10.5px;
  white-space: nowrap;
}

/* 背景圖示意。
 *
 * 照片鋪在小工具「裡面」，不是換桌布——這是這個功能真正的樣子。
 * 照片上再壓一層白色遮罩把它沖淡，所以日期維持深色也讀得清楚；
 * 遮罩濃淡在 App 裡可調，這裡取一個中間值。
 */
.wallpaper-desk {
  position: absolute; inset: 0;
  /* 示意用的桌布，刻意做得柔和，不跟小工具搶注意力 */
  background:
    radial-gradient(58% 66% at 20% 20%, rgba(255, 252, 244, .55) 0%, transparent 62%),
    radial-gradient(52% 62% at 84% 80%, rgba(206, 138, 106, .42) 0%, transparent 66%),
    linear-gradient(150deg, #E4D6C3 0%, #D4BEA8 38%, #BE9E88 72%, #A88670 100%);
}

.widget-photos {
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit; overflow: hidden;
}
.widget-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
}
.widget-photo.is-active { opacity: 1; }
/* 沖淡照片的遮罩，疊在所有照片之上 */
.widget-photos::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .58);
}

/* 輪播指示點 */
.wallpaper-dots {
  position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 7px;
}
.wallpaper-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255, 255, 255, .55); cursor: pointer;
  box-shadow: 0 1px 3px rgba(40, 40, 20, .35);
  transition: width .25s ease, background .25s ease;
}
.wallpaper-dots button:hover { background: rgba(255, 255, 255, .8); }
.wallpaper-dots button.is-active { width: 20px; background: #FFFFFF; }
.wallpaper-dots button:focus-visible { outline: 2px solid #FFF; outline-offset: 2px; }

.wallpaper-widget {
  position: relative; z-index: 2;
  /* 底色留給照片，這裡只補一層白避免照片沒載入時是透明的 */
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .5) inset,
              0 14px 32px rgba(40, 46, 24, .28);
}
/* 內容要疊在照片之上 */
.wallpaper-widget > .widget-main,
.wallpaper-widget > .widget-side,
.wallpaper-widget > .widget-head,
.wallpaper-widget > [data-calendar] { position: relative; z-index: 1; }
.wallpaper-widget .widget-side { border-left-color: rgba(60, 50, 40, .18); }


.lunar-widget { width: 360px; }
.lunar-side { width: 112px; }

/* 農曆區塊 */
.lunar-band {
  /* 左右 auto：有 max-width 卻用固定的左右邊距，區塊會貼在左側而非置中 */
  margin: 72px auto 0; background: var(--paper-sunken); border-radius: 22px;
  padding: 44px 52px; display: grid; grid-template-columns: 1fr 380px;
  gap: 44px; align-items: center; max-width: 980px;
  width: calc(100% - 48px);
}
.lunar-band h2 { margin: 0; font-size: 24px; font-weight: 800; }
.lunar-band p { margin: 12px 0 0; font-size: 16px; line-height: 1.85; color: var(--ink-soft); }

/* 三欄卡片 */
.cards {
  padding: 32px 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
}
.card h4 { margin: 0; font-size: 17px; font-weight: 800; }
.card p { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- 安裝 ---------- */

.install { margin-top: 72px; background: var(--paper-sunken); padding: 60px 24px 64px; }
.install h2 { margin: 0; font-size: 30px; font-weight: 800; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.step { background: var(--paper-raised); border-radius: 16px; padding: 22px; }
.step-label { color: var(--brick-soft); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.step p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.75; }

/* ---------- 結尾與頁尾 ---------- */

.closing { padding: 76px 24px; text-align: center; }
.closing h2 { margin: 0; font-size: 32px; font-weight: 800; }

.footer {
  border-top: 1px solid var(--line); padding: 26px 24px 32px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.footer-left { font-size: 13px; color: var(--ink-faint); }
.footer-right {
  font-size: 12px; color: var(--ink-faint); max-width: 640px;
  line-height: 1.7; text-align: right;
}

/* ---------- 進場動畫 ---------- */

/* 由 scroll.js 在區塊進入畫面時加上 is-revealed。
   偏好減少動態時，scroll.js 會直接標記為已顯示，不套用轉場。 */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .8, .3, 1);
}
.reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .showcase-frame { transition: none; }
  .widget-photo { transition: none; }
  body { transition: none; }
}

/* ---------- 響應式 ---------- */

@media (max-width: 900px) {
  .wallpaper-band { grid-template-columns: 1fr; gap: 28px; }
  .wallpaper-demo { padding: 24px 18px; }
  .lunar-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav-links { gap: 14px; font-size: 13px; }
  /* 手機上導覽的次要連結讓位給下載按鈕 */
  .nav-links a:not(.btn):not(.gh) { display: none; }
  .btn { padding: 6px 14px; border-radius: 9px; font-size: 13px; }

  .hero { padding: 36px 20px 0; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 17px; }
  .hero-sub { font-size: 14px; }
  .btn-lg { padding: 13px 36px; font-size: 16px; }

  .stage { margin-top: 32px; padding: 32px 16px 36px; border-radius: 0; max-width: none; }
  /* 小工具維持原始尺寸並置中，縮放會讓字變得難以辨識 */
  .widget-md { width: 100%; max-width: 352px; }

  .features { padding: 44px 20px 0; gap: 40px; }
  .feature { grid-template-columns: 40px 1fr; gap: 16px; }
  .feature-num { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
  .feature h2 { font-size: 20px; }
  .feature p { font-size: 15px; }

  .lunar-band { margin: 44px auto 0; width: calc(100% - 40px); }
  /* 示意用的小工具在手機上一律可縮，寫死的寬度會撐破版面 */
  .lunar-widget { width: 100%; max-width: 360px; }
  .lunar-side { width: 92px; }
  .cal-demo-widget { width: 100%; max-width: 320px; }
  .wallpaper-md { width: 100%; max-width: 330px; }
  /* 負 margin 的錯落擺法在窄螢幕會把小工具推出左邊界，改成靠左 */
  .wallpaper-sm { width: 140px; margin-left: 0; align-self: flex-start; }
  /* 手機上示意元素換行後預設靠左，在窄欄裡看起來偏一邊，一律置中 */
  .showcase { gap: 20px; justify-content: center; }
  .showcase-widget, .cal-demo-widget { margin-left: auto; margin-right: auto; }
  .showcase-labels { flex-direction: row; flex-wrap: wrap; width: 100%; justify-content: center; }
  .wallpaper-demo { align-items: center; }
  .wallpaper-sm { align-self: center; }
  .prefs, .sources { max-width: none; flex-basis: 100%; }
  .wallpaper-band { margin-top: 44px; }
  .steps { grid-template-columns: 1fr; }
  .install { padding: 44px 20px 48px; }
  .install h2 { font-size: 24px; }
  .closing { padding: 56px 20px; }
  .closing h2 { font-size: 24px; }
  .footer { flex-direction: column; gap: 12px; }
  .footer-right { text-align: left; }
}
