/* Sun Computation Super Intelligence — 共用視覺系統 v0.6
   暖象牙白底 + 橙金強調 + 深墨棕字；v0.6 主 logo 定案為用戶指定嘅透明底火焰太陽「圖 1」，後備圖全清。無外部字型／CDN。 */
:root {
  --cream: #FAF6EF;
  --paper: #FFFFFF;
  --paper-soft: #FBF7F0;
  --ink: #2B2118;
  --ink-2: #5B4C3C;
  --ink-3: #8A7A66;
  --gold: #F59E0B;
  --gold-deep: #B45309;
  --orange: #EA580C;
  --orange-deep: #C2410C;
  --line: rgba(180, 120, 30, 0.16);
  --line-strong: rgba(180, 120, 30, 0.34);
  --shadow: 0 14px 36px rgba(120, 70, 10, 0.09);
  --shadow-sm: 0 4px 14px rgba(120, 70, 10, 0.07);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: #EFE9DE;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button, input { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--gold-deep); }

/* 手機：全寬一頁過（min-height 用 svh，避免手機瀏覽器工具列計多咗高度） */
.app {
  width: 100%;
  max-width: 428px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(80, 50, 10, 0.14);
}
/* 首頁專用：圖 1 垂直橙色漸變底色（只作用於 .app.home，唔影響模組頁） */
/* background-color 做 fallback：就算漸變因任何原因未生效，底色都係橙色而唔會變白 */
.app.home { background-color: #EE8F3C; background: linear-gradient(180deg, #F5A94A 0%, #EE8F3C 34%, #C75A2A 70%, #8B2A1A 100%); }
.app.home .foot { color: rgba(255,244,234,.92); }
.app.home .foot b { color: #FFE7CF; }
.app.home .foot-mail a { color: #FFD6A5; }
.app.home .foot-mail span { color: #FFD6A5; }

/* 背景太陽暗花：好淡嘅太陽光暈＋不規則放射線，令單調底色有層次（暗花，唔搶戲）
   光線唔係均勻嘅：用兩組唔同週期嘅 repeating-conic 疊加產生干擾，再手掛幾條加粗、唔對稱嘅主光線，睇落更似真實太陽芒。 */
.app::before {
  content: '';
  position: absolute; top: -13%; left: 50%;
  width: 130%; aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 42%, rgba(245,158,11,.14) 0%, rgba(245,158,11,.05) 34%, transparent 64%),
    repeating-conic-gradient(from 0deg at 50% 42%, rgba(214,120,20,.05) 0deg 3deg, transparent 3deg 9deg),
    repeating-conic-gradient(from 5deg at 50% 42%, rgba(214,120,20,.035) 0deg 2deg, transparent 2deg 13deg),
    conic-gradient(from 0deg at 50% 42%,
      transparent 0 17deg, rgba(214,120,20,.06) 17deg 21deg, transparent 21deg 95deg,
      rgba(214,120,20,.05) 95deg 99deg, transparent 99deg 205deg,
      rgba(214,120,20,.065) 205deg 210deg, transparent 210deg 298deg,
      rgba(214,120,20,.05) 298deg 302deg, transparent 302deg 360deg);
  pointer-events: none; z-index: 0; opacity: .55;
}
/* 平板：適度加闊 */
@media (min-width: 640px) and (max-width: 899px) {
  body { padding: 22px 0; align-items: center; }
  .app { max-width: 640px; min-height: auto; border-radius: 24px; }
}
/* 桌面：自動變回桌面尺寸（唔再係一條 428px 手機欄） */
@media (min-width: 900px) {
  body { padding: 28px 0; align-items: center; }
  .app { max-width: 1120px; min-height: auto; border-radius: 26px; }
}

/* ===== 頂部橙金品牌帶 ===== */
.band {
  position: relative;
  flex: none;
  background: linear-gradient(135deg, #FBBF24 0%, #F97316 46%, #DC5A09 100%);
  padding: 12px 16px 13px;
  color: #FFF;
  /* 一定要 visible：語言下拉選單要伸出品牌帶之外，唔可以俾 band 切走 */
  overflow: visible;
  z-index: 30;
}
.band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% -30%, rgba(255,255,255,0.34), transparent 58%);
  pointer-events: none;
  border-radius: inherit;
}
.band::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(255,255,255,0.28);
}
.band-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-cn { font-size: 17px; font-weight: 800; letter-spacing: 0.4px; line-height: 1.24; text-shadow: 0 1px 2px rgba(120,50,0,.18); cursor: default; }
.brand-en { font-size: 7.5px; font-weight: 700; letter-spacing: .9px; opacity: .94; margin-top: 2px; white-space: nowrap; }
/* 英文模式：主行變英文品牌名，字要細一級、主副行都唔可以斷成兩行 */
html[lang="en"] .brand-cn { font-size: 14px; letter-spacing: .1px; line-height: 1.25; }
html[lang="en"] .brand-en { font-size: 9px; letter-spacing: .3px; font-weight: 800; line-height: 1.2; }
@media (max-width: 374px) {
  html[lang="en"] .brand-cn { font-size: 12.5px; }
  html[lang="en"] .brand-en { font-size: 8px; }
}

.lang-btn {
  flex: none;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.5);
  color: #FFF;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(4px);
}
.lang-btn:active { transform: scale(.97); }
.lang-btn svg { width: 13px; height: 13px; }
.lang-btn .caret { font-size: 9px; opacity: .9; margin-left: -1px; }

/* 三語下拉選單 */
.lang-wrap { position: relative; flex: none; }
.lang-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 132px;
  background: #FFFDF7;
  border: 1px solid rgba(122,45,8,.22);
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 12px 32px rgba(60,23,7,.28);
  z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block; width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0; border-radius: 8px;
  background: transparent;
  font-size: 11px; font-weight: 500;
  color: #6b3417;
  cursor: pointer;
}
.lang-menu button:active { background: rgba(245,179,1,.18); }
.lang-menu button.active {
  font-weight: 800;
  color: #8f2f04;
  background: rgba(245,179,1,.14);
}
/* 窄屏（iPhone SE / 320–360px）：收細語言掣，唔好頂爆品牌帶 */
@media (max-width: 374px) {
  .band { padding: 14px 16px 16px; }
  .brand-cn { font-size: 17px; }
  .lang-btn { padding: 6px 9px; font-size: 10px; gap: 4px; }
  .lang-btn svg { display: none; }
  .lang-menu { min-width: 118px; }
}

