/* ===== 小點綴：讓逛網站有一點開心的感覺（全部可被「減少動態效果」設定關閉） ===== */

/* 背景：三團柔和的粉彩光暈，慢慢漂浮 */
.fx-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: fx-float 22s ease-in-out infinite; }
.fx-blob.b1 { width: 380px; height: 380px; left: -90px; top: 14%; background: #fbd9c6; }
.fx-blob.b2 { width: 340px; height: 340px; right: -80px; top: 42%; background: #f6d4de; animation-duration: 28s; animation-delay: -8s; }
.fx-blob.b3 { width: 320px; height: 320px; left: 30%; bottom: -120px; background: #dfe9d4; animation-duration: 25s; animation-delay: -14s; }
@keyframes fx-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -36px) scale(1.12); } }

/* 滾動時，內容輕輕浮現 */

/* 小標題前後的星光 */
.hm-head .section-eyebrow::before, .hm-quiz .section-eyebrow::before, .sf-head .section-eyebrow::before { content: "✦ "; color: var(--gold); }
.hm-head .section-eyebrow::after, .hm-quiz .section-eyebrow::after, .sf-head .section-eyebrow::after { content: " ✦"; color: var(--gold); }
.hm-head h2::after { content: ""; display: block; width: 54px; height: 3px; border-radius: 3px; margin-top: 0.7rem; background: linear-gradient(90deg, #eab4a0, #f3c9d3, #cfe0c3); }
.hm-quiz h2::after { margin-left: auto; margin-right: auto; content: ""; display: block; width: 54px; height: 3px; border-radius: 3px; margin-top: 0.7rem; background: linear-gradient(90deg, #eab4a0, #f3c9d3, #cfe0c3); }

/* 跑馬燈：輪播下方的暖心小句子 */
.fx-ticker { overflow: hidden; background: linear-gradient(90deg, #fbe6da, #f9dde4, #e6efdb); border-bottom: 1px solid var(--line); }
.fx-ticker-track { display: flex; width: max-content; animation: fx-marquee 34s linear infinite; }
.fx-ticker:hover .fx-ticker-track { animation-play-state: paused; }
.fx-ticker span { flex: 0 0 auto; padding: 0.7rem 2.2rem; font-family: var(--serif); font-size: 0.92rem; letter-spacing: 0.14em; color: var(--ink); white-space: nowrap; }
.fx-ticker span i { font-style: normal; color: #d2788a; margin: 0 0.6rem; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }

/* 卡片、按鈕的互動 */
.ct-card, .hm-cat, .hm-feat-card, .rp-pcard { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ct-media img, .hm-feat-img img, .rp-pcard-media img, .hm-cat-img img { transition: transform 0.6s ease; }
@media (hover: hover) and (pointer: fine) {
  .ct-card:hover .ct-media img, .hm-feat-card:hover .hm-feat-img img, .rp-pcard:hover .rp-pcard-media img, .hm-cat:hover .hm-cat-img img { transform: scale(1.06); }
  .btn-dark { transition: transform 0.2s ease, box-shadow 0.2s ease; }
  .btn-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(54, 44, 34, 0.2); }
  .hm-cat:hover .hm-cat-go i { transform: translateX(4px); }
}
.hm-cat-go i { transition: transform 0.25s ease; }

/* 滾動時，內容輕輕浮現（用 translate，不會蓋掉卡片懸浮的 transform） */
.fx-reveal { opacity: 0; translate: 0 22px; transition: opacity 0.7s ease, translate 0.7s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.fx-reveal.fx-in { opacity: 1; translate: 0 0; }

/* 加入購物車的慶祝：小愛心與星星＋提示 */
.fx-pop { position: fixed; z-index: 999; pointer-events: none; font-size: 16px; line-height: 1; animation: fx-burst 0.95s ease-out forwards; }
@keyframes fx-burst { 0% { opacity: 1; transform: translate(0, 0) scale(0.6); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(var(--rot)); } }
.fx-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); z-index: 998; background: var(--ink); color: #fff; font-size: 0.86rem; letter-spacing: 0.04em; padding: 10px 20px; border-radius: 999px; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.fx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.cart-icon.fx-bounce { animation: fx-bounce 0.6s ease; }
@keyframes fx-bounce { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.3) rotate(-8deg); } 60% { transform: scale(0.92) rotate(5deg); } }
.cart-count { transition: transform 0.2s ease; }

/* 「今天的你，是哪一種顏色？」 */
.hm-orbs { max-width: 920px; margin: 0 auto; padding: 4rem 28px 0; text-align: center; }
.hm-orbs .section-sub { margin: 0.4rem auto 0; }
.orb-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 1.8rem 0 1.4rem; }
.orb { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 8px 18px rgba(54, 44, 34, 0.18); cursor: pointer; animation: fx-bob 3.4s ease-in-out infinite; animation-delay: var(--d); transition: transform 0.25s ease, box-shadow 0.25s ease; position: relative; }
.orb::after { content: attr(data-word); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--serif); font-size: 1.15rem; }
.orb:hover, .orb.on { transform: scale(1.18); box-shadow: 0 12px 24px rgba(54, 44, 34, 0.26); animation-play-state: paused; }
.orb.on { outline: 3px solid var(--c); outline-offset: 3px; }
@keyframes fx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.orb-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem 1.6rem 1.4rem; box-shadow: 0 16px 34px rgba(54, 44, 34, 0.1); animation: fx-card 0.45s ease; border-top: 5px solid var(--c); }
@keyframes fx-card { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.orb-card[hidden] { display: none; }
.orb-card small { display: block; font-size: 0.72rem; letter-spacing: 0.2em; color: var(--ink-soft); margin-bottom: 0.4rem; }
.orb-card h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.7; margin: 0 auto 1rem; color: var(--ink); text-wrap: balance; }
.orb-card small { text-align: center; }
.orb-notes { list-style: none; margin: 0 auto; padding: 0.9rem 0 0; border-top: 1px dashed var(--line); text-align: left; }
.orb-notes li { display: grid; grid-template-columns: 6.2em 1fr; column-gap: 0.8rem; align-items: baseline; font-size: 0.94rem; line-height: 1.8; padding: 0.3rem 0; }
.orb-notes b { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--c); white-space: nowrap; }
.orb-notes span { color: var(--ink); }
.orb-card .orb-go { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.2rem; }
.orb-card .orb-go .btn { white-space: nowrap; text-align: center; justify-content: center; }

@media (max-width: 720px) {
  .hm-orbs { padding: 3rem 20px 0; }
  .orb { width: 52px; height: 52px; }
  .orb-row { gap: 12px; }
  .fx-ticker span { font-size: 0.82rem; padding: 0.6rem 1.4rem; }
  .fx-blob { opacity: 0.4; }
  .fx-toast { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-blob, .fx-ticker-track, .orb { animation: none; }
  .fx-reveal { opacity: 1; translate: 0 0; transition: none; }
  .fx-pop { display: none; }
}
