/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --bg:           #f8f9fa;
  --surface:      #ffffff;
  --primary:      #334155;
  --primary-dark: #1e293b;
  --primary-light:#e2e8f0;
  --accent:       #ea580c;
  --accent-dark:  #c2410c;
  --accent-light: #ffedd5;
  --text:         #1e293b;
  --text-sub:     #475569;
  --border:       #cbd5e1;
  --shadow:       0 2px 12px rgba(51,65,85,0.10);
  --radius-card:  8px;
  --radius-activity: 12px;
  --radius-btn:   8px;
  --transition:   200ms ease;
  /* Activity match-state colors */
  --match-1:      #334155;
  --match-1-bg:   #f1f5f9;
  --match-2:      #ea580c;
  --match-2-bg:   #ffedd5;
  --match-3:      #b45309;
  --match-3-bg:   #fef3c7;
  /* Status pill colors */
  --status-applied-bg: #e2e8f0;
  --status-applied-fg: #334155;
  --status-interview-bg: #dcfce7;
  --status-interview-fg: #166534;
  --status-waiting-bg: #ffedd5;
  --status-waiting-fg: #c2410c;
}

/* ─── Slide Transition ──────────────────────────────────── */
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── Language Visibility ───────────────────────────────── */
body.zh .en { display: none !important; }
body:not(.zh) .zh { display: none !important; }

/* ─── Suppress focus ring on programmatic heading focus ─── */
h1:focus:not(:focus-visible),
h2:focus:not(:focus-visible) { outline: none; }

/* ─── Explicit focus-visible for interactive elements ───── */
.nav-btn:focus-visible,
.reveal-btn:focus-visible,
.lang-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
a:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Skip Link ─────────────────────────────────────────── */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-to-main:focus { left: 0; }

/* ─── Noscript ──────────────────────────────────────────── */
.noscript-msg {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); font-size: 1.25rem;
  padding: 2rem; text-align: center;
}

/* ─── Header ────────────────────────────────────────────── */
.slide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  min-height: 44px;
}
.section-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.9;
}
.slide-counter {
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ─── Header Right Group ────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── Language Toggle ───────────────────────────────────── */
.lang-toggle {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-btn);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1.4;
  flex-shrink: 0;
}
.lang-toggle:hover { background: rgba(255,255,255,0.28); }

/* ─── Slides Area ───────────────────────────────────────── */
.slides-area {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ─── Slide Base ────────────────────────────────────────── */
.slide {
  display: none;
  position: absolute;
  inset: 0;
  background: var(--bg);
  overflow-y: auto;
  padding: 32px 40px 24px;
}
.slide.active { display: flex; flex-direction: column; animation: slideFadeIn 220ms ease-out; }
.slide-centered { align-items: center; text-align: center; }
.slide-inner { width: 100%; max-width: 1100px; margin: 0 auto; }
.slide-centered .slide-inner { display: flex; flex-direction: column; align-items: center; }

/* ─── Title Slide ───────────────────────────────────────── */
.title-slide {
  background: radial-gradient(ellipse at 60% 40%, #475569 0%, var(--primary) 55%, var(--primary-dark) 100%);
  justify-content: center;
  color: #fff;
}
.title-slide .slide-inner { text-align: center; }
.csc-name {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.main-title {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.main-subtitle {
  font-size: 32px;
  font-weight: 400;
  opacity: 0.88;
  margin-bottom: 32px;
}
.date-line { font-size: 18px; opacity: 0.72; margin-bottom: 36px; }
.start-hint {
  display: inline-block;
  font-size: 16px;
  opacity: 0.68;
  background: rgba(255,255,255,0.15);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ─── Topic Badge ───────────────────────────────────────── */
.topic-badge svg { vertical-align: middle; }
.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Slide Headings ────────────────────────────────────── */
.zh-headline {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 6px;
}
.en-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-sub);
  margin-bottom: 24px;
  line-height: 1.4;
}

/* ─── Agenda Grid ───────────────────────────────────────── */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 8px;
}
.agenda-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin: 8px auto 0;
}
.agenda-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.agenda-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 8px;
}
.agenda-icon { display: block; margin: 0 auto 12px; color: var(--accent); }
.agenda-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.agenda-en { font-size: 16px; color: var(--text-sub); }