/* ===== Modal（一頁過：登入、條款、私隱都按入去才彈出） ===== */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(43,33,24,.52);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none;
  align-items: flex-end; justify-content: center;
  z-index: 300;
}
.modal-mask.open { display: flex; }
.modal-sheet {
  width: 100%; max-width: 428px; max-height: 88vh; max-height: 88svh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  border-radius: 20px 20px 0 0;
  padding: 16px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 44px rgba(40,20,0,.32);
  animation: sheetUp .2s ease-out;
}
@keyframes sheetUp { from { transform: translateY(16px); opacity: .5 } to { transform: none; opacity: 1 } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.modal-head b { font-size: 14px; font-weight: 800; }
.modal-x {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper-soft);
  color: var(--ink-2); font-size: 16px; line-height: 1; font-weight: 700;
}
body.modal-open { overflow: hidden; }

/* ===== 主頁三大模組（手機壓緊，令成頁一頁過） ===== */
.mod-list { display: flex; flex-direction: column; gap: 7px; }
.mod-list .mod-card { margin-bottom: 0; padding: 9px 10px; gap: 9px; }
#modulesCard .card-title { margin-bottom: 8px; }
#modulesCard .card-sub { display: none; }
#modulesCard .mod-ico { width: 32px; height: 32px; border-radius: 10px; }
#modulesCard .mod-ico svg { width: 18px; height: 18px; }
#modulesCard .mod-name { font-size: 12.5px; }
#modulesCard .mod-desc { font-size: 10px; line-height: 1.5; margin-top: 3px; }
#modulesCard .mod-tags { display: none; }
#modulesCard .badge { font-size: 8.5px; padding: 2px 7px; }

