/* 共用樣式。設計規範（design tokens）、導覽列、按鈕、格線系統是這次
   （Raymond 羽球教室版）重新設計的；表格/表單/Modal 這些跟頁面設計無關
   的共用元件維持原本的簡單風格，admin/login/register/my_bookings 這幾個
   後台/工具頁面繼續用。 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Barlow+Condensed:wght@600;700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --green-900: #0f3b2e; /* 主色：深球場綠，導覽列/Hero/深色區塊 */
  --green-700: #1f5a3a; /* 淺底上的連結、英文小標 */
  --lime: #c9e84a; /* 重點色：只放在深色底上，或當按鈕底色（按鈕文字用 --ink） */
  --paper: #f3f1ea; /* 頁面底色 */
  --paper-2: #e9e6dc; /* 次要區塊底色（教練介紹） */
  --card: #ffffff;
  --line: #d9d5c8; /* 卡片邊框 */
  --ink: #14201c; /* 主要文字 */
  --ink-2: #3e4a44; /* 內文次要文字 */
  --ink-3: #5a665f; /* 註解文字 */
  --footer: #0e1a16;

  --radius-card: 20px;
  --radius-pill: 999px;
  --gutter-desktop: 64px;
  --gutter-mobile: 16px;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

/* 英文小標／數字一律用 Barlow Condensed，全大寫、letter-spacing，
   比照設計稿「每個區塊標題上方有英文小標」的中英雙標排法 */
.eyebrow,
.stat-number,
.nav-en {
  font-family: "Barlow Condensed", "Noto Sans TC", sans-serif;
}

.eyebrow {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  color: var(--green-700);
  margin: 0 0 8px;
}

/* 深色底上的英文小標用萊姆色，比照 Hero／預約方式這些深綠區塊 */
.on-dark .eyebrow {
  color: var(--lime);
}

h1,
h2,
h3 {
  font-weight: 900;
  margin: 0 0 12px;
  color: var(--ink);
}

.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: #fff;
}

/* ---------- 12 欄格線容器 ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .container {
    padding: 0 var(--gutter-mobile);
  }

  .grid-12 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- 按鈕：卡片圓角 20px、按鈕膠囊 999px ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 44px; /* 觸控目標 >=44px */
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--green-900);
  color: var(--green-900);
}

.btn-outline-dark:hover {
  background: rgba(15, 59, 46, 0.06);
}

.btn-block {
  width: 100%;
}