/* ─── "Do You Need It?" Grid (Slide 3) ──────────────────── */
.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
.need-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-top: 5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.need-yes   { border-top-color: #16a34a; }
.need-no    { border-top-color: #b91c1c; }
.need-maybe { border-top-color: var(--accent); }
.need-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.need-yes  .need-icon { background: #dcfce7; color: #16a34a; }
.need-no   .need-icon { background: #fee2e2; color: #b91c1c; }
.need-maybe .need-icon { background: var(--accent-light); color: var(--accent-dark); }
.need-label-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.need-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.need-list li {
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}
.need-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}
.need-list .zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 500;
}

/* ─── 3-Paragraph Formula (Slide 4) ─────────────────────── */
.formula-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.formula-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}
.formula-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.formula-content { flex: 1; }
.formula-title-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}
.formula-title-en {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.formula-example {
  background: var(--primary-light);
  border-radius: 6px;
  padding: 8px 12px;
  font-style: italic;
  color: var(--text);
}
.formula-example .zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 500;
}
.formula-example .en { font-size: 15px; }

/* ─── Activity Slide ────────────────────────────────────── */
.activity-slide { background: var(--accent-light); }
.activity-slide .topic-badge {
  background: #fff;
  color: var(--accent-dark);
}
.activity-slide .zh-headline,
.activity-slide .en-subtitle {
  color: var(--primary-dark);
}

/* ─── Fill-in-Blanks Letter (Slide 5) ───────────────────── */
.letter-card {
  background: #fffdf8;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-activity);
  padding: 22px 28px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 820px;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 16px;
}
.letter-line {
  font-weight: 600;
  margin-bottom: 12px;
}
.letter-line .zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
}
.letter-line .en { font-size: 17px; }
.letter-para {
  margin-bottom: 12px;
  color: var(--text);
}
.letter-para .zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
}
.letter-para .en { font-size: 17px; line-height: 1.55; }
.letter-sign {
  margin-top: 14px;
  font-weight: 600;
  color: var(--text-sub);
}
.letter-sign .zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
}
.letter-sign .en { font-size: 15px; }

.blank {
  display: inline-block;
  position: relative;
}
.blank-placeholder {
  background: var(--accent-light);
  border-bottom: 2px solid var(--accent);
  padding: 0 8px;
  color: var(--accent-dark);
  font-weight: 700;
}
.blank-answer {
  display: none;
  background: #fff;
  border-bottom: 2px solid #16a34a;
  padding: 0 8px;
  color: #166534;
  font-weight: 700;
  animation: blankFlash 600ms ease-out;
}
.blank.revealed .blank-placeholder { display: none; }
.blank.revealed .blank-answer { display: inline-block; }
@keyframes blankFlash {
  0%   { background: #dcfce7; transform: scale(0.96); }
  100% { background: #fff;     transform: scale(1); }
}

/* ─── Reveal Button ─────────────────────────────────────── */
.reveal-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  margin-top: 12px;
}
.reveal-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.reveal-btn:disabled { background: var(--border); color: var(--text-sub); cursor: not-allowed; transform: none; }

/* ─── Mistake List (Slide 6) ────────────────────────────── */
.mistake-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.mistake-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 5px solid #b91c1c;
  border-radius: var(--radius-card);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow);
}
.mistake-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mistake-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}
.mistake-en {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.4;
}

