/* =========================================================
 * All A's 课程中心 · 样式（森林绿 + 麦穗黄）
 * ========================================================= */

:root {
  --green-900: #142e1c;
  --green-700: #1f4d2e;
  --green-500: #2e6b40;
  --green-100: #e6efe7;
  --wheat-600: #c3932a;
  --wheat-500: #d9a93b;
  --wheat-100: #f7ecd2;
  --cream: #faf7ef;
  --ink: #243026;
  --ink-2: #55655a;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(20, 46, 28, 0.10);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans Thai', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
}

.hidden { display: none !important; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(20, 46, 28, 0.25);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 18px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
}
.logo-mark {
  width: 42px; height: 42px;
  display: block;
  object-fit: contain;
}
.logo-text { line-height: 1.25; }
.logo-text strong { font-size: 16px; display: block; color: var(--wheat-500); }
.logo-text small { font-size: 11px; opacity: 0.85; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topnav a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 14px; }
.topnav a:hover { color: var(--wheat-500); }
.lang-switch {
  display: flex; background: rgba(255,255,255,0.14);
  border-radius: 999px; padding: 3px;
}
.lang-btn {
  border: none; background: transparent; color: rgba(255,255,255,0.85);
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px; transition: all .2s;
}
.lang-btn.active { background: var(--wheat-500); color: var(--green-900); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(217,169,59,0.28), transparent 60%),
    linear-gradient(135deg, var(--green-900), var(--green-700) 60%, var(--green-500));
  color: var(--white);
  padding: 64px 20px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--wheat-500), var(--wheat-600), var(--wheat-500));
}
.hero h1 { font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: 0.5px; }
.hero .hero-slogan {
  margin: 6px auto 0; padding: 0;
  font-family: 'Sacramento', 'Dancing Script', cursive;
  font-size: clamp(28px, 3.8vw, 42px); line-height: 1.1;
  color: #f6d98a;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
  letter-spacing: 0.5px;
}
.hero .sub { margin-top: 10px; font-size: clamp(14px, 2vw, 17px); color: rgba(255,255,255,0.88); }
.hero .tags {
  display: inline-block; margin-top: 16px; padding: 6px 18px;
  border: 1px solid rgba(217,169,59,0.55); border-radius: 999px;
  color: var(--wheat-500); font-size: 13px; letter-spacing: 0.4px;
}
.hero-actions { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; border-radius: 999px; font-size: 14px; font-weight: 600;
  padding: 10px 22px; transition: transform .15s, box-shadow .15s, background .2s;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green-700); color: var(--white); }
.btn-primary:hover { background: var(--green-500); box-shadow: 0 4px 14px rgba(31,77,46,0.35); }
.btn-wheat { background: linear-gradient(135deg, var(--wheat-500), var(--wheat-600)); color: var(--green-900); }
.btn-wheat:hover { box-shadow: 0 4px 14px rgba(195,147,42,0.45); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.75); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { background: var(--green-100); color: var(--green-700); font-weight: 700; }
.btn-ghost:hover { background: #d5e5d7; }

/* ---------- 主体容器 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }

/* ---------- 分类 Tab ---------- */
.cat-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  border: 1.5px solid var(--green-700); background: var(--white); color: var(--green-700);
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: all .2s;
}
.tab:hover { background: var(--green-100); }
.tab.active { background: var(--green-700); color: var(--white); box-shadow: var(--shadow); }

/* ---------- 筛选栏 ---------- */
.filter-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 20px;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end;
}
.filter-item label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.filter-item select, .filter-item input {
  width: 100%; padding: 9px 12px; border: 1.5px solid #d8e0d9; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--white);
  outline: none; transition: border .2s;
}
.filter-item select:focus, .filter-item input:focus { border-color: var(--green-500); }
.filter-search { grid-column: 1 / -1; display: flex; gap: 12px; }
.filter-search input { flex: 1; }
#resetBtn {
  border: 1.5px solid #d8e0d9; background: var(--white); color: var(--ink-2);
  border-radius: 10px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
#resetBtn:hover { border-color: var(--wheat-500); color: var(--wheat-600); }

.result-count { font-size: 13.5px; color: var(--ink-2); margin: 4px 2px 14px; }