/* ---------- 導覽列 ---------- */
nav.topnav {
  background: var(--green-900);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px var(--gutter-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 1024px) {
  .nav-inner {
    padding: 14px var(--gutter-desktop);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  color: var(--lime);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text strong {
  font-size: 15px;
}

.nav-logo-text small {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #e7e5da;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
}

.nav-menu a .nav-en {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--lime);
  text-transform: uppercase;
}

.nav-cta-mobile {
  display: none; /* 預設不顯示，只在下面手機版 media query 裡打開 */
}

.nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 14px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

/* 手機版導覽列收成漢堡選單 */
@media (max-width: 1023px) {
  .nav-hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav.topnav {
    position: relative;
  }

  .nav-cta {
    display: none; /* 手機版預約按鈕改放漢堡選單裡最下面，見 common.js */
  }

  .nav-menu .nav-cta-mobile {
    display: inline-flex;
    margin-top: 12px;
  }
}

/* 簡易版導覽列：教練登入後台、以及 login/register 這類工具頁用，
   維持原本精簡的樣式，不套用上面行銷網站那套 logo/漢堡設計 */
.nav-simple {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-simple a {
  color: #d8dae3;
  text-decoration: none;
  padding: 14px 16px;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-simple a:hover,
.nav-simple a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

main {
  overflow-x: auto;
}

.page-main {
  max-width: 900px;
  margin: 24px auto;
  padding: 0 16px;
}

/* ---------- 共用卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.highlight-list {
  padding-left: 20px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------- 表格/表單/Modal：跟頁面設計無關的共用元件，維持原樣 ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

th {
  background: #eef0f4;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  background: var(--green-900);
  color: #fff;
}

button.secondary {
  background: #cfd2dc;
  color: #333;
}

button.danger {
  background: #c0392b;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-pending {
  color: #8a5a00;
  font-weight: 600;
}

.status-approved {
  color: #1b4d2e;
  font-weight: 600;
}

.status-rejected {
  color: #888;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.form-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 40px auto;
}

.form-row {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-row label {
  font-size: 13px;
  color: #555;
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.error-text {
  color: #c0392b;
  font-size: 13px;
  margin: 8px 0 0;
}

.section-block {
  margin-bottom: 28px;
}

.section-block h2 {
  font-size: 16px;
  margin-bottom: 8px;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 8px;
  padding: 20px 24px;
  width: 100%;
  max-width: 420px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* ================= 首頁專用元件 ================= */

.section {
  padding: 72px 0;
}

.section.on-dark {
  background: var(--green-900);
  color: #fff;
}

.section.on-paper-2 {
  background: var(--paper-2);
}

/* ---- Hero：左7欄文字、右5欄直式照片 ---- */
.hero {
  background: var(--green-900);
  color: #fff;
  padding: 56px 0 0;
  overflow: hidden;
}

.hero .grid-12 {
  align-items: center;
}

.hero-copy {
  grid-column: span 7;
}

.hero-copy h1 {
  font-size: 44px;
  line-height: 1.3;
  margin: 4px 0 16px;
}

.hero-copy p {
  color: #d9d5c8;
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-photo-wrap {
  grid-column: span 5;
  position: relative;
}

.hero-photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  background: repeating-linear-gradient(45deg, #164a3a, #164a3a 12px, #123f31 12px, #123f31 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d9d5c8;
  font-size: 13px;
  text-align: center;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-badge {
  position: absolute;
  top: 20px;
  left: -16px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  line-height: 1.5;
}

.hero-photo-badge strong {
  display: block;
  font-size: 14px;
}

/* ---- 數據列：4 欄 ---- */
.stats-bar {
  background: var(--green-900);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px 0;
}

.stats-bar .grid-12 {
  text-align: center;
}

.stat-item {
  grid-column: span 4; /* 目前 3 格；之後加回「教學學員人數」改回 span 3 */
  color: #fff;
}

.stat-number {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--lime);
}

.stat-label {
  font-size: 13px;
  color: #d9d5c8;
}

/* ---- 標語區 ---- */
.tagline-copy {
  grid-column: span 6;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.5;
}

.tagline-detail {
  grid-column: span 6;
  color: var(--ink-2);
  line-height: 1.9;
  align-self: center;
}

/* ---- 課程介紹：4 張卡 ---- */
.course-grid {
  margin-top: 32px;
}

.course-card {
  grid-column: span 3;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-card-photo {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--paper-2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

.course-card h3 {
  font-size: 18px;
  margin: 0;
}

.course-card .eyebrow {
  margin-bottom: 0;
}

.course-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.course-card-meta {
  font-size: 13px;
  color: var(--ink-3);
}

.course-card-price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-900);
}

/* ---- 教練介紹：左照片右文字 ---- */
.about-split {
  align-items: center;
}

.about-photo {
  grid-column: span 5;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  background-color: #ded9c9;
  background-image: linear-gradient(45deg, var(--paper) 25%, transparent 25%, transparent 75%, var(--paper) 75%),
    linear-gradient(45deg, var(--paper) 25%, transparent 25%, transparent 75%, var(--paper) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 13px;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy {
  grid-column: span 7;
}

.about-copy .highlight-list {
  margin-top: 16px;
}

/* ---- 上課流程：4 欄，上方粗線 ---- */
.process-step {
  grid-column: span 3;
  border-top: 4px solid var(--green-900);
  padding-top: 16px;
}

.process-step-number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--green-700);
}

.process-step h3 {
  font-size: 16px;
  margin: 4px 0 6px;
}

.process-step p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
}

/* ---- 預約方式：深綠圓角大卡 ---- */
.booking-cta-card {
  background: var(--green-900);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: center;
}

.booking-cta-card .eyebrow {
  color: var(--lime);
}

.booking-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.booking-cta-line-id {
  color: #d9d5c8;
  font-size: 14px;
  margin-top: 8px;
}

/* ---- 上課場地：2 張卡 ---- */
.venue-card {
  grid-column: span 6;
  overflow: hidden;
}

.venue-card-photo {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 13px;
  overflow: hidden;
}

.venue-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.venue-card-body {
  padding: 20px;
}

.venue-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.venue-card p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 4px;
}

.venue-card a {
  color: var(--green-700);
  font-weight: 700;
  font-size: 14px;
}

.venue-card-meta {
  color: var(--ink-3);
  font-size: 13px;
  margin: 8px 0 0;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  color: var(--green-700);
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item p {
  color: var(--ink-2);
  margin: 12px 0 0;
  line-height: 1.8;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer);
  color: #b9c2bc;
  padding: 48px 0 24px;
  font-size: 14px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 12px;
}

.footer-col p {
  margin: 0 0 8px;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 12px;
  color: #7c877f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- 手機版底部固定操作列 ---- */
.mobile-action-bar {
  display: none;
}

/* ---- 首頁響應式（<1024 平板、<768 手機） ---- */
@media (max-width: 1023px) {
  .hero-copy,
  .hero-photo-wrap,
  .tagline-copy,
  .tagline-detail,
  .about-photo,
  .about-copy,
  .process-step,
  .venue-card,
  .stat-item {
    grid-column: span 12;
  }

  .course-card {
    grid-column: span 6;
  }

  .about-photo {
    max-width: 360px;
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }

  .hero {
    padding-top: 32px;
  }

  .hero .grid-12 {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-photo-wrap {
    margin-bottom: 24px;
  }

  .stat-item {
    grid-column: span 6;
  }

  .course-card {
    grid-column: span 12;
    flex-direction: row;
    align-items: center;
  }

  .course-card-photo {
    display: none; /* 手機版課程改直式清單：課名+一行說明+價格，不需要照片 */
  }

  .course-card > * {
    flex: 1;
  }

  .booking-cta-card {
    padding: 32px 20px;
  }

  /* 手機版底部固定一條操作列：LINE 詢問（外框）+ 預約體驗課（深綠實心較寬） */
  .mobile-action-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 12px;
    gap: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .mobile-action-bar .btn {
    flex: 1;
    padding: 12px 16px;
  }

  .mobile-action-bar .btn-primary {
    flex: 2;
  }

  /* 底部固定列會擋住內容，頁面最下面留出對應高度的空間 */
  body {
    padding-bottom: 68px;
  }
}

/* ================= 線上預約頁（book.html）四步驟專用元件 ================= */

.booking-page {
  padding: 32px 0 64px;
}

.booking-title {
  margin-bottom: 32px;
}

.booking-layout-grid {
  align-items: start;
}

.booking-form-col {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.booking-summary-col {
  grid-column: span 4;
}

.booking-step {
  padding: 24px;
}

.booking-step-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.booking-step-title .step-no {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: var(--green-700);
}

.booking-step-title h2 {
  font-size: 18px;
  margin: 0;
}

/* ---- Step 1：課程選擇，2x2 按鈕卡 ---- */
.course-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.course-select-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.course-select-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink);
}

.course-select-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

.course-select-card.selected {
  border-color: var(--green-900);
  box-shadow: 0 0 0 4px rgba(201, 232, 74, 0.35);
}

/* ---- Step 2：日期，一週 7 格 ---- */
.date-week-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-week-nav {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.date-week-days {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.date-day-cell {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-family: inherit;
}

.date-day-cell .dow {
  font-size: 11px;
  color: var(--ink-3);
}

.date-day-cell .dom {
  font-size: 15px;
  font-weight: 700;
}

.date-day-cell:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-day-cell.selected {
  border-color: var(--green-900);
  background: var(--green-900);
}

.date-day-cell.selected .dow,
.date-day-cell.selected .dom {
  color: #fff;
}

/* ---- Step 3：時段，格狀三態 ---- */
.slot-time-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.slot-time-cell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}

.slot-time-cell.selected {
  border-color: var(--green-900);
  background: var(--lime);
  color: var(--ink);
}

.slot-time-cell.full {
  background: var(--paper-2);
  color: var(--ink-3);
  cursor: not-allowed;
  text-decoration: line-through;
}

.slot-time-hint {
  color: var(--ink-3);
  font-size: 13px;
  margin: 0;
}

/* ---- Step 4：聯絡資料表單 ---- */
.booking-step .form-row label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

.booking-step .form-row input,
.booking-step .form-row select,
.booking-step .form-row textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* ---- 右側 sticky 明細卡 ---- */
.booking-summary-card {
  position: sticky;
  top: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-summary-card h3 {
  font-size: 16px;
  margin: 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.summary-row .val {
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.summary-row .val.placeholder {
  color: var(--ink-3);
  font-weight: 400;
}

.summary-price {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--green-900);
}

.booking-success {
  text-align: center;
  padding: 48px 24px;
}

.booking-success .success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

@media (max-width: 1023px) {
  .booking-form-col,
  .booking-summary-col {
    grid-column: span 12;
  }

  .booking-summary-card {
    position: static;
  }
}

@media (max-width: 767px) {
  .course-select-grid {
    grid-template-columns: 1fr;
  }

  .slot-time-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-summary-col {
    order: 10; /* 明細卡移到最下面 */
  }

  .booking-submit-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  body.has-fixed-submit {
    padding-bottom: 68px;
  }
}

/* 手機版共用調整 */
@media (max-width: 640px) {
  .page-main {
    margin: 12px auto;
    padding: 0 10px;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  th,
  td {
    padding: 8px;
    font-size: 13px;
  }

  .form-card {
    margin: 16px auto;
    max-width: 100%;
  }
}

/* ================= 多頁面改版：子頁頁首、首頁入口卡片、最新消息 ================= */

/* 子頁頁首（關於教練／課程／場地／消息／FAQ）：深綠底、左邊大標題 */
.page-hero {
  background: var(--green-900);
  color: #fff;
  padding: 64px 0 56px;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 900;
  margin: 0 0 12px;
  color: #fff;
}

.page-hero p {
  color: #d9d5c8;
  max-width: 640px;
  line-height: 1.8;
  margin: 0;
}

/* 首頁「探索」入口卡片：連到各子頁 */
.entry-grid {
  margin-top: 32px;
}

.entry-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 59, 46, 0.12);
  border-color: var(--green-700);
}

.entry-card .eyebrow {
  margin: 0;
}

.entry-card h3 {
  font-size: 20px;
  margin: 0;
}

.entry-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.entry-card-more {
  font-weight: 700;
  font-size: 14px;
  color: var(--green-700);
}

/* 最新消息卡片：首頁預覽與 /news.html 共用 */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
}

.news-grid {
  margin-top: 32px;
}

.news-card {
  grid-column: span 4;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.news-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--green-900);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}

.news-tag.pinned {
  background: var(--lime);
  color: var(--ink);
}

.news-date {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  color: var(--ink-3);
}

.news-card h3 {
  font-size: 18px;
  margin: 0;
  line-height: 1.5;
}

.news-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  white-space: pre-line;
}

.news-card a.news-link {
  color: var(--green-700);
  font-weight: 700;
  font-size: 14px;
}

/* 消息頁：分類篩選膠囊 */
.news-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.news-filter button {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
}

.news-filter button.active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: #fff;
}

.footer-links a {
  color: inherit;
}

@media (max-width: 1023px) {
  .entry-card,
  .news-card {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  .page-hero {
    padding: 40px 0 36px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .entry-card,
  .news-card {
    grid-column: span 12;
  }
}
