html { scroll-behavior: smooth; }
/* 導覽列：往下捲動後出現陰影 */
header { transition: box-shadow .25s ease, border-color .25s ease; }
header[data-scrolled] { box-shadow: 0 10px 28px -18px rgba(35, 24, 21, .5); border-bottom-color: transparent !important; }
@media (prefers-reduced-motion: reduce) { header { transition: none; } }
[id] { scroll-margin-top: 88px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
/* ---- 動態效果 ---- */
a, button { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease; }
a[style*="border-radius: 999px"]:hover, button[style*="border-radius: 999px"]:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(35, 24, 21, .6); }
a[style*="border-radius: 999px"]:active, button:active { transform: scale(.97); }
a[style*="border-radius: 18px"]:hover, a[style*="border-radius: 20px"]:hover, a[style*="border-radius: 22px"]:hover, a[style*="border-radius: 24px"]:hover, a[style*="border-radius: 28px"]:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(35, 24, 21, .55); }
header nav a:hover { box-shadow: inset 0 -3px 0 #FCCF00; }
svg.arr { transition: transform .18s ease; }
a:hover svg.arr, button:hover svg.arr { transform: translateX(3px); }
.dots i { font-style: normal; display: inline-block; animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .2; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.draw-in { clip-path: inset(0 100% 0 0); }
.draw-in.drawn { clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.2, .7, .2, 1); }
.beat-on { border-color: #231815 !important; transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(35, 24, 21, .55); }
li[style*="border-radius: 24px"] { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .draw-in { clip-path: none; }
}