/* ---------- 课程卡片 ---------- */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px;
}
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20,46,28,0.16); }
.card-cover { position: relative; width: 100%; height: 180px; background: var(--green-100); overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(20,46,28,0.85); color: var(--wheat-500);
  font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  letter-spacing: 0.3px;
}
.badge-soon {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #d9a93b 0%, #c3932a 100%);
  color: #1f4d2e; font-size: 11.5px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(31,77,46,0.30);
  z-index: 2;
}
.card.is-soon { opacity: 0.92; cursor: default; }
.card.is-soon:hover { transform: none; box-shadow: var(--shadow); }
.card.is-soon .card-title { color: #5a6e60; }
.card-foot-soon {
  margin-top: auto;
  padding: 12px 0 0;
  border-top: 1px dashed rgba(31,77,46,0.18);
  display: flex; align-items: center; justify-content: center;
}
.coming-soon-tag {
  font-size: 14px; font-weight: 800; color: var(--wheat-600);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.detail-hero .badge-cat { position: static; display: inline-block; margin-bottom: 10px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 17px; font-weight: 700; color: var(--green-900); line-height: 1.4; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.meta-item { font-size: 12.5px; color: var(--ink-2); }
.meta-tbd { color: var(--wheat-600); font-weight: 600; }
.card-summary {
  margin-top: 10px; font-size: 13.5px; color: var(--ink-2); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e2e7e2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price-num { font-size: 19px; font-weight: 800; color: var(--green-700); }
.price-unit { font-size: 12px; color: var(--ink-2); }
.price-num.price-range { font-size: 15px; letter-spacing: 0.2px; }
.card-actions { display: flex; gap: 6px; }
.card-actions .btn { padding: 7px 12px; font-size: 12px; line-height: 1.2; }

/* ---------- 徽标 ---------- */
.chip {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.chip-tbd { background: var(--wheat-100); color: var(--wheat-600); border: 1px solid var(--wheat-500); }
.chip-wheat { background: var(--wheat-500); color: var(--green-900); }
.chip-green { background: var(--green-100); color: var(--green-700); }

.no-result {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--ink-2); font-size: 15px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- 详情页 ---------- */
.detail-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 20px 140px; }
.back-link {
  display: inline-block; margin-bottom: 18px;
  color: var(--green-700); background: var(--white);
  border: 1.5px solid var(--green-700); border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 13px;
  padding: 7px 18px; transition: background .2s, color .2s, box-shadow .2s;
}
.back-link:hover { background: var(--green-700); color: var(--white); box-shadow: 0 4px 12px rgba(31,77,46,0.25); }
.detail-hero {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.detail-cover { width: 100%; max-height: 420px; object-fit: cover; }
.detail-hero-text { padding: 22px 26px 24px; }
.detail-hero-text h1 { font-size: clamp(22px, 3.2vw, 32px); color: var(--green-900); line-height: 1.35; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.gallery {
  column-count: 3; column-gap: 16px; margin-top: 18px;
}
.gallery .g-item {
  margin: 0 0 16px; break-inside: avoid; border-radius: 16px;
  box-shadow: 0 2px 8px rgba(31, 77, 46, 0.08), 0 12px 28px rgba(31, 77, 46, 0.06);
  overflow: hidden; background: var(--white);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery .g-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(31, 77, 46, 0.14), 0 20px 40px rgba(31, 77, 46, 0.12);
}
.gallery img {
  width: 100%; height: auto; display: block; object-fit: contain; background: var(--white);
}
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; margin-top: 22px; align-items: start; }
.detail-sec {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 26px; margin-bottom: 20px;
}
.detail-sec h2 {
  font-size: 18px; color: var(--green-700); margin-bottom: 14px;
  padding-left: 12px; border-left: 4px solid var(--wheat-500);
}
.desc { font-size: 15px; color: var(--ink); line-height: 1.7; }
.outcomes { list-style: none; }
.outcomes li {
  position: relative; padding: 8px 0 8px 34px; font-size: 14.5px;
  border-bottom: 1px dashed #e8ece8;
}
.outcomes li:last-child { border-bottom: none; }
.outcomes li::before {
  content: '🌾'; position: absolute; left: 2px; top: 8px; font-size: 15px;
}
.grade-table { border: 1px solid #e2e7e2; border-radius: 12px; overflow: hidden; }
.grade-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grade-table-wrap .grade-table { border: 1px solid #e2e7e2; border-radius: 12px; overflow: hidden; width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.grade-table-wrap .grade-table colgroup col { display: table-column; }
.grade-table-wrap .grade-table thead th {
  background: var(--green-700); color: var(--white);
  padding: 10px 10px; text-align: left; font-weight: 700; font-size: 12px;
  letter-spacing: 0.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grade-table-wrap .grade-table thead th:first-child { border-top-left-radius: 12px; }
.grade-table-wrap .grade-table thead th:last-child { border-top-right-radius: 12px; }
.grade-table-wrap .grade-table tbody td {
  padding: 10px 10px; font-size: 12.5px; color: var(--ink-2);
  border-bottom: 1px solid #e2e7e2; border-right: 1px solid #f1f3ee;
  vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.grade-table-wrap .grade-table tbody td:last-child { border-right: none; }
.grade-table-wrap .grade-table tbody tr:nth-child(odd) td { background: #f6f8f3; }
.grade-table-wrap .grade-table tbody tr:last-child td { border-bottom: none; }
.grade-table-wrap .grade-table tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.grade-table-wrap .grade-table tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }
.grade-table-wrap .grade-table .grade-cell { font-weight: 800; color: var(--green-700); font-size: 13px; }
.grade-table-wrap .grade-table .grade-note { font-size: 10px; color: var(--ink-2); opacity: 0.7; font-weight: 400; white-space: nowrap; }
.grade-row { display: flex; border-bottom: 1px solid #e2e7e2; }
.grade-row:last-child { border-bottom: none; }
.grade-row:nth-child(odd) { background: #f6f8f3; }
.grade-cell {
  flex: 0 0 110px; padding: 12px 14px; font-weight: 700; color: var(--green-700);
  border-right: 1px solid #e2e7e2; font-size: 14px;
}
.grade-info { padding: 12px 14px; font-size: 13.5px; color: var(--ink-2); }
.facts-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px; position: sticky; top: 84px;
}
.facts-card h2 {
  font-size: 17px; color: var(--green-700); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--wheat-500);
}
.fact { display: flex; padding: 8px 0; border-bottom: 1px dashed #edf0ed; gap: 12px; }
.fact:last-child { border-bottom: none; }
.fact-label { flex: 0 0 92px; font-size: 13px; color: var(--ink-2); }
.fact-value { font-size: 13.5px; font-weight: 600; color: var(--ink); word-break: break-word; }
.fact-value a { color: var(--green-700); }

/* ---------- 底部固定咨询栏（详情页） ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--white);
  border-top: 3px solid var(--wheat-500);
  box-shadow: 0 -6px 24px rgba(20,46,28,0.15);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
}
.bottom-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.bar-info { display: flex; gap: 22px; flex-wrap: wrap; flex: 1; min-width: 220px; }
.bar-brand { display: flex; flex-direction: column; line-height: 1.2; padding: 2px 0; }
.bar-brand-name {
  font-size: 20px; font-weight: 800;
  color: var(--wheat-600); letter-spacing: 2.5px;
  font-family: 'Georgia', 'Times New Roman', serif;
}
.bar-brand-sub {
  font-size: 12px; color: var(--green-900); font-weight: 600;
  margin-top: 3px; letter-spacing: 0.4px; opacity: 0.85;
}
.bar-item { font-size: 13px; color: var(--ink-2); }
.bar-item strong { display: block; font-size: 15px; color: var(--green-900); }
.bar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.bar-note { width: 100%; font-size: 12px; color: var(--ink-2); text-align: right; }

/* ---------- LINE 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,46,28,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  padding: 20px;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  background: var(--white); border-radius: 20px; max-width: 560px; width: 100%;
  padding: 30px 28px 26px; text-align: center; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(12px); transition: transform .25s;
}
.modal.open .modal-card { transform: translateY(0); }
.modal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--green-700), var(--wheat-500));
  border-radius: 20px 20px 0 0;
}
.modal-card h3 { color: var(--green-900); font-size: 20px; margin-bottom: 6px; }
.modal-card p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.qr-box {
  width: 220px; height: 220px; margin: 0 auto 16px;
  border: 3px solid var(--green-700); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--white); padding: 8px;
}
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; }
.qr-fallback {
  width: 100%; height: 100%; background: var(--green-100); border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--green-700);
}
.modal-line-id { font-size: 14px; color: var(--ink-2); }
.modal-line-id strong { color: var(--green-700); font-size: 17px; }
.modal-close-btn { margin-top: 18px; }
body.modal-open { overflow: hidden; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--green-900); color: rgba(255,255,255,0.8);
  padding: 30px 20px; text-align: center; font-size: 13.5px;
}
.footer a { color: var(--wheat-500); text-decoration: none; }
.footer .foot-note { margin-top: 8px; font-size: 14.5px; opacity: 0.85; letter-spacing: 0.3px; color: var(--wheat-500); }

/* ---------- 一对一入口按钮（麦穗描边） ---------- */
.btn-wheat-ghost {
  background: rgba(217,169,59,0.12); border: 1.5px solid var(--wheat-500); color: var(--wheat-500);
}
.btn-wheat-ghost:hover { background: rgba(217,169,59,0.28); box-shadow: 0 4px 14px rgba(195,147,42,0.35); }

/* ---------- 双二维码（弹窗 / 定制页共用） ---------- */
.qr-pair {
  display: flex; gap: 22px; justify-content: center; align-items: flex-start; flex-wrap: wrap;
}
.qr-item { flex: 0 1 200px; }
.qr-item .qr-box {
  width: 100%; aspect-ratio: 1; height: auto; margin-bottom: 10px;
  border-width: 2px; padding: 6px;
}
.qr-item .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.qr-id { font-size: 15px; font-weight: 800; color: var(--green-700); }

/* ---------- 服务亮点条 ---------- */
.service-note {
  margin-top: 16px; padding: 14px 18px;
  background: var(--wheat-100); border-left: 4px solid var(--wheat-500);
  border-radius: 10px; font-size: 14px; color: var(--ink); font-weight: 600;
}

/* ---------- 服务流程步骤 ---------- */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  background: #f6f8f3; border: 1px solid #e2e7e2; border-radius: 12px;
  padding: 10px 14px;
}
.step-num {
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--green-700); color: var(--wheat-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.step-text { font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.4; }

/* ---------- 一对一定制页 ---------- */
.custom-wrap { max-width: 860px; }
.custom-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-700) 65%, var(--green-500));
  border-radius: var(--radius); color: var(--white);
  padding: 44px 30px 38px; text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.custom-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--wheat-500), var(--wheat-600), var(--wheat-500));
}
.custom-hero-icon { font-size: 44px; margin-bottom: 8px; }
.custom-hero h1 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.custom-sub { margin-top: 10px; color: rgba(255,255,255,0.88); font-size: 15px; }
.custom-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px; margin-top: 20px;
}
.custom-points { list-style: none; }
.custom-points li {
  position: relative; padding: 10px 0 10px 36px; font-size: 15px;
  border-bottom: 1px dashed #e8ece8; line-height: 1.7;
}
.custom-points li:last-child { border-bottom: none; }
.custom-points li::before {
  content: '🌾'; position: absolute; left: 2px; top: 10px; font-size: 17px;
}
.custom-contact { text-align: center; }
.custom-contact h2 {
  font-size: 18px; color: var(--green-700); margin-bottom: 18px;
  display: inline-block; padding-bottom: 8px; border-bottom: 2px solid var(--wheat-500);
}
.custom-signup { margin-top: 20px; padding: 12px 34px; font-size: 15px; }

/* ---------- 一对一课程定制页：课程总览表 ---------- */
.custom-overview { margin-top: 20px; display: flex; flex-direction: column; align-items: center; text-align: left; }
.custom-overview > h2 {
  font-size: 20px; color: var(--green-700); text-align: center; margin-bottom: 14px;
  display: inline-block; padding-bottom: 8px; border-bottom: 2px solid var(--wheat-500);
}
.custom-overview .ov-block { width: 100%; }
.custom-programmes { margin-top: 20px; display: flex; flex-direction: column; align-items: center; }
.custom-programmes > h2 {
  font-size: 20px; color: var(--green-700); text-align: center; margin-bottom: 8px;
  display: inline-block; padding-bottom: 8px; border-bottom: 2px solid var(--wheat-500);
}
.custom-programmes-intro {
  text-align: center; color: #4d5b51; font-size: 14px; margin: 0 0 18px; line-height: 1.6;
}
.prog-block { width: 100%; margin-bottom: 22px; }
.prog-block:last-child { margin-bottom: 0; }
.prog-head {
  background: var(--green-700); color: var(--white);
  font-size: 15px; font-weight: 700;
  padding: 10px 14px; border-radius: 8px 8px 0 0;
  line-height: 1.5;
}
.prog-info-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.prog-info-table th {
  background: #eef3ee; color: var(--green-700); text-align: left;
  padding: 8px 12px; width: 110px; vertical-align: top; font-weight: 700;
  border: 1px solid #dde4dd;
}
.prog-info-table td {
  padding: 8px 12px; line-height: 1.65; color: #33413a;
  border: 1px solid #dde4dd; vertical-align: top;
}
.prog-subj-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prog-subj-table th {
  background: var(--wheat-500); color: #fff; text-align: left;
  padding: 8px 12px; font-weight: 700;
}
.prog-subj-table th:first-child { width: 50px; text-align: center; }
.prog-subj-table th:last-child { width: 120px; }
.prog-subj-table td {
  padding: 7px 12px; border: 1px solid #dde4dd; vertical-align: top; line-height: 1.5;
}
.subj-no { text-align: center; color: var(--green-700); font-weight: 700; }
.subj-year { color: #5c5c5c; white-space: nowrap; }
.prog-subj-table tbody tr:nth-child(even) td { background: #f7f9f4; }
@media (max-width: 640px) {
  .prog-info-table th { width: 90px; font-size: 13px; }
  .prog-subj-table th:last-child { width: auto; }
  .subj-year { white-space: normal; }
}

/* ---------- Curriculum Overview 课程大纲区块 ---------- */
.ov-sec .ov-block { margin-bottom: 20px; }
.ov-sec .ov-block:last-child { margin-bottom: 0; }
.ov-tag {
  font-size: 17px; font-weight: 800; color: var(--green-700);
  margin: 0 0 18px; padding-bottom: 10px;
  border-bottom: 2px solid var(--wheat-500); display: inline-block;
}
.ov-h {
  font-size: 16px; color: var(--green-700); margin: 0 0 8px; font-weight: 700;
}
.ov-p { margin: 0 0 8px; color: #33413a; line-height: 1.75; font-size: 15px; }
.ov-list { margin: 0 0 8px; padding-left: 22px; line-height: 1.7; color: #33413a; font-size: 15px; }
.ov-list li { margin-bottom: 4px; }
.ov-checks { list-style: none; margin: 0 0 8px; padding-left: 0; line-height: 1.7; color: #33413a; font-size: 15px; }
.ov-checks li { margin-bottom: 6px; padding-left: 26px; position: relative; }
.ov-checks li::before {
  content: '✔'; position: absolute; left: 0; color: var(--green-700); font-weight: 800;
}
.ov-note {
  background: #f7f3e6; border-left: 3px solid var(--wheat-500);
  padding: 10px 14px; border-radius: 8px; font-size: 14px;
  color: #6b5d2e; margin: 8px 0 0; line-height: 1.65;
}
.ov-img { margin: 16px 0 6px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(31,77,46,.10); }
.ov-img img { display: block; width: 100%; height: auto; }
.ov-quote {
  margin: 14px 0 0; font-weight: 700; color: var(--wheat-600);
  font-style: italic; font-size: 15px; text-align: center;
}
.ov-table-wrap { overflow-x: auto; margin: 4px 0 8px; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ov-table th {
  background: var(--green-700); color: var(--white); text-align: left;
  padding: 9px 12px; font-weight: 700; white-space: nowrap;
}
.ov-table td {
  border: 1px solid #dde4dd; padding: 9px 12px;
  vertical-align: top; line-height: 1.6; color: #33413a;
}
.ov-table tbody tr:nth-child(even) td { background: #f7f9f4; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .facts-card { position: static; }
  .filter-card { grid-template-columns: repeat(2, 1fr); }
  .gallery { column-count: 2; }
}
@media (max-width: 640px) {
  .topbar-inner { height: auto; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .topnav { margin-left: 0; width: 100%; justify-content: space-between; }
  .hero { padding: 44px 16px 40px; }
  .filter-card { grid-template-columns: 1fr; padding: 16px; }
  .course-grid { grid-template-columns: 1fr; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-actions { justify-content: stretch; }
  .card-actions .btn { flex: 1; }
  .bottom-bar-inner { gap: 10px; }
  .bar-info { gap: 14px; }
  .bar-brand { text-align: center; }
  .bar-brand-name { font-size: 18px; letter-spacing: 2px; }
  .bar-brand-sub { font-size: 11px; }
  .bar-actions { width: 100%; }
  .bar-actions .btn { flex: 1; padding: 12px 10px; }
  .bar-note { text-align: center; }
  .detail-wrap { padding-bottom: 200px; }
  .grade-cell { flex: 0 0 84px; }
  .gallery { column-count: 1; }
}
