:root{
  --brand:#39D2C0;
  --brand2:#229688;
  --ink:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.10);
  --card:rgba(255,255,255,.82);
  --soft:#f6fbfb;
  --shadow:0 18px 60px rgba(15,23,42,.14);
  --shadow2:0 10px 28px rgba(15,23,42,.12);
  --r16:16px; --r24:24px; --r32:32px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Noto Sans TC",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.6;
}

a{color:inherit}
img{max-width:100%;display:block}

.container{width:min(1120px,92vw);margin:0 auto}
.center{text-align:center}
.narrow{width:min(860px,92vw);margin:0 auto}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:10px;padding:12px 18px;border-radius:999px;
  text-decoration:none;font-weight:700;border:1px solid transparent;
  transition:.18s transform,.18s opacity,.18s background;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{background:var(--brand);color:#fff}
.btn.primary:hover{opacity:.92}
.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
.btn.ghost:hover{background:rgba(255,255,255,.9)}
.btn.full{width:100%}

/* Pills / chips */
.pill{
  display:inline-flex;align-items:center;justify-content:center;
  padding:6px 12px;border-radius:999px;
  background:rgba(57,210,192,.14);
  border:1px solid rgba(57,210,192,.20);
  color:var(--brand2);
  font-weight:800;
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.micro{color:rgba(15,23,42,.62);font-size:13px;margin-top:12px}
.note{color:rgba(15,23,42,.62);margin-top:16px}

/* Topbar */
.topbar{
  position:sticky;top:0;z-index:30;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(15,23,42,.06);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brandMark{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(57,210,192,.18);
  border:1px solid rgba(57,210,192,.28);
  color:var(--brand2);
  font-weight:900;
}
.brandText{font-weight:900;letter-spacing:.2px}

.navLinks{display:flex;gap:18px}
.navLinks a{font-weight:700;text-decoration:none;color:rgba(15,23,42,.72)}
.navLinks a:hover{color:var(--ink)}
.navCtas{display:flex;align-items:center;gap:10px}

.menuBtn{
  width:42px;height:42px;border-radius:14px;
  border:1px solid var(--line);
  background:#fff;display:none;
  align-items:center;justify-content:center;
  flex-direction:column;gap:5px;
}
.menuBtn span{width:18px;height:2px;background:rgba(15,23,42,.72);border-radius:2px}

.mobileMenu{
  display:none;flex-direction:column;gap:10px;
  padding:14px 4vw 18px;
  border-top:1px solid rgba(15,23,42,.06);
  background:rgba(255,255,255,.92);
}
.mobileMenu a{font-weight:800;text-decoration:none;color:rgba(15,23,42,.78);padding:10px 6px}

/* Hero */

.hero{
  position: relative;
  overflow: visible;              /* 允許 statsBar 往下溢出 */
  padding-bottom: 120px;          /* 依你的 statsBar 高度調整（重點） */
}
.heroBg{position:absolute;inset:0;pointer-events:none}
.heroIllustration{
  position:absolute;inset:auto 0 35px 0;
  width:100%;height:auto;opacity:.55;
  filter:saturate(1.05);
}
.heroInner{
  display:grid;grid-template-columns:1.05fr .95fr;gap:42px;
  align-items:center;position:relative;
}
.heroText h1{
  margin:14px 0 10px;
  font-size:54px;line-height:1.08;
  letter-spacing:-.02em;
}
.lead{font-size:18px;color:rgba(15,23,42,.72);max-width:560px}
.storeRow{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;justify-content: center;}
.storeBtn{
  min-width:190px;
  text-decoration:none;
  background:#0b1220;
  color:#fff;border-radius:999px;
  padding:12px 16px;
  box-shadow:0 10px 22px rgba(0,0,0,.18);
}
.storeSmall{display:block;font-size:11px;opacity:.75;letter-spacing:.04em}
.storeBig{display:block;font-size:16px;font-weight:900;margin-top:2px}

.heroPhone{position:relative}
.phoneFrame{
  width:min(360px,86vw);
  margin-left:auto;margin-right:auto;
  border-radius:44px;
  background:rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.6);
  padding:12px;
  box-shadow:var(--shadow);
}
.phoneFrame img{border-radius:34px}

.floatCard{
  position:absolute;
  display:flex;gap:10px;align-items:flex-start;
  padding:12px 14px;border-radius:18px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:var(--shadow2);
  width:min(240px,70vw);
}
.floatCard .dot{
  width:10px;height:10px;border-radius:999px;background:var(--brand);
  margin-top:5px;flex:0 0 auto;
}
.fc1{left:-10px;top:18%}
.fc2{right:-10px;bottom:18%}
.fcTitle{margin:0;font-weight:900;font-size:13px;color:rgba(15,23,42,.72)}
.fcValue{margin:2px 0 0;font-weight:900}


.statsBar{
  position: absolute;
  bottom: 0;                      /* 貼在 hero 底部 */
  transform: translate(-50%, 50%);/* 往下推 50% 自己高度 => 切到一半 */
  width: min(1100px, 100%);
  z-index: 5;
  display:flex;gap:18px;align-items:center;justify-content:space-between;
  padding:18px 18px;
  border-radius:26px;
  background:rgba(15,23,42,.82);
  color:#fff;
  box-shadow:var(--shadow);
}
/* 3) statsBar 外層 container 不要干擾定位 */
.hero > .container:last-child{
  position: static;
}

/* 4) 下一段 section 要留出被溢出的空間，避免內容緊貼 */
#pain{
  padding-top: 120px;             /* 依 hero padding-bottom 同步調整 */
}

/* RWD：手機 statsBar 可能更高，留更多空間 */
@media (max-width: 768px){
  .hero{ padding-bottom: 160px; }
  .section:first-of-type{ padding-top: 160px; }
  .hero .statsBar{ width: calc(100% - 32px); } /* 左右留白 */
}

.statsLeft .statsKicker{margin:0;font-weight:900}
.statsLeft .statsSub{margin:2px 0 0;opacity:.78;font-size:13px}
.statsItems{display:flex;gap:18px}
.stat{min-width:110px}
.stat .num{margin:0;font-weight:900;font-size:18px}
.stat .label{margin:2px 0 0;opacity:.75;font-size:12px}

/* Sections */
.section{padding:92px 0}
.section.soft{background:var(--soft)}
.section.gradient{
  background:linear-gradient(180deg,#e9fbfb 0%, #ffffff 80%);
}
.section h2{
  margin:14px 0 10px;
  font-size:40px;line-height:1.15;
  letter-spacing:-.02em;
}
.lead2{font-size:17px;color:rgba(15,23,42,.68);max-width:620px;margin:auto}

.chips{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.chip{
  padding:10px 14px;border-radius:999px;
  background:#fff;border:1px solid rgba(15,23,42,.10);
  box-shadow:0 8px 18px rgba(15,23,42,.06);
  font-weight:800;color:rgba(15,23,42,.72)
}

.callout{
  margin:18px auto 0;
  padding:16px 18px;border-radius:22px;
  background:#fff;border:1px solid rgba(15,23,42,.10);
  box-shadow:0 12px 28px rgba(15,23,42,.08);
  max-width:680px;
}
.callout p{margin:0;color:rgba(15,23,42,.74)}

/* Split layout */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:44px;align-items:center}
.split.reverse{grid-template-columns:.95fr 1.05fr}
.split.reverse .splitText{order:2}
.split.reverse .quoteGrid{order:1}
.splitText .lead2{margin:0 0 14px}

.featureCards{display:grid;gap:12px;margin-top:18px}
.fCard{
  padding:16px 16px;border-radius:22px;
  background:rgba(255,255,255,.84);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}
.fCard h3{margin:0 0 6px;font-size:16px}
.fCard p{margin:0;color:rgba(15,23,42,.64)}

.splitVisual{position:relative}
.phoneFrame.big{width:min(420px,90vw)}
.miniNav{display:flex;gap:10px;justify-content:center;margin-top:14px}
.miniBtn{
  width:34px;height:10px;border-radius:999px;border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.7);
  cursor:pointer;
}
.miniBtn.is-active{background:rgba(57,210,192,.75);border-color:rgba(57,210,192,.65)}

/* Testimonial cards */
.quoteGrid{
  display:grid;gap:14px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
.qCard{
  padding:16px 16px;border-radius:22px;
  background:#fff;border:1px solid rgba(15,23,42,.10);
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}
.qCard p{margin:0;color:rgba(15,23,42,.76);font-weight:800}
.qMeta{
  display:flex;align-items:center;gap:10px;margin-top:12px
}
.avatar{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(57,210,192,.16);
  border:1px solid rgba(57,210,192,.24);
  font-weight:900;color:var(--brand2)
}
.qName{margin:0;font-weight:900}
.qSub{margin:0;font-size:12px;color:rgba(15,23,42,.56)}
.rating{margin-left:auto;font-weight:900;color:#f59e0b}

.qCard.tint{background:rgba(157,208,255,.22)}
.qCard.soft{background:rgba(57,210,192,.12)}
.qCard.warm{background:rgba(253,186,116,.18)}

/* FAQ */
.faq{margin-top:18px;border-radius:26px;overflow:hidden;border:1px solid rgba(15,23,42,.10);background:#fff;box-shadow:0 12px 26px rgba(15,23,42,.06)}
.faqItem{
  width:100%;
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 18px;
  background:#fff;border:0;border-bottom:1px solid rgba(15,23,42,.08);
  cursor:pointer;
  font-family:inherit;
}
.faqItem .q{font-weight:900;color:rgba(15,23,42,.86);text-align:left}
.faqItem .icon{font-weight:900;color:rgba(15,23,42,.52)}
.faqPanel{
  padding:0 18px;max-height:0;overflow:hidden;
  transition:max-height .22s ease;
  background:rgba(15,23,42,.02);
}
.faqPanel p{margin:12px 0 18px;color:rgba(15,23,42,.66);font-weight:600}
.faqPanel.open{max-height:220px}

/* Download section */
.download{
  position:relative;
  padding:92px 0 0;
  background:linear-gradient(180deg,#bfe6ff 0%, #d9f3ff 45%, #ffffff 92%);
  overflow:hidden;
}
.downloadBg{position:absolute;inset:0;pointer-events:none}
.downloadIllustration{
  position:absolute;inset:auto 0 -60px 0;width:100%;opacity:.45;
}
.downloadInner{position:relative;text-align:center}
.downloadPhone{margin-top:22px;display:flex;justify-content:center}

/* Footer */
.footer{padding:34px 0 28px;margin-top:28px;border-top:1px solid rgba(15,23,42,.08);background:rgba(255,255,255,.70);backdrop-filter:blur(8px)}
.footerInner{display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.footerBrand{display:flex;gap:12px;align-items:center}
.footerTitle{margin:0;font-weight:900}
.footerSub{margin:2px 0 0;color:rgba(15,23,42,.60);font-size:13px}
.footerLinks{display:flex;gap:14px;flex-wrap:wrap}
.footerLinks a{text-decoration:none;color:rgba(15,23,42,.66);font-weight:800}
.footerLinks a:hover{color:rgba(15,23,42,.92)}
.footerCopy{color:rgba(15,23,42,.55);font-weight:700}

/* Responsive */
@media (max-width: 980px){
  .navLinks{display:none}
  .menuBtn{display:flex}
  .heroInner{grid-template-columns:1fr;gap:28px;text-align:center}
  .lead{margin:0 auto}
  .statsBar{flex-direction:column;align-items:flex-start;gap:14px}
  .statsItems{width:100%;justify-content:space-between}
  .split,.split.reverse{grid-template-columns:1fr}
  .split.reverse .splitText,.split.reverse .quoteGrid{order:unset}
  .quoteGrid{grid-template-columns:1fr}
  .fc1{left:0;top:10%}
  .fc2{right:0;bottom:10%}
  .heroText h1{font-size:44px}
  .section h2{font-size:34px}
}

/* Blog section 有自己的邊界範圍，不滿版延伸 */
.blog {
  background: #fafafa;
}

.blog-container {
  max-width: 1120px;     /* ✅ 邊界寬度 */
  margin: 0 auto;
  padding: 0 24px;       /* ✅ 左右留白 */
}

.blog-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.blog-header .tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0284c7;
  margin-bottom: 12px;
}

.blog-subtitle {
  max-width: 540px;
  color: #6b7280;
}

/* 第一列：大卡（左圖右文） */
.blog-featured {
  display: grid;
  grid-template-columns: 1.25fr 1fr; /* 左圖稍大 */
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  min-height: 340px;
  margin-bottom: 20px;
}

.feature {
  border-radius: 20px;
  overflow: hidden;
  background: #f5f7f6;
}



.blog-featured-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-category {
  display: inline-block;
  font-size: 12px;
  color: #6b7280;
}

.blog-featured h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: #111827;
}

.blog-featured p {
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
}

.read-more {
  margin-top: auto;
  display: inline-flex;
  text-decoration: none;
  color: var(--brand-dark, #1E4060);
  font-weight: 700;
}

/* 第二列：三張小卡（上圖下文） */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden; /* 讓上圖圓角一致 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.blog-card-media {
  height: 200px;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #111827;
}

.blog-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

/* RWD */
@media (max-width: 1024px) {
  .blog-featured {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .blog-featured-media {
    height: 200px;
  }
  .blog-cards {
    grid-template-columns: 1fr;
  }
}

.nav-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo { height: 28px; width: auto; display:block; }
@media (max-width: 768px) { .nav-logo { height: 24px; } }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ 逐張浮出：延遲由 JS 塞到 --d */
.reveal.stagger {
  transition-delay: var(--d, 0ms);
}

/* 小幅 pop（可選） */
.reveal.pop {
  transform: translateY(18px) scale(.98);
}
.reveal.pop.is-in {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* =============================
   TDEE section (light card like your screenshot)
============================= */
.tdee .split { align-items: start; }

.tdee-title { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; margin: 0 0 14px; }
.tdee-lead  { max-width: 46ch; color: rgba(15,23,42,.65); }

.tdee-points { margin-top: 26px; display: grid; gap: 18px; }
.tdee-point  { display: flex; align-items: center; gap: 14px; font-weight: 900; color: rgba(15,23,42,.82); }
.tdee-check{
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(57,210,192,.16);
  border: 1px solid rgba(57,210,192,.22);
  color: var(--brand2);
  font-weight: 900;
}

/* Right card */
.tdee-card{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(15,23,42,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tdee-card-title{
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
  color: rgba(15,23,42,.92);
}

/* Tabs */
.tdee-tabs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.tdee-tab{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.70);
  padding: 12px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
  transition: .18s transform, .18s background, .18s border-color, .18s color;
}
.tdee-tab:hover{ transform: translateY(-1px); }

.tdee-tab.is-active{
  background: rgba(57,210,192,.18);
  border-color: rgba(57,210,192,.30);
  color: var(--brand2);
}

/* Inputs */
.tdee-fields{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.tdee-field{ display: grid; gap: 8px; }
.tdee-label{ color: rgba(15,23,42,.72); font-weight: 900; }

.tdee-input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.86);
  font-size: 18px;
  outline: none;
  transition: .18s border-color, .18s box-shadow, .18s background;
}
.tdee-input::placeholder{ color: rgba(15,23,42,.35); }
.tdee-input:focus{
  border-color: rgba(57,210,192,.55);
  box-shadow: 0 0 0 4px rgba(57,210,192,.16);
  background: #fff;
}

/* CTA */
.tdee-cta{
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 1000;
  cursor: pointer;
  background: #ffffff;
  color: #1E4060;
  font-size: 18px;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
  transition: .18s transform, .18s opacity;
}
.tdee-cta:hover{ transform: translateY(-1px); opacity: .96; }

.tdee-note{
  margin: 14px 0 0;
  text-align: center;
  color: rgba(15,23,42,.55);
  font-weight: 900;
}

/* Result */
.tdee-result{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15,23,42,.10);
  display: grid;
  gap: 10px;
}
.tdee-result-row{
  display: flex;
  justify-content: space-between;
  font-weight: 1000;
  color: rgba(15,23,42,.86);
}
.tdee-result-row .k{ color: rgba(15,23,42,.55); font-weight: 900; }
.tdee-result-row .v{ font-size: 18px; }

.tdee-result-sub{ color: rgba(15,23,42,.62); font-weight: 900; }

.tdee-downloadLink{
  margin-top: 6px;
  display: inline-flex;
  gap: 6px;
  font-weight: 1000;
  text-decoration: none;
  color: #1E4060;
}
.tdee-downloadLink:hover{ text-decoration: underline; }

/* RWD */
@media (max-width: 980px){
  .tdee-fields{ grid-template-columns: 1fr; }
}
