/* 宅宅懂生活 共用樣式 */
:root {
  --bg: #0d0614;
  --bg-2: #1a0b26;
  --card: #22102f;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6eefc;
  --muted: #b9a6c9;
  --pink: #ff3fb4;
  --cyan: #2fe0ff;
  --gold: #ffd166;
  --radius: 18px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* 頂部選單 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 6, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 900; letter-spacing: 0.05em; }
.brand small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 6px 12px; border-radius: 999px; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* 霓虹字 */
.neon { font-weight: 900; color: #fff; }
.neon.pink { text-shadow: 0 0 6px var(--pink), 0 0 18px var(--pink), 0 0 36px rgba(255, 63, 180, 0.6); }
.neon.cyan { text-shadow: 0 0 6px var(--cyan), 0 0 18px var(--cyan), 0 0 36px rgba(47, 224, 255, 0.6); }
.neon.gold { text-shadow: 0 0 6px var(--gold), 0 0 18px var(--gold), 0 0 36px rgba(255, 209, 102, 0.6); }

.section { padding: 56px 0; }
.section-title { font-size: clamp(26px, 5vw, 38px); text-align: center; margin-bottom: 28px; }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, var(--pink), #a23cff);
  box-shadow: 0 6px 20px rgba(255, 63, 180, 0.35);
  transition: transform 0.15s;
}
.btn:active { transform: scale(0.96); }
.btn.ghost { background: rgba(255, 255, 255, 0.08); box-shadow: none; border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(135deg, #ffd166, #ff9f43); color: #2a1300; box-shadow: 0 6px 20px rgba(255, 209, 102, 0.35); }

/* 音效按鈕 */
.sounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sound {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 14px; text-align: left;
  background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s;
}
.sound .icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(255, 255, 255, 0.1);
}
.sound > span:last-child { flex: 1; min-width: 0; }
.sound .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.sound .bar { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.sound .bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.sound.playing { border-color: var(--gold); background: #3a1d12; }
.sound.playing .icon { background: var(--gold); color: #2a1300; }

/* 頁尾 */
.footer { padding: 40px 0 56px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer a { text-decoration: underline; }

/* 撒彩帶畫布 */
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

@media (max-width: 560px) {
  .brand small { display: none; }
  .nav a { padding: 6px 10px; }
}
