/* 洄流 Reflow — 子頁共用（課程/潛點/住宿）
   淺色水面開場 + 深藍內容區，語言同公開站。 */

/* ---------- 水面開場 ---------- */

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: max(46svh, 380px);
  padding: calc(118px + env(safe-area-inset-top)) clamp(24px, 7vw, 110px) 72px;
  background:
    radial-gradient(70% 90% at 80% 20%, rgba(121, 170, 189, .24), transparent 60%),
    linear-gradient(150deg, #F7F3EB 0%, var(--shell) 52%, #D9E2E1 100%);
  overflow: clip;
}
.page-hero-inner { width: min(1120px, 100%); margin: 0 auto; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.page-hero .hero-note { max-width: 640px; }

/* ---------- 深藍內容區 ---------- */

.page-deep {
  position: relative;
  background: linear-gradient(180deg, var(--water) 0%, var(--ink-deep) 100%);
  color: var(--foam);
  padding: clamp(64px, 9vw, 110px) clamp(24px, 8vw, 126px) clamp(84px, 10vw, 130px);
  overflow: clip;
}
.page-deep::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: min(12vw, 150px) 100%;
  opacity: .5;
}
.page-shell { position: relative; z-index: 1; width: min(1120px, 100%); margin: 0 auto; }
.page-section { margin-top: clamp(56px, 8vw, 92px); }
.page-section:first-child { margin-top: 0; }
.section-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--current);
  margin-bottom: 16px;
}
.page-section > h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.section-note { max-width: 640px; margin-top: 14px; color: var(--white-76); font-size: 14.5px; line-height: 1.95; }

/* ---------- 課程卡 ---------- */

.course-list { margin-top: 34px; border-bottom: 1px solid var(--white-14); }
.course-card {
  display: grid;
  grid-template-columns: minmax(150px, .4fr) minmax(0, 1fr);
  gap: 26px;
  padding: 30px 0 32px;
  border-top: 1px solid var(--white-14);
}
.course-card .c-head h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.course-card .c-head .c-sys {
  display: inline-block;
  margin-top: 9px;
  border: 1px solid color-mix(in srgb, var(--current) 42%, transparent);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--current);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
  white-space: nowrap;
}
.course-card .c-body > p { max-width: 620px; color: var(--white-76); font-size: 14px; line-height: 1.9; }
.course-card .c-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
  color: var(--white-48);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
}
.course-card .c-sessions { margin-top: 16px; }
.course-card .c-sessions .cs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 9px 0;
  border-top: 1px dashed var(--white-14);
  font-size: 13px;
  color: var(--foam);
}
.course-card .c-sessions .cs-row .mono-d { font-family: var(--mono); font-size: 12px; color: var(--current); }
.course-card .c-sessions .cs-row .cs-price { font-family: var(--mono); font-weight: 700; }
.course-card .c-sessions .cs-row a { color: var(--foam); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--white-14); }
.course-card .c-sessions .cs-row a:hover { text-decoration-color: var(--current); }
.course-card .c-sessions .cs-empty { padding: 9px 0; border-top: 1px dashed var(--white-14); color: var(--white-48); font-size: 12.5px; }

/* 系統對照表 */
.sys-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.sys-col {
  border: 1px solid var(--white-14);
  border-radius: 2px;
  padding: 24px;
  background: var(--white-8);
}
.sys-col h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.sys-col ul { margin-top: 14px; list-style: none; }
.sys-col li {
  position: relative;
  padding: 6px 0 6px 18px;
  color: var(--white-76);
  font-size: 13.5px;
  line-height: 1.8;
}
.sys-col li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--current);
}
.sys-note { margin-top: 18px; color: var(--white-48); font-size: 13px; line-height: 1.9; }
.sys-note a { color: var(--foam); }

/* 含/不含 */
.include-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.include-grid .sys-col h3 { font-size: 16px; }

/* ---------- 潛點卡 ---------- */

.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: 34px;
}
.spot-card { display: flex; flex-direction: column; }
.spot-card img {
  width: 100%;
  height: min(52vw, 300px);
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .32);
}
.spot-card h3 { margin-top: 16px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.spot-card .spot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.spot-card .spot-tags span {
  border: 1px solid color-mix(in srgb, var(--current) 42%, transparent);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--current);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
}
.spot-card p { margin-top: 10px; color: var(--white-76); font-size: 13.5px; line-height: 1.9; }
.spot-card .spot-credit { margin-top: 9px; color: var(--white-48); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }

/* ---------- 房型卡 ---------- */

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(18px, 3vw, 30px);
  margin-top: 34px;
}
.room-card {
  border: 1px solid var(--white-14);
  border-radius: 2px;
  padding: 26px;
  background: var(--white-8);
}
.room-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.room-card .r-type {
  display: inline-block;
  margin-left: 8px;
  border: 1px solid color-mix(in srgb, var(--current) 42%, transparent);
  border-radius: 999px;
  padding: 2px 9px;
  color: var(--current);
  font-family: var(--mono);
  font-size: 9px;
  vertical-align: 3px;
}
.room-card .r-line { margin-top: 12px; color: var(--white-76); font-size: 13.5px; line-height: 1.85; }
.room-card .r-price { margin-top: 14px; font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--foam); }
.room-card .r-price small { color: var(--white-48); font-size: 11px; font-weight: 400; }

/* ---------- CTA 收尾 ---------- */

.page-cta { margin-top: clamp(64px, 9vw, 100px); text-align: center; }
.page-cta h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}
.page-cta .hero-actions { justify-content: center; margin-top: 30px; }
.page-cta .text-link { color: var(--white-76); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .sys-compare, .include-grid { grid-template-columns: 1fr; }
  .course-card { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 700px) {
  .page-hero { padding-left: 20px; padding-right: 20px; padding-bottom: 56px; }
  .page-deep { padding-left: 22px; padding-right: 22px; }
}
