/* ============================================
   秉中數學 Landing Page
   Mobile-first, 藍白基調，乾淨、可信
   ============================================ */

:root {
  --color-bg: #ffffff;
  --color-ink: #0f172a;          /* 深藍黑，主文字 */
  --color-ink-soft: #334155;
  --color-muted: #64748b;
  --color-line: #e2e8f0;

  --color-brand: #1e3a8a;        /* 深藍，信任 */
  --color-brand-soft: #eff6ff;
  --color-brand-strong: #1e40af;

  --color-accent: #c2410c;       /* 暖橘，重點少量 */
  --color-line-green: #06c755;   /* LINE 官方綠 */
  --color-line-green-dark: #04a647;

  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 10px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px rgba(30, 58, 138, 0.18);

  --max-w: 720px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.05em;
}
.btn--line {
  background: var(--color-line-green);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--line:hover {
  background: var(--color-line-green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--hero {
  padding: 18px 36px;
  font-size: 18px;
  margin-top: 8px;
}
.btn--big {
  padding: 22px 44px;
  font-size: 20px;
  margin-top: 12px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  text-align: left;
}
.brand {
  font-weight: 900;
  font-size: 22px;
  color: var(--color-brand);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  border-left: 4px solid var(--color-brand);
  padding-left: 12px;
}
.hero__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--color-brand);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero__lead {
  font-size: 18px;
  color: var(--color-ink-soft);
  margin-bottom: 20px;
}
.hero__body {
  font-size: 17px;
  color: var(--color-ink-soft);
  margin-bottom: 28px;
}
.hero__hook {
  font-size: 19px;
  color: var(--color-ink);
  margin-bottom: 32px;
  padding: 20px 22px;
  background: #fff;
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.hero__hook strong {
  color: var(--color-accent);
  font-weight: 900;
}
.hero__sig {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 32px;
}

/* ============================================
   Section base
   ============================================ */
.section {
  padding: 64px 0;
}
.section--why {
  background: #fff;
}
.section--results {
  background: #f8fafc;
}
.section--plans {
  background: #fff;
}
.section__title {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-brand);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 16px;
}
.section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-brand);
  margin: 16px auto 0;
}
.section__title--light {
  color: #fff;
}
.section__title--light::after {
  background: #fff;
}
.section__sub {
  text-align: center;
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 32px;
  margin-top: -8px;
}

/* ============================================
   痛點對照段（廣域受眾首屏鉤）
   ============================================ */
.section--pain {
  background: #fff;
  padding: 56px 0;
}
.painlist {
  list-style: none;
  margin: 0 auto 32px;
  padding: 0;
  max-width: 480px;
}
.painlist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--color-brand-soft);
  border-radius: 10px;
  border-left: 3px solid var(--color-brand);
  font-size: 16px;
  color: var(--color-ink-soft);
  line-height: 1.6;
}
.painlist__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  margin-top: 1px;
}
.painlist__hook {
  text-align: center;
  font-size: 19px;
  color: var(--color-ink);
  margin-top: 24px;
  padding: 22px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius);
}
.painlist__hook strong {
  color: var(--color-accent);
  font-weight: 900;
  font-size: 21px;
}
@media (min-width: 768px) {
  .painlist li { font-size: 17px; padding: 16px 22px; }
  .painlist__hook { font-size: 22px; padding: 28px; }
  .painlist__hook strong { font-size: 26px; }
}

/* ============================================
   老師肖像
   ============================================ */
.teacher {
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.teacher__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.18);
  background: var(--color-brand-soft);
}
.teacher__caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.teacher__name {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-brand);
  letter-spacing: 0.05em;
}
.teacher__title {
  font-size: 14px;
  color: var(--color-muted);
}
@media (min-width: 768px) {
  .teacher__photo { width: 220px; height: 220px; }
  .teacher__name { font-size: 24px; }
  .teacher__title { font-size: 15px; }
}

/* ============================================
   為什麼是我
   ============================================ */
.prose p {
  margin-bottom: 22px;
  text-align: center;
  color: var(--color-ink-soft);
  font-size: 17px;
}
.prose__hl {
  color: var(--color-ink) !important;
  font-weight: 500;
  font-size: 18px !important;
  padding: 24px 16px;
  background: var(--color-brand-soft);
  border-radius: var(--radius);
}
.prose__sig {
  font-size: 20px !important;
  color: var(--color-brand) !important;
  margin-top: 32px !important;
}

/* ============================================
   學生成果 cards
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__school {
  font-size: 14px;
  color: var(--color-brand);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.card__name {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.card__metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
}
.card__metric-label {
  font-size: 13px;
  color: var(--color-muted);
}
.card__metric-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-accent);
}
.card__note {
  font-size: 14px;
  color: var(--color-ink-soft);
  margin-top: 10px;
}
.card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}
.card__placeholder-text {
  color: var(--color-muted);
  font-size: 14px;
}
.cards__footnote {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

/* ============================================
   退費保證
   ============================================ */
.section--guarantee {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  padding: 72px 0;
}
.guarantee {
  background: #fff;
  color: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 3px solid #fbbf24;
}
.guarantee__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  padding: 12px 22px;
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}
.guarantee p {
  margin-bottom: 20px;
  color: var(--color-ink-soft);
}
.guarantee__hl {
  font-size: 18px !important;
  color: var(--color-ink) !important;
  padding: 18px;
  background: #fef3c7;
  border-radius: var(--radius);
  font-weight: 500;
}
.guarantee__hl strong {
  color: var(--color-accent);
  font-weight: 900;
}
.guarantee__sig {
  font-size: 15px;
  color: var(--color-muted) !important;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

/* ============================================
   方案
   ============================================ */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}
.plan {
  background: #fff;
  border: 2px solid var(--color-brand);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.plan__name {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-brand);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.plan__cycle {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.plan__price {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-ink);
}

/* ============================================
   CTA section
   ============================================ */
.section--cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta__lead {
  color: #cbd5e1;
  margin-bottom: 24px;
  font-size: 17px;
}
.cta__qr {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cta__qr img {
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 200px;
}
.cta__qr-hint {
  color: #cbd5e1;
  font-size: 14px;
}

/* ============================================
   浮動 LINE 按鈕（手機）
   ============================================ */
.float-line {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--color-line-green);
  color: #fff;
  padding: 16px 20px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 17px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(6, 199, 85, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.05em;
}
.float-line__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-line-green);
  font-weight: 900;
  font-size: 16px;
}

/* 桌機隱藏浮動按鈕（已經有區段內的 CTA） */
@media (min-width: 768px) {
  .float-line {
    display: none;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 32px 0 100px;
  font-size: 13px;
  text-align: center;
}
.footer__refund {
  margin-bottom: 16px;
  line-height: 1.7;
  color: #cbd5e1;
}
.footer__legal {
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

/* ============================================
   桌機調整
   ============================================ */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .container { padding: 0 32px; }

  .hero { padding: 96px 0 96px; }
  .hero__title { font-size: 42px; }
  .hero__lead { font-size: 20px; }
  .hero__body { font-size: 18px; }
  .hero__hook { font-size: 22px; padding: 28px 32px; }

  .section { padding: 96px 0; }
  .section__title { font-size: 32px; }

  .cards { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; max-width: 600px; }

  .guarantee { padding: 56px 48px; }
  .guarantee__badge { font-size: 22px; padding: 14px 28px; }
  .guarantee__hl { font-size: 22px !important; padding: 28px; }

  .footer { padding: 48px 0; }
}

/* Larger screens */
@media (min-width: 1024px) {
  :root { --max-w: 820px; }
}
