/* AMing Balance 官網共用樣式
   Design tokens:
   深藍(hero/nav) #0f1b30；深藍(footer/標題) #152238
   淺底 #eef2f8；主藍 #2a5aa8(hover #1d4485)；橘 #f5a623(hover #ffbb44)
   內文 #33425e / #4a5a75；次要 #8395b2 / #aebad0 / #6d7b96 */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans TC', sans-serif;
}
body.page-dark { background: #0f1b30; }
body.page-light { background: #eef2f8; }
a { color: #2a5aa8; text-decoration: none; }
a:hover { color: #f5a623; }
::selection { background: #f5a62355; }
img { max-width: 100%; }

/* ---------- Nav ---------- */
.nav { background: #0f1b30; }
.nav-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 18px;
}
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 9px; background: #fff; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.nav-links a { color: #aebad0; }
.nav-links a:hover { color: #f5a623; }
.nav-links a.active { color: #f5a623; font-weight: 500; }

/* ---------- 首頁 Hero ---------- */
.hero-wrap { min-height: 100vh; background: #0f1b30; color: #e8edf5; }
.hero {
  max-width: 1080px; margin: 0 auto; padding: 56px 24px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero-copy { flex: 1 1 380px; min-width: 300px; }
.hero-copy h1 {
  margin: 0; font-size: clamp(34px, 5vw, 52px);
  font-weight: 900; line-height: 1.25; color: #fff;
}
.hero-copy h1 .accent { color: #f5a623; }
.hero-sub { margin: 20px 0 0; font-size: 19px; line-height: 1.8; color: #aebad0; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  border: 1px solid #3a4c6e; color: #c6d0e2;
  padding: 7px 16px; border-radius: 999px; font-size: 14px;
}
.badge-solid { border: 0; background: #2a5aa8; color: #fff; font-weight: 700; }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.btn-store {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f5a623; color: #14213a;
  font-weight: 700; font-size: 16px; padding: 13px 26px; border-radius: 12px;
}
a.btn-store:hover { background: #ffbb44; color: #14213a; }
.btn-store.is-closed { background: transparent; color: #c6d0e2; border: 1px solid #3a4c6e; font-weight: 500; cursor: default; }
.cta-note { color: #6d7b96; font-size: 13px; }
.hero-visual { flex: 0 1 420px; min-width: 280px; display: flex; justify-content: center; }
.hero-visual img {
  width: 100%; max-width: 460px; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hero-gap { height: 72px; }

/* ---------- 首頁 功能區 ---------- */
.features-bg { background: #eef2f8; color: #1d2b45; border-radius: 32px 32px 0 0; }
.features {
  max-width: 1080px; margin: 0 auto; padding: 72px 24px 40px;
  display: flex; flex-direction: column; gap: 88px;
}
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.feature:nth-child(even) { flex-direction: row-reverse; }
.feature-copy { flex: 1 1 340px; min-width: 280px; }
.kicker { color: #f5a623; font-weight: 700; font-size: 14px; letter-spacing: 3px; }
.feature-copy h2 {
  margin: 10px 0 0; font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900; line-height: 1.35; color: #152238;
}
.feature-copy p { margin: 16px 0 0; font-size: 17px; line-height: 1.9; color: #4a5a75; }
.checklist {
  margin: 18px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px;
}
.checklist li { display: flex; gap: 10px; font-size: 15.5px; color: #33425e; }
.checklist .check { color: #2a5aa8; font-weight: 700; }
.feature-shot { flex: 0 1 400px; min-width: 260px; }
.feature-shot img {
  width: 100%; border-radius: 20px; display: block;
  box-shadow: 0 16px 44px rgba(21, 34, 56, 0.18);
}

/* ---------- 首頁 Footer CTA ---------- */
.footer-cta { background: #152238; color: #e8edf5; margin-top: 56px; }
.footer-cta-inner { max-width: 1080px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.footer-cta-inner img { width: 64px; height: 64px; border-radius: 16px; background: #fff; }
.footer-cta-inner h2 { margin: 20px 0 0; font-size: 30px; font-weight: 900; color: #fff; }
.footer-cta-inner p { margin: 12px 0 0; color: #aebad0; font-size: 16px; }
.footer-links {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid #2b3a58;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  font-size: 13.5px; color: #6d7b96;
}
.footer-links a { color: #8fa0bd; }
.footer-links a:hover { color: #f5a623; }

/* ---------- 列表頁（journey / guide） ---------- */
.page-body { min-height: 100vh; background: #eef2f8; color: #1d2b45; }
.list-wrap { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.list-wrap h1 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 42px); font-weight: 900; color: #152238; }
.lede { margin: 16px 0 0; font-size: 17px; line-height: 1.9; color: #4a5a75; }
.cards { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }

/* guide 分組 */
.guide-groups { margin-top: 40px; display: flex; flex-direction: column; gap: 40px; }
.group-title {
  margin: 0 0 14px; padding-left: 2px;
  font-size: 14px; font-weight: 700; letter-spacing: 2px; color: #8395b2;
}
.guide-groups .cards { margin-top: 0; }

/* journey 文章卡 */
a.card {
  background: #fff; border-radius: 16px; padding: 26px 30px;
  box-shadow: 0 6px 24px rgba(21, 34, 56, 0.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: inherit;
}
a.card:hover { box-shadow: 0 10px 32px rgba(21, 34, 56, 0.15); color: inherit; }
.card-num { font-size: 12.5px; color: #f5a623; font-weight: 700; letter-spacing: 2px; }
.card-title { font-weight: 700; font-size: 17.5px; color: #152238; margin-top: 4px; }
.card-desc { font-size: 14px; color: #8395b2; margin-top: 6px; }
.card-read { font-size: 13px; color: #2a5aa8; font-weight: 700; white-space: nowrap; }

/* guide 教學卡（略小） */
.card-sm, a.card-sm {
  background: #fff; border-radius: 14px; padding: 22px 26px;
  box-shadow: 0 4px 16px rgba(21, 34, 56, 0.06);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: inherit;
}
a.card-sm:hover { box-shadow: 0 8px 28px rgba(21, 34, 56, 0.14); color: inherit; }
.card-sm .card-title { font-size: 16.5px; margin-top: 0; }
.card-sm .card-desc { margin-top: 4px; }
.pill-soon {
  font-size: 12.5px; color: #b0bccf; background: #eef2f8;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}

/* ---------- 文章頁（journey-NN） ---------- */
.article { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.back-link { font-size: 14px; color: #8395b2; }
.article .kicker { margin-top: 20px; }
.article h1 {
  margin: 10px 0 0; font-size: clamp(28px, 4vw, 38px);
  font-weight: 900; line-height: 1.4; color: #152238;
}
.prose { margin-top: 36px; font-size: 17px; line-height: 2.05; color: #33425e; }
.prose h2 { margin: 40px 0 0; font-size: 22px; font-weight: 700; color: #152238; }
.prose p { margin: 14px 0 0; }
.note-cards {
  margin: 14px 0 0; padding-left: 4px; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.note-cards li {
  background: #fff; border-radius: 12px; padding: 14px 20px;
  box-shadow: 0 4px 14px rgba(21, 34, 56, 0.06);
}
.note-cards strong { color: #152238; }
.prose .after-cards { margin-top: 24px; }
.article-footer { margin-top: 56px; text-align: center; }
.btn-primary {
  display: inline-block; background: #2a5aa8; color: #fff;
  font-weight: 700; font-size: 15px; padding: 12px 28px; border-radius: 12px;
}
.btn-primary:hover { background: #1d4485; color: #fff; }

/* ---------- 版本更新記錄（changelog） ---------- */
.ver-card {
  background: #fff; border-radius: 16px; padding: 26px 30px;
  box-shadow: 0 6px 24px rgba(21, 34, 56, 0.08);
}
.ver-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ver-num { font-weight: 700; font-size: 19px; color: #152238; }
.ver-note {
  font-size: 12.5px; color: #b0bccf; background: #eef2f8;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.change-list {
  margin: 18px 0 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 11px;
}
.change-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 15.5px; line-height: 1.8; color: #33425e;
}
.change-tag {
  flex-shrink: 0; font-size: 12.5px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.tag-new { background: #e3ecfa; color: #2a5aa8; }
.tag-improve { background: #fdf3e0; color: #8a6210; }
.tag-fix { background: #fdeaea; color: #b04a4a; }
.tag-test { background: #eef2f8; color: #6d7b96; }

/* ---------- 貨幣清單（guide-currency） ---------- */
.cur-group { margin: 22px 0 10px; font-size: 15px; font-weight: 700; color: #152238; }
.cur-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px 14px; font-size: 14px; color: #4a5a75;
}
.cur b { display: inline-block; min-width: 42px; margin-right: 6px; color: #2a5aa8; font-weight: 700; }

/* 版本卡內的「已知問題」區塊 */
.known-issues {
  margin-top: 16px; background: #fdeaea; border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px; line-height: 1.8; color: #8a4a4a;
}
.known-issues .ki-title { font-weight: 700; color: #b04a4a; }
.known-issues ul { margin: 4px 0 0; padding-left: 20px; }

/* ---------- 教學頁（guide-*） ---------- */
.guide-article { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.guide-article .kicker { margin-top: 20px; }
.guide-article h1 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: #152238; }
.steps { margin-top: 48px; display: flex; flex-direction: column; gap: 40px; }
.step {
  background: #fff; border-radius: 20px; padding: 32px;
  box-shadow: 0 6px 24px rgba(21, 34, 56, 0.08);
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start;
}
.step-copy { flex: 1 1 300px; min-width: 260px; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-num {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px;
  background: #2a5aa8; color: #fff; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-num.sub { font-size: 15px; letter-spacing: 0.5px; }
.step-head h2 { margin: 0; font-size: 21px; font-weight: 700; color: #152238; }
.step-copy p { margin: 16px 0 0; font-size: 16px; line-height: 1.9; color: #4a5a75; }
.tip {
  margin-top: 16px; background: #fdf3e0; border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px; line-height: 1.8; color: #8a6210;
}
.example {
  margin-top: 16px; background: #f0f4fa; border-radius: 10px;
  padding: 12px 16px; font-size: 14.5px; line-height: 1.9; color: #4a5a75;
}
.example .example-title { font-weight: 700; color: #152238; }
.step-shot { flex: 0 1 260px; min-width: 200px; margin: 0 auto; }
.step-shot img {
  width: 100%; border-radius: 16px; border: 1px solid #dbe3ef;
  box-shadow: 0 8px 24px rgba(21, 34, 56, 0.12); display: block;
}
.guide-article .article-footer { margin-top: 48px; }