/* ─── Timeline (Slide 7) ────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.timeline-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.timeline-day {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  flex-shrink: 0;
  text-align: center;
  min-width: 72px;
}
.timeline-text-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-text-en {
  font-size: 16px;
  color: var(--text-sub);
}
.followup-note {
  margin-top: 14px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 12px 18px;
  width: 100%;
}
.followup-note-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.followup-note-en { font-size: 15px; color: var(--text-sub); }

/* ─── Quiz (Slide 8) ────────────────────────────────────── */
.quiz-question {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-activity);
  padding: 20px 24px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 760px;
  box-shadow: var(--shadow);
}
.quiz-q-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.quiz-q-en {
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.4;
}
.vote-prompt {
  font-size: 18px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 12px;
}
.answer-block {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-activity);
  padding: 16px 22px;
  width: 100%;
  max-width: 760px;
  margin-bottom: 12px;
  display: none;
}
.verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}
.verdict-false { background: #fdecea; color: #c62828; border: 2px solid #ef9a9a; }
.verdict-true  { background: #e8f5e9; color: #2e7d32; border: 2px solid #a5d6a7; }
.answer-explanation-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.answer-explanation-en {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.5;
}
.q2-block { display: none; width: 100%; max-width: 760px; }

/* ─── Phone Script (Slide 9) ────────────────────────────── */
.script-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-activity);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.script-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.script-line:last-child { border-bottom: none; padding-bottom: 0; }
.script-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.script-content { flex: 1; }
.script-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
}
.script-zh .en { font-style: italic; color: var(--primary-dark); font-family: inherit; }
.script-en {
  font-size: 15px;
  color: var(--text-sub);
  font-style: italic;
  line-height: 1.4;
}
.script-blank {
  background: var(--accent-light);
  border-bottom: 2px solid var(--accent);
  padding: 0 6px;
  color: var(--accent-dark);
  font-weight: 700;
  font-style: normal;
}
.script-tip {
  margin-top: 12px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 10px 16px;
  width: 100%;
}
.script-tip-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ─── Tracker (Slide 10) ────────────────────────────────── */
.tracker-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
}
.tracker-table th {
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.tracker-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tracker-table .zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 600;
}
.tracker-table tr:last-child td { border-bottom: none; }
.tracker-table tr:nth-child(even) td { background: #f8fafc; }
.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.status-pill .zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.status-applied   { background: var(--status-applied-bg);   color: var(--status-applied-fg); }
.status-interview { background: var(--status-interview-bg); color: var(--status-interview-fg); }
.status-waiting   { background: var(--status-waiting-bg);   color: var(--status-waiting-fg); }
.tracker-tips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tracker-tip {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  padding: 8px 14px;
  font-size: 15px;
  color: var(--text);
}
.tracker-tip .zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 600;
}

