/* ============================================================
   ARK 英語樂園 · 二級頁共用樣式
   ============================================================ */

body.subpage { background: var(--clr-bg); }

/* 頂部條（sticky） */
.sub-header { position: sticky; top: 0; z-index: 100; background: rgba(255,247,239,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--clr-line); }
.sub-nav { display: flex; align-items: center; justify-content: space-between; padding-block: 12px; }
.sub-nav .nav-links { display: flex; align-items: center; gap: 26px; }
.sub-nav .nav-toggle { display: none; }
@media (max-width: 640px) {
  .sub-nav .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 12px 0; box-shadow: var(--shadow-md); transform: translateY(-150%); transition: .3s; align-items: stretch; }
  .sub-nav .nav-links.open { transform: translateY(0); }
  .sub-nav .nav-links a { padding: 14px 22px; border-bottom: 1px solid var(--clr-line); }
  .sub-nav .nav-links .nav-cta { width: 100%; margin: 0; padding: 12px 22px; }
  .sub-nav .nav-toggle { display: block; }
}

/* 模組 Hero */
.sub-hero { padding: 60px 0 54px; color: #fff; }
.sub-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem,4.6vw,3.2rem); line-height: 1.2; margin-top: 12px; }
.sub-hero .eyebrow { background: rgba(255,255,255,0.25); color: #fff; }
.sub-hero p { max-width: 560px; }
.vocab-hero { background: linear-gradient(150deg,#f0522b,#ff8a3d); }
.sense-hero { background: linear-gradient(150deg,#2e9e4e,#4fbf6e); }
.listen-hero { background: linear-gradient(150deg,#2f6fd0,#43a6f0); }
.speak-hero { background: linear-gradient(150deg,#6b45c4,#9c6ade); }

/* 內容區 */
.sub-section { padding: 50px 0; }
.sub-block-head { text-align: center; margin-bottom: 28px; }
.sub-block-head h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 6px; color: var(--clr-ink); }
.sub-block-head p { color: var(--clr-ink-soft); }
.trial-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-sm { padding: 0.7rem 1.4rem; font-size: 0.9rem; }

/* ============================================================
   詞彙頁 · 單詞卡翻轉
   ============================================================ */
.vocab-card-area { max-width: 420px; margin: 0 auto 20px; }
.v-card { position: relative; width: 100%; height: 220px; border: none; border-radius: 22px; background: transparent; cursor: pointer; font-family: var(--font-display); perspective: 1000px; padding: 0; display: block; }
.v-card .v-front, .v-card .v-back { position: absolute; inset: 0; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; transition: transform .6s; box-shadow: var(--shadow-md); }
.v-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--grad-sun); }
.v-emo { font-size: 4.2rem; line-height: 1; }
.v-word { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #fff; }
.v-back { transform: rotateY(180deg); color: #fff; background: linear-gradient(150deg,#4fbf6e,#2e9e4e); }
.v-back .v-word-lg { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; display: block; }
.v-back em { font-style: normal; font-size: 1.2rem; font-family: var(--font-body); margin-top: 6px; display: block; opacity: .95; }
.v-card.flipped .v-front { transform: rotateY(180deg); }
.v-card.flipped .v-back { transform: rotateY(0); }
.v-speak { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.3); border: 2px solid rgba(255,255,255,0.7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.v-speak svg { width: 22px; height: 22px; }
.v-count { text-align: center; color: var(--clr-ink-soft); font-weight: 700; margin-top: 12px; }
.auto-btn { background: var(--clr-white); color: var(--clr-orange-deep); border: 2px solid var(--clr-orange); }
.auto-btn.active { background: var(--grad-sun); color: #fff; border-color: transparent; }

/* ============================================================
   磨耳朵頁 · 動畫劇場（影片）
   ============================================================ */
.video-stage { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); }
.video-frame { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: #000; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 16px; }
.video-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 2px solid var(--clr-line); border-radius: 14px; cursor: pointer; background: var(--clr-white); }
.video-item:hover { border-color: var(--clr-green); }
.video-item.active { border-color: var(--clr-green); background: #eff9f0; }
.video-thumb { width: 64px; height: 40px; border-radius: 8px; background: linear-gradient(150deg,#43a6f0,#2f6fd0); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; font-size: 1.2rem; }
.video-thumb svg { width: 22px; height: 22px; }
.video-txt strong { display: block; font-family: var(--font-display); color: var(--clr-ink); }
.video-txt span { font-size: 0.8rem; color: var(--clr-ink-soft); }

/* ============================================================
   聽力頁 · 聽音選詞
   ============================================================ */
.listen-game { max-width: 480px; margin: 0 auto; background: var(--clr-white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); text-align: center; }
.listen-play { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--clr-blue); background: linear-gradient(150deg,#43a6f0,#2f6fd0); color: #fff; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 1rem; margin: 0 auto 20px; box-shadow: var(--shadow-md); }
.listen-play svg { margin-bottom: 2px; }
.listen-emoji { font-size: 3rem; min-height: 52px; margin-bottom: 16px; }
.listen-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 16px; }
.listen-opt { padding: 12px 4px; font-size: 1.1rem; font-weight: 800; font-family: var(--font-display); border: 2px solid var(--clr-line); border-radius: 12px; background: var(--clr-white); color: var(--clr-ink); cursor: pointer; text-transform: uppercase; }
.listen-opt:hover { border-color: var(--clr-blue); }
.listen-opt.correct { border-color: var(--clr-green); background: #e8f7ea; color: var(--clr-green); }
.listen-opt.wrong { border-color: var(--clr-orange-deep); background: #fee; color: var(--clr-orange-deep); }
.spell-msg { font-weight: 800; margin-top: 10px; min-height: 22px; color: var(--clr-ink-soft); }
.spell-msg.ok { color: var(--clr-green); }
.spell-msg.warn { color: var(--clr-orange-deep); }

/* ============================================================
   口語頁 · 短句跟讀
   ============================================================ */
.speak-phrases { max-width: 560px; margin: 0 auto; background: var(--clr-white); border-radius: var(--radius); padding: 16px 24px; box-shadow: var(--shadow-sm); }
.sp-phrase { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--clr-line); }
.sp-phrase:last-child { border-bottom: none; }
.sp-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(150deg,#6b45c4,#9c6ade); color: #fff; font-weight: 800; display: grid; place-items: center; font-family: var(--font-display); }
.sp-text { flex: 1; }
.sp-en { font-family: var(--font-display); font-size: 1.2rem; color: var(--clr-ink); display: block; }
.sp-cn { font-size: 0.85rem; color: var(--clr-ink-soft); }
.sp-say { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: none; background: linear-gradient(150deg,#6b45c4,#9c6ade); color: #fff; cursor: pointer; display: grid; place-items: center; }
.sp-say svg { width: 20px; height: 20px; }

@media (max-width: 520px) {
  .video-list { grid-template-columns: 1fr; }
  .listen-options { grid-template-columns: repeat(3,1fr); }
  .listen-opt { font-size: 0.95rem; }
}
