/* 福祿秀自助洗衣 — README 色彩系統（科技感 × 溫馨感） */
:root {
  --primary: #0B1F36;
  --bg-warm: #F7F7F5;
  --accent: #2FA4FF;
  --warm-amber: #FFD27D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans TC', 'Inter', sans-serif;
  background: var(--primary);
  color: var(--primary);
  line-height: 1.7;
  position: relative;
  min-height: 100vh;
}

/* 北斗七星旋轉底圖（動態星星動畫） */
.stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, #0B1F36 0%, #050d18 100%);
}
.stars-bg::before,
.stars-bg::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--warm-amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--warm-amber), 0 0 16px rgba(255, 210, 125, 0.5);
  animation: starRotate 60s linear infinite;
}
.stars-bg::before { top: 15%; left: 20%; animation-delay: 0s; }
.stars-bg::after { top: 25%; left: 35%; width: 6px; height: 6px; animation-delay: -10s; }
.star-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--warm-amber);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--warm-amber);
  animation: starRotate 60s linear infinite;
}
.star-dot:nth-child(1) { top: 20%; left: 25%; animation-delay: -5s; }
.star-dot:nth-child(2) { top: 28%; left: 32%; animation-delay: -15s; }
.star-dot:nth-child(3) { top: 35%; left: 28%; animation-delay: -25s; }
.star-dot:nth-child(4) { top: 42%; left: 38%; animation-delay: -35s; }
.star-dot:nth-child(5) { top: 38%; left: 45%; animation-delay: -45s; }
.star-dot:nth-child(6) { top: 45%; left: 52%; animation-delay: -20s; }
.star-dot:nth-child(7) { top: 52%; left: 48%; animation-delay: -55s; }
@keyframes starRotate {
  from { transform: rotate(0deg) translateX(40px) rotate(0deg); opacity: 0.9; }
  to { transform: rotate(360deg) translateX(40px) rotate(-360deg); opacity: 0.9; }
}

.page-wrap { position: relative; z-index: 1; background: rgba(247, 247, 245, 0.97); min-height: 100vh; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: var(--bg-warm);
  padding: 1rem 1.5rem;
}
.navbar a { color: var(--warm-amber); text-decoration: none; }
.nav-address { font-size: 0.9rem; opacity: 0.9; }

/* 版面強化框架 */
.main.frame { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem; }
.frame-inner {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(11, 31, 54, 0.08);
  border: 1px solid rgba(47, 164, 255, 0.15);
}

.hero {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 2px solid var(--accent);
}
/* 輪播：15 秒一張 */
.carousel {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--primary);
}
.carousel-inner { position: relative; width: 100%; height: 100%; }
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel-slide.active { opacity: 1; z-index: 1; }

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.6);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.hero-img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 1rem; }
.hero h1 { font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.hero-sub { font-size: 1.2rem; color: var(--accent); margin-bottom: 0.5rem; }
.hero-address { margin-bottom: 0.5rem; }
.hero-cta { margin-top: 1rem; }
.cta-link { display: inline-block; margin: 0 0.5rem; color: var(--accent); font-weight: 600; }
.cta-link:hover { text-decoration: underline; }

.section { padding: 1rem 0; }
.section h2 { font-size: 1.35rem; color: var(--primary); margin-bottom: 0.75rem; }
.section-warm { background: rgba(255, 210, 125, 0.15); }
.address-block { background: rgba(47, 164, 255, 0.08); }

/* 地圖導航 */
.map-link { color: var(--accent); font-weight: 600; }
.map-embed-wrap { position: relative; width: 100%; margin-top: 0.75rem; border-radius: 8px; overflow: hidden; border: 1px solid rgba(47, 164, 255, 0.2); }
.map-iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-fallback { margin-top: 0.5rem; font-size: 0.9rem; }

/* 洗衣流程 5 道功能卡 */
.flow-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.flow-card {
  background: var(--bg-warm);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(11, 31, 54, 0.06);
}
.flow-step {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.flow-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--primary); }
.flow-card p { font-size: 0.9rem; color: #333; }

.machine-card { margin-top: 0.75rem; padding: 0.75rem; background: var(--bg-warm); border-left: 4px solid var(--accent); border-radius: 6px; }

.footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--primary);
  color: var(--bg-warm);
  font-size: 0.9rem;
}
.footer a { color: var(--warm-amber); }
