/* shared.css — base styles used across all pages */
body {
  font-family: 'Noto Sans TC', sans-serif;
  color: #3d3425;
  background: #fffcf5;
}

/* ---- keyframes ---- */
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- animation utility classes ---- */
.animate-breathe      { animation: breathe 3.5s ease-in-out infinite; }
.animate-fade-up      { animation: fadeInUp .8s ease-out both; }
.animate-fade-up-delay  { animation: fadeInUp .8s ease-out .2s both; }
.animate-fade-up-delay2 { animation: fadeInUp .8s ease-out .4s both; }

/* ---- scroll-reveal ---- */
.anim-hidden {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.anim-show {
  opacity: 1;
  transform: translateY(0);
}

/* ---- FAQ details ---- */
details summary {
  cursor: pointer;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff9eb;
  color: #8b7328;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
  transition: transform .3s;
}
details[open] summary::before {
  content: '\2212';
  transform: rotate(180deg);
  background: #e8c868;
  color: #5c4a2a;
}
details[open] .faq-answer {
  animation: fadeIn .3s ease-out;
}

/* ---- station timeline line ---- */
.station-line {
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #e8c868, #7ba05b);
}
@media (max-width: 640px) {
  .station-line { left: 19px; }
}
