/* ==================== 基礎設定 ==================== */
:root {
  --primary: #0b7a3e;
  --primary-dark: #085c2e;
  --primary-light: #e8f5ee;
  --accent: #c9a227;
  --accent-light: #f7edd4;
  --ink: #1a2420;
  --ink-soft: #5a6b62;
  --bg: #ffffff;
  --bg-alt: #f4f7f5;
  --bg-dark: #10231a;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(16, 35, 26, 0.08);
  --shadow-lg: 0 24px 70px rgba(16, 35, 26, 0.14);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ==================== 導航欄 ==================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 35, 26, 0.06);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}
.logo:hover .logo-img { transform: scale(1.06); }
.logo-accent { color: var(--primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-menu a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.nav-login {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-login:hover { background: var(--primary-light); transform: translateY(-1px); }
.nav-login.logged-in {
  background: var(--primary-light);
  border-color: transparent;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

/* ==================== Hero ==================== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, var(--primary-light), transparent),
    radial-gradient(ellipse 700px 400px at -10% 110%, var(--accent-light), transparent),
    var(--bg);
  overflow: hidden;
}

.hero-content { max-width: 680px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(11, 122, 62, 0.25);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.hero-title .accent { color: var(--primary); }

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label { font-size: 0.88rem; color: var(--ink-soft); }

.hero-deco {
  position: absolute;
  right: -80px; bottom: -60px;
  font-size: 22rem;
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
}

/* ==================== 按鈕 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font);
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 122, 62, 0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11, 122, 62, 0.38);
}
.btn-ghost {
  color: var(--primary);
  border: 2px solid rgba(11, 122, 62, 0.35);
}
.btn-ghost:hover { background: var(--primary-light); }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
  background: #1fbf5b;
  transform: translateY(-2px);
}

/* ==================== 章節 ==================== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background:
    radial-gradient(ellipse 800px 400px at 90% 0%, rgba(201, 162, 39, 0.08), transparent),
    var(--bg-dark);
  color: #eef5f0;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-dark .section-tag { background: rgba(201, 162, 39, 0.15); color: var(--accent); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; margin-bottom: 10px; }
.section-desc { color: var(--ink-soft); font-size: 1.02rem; }
.section-dark .section-desc { color: rgba(238, 245, 240, 0.65); }

/* ==================== 關於 ==================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.about-card {
  background: #fff;
  border: 1px solid rgba(16, 35, 26, 0.06);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.about-icon {
  font-size: 2.4rem;
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 16px;
  margin-bottom: 20px;
}
.about-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.about-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ==================== 影片 ==================== */
.video-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 48px;
}
.video-frame {
  position: relative;
  background: #0d1a13;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 360px;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

.video-placeholder-hint {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 8px 14px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.video-placeholder-hint span { font-weight: 700; }
.video-placeholder-hint small { opacity: 0.8; }

.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}
.video-date {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent-light);
  color: #8a6d15;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.video-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 14px; line-height: 1.4; }
.video-desc { color: var(--ink-soft); margin-bottom: 18px; }
.video-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.video-tags span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-card {
  background: #fff;
  border: 1px solid rgba(16, 35, 26, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.video-card-thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1a13, #1d3a2a);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  font-size: 1.05rem;
}
.thumb-ph { opacity: 0.75; }
.video-card-body { padding: 20px 22px 24px; }
.video-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
}
.video-card-body h4 { font-size: 1.05rem; font-weight: 700; margin: 6px 0 6px; }
.video-card-body p { font-size: 0.88rem; color: var(--ink-soft); }

/* ==================== 每週晨操勇馬（YouTube Shorts 橫向全画面） ==================== */
.video-featured-youtube {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 0;
}
.video-featured-youtube .video-card-thumb {
  aspect-ratio: 16 / 9;
}
.video-featured-youtube .video-card-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.video-featured-youtube .video-card-body h4 {
  font-size: 1.4rem;
  margin: 8px 0 10px;
}
.video-featured-youtube .video-card-body p {
  font-size: 1rem;
}

/* ==================== 圖輯 ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #e6efe9, #d3e5da);
  box-shadow: var(--shadow);
}
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }
.gallery-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #6e8878;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}
.gallery-ph small { font-weight: 400; opacity: 0.75; font-size: 0.78rem; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 12px;
  background: linear-gradient(transparent, rgba(13, 26, 19, 0.78));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==================== 概論 ==================== */
.insight-lead { text-align: center; margin-bottom: 56px; }
.insight-lead blockquote {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.6;
  color: #f4ead0;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.insight-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: background 0.25s, transform 0.25s;
}
.insight-card:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-4px); }
.insight-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: rgba(201, 162, 39, 0.35);
  line-height: 1;
  margin-bottom: 14px;
}
.insight-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.insight-card > p { color: rgba(238, 245, 240, 0.72); font-size: 0.92rem; margin-bottom: 16px; }
.insight-points { list-style: none; }
.insight-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: rgba(238, 245, 240, 0.62);
}
.insight-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ==================== 戰績 ==================== */
.results-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 32px;
}
.result-box {
  background: #fff;
  border: 1px solid rgba(16, 35, 26, 0.06);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.result-val {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}
.result-name { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; }
.result-note { display: block; font-size: 0.8rem; color: var(--ink-soft); }

.results-note {
  text-align: center;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin-top: 34px;
}
.results-note p { color: var(--primary-dark); font-size: 0.95rem; }

/* ==================== 累積回報曲線圖表 ==================== */
.chart-block {
  background: #fff;
  border: 1px solid rgba(16, 35, 26, 0.06);
  border-radius: var(--radius);
  padding: 30px 26px 22px;
  box-shadow: var(--shadow);
  margin-top: 34px;
}
.chart-head { text-align: center; margin-bottom: 14px; }
.chart-title { font-size: 1.25rem; font-weight: 800; }
.chart-sub { color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }
.chart-svg-wrap { max-width: 780px; margin: 0 auto; }
.chart-svg-wrap svg { width: 100%; height: auto; display: block; }
.chart-note { text-align: center; color: #9aa8a0; font-size: 0.8rem; margin-top: 12px; }

/* ==================== 數據表格 ==================== */
.table-block { margin-top: 34px; }
.table-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
  min-width: 560px;
}
.data-table th {
  background: var(--bg-dark);
  color: #e8f3ec;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(16, 35, 26, 0.06);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(11, 122, 62, 0.035); }

/* F47 精華：每場分組標題行（做法 A，淨係放精選場次） */
.data-table tr.race-group td {
  background: rgba(11, 122, 62, 0.09);
  font-weight: 800;
  color: var(--primary);
  border-top: 2px solid rgba(11, 122, 62, 0.25);
  border-bottom: 1px solid rgba(11, 122, 62, 0.15);
  padding: 8px 16px;
  white-space: nowrap;
}
.data-table tr.race-group:hover { background: rgba(11, 122, 62, 0.09); }
.data-table tr.race-group .race-meta {
  color: #5d7a6a;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 10px;
  letter-spacing: 0.04em;
}
/* 場次分隔行：每場參考馬之間用顯眼底色分隔 */
.data-table tr.race-divider td {
  background: linear-gradient(135deg, rgba(11, 122, 62, 0.95), rgba(15, 80, 45, 0.95));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 18px;
  letter-spacing: 0.04em;
  text-align: left !important;
  border-top: 2px solid rgba(11, 122, 62, 0.35);
  border-bottom: 2px solid rgba(11, 122, 62, 0.35);
}
.data-table tr.race-divider .race-divider-label {
  display: inline-block;
  margin-right: 12px;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}
.data-table tr.race-divider .race-divider-meta {
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.06em;
}
.table-note { color: #9aa8a0; font-size: 0.8rem; margin-top: 10px; }
.table-empty { text-align: center; color: #9aa8a0; padding: 26px 16px !important; }
.data-empty {
  text-align: center;
  color: #9aa8a0;
  background: rgba(16, 35, 26, 0.02);
  border: 1px dashed rgba(16, 35, 26, 0.15);
  border-radius: var(--radius);
  padding: 28px 20px;
  font-size: 0.95rem;
  margin: 0;
  grid-column: 1 / -1;
}
.update-stamp { margin-top: 10px; font-size: 0.8rem; color: #9aa8a0; letter-spacing: 0.05em; }

/* 趨勢色（進步/退步） */
.trend-up { color: var(--primary); font-weight: 700; }
.trend-down { color: #c0392b; font-weight: 700; }
.trend-flat { color: #8aa292; font-weight: 700; }

/* 賠率價值（EV） */
.ev-pos { color: var(--primary); font-weight: 800; }
.ev-neg { color: #c0392b; font-weight: 800; }
.ev-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.ev-badge.ev-pos { background: rgba(11, 122, 62, 0.12); color: var(--primary); }
.ev-badge.ev-neg { background: rgba(192, 57, 43, 0.1); color: #c0392b; }

.race-meta { color: #9aa8a0; font-size: 0.78rem; font-weight: 500; }

/* ==================== 會員鎖定遮罩 ==================== */
.member-locked { position: relative; }
.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  text-align: center;
  padding: 40px 24px;
}
.lock-icon { font-size: 2.6rem; }
.lock-overlay h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 4px; }
.lock-overlay p { color: var(--ink-soft); font-size: 0.95rem; max-width: 420px; }
.lock-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.lock-actions .btn { padding: 12px 26px; font-size: 0.95rem; }

.btn-ghost-light { border-color: rgba(255, 255, 255, 0.5); color: var(--ink-soft); border-color: rgba(16, 35, 26, 0.25); }
.btn-ghost-light:hover { background: var(--bg-alt); }
.btn-ghost-dark { color: var(--primary); border-color: rgba(11, 122, 62, 0.35); }
.btn-ghost-dark:hover { background: var(--primary-light); }
.btn-block { width: 100%; justify-content: center; }

/* ==================== 會員專區 ==================== */
.member-area { position: relative; }
.member-content { display: block; }

.member-block {
  background: #fff;
  border: 1px solid rgba(16, 35, 26, 0.06);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.member-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid rgba(11, 122, 62, 0.12);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.member-block-title { font-size: 1.25rem; font-weight: 800; }
.member-block-meta { color: var(--ink-soft); font-size: 0.85rem; }
.member-sub-title { font-size: 1rem; font-weight: 800; margin: 20px 0 12px; }
.member-block .table-scroll { box-shadow: none; border: 1px solid rgba(16, 35, 26, 0.08); }
.member-block .table-note { text-align: left; }

/* 重心推介卡 */
.picks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pick-card {
  background: linear-gradient(160deg, rgba(11, 122, 62, 0.05), rgba(201, 162, 39, 0.06));
  border: 1px solid rgba(11, 122, 62, 0.18);
  border-radius: 16px;
  padding: 22px;
}
.pick-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pick-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pick-no {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-dark);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  border-radius: 10px;
  flex-shrink: 0;
}
.pick-horse { font-size: 1.3rem; font-weight: 800; }
.pick-props { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding: 0; }
.pick-props li {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 35, 26, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.82rem;
  display: flex;
  gap: 6px;
  align-items: center;
}
.pick-props span { color: var(--ink-soft); }
.pick-props b { font-weight: 800; }
.pick-note { color: var(--ink-soft); font-size: 0.85rem; line-height: 1.6; margin: 0; }

/* 會員專享影片 */
.member-video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.member-video-card {
  display: flex;
  gap: 16px;
  background: linear-gradient(160deg, rgba(11, 122, 62, 0.05), transparent);
  border: 1px solid rgba(16, 35, 26, 0.08);
  border-radius: 16px;
  padding: 18px;
  align-items: center;
}
.member-video-thumb {
  width: 74px; height: 74px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: var(--bg-dark);
  border-radius: 14px;
}
.member-video-info h4 { font-size: 1.02rem; font-weight: 800; margin: 0 0 6px; }
.member-video-info p { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 8px; }
.member-video-duration { color: #9aa8a0; font-size: 0.78rem; }
.member-video-player {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.member-video-file {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}
/* YouTube 嵌入播放器（會員專享影片） */
.member-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}
.member-video-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.member-video-wait {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #10241a;
  color: #9aa8a0;
}
.member-video-wait span { font-size: 2.4rem; }
.member-video-wait p { margin: 0; font-size: 0.9rem; }
.member-video-player .member-video-info { padding: 16px 18px; }

.member-gate {
  text-align: center;
  background: #fff;
  border: 2px dashed rgba(11, 122, 62, 0.3);
  border-radius: var(--radius);
  padding: 70px 30px;
}
.member-gate .lock-icon { font-size: 3rem; }
.member-gate h3 { font-size: 1.5rem; font-weight: 900; margin: 8px 0; }
.member-gate p { color: var(--ink-soft); margin-bottom: 10px; }
.member-gate-list {
  list-style: none;
  max-width: 480px;
  margin: 18px auto 0;
  text-align: left;
  display: grid;
  gap: 8px;
  padding: 0;
}
.member-gate-list li {
  background: rgba(11, 122, 62, 0.05);
  border: 1px solid rgba(11, 122, 62, 0.15);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ==================== WhatsApp 對話 ==================== */
.join-section { padding: 110px 0; background: var(--bg-alt); }
.join-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  background:
    radial-gradient(ellipse 500px 300px at 100% 0%, rgba(201, 162, 39, 0.12), transparent),
    linear-gradient(135deg, var(--bg-dark), #17321f);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.join-content { padding: 64px 56px; color: #eef5f0; }
.join-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.18);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}
.join-content h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}
.join-content > p { color: rgba(238, 245, 240, 0.75); margin-bottom: 24px; }

.join-perks { list-style: none; margin-bottom: 34px; }
.join-perks li {
  padding: 7px 0;
  color: rgba(238, 245, 240, 0.85);
  font-size: 0.98rem;
}

.join-hint { font-size: 0.8rem; color: rgba(238, 245, 240, 0.45); margin-top: 14px; }

.join-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.join-emoji { font-size: 7rem; filter: drop-shadow(0 16px 30px rgba(0,0,0,0.35)); }

/* ==================== Footer ==================== */
.footer {
  background: #0a1811;
  color: rgba(238, 245, 240, 0.65);
  padding: 56px 0 40px;
}
.footer-inner { text-align: center; }
.footer-brand {
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.footer-desc { font-size: 0.92rem; margin-bottom: 22px; letter-spacing: 0.15em; }
.footer-links { display: flex; justify-content: center; gap: 26px; margin-bottom: 26px; flex-wrap: wrap; }
.footer-links a { color: rgba(238, 245, 240, 0.7); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(238, 245, 240, 0.42);
  max-width: 640px;
  margin: 0 auto 18px;
  line-height: 1.8;
}
.footer-copy { font-size: 0.8rem; color: rgba(238, 245, 240, 0.35); }

/* ==================== 返回頂部 ==================== */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: 0.3s;
  box-shadow: 0 8px 24px rgba(11, 122, 62, 0.4);
  z-index: 900;
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--primary-dark); }

/* ==================== 登入視窗 ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 24, 17, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 42px 36px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: none;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: 1.3rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: #e8ece9; color: var(--ink); }

.modal-logo { margin-bottom: 16px; }
.modal-logo img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.modal h3 { font-size: 1.45rem; font-weight: 900; margin-bottom: 6px; }
.modal-sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 24px; }

.modal-input {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 18px;
  border: 1.5px solid rgba(16, 35, 26, 0.18);
  border-radius: 12px;
  margin-bottom: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg-alt);
  color: var(--ink);
}
.modal-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11, 122, 62, 0.12);
}

.modal-error {
  display: none;
  color: #c0392b;
  font-size: 0.85rem;
  margin: -6px 0 12px;
}
.modal-error.show { display: block; }

.modal-hint {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.modal-hint a { color: var(--primary); font-weight: 700; text-decoration: none; }
.modal-hint a:hover { text-decoration: underline; }

/* ==================== 動畫 ==================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==================== 響應式 ==================== */
@media (max-width: 900px) {
  .about-grid, .insight-grid, .video-grid, .results-highlight { grid-template-columns: 1fr 1fr; }
  .video-featured { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .join-card { grid-template-columns: 1fr; }
  .join-visual { padding: 40px; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .join-content { padding: 44px 30px; }
  .video-frame { min-height: 260px; }
  .video-featured-youtube { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(16,35,26,0.08);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-menu.open { max-height: 480px; }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu li a { display: block; padding: 15px; border-bottom: 1px solid rgba(16,35,26,0.04); }
  .nav-menu li .nav-login { display: block; width: max-content; margin: 14px auto; }
  .nav-toggle { display: flex; }
  .nav-cta { margin: 12px auto; width: max-content; display: block; }

  .hero { padding: 130px 0 80px; }
  .hero-stats { gap: 28px; }
  .about-grid, .insight-grid, .video-grid, .results-highlight { grid-template-columns: 1fr; }
  .picks-grid, .member-video-grid { grid-template-columns: 1fr; }
  .member-block { padding: 22px 16px; }
  .member-block-head { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .gallery-tall, .gallery-wide { grid-row: auto; grid-column: auto; }
  .gallery-wide { grid-column: 1 / -1; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .section { padding: 70px 0; }
}
