/* 首頁（服務目錄與我的會員）的樣式：只有這一頁用的；幾頁共用的在 /css/app.css，這一份排在它後面載入 */
/* ---------- 首頁 ---------- */
.hero { display: grid; gap: 8px; padding-block: 40px 8px; align-items: center; }
.hero__text { display: grid; gap: 16px; justify-items: start; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__note { color: var(--muted); font-size: var(--fs-small); }
.hero__art { justify-self: center; width: min(72vw, 290px); }
.hero__art img { width: 100%; animation: rise 900ms var(--ease) both; }
/* 推廣圖：一張一個連到火框介紹頁的連結，各自跟著上線標籤出現（<template data-launch>）；一張都沒開時整塊不佔位 */
.promos { padding-block: 32px 0; }
.promos:not(:has(.promo)) { display: none; }
.promos__grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.promo { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); transition: box-shadow 180ms, transform 180ms var(--ease); }
.promo img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; }
.promo:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.promo:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.svc__more { position: relative; z-index: 1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--cyan-ink); font-size: 0.9375rem; font-weight: 700; text-decoration: none; }
.svc__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.svc__more .ic { width: 16px; height: 16px; }
.svc__items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.svc__items li { padding: 2px 10px; border-radius: 999px; background: var(--bg-tint); font-size: 0.8125rem; color: var(--text); }
.svc__perk { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 6px; line-height: 1.5; color: var(--cyan-ink); font-size: 0.875rem; font-weight: 650; }
.svc__perk .ic { margin-top: 2px; }
.member { position: relative; overflow: hidden; display: grid; gap: 28px; padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.member::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand-bar); }
.member__head { display: grid; gap: 10px; justify-items: start; align-content: start; }
.member__head h2 { font-size: var(--fs-h2); font-weight: 750; line-height: 1.35; }
.member__price { color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.member__points { display: grid; gap: 18px; }
.member__points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.member__points h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.member__points p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.member__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-tint); color: var(--ink); }
.member__ic--gauge { background: var(--cyan-soft); color: var(--cyan-ink); }
.member__ic--noads { background: var(--orange-soft); color: var(--orange-ink); }
.member__ic--star { background: var(--bg-tint); color: var(--ink); }
.contact { display: grid; gap: 20px; padding: 26px 22px; border: 1px dashed var(--line-strong); border-radius: var(--r-xl); }
.contact h2 { font-size: var(--fs-h2); font-weight: 750; line-height: 1.35; }
.contact p { color: var(--muted); margin-top: 6px; max-width: 40em; }
.contact__ways { display: grid; gap: 12px; justify-items: start; align-content: center; }
.contact__ways p { margin: 0; font-size: 0.9375rem; line-height: 1.8; }
.contact__ways p a { color: var(--text); }
.contact__more { display: flex; flex-wrap: wrap; gap: 0 20px; }
/* --dash-card-h：我的會員的三張卡跟骨架同一個最小高度，內容沒有更高時換上時下面的區塊不動 */
.dash { padding-block: 32px 0; --dash-card-h: 190px; }
/* 首頁登入狀態先畫（<html data-who>）：登入過的不先放沒登入的主視覺，放我的會員的骨架（同樣的格線），home.js 換上真的；
   讀不到會員的資料時 home.js 標 data-home="fallback"，照沒登入的版本。付費會員不放「訂閱一份方案」那一塊 */
.dash--skel { display: none; }
html[data-who="in"]:not([data-home="fallback"]) [data-island="home-top"] > .dash--skel,
html[data-who="pending"]:not([data-home="fallback"]) [data-island="home-top"] > .dash--skel { display: block; }
html[data-who="in"]:not([data-home="fallback"]) [data-island="home-top"] > .hero,
html[data-who="pending"]:not([data-home="fallback"]) [data-island="home-top"] > .hero { display: none; }
.dash--skel .skel--hello { width: min(360px, 70%); height: calc(var(--fs-title) * 1.3); margin-bottom: 18px; }
.dash--skel .dash__grid > .skel { min-height: var(--dash-card-h); border-radius: var(--r-l); }
/* 問候一行、名字太長用「…」：跟骨架那一條一樣高，換上時下面不動 */
.dash__hello { font-size: var(--fs-title); font-weight: 750; line-height: 1.3; margin-bottom: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash__grid { display: grid; gap: 14px; }
.dash__plan, .dash__quota, .dash__box { min-width: 0; min-height: var(--dash-card-h); }
.dash .alert { margin-bottom: 14px; }
@media (min-width: 640px) {
  .dash__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__plan { grid-column: 1 / -1; }
  .contact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 32px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; padding-block: 56px 16px; }
  .promos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__art { width: 100%; max-width: 460px; justify-self: end; }
  .member { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; padding: 40px; }
  .dash__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr); }
  .dash__plan { grid-column: auto; }
}