/* 免責聲明 */
.disclaimer { border-color: rgba(194,65,12,.30); background: #FFFCF6; }
.disclaimer ul { padding-left: 15px; margin-top: 6px; }
.disclaimer li { font-size: 10.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 5px; }
.disclaimer li:last-child { margin-bottom: 0; }

/* 聯絡我們 */
.contact-mail {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 4px; padding: 9px 14px; border-radius: 11px;
  background: var(--paper-soft); border: 1px solid var(--line-strong);
  color: var(--orange-deep); font-size: 11.5px; font-weight: 800; text-decoration: none;
  word-break: break-all;
}
.contact-mail svg { flex: none; width: 15px; height: 15px; }
.contact-mail:active { transform: scale(.985); }

/* 條款彈窗內的分段：所有段落（含免責聲明）字級統一 */
.legal-block { margin-bottom: 14px; font-size: 11px; }
.legal-block:last-of-type { margin-bottom: 8px; }
.legal-block b { display: block; font-size: 11.5px; font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.legal-block p { font-size: 11px; line-height: 1.7; color: var(--ink-2); }
.legal-block p + p { margin-top: 5px; }
.legal-sub { color: var(--ink-3); }
.legal-list { font-size: 11px; padding-left: 15px; margin-top: 2px; }
.legal-block ul, .legal-block ol { font-size: 11px; }
.legal-list li, .legal-block ul li { font-size: 11px; line-height: 1.7; color: var(--ink-2); margin-bottom: 4px; }
.legal-list li:last-child { margin-bottom: 0; }
.modal-foot {
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 10px; color: var(--ink-3); text-align: center; line-height: 1.7;
}
.modal-foot a { color: var(--orange-deep); font-weight: 700; text-decoration: none; word-break: break-all; }

/* 頁腳客服電郵 */
.foot-mail { margin-top: 2px; font-size: 8.6px; color: var(--ink-3); }
.foot-mail a { color: var(--gold-deep); font-weight: 700; text-decoration: none; word-break: break-all; }

/* ===== 內容區：區塊收緊喺頂部，頁腳緊貼內容（剩餘空位留喺最底，唔會中間散開） ===== */
main { flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; padding: 0 16px 10px; }
.foot { margin-top: 12px; }

/* 主視覺 */
.hero { text-align: center; padding: 12px 2px 10px; }
.hero-logo {
  width: clamp(96px, 27vw, 150px); height: auto; display: block; margin: 0 auto 8px;
  /* 火焰太陽原圖本身已有立體光影，外加陰影要再淡一級，唔好整污糟 */
  filter: drop-shadow(0 5px 12px rgba(170, 105, 15, 0.14));
}
.hero-slogan {
  display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: .4px;
  color: #FFF; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.55); border-radius: 999px; padding: 7px 16px;
  text-shadow: 0 1px 4px rgba(80,20,5,.35);
}
.hero h1 { font-size: 19px; font-weight: 800; line-height: 1.36; margin: 9px 0 6px; letter-spacing: .1px; color: #FFF; text-shadow: 0 2px 8px rgba(80,20,5,.30); }
.hero p { font-size: 9.5px; line-height: 1.62; color: rgba(255,255,255,.92); padding: 0 2px; }
.hero-eyebrow { display: inline; }
html[lang="en"] .hero-slogan { font-size: 11px; letter-spacing: 0; white-space: normal; max-width: 300px; }
html[lang="en"] .hero h1 { font-size: 16.5px; line-height: 1.3; }
@media (max-width: 374px) {
  html[lang="en"] .hero-slogan { font-size: 8.6px; }
  html[lang="en"] .hero h1 { font-size: 15px; }
}

/* 卡片 */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.card-title { font-size: 13px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 7px; }
.card-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), var(--orange)); }
.card-sub { font-size: 11px; color: var(--ink-3); line-height: 1.6; margin-bottom: 12px; }

