/* ============================================================
   首頁 Demo 專屬樣式 demo.css
   ============================================================ */

/* ---------- Hero 輪播 ---------- */
.hero { position: relative; height: min(86vh, 760px); min-height: 480px; overflow: hidden; background: var(--cream); }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease, transform 6s ease;
  background-size: cover; background-position: center; transform: scale(1.06);
}
.hero-slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(80,40,52,.5) 0%, rgba(80,40,52,.15) 45%, rgba(80,40,52,0) 75%); }
.hero-inner {
  position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(1.4rem, 5vw, 3rem); color: #fff;
}
.hero-eyebrow { font-size: .9rem; letter-spacing: .4em; margin-bottom: 1.1rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.3); font-weight: 500; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.22;
  text-shadow: 0 3px 20px rgba(0,0,0,.32); max-width: 16ch;
}
.hero h1 .accent { color: var(--pink-soft); }
.hero .hero-sub { margin-top: 1.2rem; font-size: clamp(1rem, 1.8vw, 1.25rem); max-width: 30ch; text-shadow: 0 2px 14px rgba(0,0,0,.35); font-weight: 300; letter-spacing: .05em; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: .6rem; }
.hero-dots button { width: 11px; height: 11px; border-radius: 999px; background: rgba(255,255,255,.5); transition: .3s; }
.hero-dots button.active { width: 30px; background: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); color: #fff;
  display: grid; place-items: center; font-size: 1.4rem; transition: .2s; border: 1px solid rgba(255,255,255,.3);
}
.hero-arrow:hover { background: rgba(255,255,255,.9); color: var(--rose-deep); }
.hero-arrow.prev { left: 20px; } .hero-arrow.next { right: 20px; }

/* ---------- 品牌簡介 ---------- */
.intro { background: var(--cream); position: relative; }
.intro .container { max-width: 820px; text-align: center; }
.intro .mark { font-family: var(--serif); font-size: 2.4rem; color: var(--pink); margin-bottom: 1rem; }
.intro p.body { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-2); line-height: 2.1; }
.intro .sign { margin-top: 1.6rem; font-family: var(--serif); color: var(--rose); letter-spacing: .2em; }

/* ---------- 信任區 ---------- */
.trust { background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.trust-card { text-align: center; padding: 2.2rem 1.4rem; border-radius: var(--radius); background: var(--cream-2); border: 1px solid rgba(195,123,141,.1); transition: .25s; }
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.trust-card .ic { width: 62px; height: 62px; margin: 0 auto 1.1rem; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--rose)); display: grid; place-items: center; }
.trust-card .ic svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.7; }
.trust-card h3 { font-size: 1.14rem; margin-bottom: .5rem; color: var(--ink); }
.trust-card p { font-size: .93rem; color: var(--ink-2); }

/* ---------- 課程網格 ---------- */
.courses { background: var(--cream); }
.courses-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.course-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.course-thumb { display: block; position: relative; aspect-ratio: 4/3.2; overflow: hidden; background: var(--cream); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(50,30,38,.28) 100%); }
.plan-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,.94);
  color: var(--rose-deep); font-weight: 700; font-size: .8rem; letter-spacing: .05em;
  padding: .3em .7em; border-radius: 8px; box-shadow: var(--shadow-sm);
}
.plan-badge b { color: var(--pink); }
.course-body { padding: 1.2rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.14rem; line-height: 1.5; margin-bottom: .5rem; color: var(--ink); }
.course-body h3 a { transition: color .2s; }
.course-body h3 a:hover { color: var(--rose); }
.course-body .hook { font-size: .9rem; color: var(--ink-2); line-height: 1.7; flex: 1; margin-bottom: 1rem; }
.course-price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: 1rem; }
.course-price .label { font-size: .78rem; color: var(--ink-3); }
.course-price .amt { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--rose); }
.course-price .amt small { font-size: .62em; }
.course-card .btn { width: 100%; }

/* 加購 Add-on 條 */
.addon-strip { margin-top: 2.6rem; background: #fff; border: 1px dashed var(--pink); border-radius: var(--radius); padding: 1.6rem 1.8rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.addon-strip .addon-title { font-weight: 700; color: var(--rose-deep); display: flex; align-items: center; gap: .5rem; }
.addon-strip .addon-title span { font-size: 1.4rem; }
.addon-list { display: flex; gap: 1rem; flex-wrap: wrap; flex: 1; }
.addon-item { background: var(--cream); border-radius: 10px; padding: .55rem 1rem; font-size: .9rem; color: var(--ink); }
.addon-item b { color: var(--rose); margin-left: .3rem; }

/* ---------- 案例 Portfolio ---------- */
.portfolio { background: #fff; }
.pf-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.pf-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.pf-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pf-item:hover img { transform: scale(1.08); }
.pf-item::after { content: "案例參考"; position: absolute; left: 10px; bottom: 10px; font-size: .72rem; color: #fff; background: rgba(195,123,141,.85); padding: .2em .6em; border-radius: 6px; opacity: 0; transition: .25s; }
.pf-item:hover::after { opacity: 1; }

/* ---------- 最新消息 ---------- */
.news { background: var(--cream); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .25s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16/11; overflow: hidden; background: var(--cream); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 1.3rem 1.4rem 1.5rem; }
.news-date { font-size: .8rem; color: var(--pink); letter-spacing: .1em; font-weight: 600; }
.news-body h3 { font-size: 1.16rem; margin: .5rem 0 .7rem; line-height: 1.5; }
.news-body p { font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; }
.news-more { font-size: .9rem; color: var(--rose); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s; }
.news-card:hover .news-more { gap: .6rem; }

/* ---------- CTA 帶狀 ---------- */
.cta-band { background: linear-gradient(120deg, var(--pink) 0%, var(--rose) 100%); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.cta-band::before { width: 320px; height: 320px; top: -140px; left: -80px; }
.cta-band::after { width: 240px; height: 240px; bottom: -120px; right: -60px; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-band p { font-size: 1.08rem; opacity: .95; margin-bottom: 2rem; }
.cta-band .hours { margin-top: 1.6rem; font-size: .92rem; opacity: .9; letter-spacing: .08em; }

/* ---------- RWD ---------- */
@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .pf-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 820px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .addon-list { width: 100%; }
}
@media (max-width: 480px) {
  .course-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .hero-arrow { display: none; }
  .addon-strip { flex-direction: column; align-items: flex-start; }
}