/* ─── Service Cards (Slide 11) ──────────────────────────── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 16px;
}
.service-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}
.service-icon { display: flex; justify-content: center; margin-bottom: 8px; color: var(--primary); }
.service-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.service-en { font-size: 14px; color: var(--text-sub); }
.csc-cta {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 14px 24px;
  text-align: center;
  width: 100%;
}
.cta-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cta-en { font-size: 16px; opacity: 0.88; }
.cta-address { font-size: 15px; opacity: 0.8; margin-top: 6px; }

/* ─── Resource Cards (Slide 12) ─────────────────────────── */
.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
}
.resource-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}
.resource-org {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.resource-phone {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.resource-desc { font-size: 13px; color: var(--text-sub); }

/* ─── QR Row ─────────────────────────────────────────────── */
.qr-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
  width: 100%;
  max-width: 600px;
}
.qr-row #qr-container canvas,
.qr-row #qr-container img { border-radius: 8px; border: 3px solid var(--primary); }

.qr-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.qr-en { font-size: 15px; color: var(--text-sub); margin-bottom: 4px; }
.qr-url { font-size: 14px; color: var(--accent-dark); font-weight: 600; word-break: break-all; }
.qr-url a { color: inherit; text-decoration: underline; cursor: pointer; pointer-events: auto; }
.qr-url a:hover { opacity: 0.8; }
.closing-msg {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-top: 16px;
}
.closing-msg .en-part { font-family: sans-serif; font-size: 15px; font-weight: 400; display: block; color: var(--text-sub); margin-top: 4px; }

/* ─── Footer / Navigation ───────────────────────────────── */
.slide-footer {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.progress-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition), transform var(--transition);
}
.dot.done { background: var(--primary-light); }
.dot.active { background: var(--primary); transform: scale(1.3); }
.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  width: 44px; height: 44px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-btn:hover:not(:disabled) { background: var(--primary-dark); }
.nav-btn:disabled { background: var(--border); cursor: not-allowed; }
.nav-btn--home { width: 36px; height: 36px; background: var(--border); color: var(--text-sub); font-size: 16px; }
.nav-btn--home:hover:not(:disabled) { background: var(--primary); color: #fff; }
.key-hint { font-size: 13px; color: var(--text-sub); text-align: center; }

/* ─── Print Styles ──────────────────────────────────────── */
@media print {
  .slide-header, .slide-footer, .lang-toggle, .skip-to-main { display: none !important; }
  body { overflow: visible; height: auto; }
  .slides-area { overflow: visible; position: static; }
  .slide { display: block !important; position: static !important; page-break-after: always; }
}

/* ─── Resources Page ────────────────────────────────────── */
.resources-body {
  overflow: visible;
  height: auto;
  min-height: 100vh;
}
.resources-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.resources-header {
  background: var(--primary);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.resources-title-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}
.resources-title-en { font-size: 16px; opacity: 0.85; margin-top: 4px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
  border-radius: var(--radius-btn);
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-ghost:focus-visible, .btn-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.qr-top-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
#qr-top canvas, #qr-top img { border-radius: 6px; border: 2px solid var(--primary); }
.qr-top-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.qr-top-en { font-size: 14px; color: var(--text-sub); margin-bottom: 6px; }
.qr-top-url { font-size: 13px; color: var(--accent-dark); font-weight: 600; }

.resource-section { margin-bottom: 36px; }
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.section-num {
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-title-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
}
.section-title-en { font-size: 14px; color: var(--text-sub); }

.res-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.res-table th {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
}
.res-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.res-table tr:last-child td { border-bottom: none; }
.res-table tr:nth-child(even) td { background: #f8fafc; }
.zh-cell {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.en-cell { font-size: 16px; color: var(--text-sub); }
.tip-cell { font-size: 15px; color: var(--accent-dark); }

.org-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.org-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.org-name-zh {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}
.org-name-en { font-size: 14px; color: var(--text-sub); margin-bottom: 8px; }
.org-phone { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.org-detail { font-size: 14px; color: var(--text-sub); line-height: 1.5; }
.org-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 6px;
}

/* ─── Resources page: cover letter template block ──────── */
.letter-template {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: var(--shadow);
  white-space: pre-wrap;
  font-family: "Courier New", Courier, monospace;
  color: var(--text);
}

/* ─── Mobile Responsive (≤768px) ───────────────────────── */
@media (max-width: 768px) {
  .slide { padding: 20px 16px 16px; }
  .slide-inner { max-width: 100%; }

  .main-title    { font-size: 40px; }
  .main-subtitle { font-size: 22px; }
  .csc-name      { font-size: 15px; }
  .date-line     { font-size: 15px; }
  .start-hint    { font-size: 14px; }

  .zh-headline { font-size: 32px; }
  .en-subtitle { font-size: 17px; margin-bottom: 16px; }

  .agenda-grid, .agenda-grid--2 { grid-template-columns: 1fr; gap: 12px; max-width: 100%; }
  .agenda-card { padding: 18px 16px; }
  .agenda-zh   { font-size: 22px; }

  .need-grid { grid-template-columns: 1fr; gap: 12px; }
  .need-label-zh { font-size: 20px; }

  .formula-card { padding: 12px 14px; gap: 10px; }
  .formula-title-zh { font-size: 20px; }
  .formula-example .zh { font-size: 16px; }

  .letter-card { padding: 16px 18px; }
  .letter-para .zh { font-size: 18px; }
  .letter-para .en { font-size: 15px; }

  .mistake-zh { font-size: 20px; }
  .mistake-en { font-size: 14px; }

  .timeline-text-zh { font-size: 20px; }

  .quiz-q-zh { font-size: 22px; }
  .answer-explanation-zh { font-size: 20px; }

  .script-zh { font-size: 18px; }
  .script-en { font-size: 13px; }

  .tracker-table { font-size: 14px; }
  .tracker-table .zh { font-size: 14px; }
  .tracker-table th, .tracker-table td { padding: 8px 10px; }

  .service-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .resource-cards { grid-template-columns: 1fr 1fr; }

  .org-cards { grid-template-columns: 1fr; }
  .res-table { font-size: 14px; }
  .zh-cell { font-size: 16px; }
}

/* ─── Reduced Motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .slide.active { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