/* 首頁合併大框：用圖 1 橙色漸變，框內文字轉淺色 */
.panel-grad {
  background: linear-gradient(180deg, #FFE6C4 0%, #FBCF94 55%, #F3B877 100%);
  border: 2px solid rgba(255,255,255,.6);
  box-shadow: 0 18px 44px rgba(80,20,5,.34);
  padding: 16px;
}
.panel-grad .card-title { color: #8A3B12; }
.panel-grad .card-sub { color: #6B4A2E; }
.panel-grad .mod-card { background: rgba(255,248,240,.9); border-color: rgba(255,255,255,.9); box-shadow: 0 4px 14px rgba(120,60,10,.12); }
.panel-grad .mod-card.live { border-color: #E08A3C; box-shadow: 0 6px 18px rgba(180,80,10,.18); }
.panel-grad .mod-name { color: #3A2412; }
.panel-grad .mod-desc { color: #5B4636; }
.panel-grad .mod-tags span { color: #8A4B1E; background: rgba(255,255,255,.65); border-color: rgba(200,120,40,.3); }
.panel-grad .badge.soon { background: rgba(255,255,255,.7); color: #9A5A1E; border: 1px solid rgba(200,120,40,.3); }
.panel-grad .badge.live { background: #2E9E5B; color: #FFF; }
.panel-grad .primary { background: #C75A2A; color: #FFF; border-color: #C75A2A; box-shadow: 0 8px 20px rgba(120,40,10,.32); margin-top: 16px; }

/* 公司介紹三點 */
.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat { display: flex; gap: 10px; align-items: flex-start; }
.feat-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(145deg, rgba(245,158,11,.16), rgba(234,88,12,.10));
  border: 1px solid rgba(245,158,11,.24);
  display: grid; place-items: center; color: var(--orange-deep);
}
.feat-ico svg { width: 16px; height: 16px; }
.feat-txt strong { display: block; font-size: 11.5px; font-weight: 800; margin-bottom: 2px; }
.feat-txt span { font-size: 10.5px; color: var(--ink-3); line-height: 1.55; }

/* 登入／註冊分頁 */
.tabs { display: flex; gap: 4px; background: var(--paper-soft); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.tab {
  flex: 1; border: 0; background: transparent; color: var(--ink-3);
  font-size: 12px; font-weight: 700; padding: 9px 0; border-radius: 9px;
  transition: background .18s, color .18s;
}
.tab.active { background: var(--paper); color: var(--orange-deep); box-shadow: 0 2px 8px rgba(120,70,10,.10); }

.field { margin-bottom: 11px; }
.field label { display: block; font-size: 10.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.input {
  width: 100%; height: 44px; border-radius: 12px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  padding: 0 13px; color: var(--ink); font-size: 13px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.input::placeholder { color: #B3A18B; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,158,11,.14); }

/* 合規註冊：明示同意、驗證提示、重設密碼連結 */
.consent {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--paper-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 11px; margin: 2px 0 9px;
  cursor: pointer;
}
.consent input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--orange); }
.consent span { font-size: 10.5px; line-height: 1.6; color: var(--ink-2); }
.verify-note {
  font-size: 10px; line-height: 1.6; color: #7A5316;
  background: #FFF8EA; border: 1px solid rgba(245,158,11,.3);
  border-radius: 10px; padding: 9px 11px; margin-bottom: 2px;
}
.ghost-link {
  display: block; margin: 10px auto 0; padding: 4px 8px;
  background: transparent; border: 0; color: var(--gold-deep);
  font-size: 10.5px; font-weight: 700; text-decoration: underline;
}
.ghost-link:active { opacity: .7; }

/* 主按鈕 */
.primary {
  width: 100%; height: 46px; margin-top: 14px;
  border: 1px solid #D9560B; border-radius: 13px;
  background: linear-gradient(135deg, #FB923C 0%, #EA580C 55%, #C2410C 100%);
  color: #FFF; font-size: 13.5px; font-weight: 800; letter-spacing: .4px;
  box-shadow: 0 8px 20px rgba(234,88,12,.28), inset 0 1px 0 rgba(255,255,255,.28);
}
.primary:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(234,88,12,.24); }
.primary:disabled { opacity: .55; box-shadow: none; cursor: not-allowed; }

.note { font-size: 10px; color: var(--ink-3); line-height: 1.6; text-align: center; margin-top: 10px; }
.note a { text-decoration: none; font-weight: 700; }

/* 誠實狀態提示（取代假 alert） */
.status {
  display: none; margin-top: 12px; padding: 11px 12px; border-radius: 12px;
  background: #FFF8EA; border: 1px solid rgba(245,158,11,.34);
  font-size: 10.5px; line-height: 1.7; color: #7A5316;
}
.status.show { display: block; }
.status b { display: block; font-size: 11px; margin-bottom: 3px; color: #8A4B08; }
.status ul { padding-left: 16px; margin-top: 4px; }
.status li { margin-bottom: 2px; }
.status .err { display: block; color: #B42318; font-weight: 700; }
.status .info { display: block; color: #1F6FEB; font-weight: 600; }
.hint { font-size: 9.5px; color: var(--ink-3); text-align: center; margin-top: 10px; line-height: 1.5; }
.hint a { color: var(--orange-deep); text-decoration: none; font-weight: 700; }

/* 頁腳 */
.foot { text-align: center; font-size: 8.6px; color: var(--ink-3); line-height: 1.55; padding: 2px 4px 0; }
.foot b { color: var(--ink-2); }
.foot-links { display: flex; justify-content: center; gap: 10px; margin-top: 3px; flex-wrap: wrap; }
.foot-links span { cursor: pointer; }
.foot-links a { color: inherit; text-decoration: none; cursor: pointer; }
.foot-links span:active, .foot-links a:active { opacity: .65; }

/* ===== 第二頁：模組與方案 ===== */
.back-row { display: flex; align-items: center; justify-content: flex-end; padding: 14px 20px 0; }
.back-btn { border: 0; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.user-chip { font-size: 10.5px; font-weight: 700; color: var(--gold-deep); background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.28); border-radius: 999px; padding: 5px 11px; }
.user-group { display: flex; align-items: center; gap: 8px; }
.logout-link { background: none; border: 1px solid var(--line); color: var(--ink-2); font-size: 10.5px; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.logout-link:active { opacity: .7; }
.page-head { padding: 12px 20px 4px; }
.page-head h2 { font-size: 19px; font-weight: 800; letter-spacing: .2px; }
.page-head p { font-size: 11.5px; color: var(--ink-2); line-height: 1.65; margin-top: 5px; }

.banner {
  display: flex; gap: 9px; align-items: flex-start;
  background: #FFF8EA; border: 1px solid rgba(245,158,11,.32);
  border-radius: 12px; padding: 10px 12px; margin: 12px 0 14px;
  font-size: 10.5px; line-height: 1.65; color: #7A5316;
}
.banner svg { flex: none; width: 15px; height: 15px; margin-top: 1px; }

.mod-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.mod-card.live { border-color: rgba(245,158,11,.46); box-shadow: 0 6px 18px rgba(200,110,10,.12); }
.mod-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, #FEF3C7, #FDBA74);
  display: grid; place-items: center; color: #9A4A08;
}
.mod-ico svg { width: 22px; height: 22px; }
.mod-ico-img { width: 56%; height: 56%; object-fit: contain; display: block; }
.mod-body { flex: 1; min-width: 0; }
.mod-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mod-name { font-size: 13px; font-weight: 800; }
.mod-en { font-size: 9px; color: var(--ink-3); letter-spacing: .8px; margin-top: 1px; }
.badge { flex: none; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.badge.soon { background: #F1EDE6; color: #8A7A66; }
.badge.live { background: rgba(245,158,11,.18); color: #9A4A08; }
.mod-cta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 10px; padding: 7px 14px; border-radius: 10px;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  color: #fff; font-size: 12px; font-weight: 700;
  text-decoration: none; box-shadow: 0 4px 12px rgba(234,88,12,.22);
}
.mod-cta:active { transform: translateY(1px); }
.mod-desc { font-size: 10.5px; color: var(--ink-2); line-height: 1.6; margin-top: 7px; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.mod-tags span { font-size: 9px; color: var(--gold-deep); background: rgba(245,158,11,.09); border: 1px solid rgba(245,158,11,.2); padding: 3px 7px; border-radius: 6px; }

.plan-row { display: flex; flex-direction: column; gap: 8px; }
.plan {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--paper-soft); border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 13px; transition: border-color .18s, background .18s;
}
.plan:hover { border-color: var(--gold); }
.plan.selected { background: #FFF8EA; border-color: var(--gold); box-shadow: 0 3px 12px rgba(200,110,10,.12); }
.plan-l strong { display: block; font-size: 12px; font-weight: 800; }
.plan-l span { font-size: 10px; color: var(--ink-3); }
.plan-r { text-align: right; flex: none; }
.plan-price { font-size: 15px; font-weight: 800; color: var(--orange-deep); }
.plan-price small { font-size: 9px; font-weight: 600; color: var(--ink-3); }
.radio { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); margin-bottom: 3px; }
.plan.selected .radio { border-color: var(--orange); background: radial-gradient(circle, var(--orange) 0 45%, transparent 48%); }

.summary { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-top: 12px; color: var(--ink-2); }
.summary b { font-size: 16px; color: var(--orange-deep); }

/* ===== v0.4 本日重心 · SI 簡報 ===== */
.focus-note {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .4px;
  color: #8A4B08; background: rgba(245,158,11,.14);
  border: 1px solid rgba(245,158,11,.30); border-radius: 999px;
  padding: 4px 9px; margin-bottom: 10px;
}
.focus-match {
  background: var(--paper-soft); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px; margin-bottom: 10px;
}
.focus-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.focus-head b { font-size: 12px; font-weight: 800; }
.focus-head span {
  flex: none; font-size: 9px; font-weight: 800; color: #FFF;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  border-radius: 999px; padding: 3px 9px;
}
.prob-list { display: flex; flex-direction: column; gap: 7px; }
.prob-row { display: flex; align-items: center; gap: 9px; font-size: 10.5px; color: var(--ink-2); }
.prob-row > span { flex: none; width: 32px; font-weight: 700; }
.prob-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(180,120,30,.14); overflow: hidden; }
.prob-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FBBF24, #EA580C); }
.prob-row b { flex: none; width: 34px; text-align: right; font-size: 11px; color: var(--orange-deep); }
.focus-why {
  margin-top: 10px; padding: 9px 10px; border-radius: 10px;
  background: #FFF8EA; border: 1px solid rgba(245,158,11,.26);
  font-size: 10.5px; line-height: 1.6; color: #7A5316;
}
.focus-why b { display: block; font-size: 10px; color: #8A4B08; margin-bottom: 2px; }
.focus-meta { font-size: 9px; color: var(--ink-3); margin-top: 7px; line-height: 1.5; }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row {
  display: flex; align-items: center; gap: 9px; font-size: 10.5px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 9px;
}
.rank-no {
  flex: none; width: 19px; height: 19px; border-radius: 6px;
  background: rgba(245,158,11,.16); color: var(--gold-deep);
  font-size: 10px; font-weight: 800; display: grid; place-items: center;
}
.rank-row span:nth-child(2) { flex: 1; font-weight: 700; color: var(--ink-2); }
.rank-row b { flex: none; font-size: 10px; color: var(--orange-deep); }

/* ===== v0.4 問 SI ===== */
.ask-row { display: flex; gap: 8px; align-items: stretch; }
.ask-row .input { flex: 1; min-width: 0; height: 42px; }
.ask-btn {
  flex: none; width: 74px; border-radius: 12px; border: 1px solid #D9560B;
  background: linear-gradient(135deg, #FB923C, #EA580C);
  color: #FFF; font-size: 11.5px; font-weight: 800;
}
.ask-btn:active { transform: scale(.97); }

/* ===== v0.4 好友開房隱藏面板 ===== */
.hidden-room { border-color: rgba(234,88,12,.42); background: #FFFCF6; }
.hidden-room[hidden] { display: none; }
.room-hint {
  font-size: 9.5px; line-height: 1.6; color: #8A4B08;
  background: #FFF1DC; border: 1px dashed rgba(234,88,12,.42);
  border-radius: 10px; padding: 8px 10px; margin-bottom: 10px;
}

/* ===== 桌面（≥900px）：自動變回桌面版面，唔再係一條 428px 手機欄 ===== */
@media (min-width: 900px) {
  .band { padding: 22px 34px 22px; }
  .brand-cn { font-size: 25px; letter-spacing: .6px; }
  .brand-en { font-size: 10px; letter-spacing: 1.4px; }
  html[lang="en"] .brand-cn { font-size: 21px; letter-spacing: .2px; }
  html[lang="en"] .brand-en { font-size: 11px; }
  .lang-btn { font-size: 12.5px; padding: 9px 14px; }
  .lang-btn svg { width: 15px; height: 15px; }
  .lang-menu { min-width: 150px; }
  .lang-menu button { font-size: 12.5px; padding: 9px 12px; }

  main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas:
      "hero panel"
      "foot foot";
    gap: 16px 28px;
    align-items: start;
    padding: 26px 34px 22px;
  }
  .hero { grid-area: hero; text-align: left; padding: 4px 0 0; }
  .hero-logo { width: 230px; height: auto; margin: 0 0 16px; }
  .hero-slogan { font-size: 15px; padding: 7px 16px; }
  html[lang="en"] .hero-slogan { font-size: 11px; white-space: normal; }
  .hero h1 { font-size: 32px; line-height: 1.28; margin: 14px 0 10px; }
  html[lang="en"] .hero h1 { font-size: 27px; }
  .hero p { font-size: 11px; line-height: 1.8; }

  #modulesCard { grid-area: panel; padding: 20px; margin-bottom: 0; }
  #modulesCard .card-title { font-size: 15px; margin-bottom: 6px; }
  #modulesCard .card-sub { display: block; font-size: 12px; margin-bottom: 14px; }
  #modulesCard .mod-card { padding: 14px; gap: 12px; }
  #modulesCard .mod-ico { width: 44px; height: 44px; border-radius: 12px; }
  #modulesCard .mod-ico svg { width: 23px; height: 23px; }
  #modulesCard .mod-name { font-size: 14.5px; }
  #modulesCard .mod-desc { font-size: 12px; margin-top: 6px; }
  #modulesCard .mod-tags { display: flex; margin-top: 8px; }
  #modulesCard .mod-tags span { font-size: 10.5px; padding: 3px 8px; }
  #modulesCard .badge { font-size: 9.5px; padding: 3px 9px; }

  #modulesCard .primary { height: 50px; font-size: 15px; }

  .foot { grid-area: foot; font-size: 10.5px; padding-top: 8px; }
  .foot-mail { font-size: 10.5px; }
  .foot-links { gap: 18px; margin-top: 6px; }

  .modal-mask { align-items: center; padding: 24px; }
  .modal-sheet { max-width: 620px; max-height: 84vh; border-radius: 20px; padding: 24px 28px 26px; }
  .modal-head b { font-size: 17px; }
  .legal-block { font-size: 12px; }
  .legal-block p, .legal-list li, .legal-block ul li { font-size: 12px; }
  .legal-block b { font-size: 13px; }
  .legal-list { padding-left: 18px; }
  .legal-list li { margin-bottom: 6px; }

  /* 第二頁（模組與方案）用適中閱讀寬度，唔好拉到 1120px */
  .app.app-narrow { max-width: 780px; }
}

/* ===== 矮屏手機（例如 iPhone SE）：再壓一級，確保一頁過唔使上滑 ===== */
@media (max-width: 899px) and (max-height: 720px) {
  .band { padding: 10px 14px 11px; }
  .brand-cn { font-size: 15.5px; }
  .hero { padding: 8px 2px 7px; }
  .hero-logo { width: 80px; }
  .hero h1 { font-size: 16px; margin: 7px 0 4px; }
  .hero p { display: none; }
  .card { padding: 10px; margin-bottom: 8px; }
  #modulesCard .primary { height: 40px; }
  .foot { font-size: 8px; }
}
@media (max-width: 899px) and (max-height: 640px) {
  .hero-logo { width: 64px; }
  .hero-slogan { font-size: 11px; padding: 4px 10px; }
  .hero h1 { font-size: 15px; }
  #modulesCard .mod-desc { display: none; }
}

/* 窄屏（360px 級別）：再收一級，避免差幾 px 要上滑 */
@media (max-width: 374px) {
  .hero { padding: 9px 2px 8px; }
  .hero h1 { font-size: 16.5px; }
  .card { margin-bottom: 8px; }
  #modulesCard .mod-card { padding: 8px 9px; }
  #modulesCard .mod-desc { font-size: 9.6px; }
  html[lang="en"] #modulesCard .mod-desc { font-size: 9.2px; }
}

:focus-visible { outline: 3px solid rgba(245,158,11,.5); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
