/* 課程列表 / 詳情 — 沿用 liff.css 的深綠系 token */

.course-card {
  display: flex;
  background: var(--ls-surface);
  border-radius: var(--ls-radius-sm);
  overflow: hidden;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: var(--ls-text);
}
.course-cover {
  width: 104px; min-width: 104px; background: var(--ls-green-600);
  display: flex; align-items: center; justify-content: center;
}
.course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-cover--placeholder { color: #fff; font-size: 24px; font-weight: 800; }
.course-body { padding: 12px 14px; flex: 1; min-width: 0; }
.course-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.course-sub { font-size: 13px; color: var(--ls-muted); margin-top: 3px; }
.course-meta { font-size: 12px; color: var(--ls-muted); margin-top: 8px; }
.course-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.course-foot .price { font-weight: 700; color: var(--ls-green-800); font-size: 14px; }

.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-open   { background: #e1ecfb; color: #1e6fd1; }
.badge-full   { background: #fde7e6; color: #b3261e; }
.badge-closed { background: #ececec; color: #777; }

/* --- 詳情頁 --- */
.detail-cover {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--ls-radius);
  background: var(--ls-green-600); margin-top: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 800;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 20px; font-weight: 800; margin-top: 14px; }
.detail-sub { color: var(--ls-muted); margin-top: 4px; }
.detail-section { background: #fff; border-radius: var(--ls-radius-sm); padding: 14px; margin-top: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.detail-section h3 { margin: 0 0 8px; font-size: 15px; }
.detail-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--ls-line); }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--ls-muted); }
.detail-desc { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }

.session-item { padding: 10px 0; border-bottom: 1px solid var(--ls-line); }
.session-item:last-child { border-bottom: none; }
.session-item .s-title { font-weight: 700; font-size: 17px; }
.session-item .s-meta { font-size: 15px; color: var(--ls-muted); margin-top: 5px; line-height: 1.7; }

.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  background: #fff; border-top: 1px solid var(--ls-line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.cta-bar .btn-primary { margin-top: 0; }
.btn-primary[disabled], .btn-primary.is-disabled { background: #b8c0ba; pointer-events: none; }

.btn-cancel {
  background: #fff; color: #b3261e; border: 1px solid #e0b4b0;
  border-radius: var(--ls-radius-sm); padding: 8px 16px; font-size: 13px; cursor: pointer;
}
.btn-cancel:active { background: #fdecea; }

.btn-pay {
  display: inline-block; background: var(--ls-green-800); color: #fff; border: none;
  border-radius: var(--ls-radius-sm); padding: 8px 16px; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn-pay:active { background: var(--ls-green-700); }

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