/* =========================================================
   miki 老師的音樂派對 — 色彩系統
   靈感來自 miki 老師最愛的插畫：薰衣草粉天空 + 粉紅小怪獸 + 彩虹
   原則：底色柔和、文字用深紫保證可讀，彩虹色只當「點綴」不當「大面積」
   ========================================================= */
:root {
  /* 底色：插畫裡的天空 */
  --sky-top: #EEEAFF;      /* 薰衣草白 */
  --sky-bottom: #FCEFF4;   /* 粉霧 */
  --cream: #FFFBF7;        /* 內容區主底色 */
  --tint: #FFF6E5;         /* 暖陽色區塊 */

  /* 文字：深葡萄紫，比純黑更溫柔，對比度仍達 AAA */
  --ink: #3A2550;
  --ink-soft: #6B5A80;

  /* 品牌主色：miki 小怪獸粉 */
  --pink: #EE93BF;
  --pink-deep: #C23C7E;    /* 按鈕底（白字對比 ≥ 4.5） */
  --pink-pale: #FDE3EF;

  /* 彩虹點綴色 */
  --red: #F2616B;
  --sun: #FFC23D;
  --sun-deep: #8A5A00;
  --leaf: #7CC56A;
  --leaf-deep: #2F6B22;
  --sky: #3BAFE6;
  --sky-deep: #11628C;
  --lavender: #9B7FD1;
  --lavender-deep: #5B3E99;
  --mint: #A8E6E8;

  /* 夜空（mui 星星區） */
  --night: #2C1E47;
  --night-2: #45306B;

  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px -12px rgba(58, 37, 80, .28);
  --shadow-lg: 0 24px 50px -20px rgba(58, 37, 80, .35);
  --rainbow: linear-gradient(90deg, var(--red), #FF9F43, var(--sun), var(--leaf), var(--sky), var(--lavender));

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-fun: "Fredoka", "Noto Sans TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--pink-deep); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 900; letter-spacing: .02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- 共用元件 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .8em 1.5em; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pink-deep); color: #fff; box-shadow: 0 8px 18px -8px var(--pink-deep); }
.btn--primary:hover { box-shadow: 0 12px 24px -8px var(--pink-deep); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--pink); }
.btn--sun { background: var(--sun); color: var(--ink); }

.chip {
  display: inline-block; font-family: var(--font-fun); font-weight: 600;
  font-size: .85rem; letter-spacing: .06em;
  padding: .25em .9em; border-radius: 999px; margin-bottom: .8em;
}
.chip--pink { background: var(--pink-pale); color: var(--pink-deep); }
.chip--sun { background: #FFE9B3; color: var(--sun-deep); }
.chip--lavender { background: #ECE4FA; color: var(--lavender-deep); }
.chip--sky { background: #DCF0FB; color: var(--sky-deep); }
.chip--leaf { background: #DDF2D5; color: var(--leaf-deep); }
.chip--mint { background: rgba(168, 230, 232, .18); color: var(--mint); }

.rainbow-bar { height: 8px; background: var(--rainbow); }
.rainbow-text {
  background: linear-gradient(90deg, var(--pink-deep), #E0603A 35%, #C98A00 55%, var(--sky-deep) 80%, var(--lavender-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: clamp(64px, 9vw, 110px) 20px; position: relative; }
.section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head p { color: var(--ink-soft); margin: 0; }

/* ---------- 導覽列 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 247, .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(58, 37, 80, .06);
}
.nav__inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .4em; text-decoration: none; color: var(--ink); font-family: var(--font-fun); font-weight: 700; font-size: 1.35rem; }
.logo__note {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: 1.2rem;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.08);
}
.logo em { font-style: normal; color: var(--pink-deep); }
.logo small { font-size: .7em; color: var(--ink-soft); font-weight: 600; }
.nav__menu { display: flex; gap: 4px; align-items: center; }
.nav__menu a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .45em .9em; border-radius: 999px; transition: background .2s; }
.nav__menu a:hover { background: var(--pink-pale); }
.nav__menu .nav__cta { background: var(--ink); color: #fff; }
.nav__menu .nav__cta:hover { background: var(--pink-deep); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch;
    background: #fff; border-radius: var(--radius); padding: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .2s, transform .2s;
  }
  .nav__menu a { padding: .8em 1em; }
  .nav.is-open .nav__menu { opacity: 1; pointer-events: auto; transform: none; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); }
.hero__art img { width: 100%; aspect-ratio: 1791 / 916; object-fit: cover; }
.hero__card {
  position: absolute; right: clamp(16px, 4vw, 60px); bottom: clamp(16px, 5vw, 70px);
  width: min(460px, 44%);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px);
  box-shadow: var(--shadow-lg);
}
.hero__hello { font-family: var(--font-fun); font-weight: 600; color: var(--pink-deep); margin-bottom: .4em; }
.hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.hero__lead { color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hero__card {
    position: relative; right: auto; bottom: auto; width: auto;
    margin: -48px 16px 0; z-index: 2;
  }
  .hero { padding-bottom: 24px; }
}

/* ---------- 信念金句 ---------- */
.belief { text-align: center; padding: 70px 20px 20px; }
.belief__kicker { color: var(--ink-soft); font-size: .95rem; }
.belief blockquote {
  margin: 0; font-size: clamp(1.6rem, 4.5vw, 2.8rem); font-weight: 900; line-height: 1.45;
}
.br-sm { display: none; }
@media (max-width: 560px) { .br-sm { display: inline; } }

/* ---------- 篩選 ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filters button {
  font: inherit; font-weight: 700; font-size: .95rem;
  border: 0; cursor: pointer; padding: .5em 1.2em; border-radius: 999px;
  background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #EADFF5;
  transition: background .2s, color .2s, box-shadow .2s;
}
.filters button:hover { box-shadow: inset 0 0 0 2px var(--pink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- 故事卡片 ---------- */
.story-grid {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.story-card { height: 100%; }
.story-card button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; height: 100%; width: 100%;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.story-card button:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: var(--shadow-lg); }
.story-card button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.story-card__cover {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  font-size: 3.6rem; overflow: hidden;
}
.story-card__cover img { z-index: 1; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-card__cover::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23C23C7E' d='M15 9.2c0-2.3 2.5-3.7 4.5-2.5l21.2 14.8c1.8 1.2 1.8 3.8 0 5L19.5 41.3c-2 1.2-4.5-.2-4.5-2.5z'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
}
.story-card__cover.is-soon::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='%235B3E99'%3E%3Cpath d='M17 14.5c0-1.6 1.1-3 2.7-3.4l17-4.4c2.1-.5 4.1 1 4.1 3.2V31h-4.6V15.7L21.6 19.6V35H17z'/%3E%3Cellipse cx='13.5' cy='35' rx='7.5' ry='6'/%3E%3Cellipse cx='33' cy='31' rx='7.5' ry='6'/%3E%3C/g%3E%3C/svg%3E"); background-size: 22px; }
.story-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.story-card__meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; }
.story-card__meta span { padding: .15em .7em; border-radius: 999px; background: #F3EEF9; color: var(--ink-soft); }
.story-card__meta .badge { background: #FFE9B3; color: var(--sun-deep); }
.story-card h3 { font-size: 1.12rem; margin: 4px 0 0; }
.story-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.story-card .soon { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--lavender-deep); font-weight: 700; }

/* 卡片封面色票（插畫色淡化版） */
.c-pink { background: radial-gradient(circle at 30% 30%, #FFE1EE, #F7B5D3); }
.c-sun { background: radial-gradient(circle at 30% 30%, #FFF3CC, #FFD36E); }
.c-sky { background: radial-gradient(circle at 30% 30%, #DFF3FF, #95D4F4); }
.c-leaf { background: radial-gradient(circle at 30% 30%, #E9F8DF, #AEDF98); }
.c-lavender { background: radial-gradient(circle at 30% 30%, #F0E8FF, #C5B1EC); }

.story-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.btn--yt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #FF4E45; }
.btn--yt:hover { background: #FFF0EF; }
.join__btns { display: flex; flex-wrap: wrap; gap: 10px; }
[hidden] { display: none !important; }

/* ---------- 專輯 ---------- */
.album-row {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.album { text-align: center; }
.album__disc {
  position: relative; aspect-ratio: 1; border-radius: 50%; margin: 0 auto 16px; width: 100%; max-width: 200px;
  display: grid; place-items: center;
  box-shadow: var(--shadow), inset 0 0 0 10px rgba(255,255,255,.35);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.album:hover .album__disc { transform: rotate(25deg) scale(1.04); }
.album__disc::before { /* 唱片紋路 */
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.55);
}
.album__disc::after { /* 中心孔 */
  content: ""; position: absolute; width: 14%; aspect-ratio: 1; border-radius: 50%;
  background: var(--tint); box-shadow: inset 0 0 0 3px rgba(0,0,0,.06);
}
.album__disc span {
  position: absolute; top: 24%; font-family: var(--font-fun); font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.4rem); color: #fff; letter-spacing: .04em;
  text-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.d-pink { background: var(--pink); }
.d-sun { background: #F5B21E; }
.d-sky { background: var(--sky); }
.d-leaf { background: #6DB85A; }
.d-lavender { background: var(--lavender); }
.album small { display: block; font-weight: 700; color: var(--ink-soft); font-size: .8rem; }
.album h3 { font-family: var(--font-fun); font-size: 1.3rem; margin: 0; }
.album p { font-size: .9rem; color: var(--ink-soft); margin: 4px 0 0; }
@media (max-width: 900px) {
  .album-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ---------- 金創獎 ---------- */
.award { background: linear-gradient(135deg, #FFF3D6, #FDE3EF); }
.award__inner { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.award__medal {
  width: 200px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto;
  background: radial-gradient(circle at 35% 30%, #FFF0B8, #FFC23D 55%, #E39A0B);
  display: grid; place-content: center; text-align: center;
  box-shadow: 0 0 0 10px #fff, 0 0 0 14px #FFD36E, var(--shadow-lg);
  color: #5E3B00;
}
.award__medal span { font-size: 2.1rem; font-weight: 900; line-height: 1.1; }
.award__medal small { font-weight: 700; letter-spacing: .3em; }
.award__plot { background: rgba(255,255,255,.7); padding: 16px 20px; border-radius: var(--radius); border-left: 6px solid var(--pink); }
.award__plot em { font-style: normal; font-weight: 700; color: var(--pink-deep); }
@media (max-width: 760px) {
  .award__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .award__plot { text-align: left; }
  .award__medal { width: 160px; }
}

/* ---------- 關於 ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px 56px; }
.about__intro { grid-row: span 2; }
.about__sub { color: var(--lavender-deep); font-weight: 700; }
.about__facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-self: start; }
.about__facts li {
  background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; font-weight: 700; line-height: 1.4;
}
.about__facts b { font-size: 1.8rem; }
.about__facts li:nth-child(1) { border-top: 6px solid var(--pink); }
.about__facts li:nth-child(2) { border-top: 6px solid var(--sun); }
.about__facts li:nth-child(3) { border-top: 6px solid var(--leaf); }
.about__facts li:nth-child(4) { border-top: 6px solid var(--sky); }
.about__cv { display: flex; flex-direction: column; gap: 12px; }
details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
summary {
  cursor: pointer; padding: 16px 22px; font-weight: 900; font-size: 1.05rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--pink-deep); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
.cv-list { margin: 0; padding: 0 22px 18px 40px; }
.cv-list li { margin-bottom: 4px; }
.cv-group { padding: 0 22px 14px; }
.cv-group h4 { margin: 6px 0 4px; font-size: .9rem; color: var(--lavender-deep); }
.cv-group ul { margin: 0; padding-left: 18px; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__intro { grid-row: auto; }
}

/* ---------- mui 夜空 ---------- */
.section--night {
  background: radial-gradient(ellipse at top, var(--night-2), var(--night) 70%);
  color: #F4EEFF; overflow: hidden;
}
.section--night .section__head p, .section--night .mui-lead { color: #CFC3E6; }
.stars { position: absolute; inset: 0; max-width: none; pointer-events: none; }
.stars i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.section--night > *:not(.stars) { position: relative; }

.mui-stats { display: flex; justify-content: center; gap: clamp(24px, 8vw, 90px); margin-bottom: 32px; text-align: center; }
.mui-stats div { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: center; column-gap: 4px; }
.mui-stats strong { font-family: var(--font-fun); font-size: clamp(3rem, 9vw, 4.6rem); line-height: 1; color: var(--sun); }
.mui-stats span { font-weight: 700; font-size: 1.2rem; }
.mui-stats small { grid-column: 1 / -1; color: #CFC3E6; }
.mui-lead { max-width: 760px; text-align: center; margin-bottom: 48px; }

.mui-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; }
.mui-cols h3 { font-size: 1.15rem; }
.mui-cols h3 small { display: block; font-weight: 500; font-size: .85rem; color: #CFC3E6; }
.star-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.star-list a {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  padding: 12px 14px; border-radius: 16px; transition: background .2s, transform .2s, border-color .2s;
}
.star-list a:hover { background: rgba(255,255,255,.14); border-color: var(--sun); transform: translateY(-2px); }
.star-list .star { color: var(--sun); font-size: 1.2rem; flex: none; }
.star-list b { display: block; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.star-list small { color: #CFC3E6; font-size: .78rem; }
@media (max-width: 860px) { .mui-cols { grid-template-columns: 1fr; } }

.join {
  margin-top: 48px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: linear-gradient(90deg, rgba(238,147,191,.25), rgba(59,175,230,.2));
  border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); padding: 26px 32px;
}
.join h3 { margin-bottom: .2em; }
.join p { margin: 0; color: #E4DAF5; }

/* ---------- 彩虹木琴 ---------- */
.play { background: linear-gradient(180deg, var(--cream), var(--sky-top)); }
.xylo {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 1.5vw, 14px);
  height: 240px; padding: 0 0 20px; position: relative;
}
.xylo button {
  flex: 0 1 70px; border: 0; cursor: pointer; border-radius: 18px;
  color: #fff; font-family: var(--font-fun); font-weight: 700; font-size: 1.05rem;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 14px 0;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.12), var(--shadow);
  transition: transform .1s;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.xylo button::before, .xylo button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.7); }
.xylo button.is-hit { transform: translateY(6px) scale(.97); filter: brightness(1.1); }
.xylo__song { text-align: center; color: var(--ink-soft); }
.link-btn { font: inherit; font-weight: 700; color: var(--pink-deep); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.float-note {
  position: fixed; pointer-events: none; font-size: 1.6rem; z-index: 60;
  animation: floatUp 1.2s ease-out forwards;
}
@keyframes floatUp { to { transform: translateY(-120px) rotate(20deg); opacity: 0; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #E8DFF5; }
.footer__inner { max-width: 1120px; margin: 0 auto; padding: 40px 20px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer__logo { font-family: var(--font-fun); font-weight: 700; font-size: 1.5rem; color: #fff; margin: 0; }
.footer__logo em { font-style: normal; color: var(--pink); }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: #fff; }
.footer__copy { width: 100%; font-size: .85rem; color: #B5A7CC; }

/* ---------- 影片彈窗 ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(920px, 94vw); width: 100%; }
.modal::backdrop { background: rgba(44, 30, 71, .7); backdrop-filter: blur(4px); }
.modal__box { background: #fff; border-radius: var(--radius-lg); padding: 24px; position: relative; color: var(--ink); }
.modal h3 { padding-right: 44px; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--pink-pale); color: var(--pink-deep); font-size: 1.1rem; cursor: pointer;
}
.modal__media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; display: block; }
.modal__soon { text-align: center; padding: 30px 10px; }
.modal__soon .big { font-size: 3.5rem; }

/* ---------- 進場動畫 ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 手機版微調 ---------- */
@media (max-width: 700px) {
  .hero__art img { aspect-ratio: 5 / 4; object-position: 32% 70%; }
  .hero__card { margin-top: -28px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  /* 故事卡改成橫向小卡，滑動更省力 */
  .story-grid { grid-template-columns: 1fr; gap: 14px; }
  .story-card button { flex-direction: row; }
  .story-card__cover { aspect-ratio: auto; width: 108px; flex: none; font-size: 2.6rem; }
  .story-card__cover::after { width: 30px; height: 30px; right: 8px; bottom: 8px; font-size: .75rem; }
  .story-card__body { padding: 14px 16px; }
  .story-card h3 { font-size: 1.02rem; }
  .story-card p { font-size: .88rem; }
  .album-row { grid-template-columns: repeat(2, 1fr); }
  .album__disc { max-width: 140px; }
}

/* ---------- FAQ ---------- */
.faq__list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq__item p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }

/* ---------- 多頁面：入口卡、子頁標頭、搜尋 ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav__menu a[aria-current="page"] { background: var(--pink-pale); color: var(--pink-deep); font-weight: 700; }

.portals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 56px; }
.portal {
  display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink);
  padding: 26px 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.portal:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portal--music { background: linear-gradient(135deg, #FFE1EE, #FFF3CC); }
.portal--stories { background: linear-gradient(135deg, #DFF3FF, #F0E8FF); }
.portal__icon {
  flex: none; width: 72px; height: 72px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; font-size: 2.2rem; box-shadow: 0 6px 14px -6px rgba(58,37,80,.25);
}
.portal__text { flex: 1; }
.portal__text b { display: block; font-size: 1.5rem; font-weight: 900; }
.portal__text small { color: var(--ink-soft); font-size: .95rem; }
.portal__go {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 1.2rem; transition: transform .25s;
}
.portal:hover .portal__go { transform: translateX(4px); }
.subhead { font-size: 1.3rem; margin-bottom: 20px; }
.next-door { padding-top: 0; }
.next-door .portal { max-width: 620px; }
@media (max-width: 700px) {
  .portals { grid-template-columns: 1fr; gap: 14px; margin-bottom: 40px; }
  .portal { padding: 18px 20px; gap: 14px; }
  .portal__icon { width: 56px; height: 56px; font-size: 1.7rem; }
  .portal__text b { font-size: 1.25rem; }
}

.page-hero { text-align: center; padding: clamp(36px, 6vw, 64px) 20px clamp(40px, 6vw, 60px); }
.page-hero--music { background: linear-gradient(180deg, var(--sky-top), #FFF0DA); }
.page-hero--stories { background: linear-gradient(180deg, var(--sky-top), #E4F4FF); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .2em; }
.page-hero > p { color: var(--ink-soft); margin: 0 auto; max-width: 560px; }
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.jump a {
  text-decoration: none; color: var(--ink); font-weight: 700; background: #fff;
  padding: .55em 1.2em; border-radius: 999px; box-shadow: var(--shadow);
}
.jump a:hover { color: var(--pink-deep); }

.search { max-width: 560px; margin: 26px auto 0; }
.search input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 16px 22px; border-radius: 999px; border: 2px solid #fff; background: #fff;
  box-shadow: var(--shadow); outline: none; transition: border-color .2s;
}
.search input:focus { border-color: var(--sky); }
.search__count { margin: 10px 0 0; font-size: .9rem; color: var(--ink-soft); }
.empty { text-align: center; color: var(--ink-soft); font-size: 1.1rem; padding: 30px 0; }

/* ---------- 自製 icon ---------- */
.ic { width: 1em; height: 1em; flex: none; vertical-align: -0.15em; --ic-accent: #fff; overflow: visible; }
.ic--xs { width: .95em; height: .95em; margin-right: .3em; }
.ic--btn { width: 1.15em; height: 1.15em; }
.ic--nav { width: 1.15em; height: 1.15em; margin-right: .35em; vertical-align: -0.2em; color: var(--pink-deep); }
.nav__menu a[href="/stories/"] .ic--nav { color: var(--sky-deep); }
.ic--title { width: 1.2em; height: 1.2em; margin-right: .4em; vertical-align: -0.22em; color: var(--pink-deep); }
.logo__note .ic { width: 22px; height: 22px; color: #fff; --ic-accent: var(--pink); }

/* 卡片封面大圖示 */
.ic--cover { width: 68px; height: 68px; position: relative; z-index: 0; --ic-accent: rgba(255,255,255,.9); }
.c-pink .ic--cover { color: #D55C98; }
.c-sun .ic--cover { color: #D9930A; }
.c-sky .ic--cover { color: #2389C4; }
.c-leaf .ic--cover { color: #4E9B3D; }
.c-lavender .ic--cover { color: #7A5CC0; }
.story-card__meta .ic { --ic-accent: #F3EEF9; }
.story-card__meta .badge .ic { color: #E39A0B; --ic-accent: #FFE9B3; margin-right: .25em; }
.story-card .soon .ic { --ic-accent: #fff; }

/* 入口卡與子頁標頭 */
.portal__icon .ic { width: 40px; height: 40px; }
.portal--music .portal__icon .ic { color: var(--pink-deep); }
.portal--stories .portal__icon .ic { color: var(--sky-deep); }
.page-hero__icon {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); margin-right: .35em; vertical-align: middle;
}
.page-hero__icon .ic { width: .95em; height: .95em; }
.page-hero--music .page-hero__icon .ic { color: var(--pink-deep); }
.page-hero--stories .page-hero__icon .ic { color: var(--sky-deep); }
.jump .ic { color: var(--pink-deep); }

/* 小檔案、學經歷 */
.about__facts b { display: block; line-height: 0; }
.about__facts .ic { width: 38px; height: 38px; }
.about__facts li:nth-child(1) .ic { color: var(--pink-deep); }
.about__facts li:nth-child(2) .ic { color: #E39A0B; }
.about__facts li:nth-child(3) .ic { color: var(--leaf-deep); }
.about__facts li:nth-child(4) .ic { color: var(--sky-deep); --ic-accent: #CDEBFA; }
summary > span { display: inline-flex; align-items: center; }

/* mui 夜空 */
.mui-cols h3 .ic--title { color: var(--sun); --ic-accent: var(--night); }
.star-list .star { width: 1.3rem; height: 1.3rem; color: var(--sun); --ic-accent: transparent; }

/* 篩選、搜尋、彈窗、頁尾 */
.filters button .ic { margin-right: .3em; }
.filters button[aria-pressed="true"] .ic { --ic-accent: var(--ink); }
.search { position: relative; }
.search__ic { position: absolute; left: 22px; top: 29px; transform: translateY(-50%); width: 22px; height: 22px; color: var(--ink-soft); pointer-events: none; }
.search input { padding-left: 56px; }
.modal__soon .big { line-height: 0; margin-bottom: 8px; }
.modal__soon .big .ic { width: 76px; height: 76px; color: var(--pink-deep); }
.footer__links a { display: inline-flex; align-items: center; }
.footer__links .ic { --ic-accent: var(--ink); }
.link-btn .ic { vertical-align: -0.12em; }
@media (max-width: 700px) { .ic--cover { width: 46px; height: 46px; } }
