/* 韋哥科技教室 — 品牌樣式
   主色：深藍；重點：橘、黃；風格：科技感但親切 */

:root {
  --navy: #123f8f;
  --navy-dark: #0c2d68;
  --blue: #1565c0;
  --blue-light: #eaf3ff;
  --orange: #ff7a3d;
  --orange-dark: #e85d1f;
  --yellow: #ffd43b;
  --ink: #1f2937;
  --gray: #6b7280;
  --card-border: rgba(18, 63, 143, 0.10);
  --radius: 22px;
  --shadow: 0 14px 40px rgba(18, 63, 143, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: #f6faff;
  line-height: 1.7;
}

a { color: var(--blue); text-decoration: none; }
a:hover { opacity: 0.85; }

img { max-width: 100%; display: block; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ===== 導覽列 ===== */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand .dot { color: var(--yellow); }
/* 粉專連結前的臉書圖示（韋哥 2026-10-28：取代橘點，「前往」放在圖示前） */
.nav-brand .nav-fb { width: 1.35em; height: 1.35em; flex-shrink: 0; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: #dbe7ff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  opacity: 1;
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, #d6e8ff 0%, #e7f2ff 55%, #f6faff 100%);
  color: var(--ink);
  padding: 22px 0 22px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1.4; }
.hero-tags {
  display: inline-block;
  background: #fff3e6;
  border: 1px solid var(--orange);
  color: var(--orange-dark);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: var(--navy);
}
.hero .subtitle { font-size: 1.2rem; color: var(--gray); margin-bottom: 0; }
.hero .slogan {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--ink);
}
.hero .slogan strong { color: var(--orange-dark); }
.hero-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-sub-row .sub-divider { color: #b8d0ef; font-size: 1.1rem; }
.hero-sub-row .slogan-tag { font-size: 1.35rem; font-weight: 900; color: var(--orange-dark); }
.hero .slogan-desc { font-size: 1.1rem; color: var(--ink); margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(232, 93, 31, 0.4); }
.btn-outline { border: 2px solid var(--navy); color: var(--navy); }
.hero-figure { flex: 1; text-align: center; }
.hero-figure img {
  max-height: 380px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(18, 63, 143, 0.20));
}

/* ===== 數字帶 ===== */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--card-border);
  padding: 26px 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  text-align: center;
}
.stat .num { font-size: 1.5rem; font-weight: 900; color: var(--navy); white-space: nowrap; }
.stat .num span { color: var(--orange); }
.stat .label { font-size: 0.84rem; color: var(--gray); overflow-wrap: break-word; }

/* ===== 區塊通用 ===== */
.section { padding: 56px 0; }
.section-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-sub { text-align: center; color: var(--gray); margin-bottom: 36px; }
.section-title .bar {
  display: block;
  width: 48px; height: 5px;
  background: var(--orange);
  border-radius: 3px;
  margin: 10px auto 0;
}

/* ===== 入口卡 ===== */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.entry-card {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  color: var(--ink);
  display: block;
}
.entry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 26px rgba(18, 63, 143, 0.18);
  opacity: 1;
}
.entry-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.icon-orange { background: #fff1e8; }
.icon-blue { background: var(--blue-light); }
.icon-yellow { background: #fff8dc; }
.entry-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.entry-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 14px; }
.entry-card .more { color: var(--orange-dark); font-weight: 700; font-size: 0.95rem; }

/* ===== 文章卡 ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.article-card {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s;
}
.article-card:hover { transform: translateY(-4px); opacity: 1; }
.article-card .tag {
  align-self: flex-start;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 12px;
}
.article-card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 8px; line-height: 1.5; }
.article-card p { color: var(--gray); font-size: 0.9rem; flex: 1; }
.article-card .more { color: var(--orange-dark); font-weight: 700; font-size: 0.9rem; margin-top: 14px; }
.article-card .article-meta { flex: none; font-size: 0.82rem; color: var(--navy); font-weight: 500; margin-bottom: 8px; }
.article-card .article-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.article-card .tag-orange { background: #fff1e8; color: var(--orange-dark); }
.article-card .tag-green  { background: #e8f5e9; color: #2e7d32; }
.article-card .tag-soon {
  display: inline-block;
  margin-top: 14px;
  background: #f3f4f6;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
}
.article-card.upcoming { opacity: 0.72; }
.articles-note {
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 36px;
  color: var(--gray);
  font-size: 0.95rem;
}
.articles-note strong { color: var(--navy); }
.articles-note a { color: var(--orange-dark); font-weight: 700; }

/* ===== 聯絡區 ===== */
.contact {
  background: linear-gradient(160deg, #d6e8ff 0%, #ecf5ff 100%);
  border: 1.5px solid var(--card-border);
  color: var(--ink);
  border-radius: 24px;
  padding: 44px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.contact-figure img { max-height: 180px; }
.contact-text h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 8px; color: var(--navy); }
.contact-text p { color: var(--gray); margin-bottom: 20px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-yellow { background: var(--yellow); color: var(--navy-dark); }
.btn-white { background: #fff; color: var(--navy); border: 1.5px solid var(--card-border); }

/* ===== 頁尾 ===== */
.footer {
  background: var(--navy-dark);
  color: #aac4ee;
  padding: 36px 0 28px;
  margin-top: 56px;
  font-size: 0.9rem;
}
.footer-inner { text-align: center; }
.footer .social { display: flex; justify-content: center; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.footer .social a { color: #dbe7ff; font-weight: 600; }
.footer .slogan-line { color: #8fb0e8; margin-bottom: 6px; }
.footer .copy { font-size: 0.8rem; color: #6f8cc0; }

/* ===== 內頁通用 ===== */
.page-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}
.page-header h1 { font-size: 1.9rem; font-weight: 900; }
.page-header p { color: #cfe2ff; margin-top: 6px; }
.wip {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray);
}
.wip .emoji { font-size: 3rem; margin-bottom: 12px; }

/* ===== 頁頭帶圖 ===== */
.page-header-banner {
  background:
    linear-gradient(rgba(10,34,82,0.52), rgba(18,63,143,0.58)),
    url('../assets/fb-banner.jpg') center / cover no-repeat;
  padding: 60px 0;
}

/* ===== 認證徽章圖 ===== */
.cred-badge-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ===== 關於我 ===== */
.about-intro {
  display: flex;
  align-items: center;
  gap: 36px;
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 34px;
  margin: 44px 0 40px;
}
.about-intro .figure { flex-shrink: 0; }
.about-intro .figure img {
  height: 220px;
  filter: drop-shadow(0 8px 18px rgba(18, 63, 143, 0.18));
}
.about-intro .who h2 { font-size: 1.7rem; color: var(--navy); margin-bottom: 4px; }
.about-intro .who .role { color: var(--orange-dark); font-weight: 700; margin-bottom: 14px; }
.about-intro .who .facts { list-style: none; }
.about-intro .who .facts li {
  padding: 5px 0 5px 26px;
  position: relative;
  color: var(--ink);
  font-size: 0.98rem;
}
.about-intro .who .facts li::before {
  content: "▍";
  position: absolute; left: 0;
  color: var(--orange);
}

.story { max-width: 760px; margin: 0 auto; }
.story p { font-size: 1.08rem; line-height: 2; margin-bottom: 18px; color: #2a3441; }
.story .pull {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  padding: 22px;
  margin: 28px 0;
  border-top: 2px solid var(--card-border);
  border-bottom: 2px solid var(--card-border);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 500;
  color: var(--ink);
}
.cred-item .check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
}

.award-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.award-item {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  padding: 18px 22px;
}
.award-item .yr { color: var(--orange-dark); font-weight: 700; font-size: 0.85rem; }
.award-item h4 { color: var(--navy); font-size: 1.05rem; margin: 2px 0 4px; }
.award-item p { color: var(--gray); font-size: 0.92rem; }

.topic-tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 820px; margin: 0 auto; justify-content: center; }
.topic-tags .tg {
  background: var(--blue-light);
  color: var(--navy);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
}

.about-cta { text-align: center; margin-top: 8px; }
.about-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.about-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ===== 講座邀約 ===== */
.topic-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.topic-cat {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.topic-cat .cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-light);
}
.topic-cat .cat-no {
  flex-shrink: 0;
  width: 34px; height: 34px;
  background: var(--navy);
  color: #fff;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}
.topic-cat .cat-head h3 { color: var(--navy); font-size: 1.12rem; }
.topic-cat ul { list-style: none; }
.topic-cat ul li {
  position: relative;
  padding: 7px 0 7px 22px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.5;
}
.topic-cat ul li::before {
  content: "▸";
  position: absolute; left: 2px;
  color: var(--orange);
  font-weight: 900;
}

.speak-note {
  background: #fff3e6;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin: 28px 0 0;
  text-align: center;
  color: var(--navy-dark);
  font-weight: 500;
}
.speak-note strong { color: var(--orange-dark); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.info-card {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.info-card .ic { font-size: 2rem; margin-bottom: 10px; }
.info-card h4 { color: var(--navy); margin-bottom: 8px; font-size: 1.08rem; }
.info-card p { color: var(--gray); font-size: 0.92rem; line-height: 1.7; }

.exp-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.exp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 20px;
  color: var(--ink);
}
.exp-item .dot2 { color: var(--orange); font-weight: 900; flex-shrink: 0; }

/* ===== 邀約表單 ===== */
.invite-form {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  max-width: 760px;
  margin: 40px auto 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.form-field .req { color: var(--orange-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfdff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}
.radio-row { display: flex; gap: 18px; padding-top: 8px; }
.radio { font-weight: 500 !important; color: var(--ink) !important; display: flex; align-items: center; gap: 6px; }
.form-field .radio { display: inline-flex; margin-bottom: 0; cursor: pointer; }
.form-field .radio input { width: auto; margin: 0; padding: 0; }
.form-submit { border: none; cursor: pointer; width: 100%; font-size: 1.05rem; padding: 14px; margin-top: 6px; font-family: inherit; }
.form-hint { text-align: center; color: var(--gray); font-size: 0.85rem; margin-top: 16px; }

/* ===== 教學作品 ===== */
.works-intro {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 34px;
  margin: 44px 0 40px;
  flex-wrap: wrap;
}
.works-intro-text { flex: 1; min-width: 240px; }
.works-intro-text p { color: var(--ink); font-size: 1rem; line-height: 1.9; margin-bottom: 10px; }
.works-intro-text p:last-child { margin-bottom: 0; color: var(--gray); }
.works-intro-text strong { color: var(--navy); }
.works-stats { display: flex; gap: 24px; flex-shrink: 0; }
.ws { text-align: center; }
.wsn { display: block; font-size: 2rem; font-weight: 900; color: var(--navy); }
.wsl { display: block; font-size: 0.84rem; color: var(--gray); margin-top: 2px; }

.works-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid var(--card-border);
  background: #fff;
  color: var(--gray);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
/* 教學作品頁的篩選鈕在桌機排成一列（韋哥 2026-10-28）；其他頁按鈕字比較長，放大頁面會被切掉，維持自動換行 */
@media (min-width: 1100px) {
  #works-filter { flex-wrap: nowrap; gap: 8px; }
  #works-filter .filter-btn { padding: 8px 15px; white-space: nowrap; }
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(18, 63, 143, 0.15);
}
.work-card.hidden { display: none; }
.work-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.work-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.work-cat {
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 11px;
}
.cat-teacher { background: var(--blue-light); color: var(--navy); }
.cat-student { background: #fff1e8; color: var(--orange-dark); }
.cat-course { background: #e8f5e9; color: #2e7d32; }
.cat-general { background: #f3e5f5; color: #7b1fa2; }
.cat-showcase { background: #fff3e0; color: #e65100; }
.work-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; line-height: 1.5; }
.work-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.7; flex: 1; }
.work-card-footer {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-try {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.15s;
}
.btn-try:hover { background: var(--blue); opacity: 1; color: #fff; }
.btn-try-alt {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}
.btn-try-alt:hover { background: var(--orange-dark); opacity: 1; color: #fff; }
.work-badge {
  display: inline-block;
  background: #eef1f5;
  color: var(--gray);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}
.work-badge-class { background: var(--blue-light); color: var(--navy); }

/* 作品卡截圖封面 */
.work-shot {
  position: relative;
  display: block;
  width: calc(100% + 44px);
  margin: -22px -22px 14px;
  aspect-ratio: 16 / 10;
  background: var(--blue-light);
  border: none;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: zoom-in;
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .25s; }
.work-shot:hover img { transform: scale(1.03); }
.work-shot-count {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px;
}
.work-shot-empty { cursor: default; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.work-shot-empty:hover img { transform: none; }

/* 截圖檢視視窗 */
.shot-box { width: min(1100px, 100%); }
.shot-stage { position: relative; display: flex; align-items: center; justify-content: center; background: #000; border-radius: 12px; overflow: hidden; }
.shot-stage img { max-width: 100%; max-height: 78vh; display: block; }
.shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.2); color: #fff; font-size: 1.8rem; cursor: pointer;
}
.shot-nav:hover { background: rgba(255,255,255,.4); }
#shot-prev { left: 10px; }
#shot-next { right: 10px; }
.local-badge {
  display: inline-block;
  background: #f3f4f6;
  color: var(--gray);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== RWD ===== */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero-cta { justify-content: center; }
  .hero-figure img { max-height: 220px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner .stat:last-child { grid-column: 1 / -1; }
  .entry-grid, .article-grid { grid-template-columns: 1fr; }
  .contact { flex-direction: column; text-align: center; }
  .contact-actions { justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .works-intro { flex-direction: column; }
  .works-stats { justify-content: center; }
  .topic-cat-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-filter { gap: 8px; }
  .filter-btn { font-size: 0.85rem; padding: 7px 14px; }
}

/* ===== 講座足跡頁 ===== */
.cases-lead {
  font-size: 1.08rem;
  background: #fff;
  border: 1px solid var(--card-border);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.cases-lead strong { color: var(--navy); font-size: 1.25em; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.cases-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.cases-table th {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 12px 14px;
  font-weight: 700;
  white-space: nowrap;
}
.cases-table td { padding: 10px 14px; border-bottom: 1px solid #e8f0fb; vertical-align: top; }
.cases-table tbody tr:last-child td { border-bottom: none; }
.cases-table tbody tr:nth-child(even) { background: var(--blue-light); }
.cases-table .c-date { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gray); }
.cases-table .c-org { font-weight: 700; color: var(--navy); font-size: .92rem; }
.cases-table .c-org span { display: block; white-space: nowrap; }  /* 單位每段一行，段內不斷行 */
.cases-table .c-topic { font-size: 1.05rem; font-weight: 500; color: var(--ink); line-height: 1.7; }
.badge-soon {
  display: inline-block;
  margin-left: 8px;
  background: #fff3e6;
  color: var(--orange-dark);
  border: 1px solid var(--orange);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 8px;
  line-height: 1.6;
}
.c-note {
  display: block;
  color: var(--orange-dark);
  font-size: 0.85rem;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .cases-table { font-size: 0.88rem; }
  .cases-table .c-topic { font-size: .98rem; }
}

/* 數字帶：雙認證那格放完整證照全名，字級收小並收緊行距 */
.stat .label-cert { font-size: 0.75rem; line-height: 1.5; }
@media (max-width: 768px) {
  .stat .label-cert { font-size: 0.8rem; }
}

/* ===== 影片系列頁 ===== */
.videos-lead { font-size: 1.05rem; margin-bottom: 14px; }
.videos-lead strong { color: var(--navy); }
.video-series { margin-bottom: 36px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 0 14px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 8px 28px rgba(18,63,143,.15); }
.video-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--blue-light); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(18,63,143,.82); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; padding-left: 4px;
  opacity: .9; transition: background .15s, transform .15s;
}
.video-card:hover .video-play { background: var(--orange); transform: scale(1.08); }
.video-dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: .78rem; font-weight: 700;
  padding: 1px 7px; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.video-title { padding: 0 14px; font-weight: 700; color: var(--navy); line-height: 1.5; font-size: .95rem; }
.video-date { padding: 0 14px; margin-top: -4px; font-size: .8rem; color: var(--gray); font-variant-numeric: tabular-nums; }

/* 彈出視窗（教學作品頁的截圖檢視在用；影片 2026-10-28 起改連 YouTube，不在站內播） */
.vmodal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,20,40,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.vmodal[hidden] { display: none; }
.vmodal-box { position: relative; width: min(960px, 100%); }
.vmodal-info { color: #fff; margin-top: 12px; }
.vmodal-info h3 { font-size: 1.05rem; margin: 2px 0 6px; }
.vmodal-info a { color: #cfe2ff; font-size: .9rem; font-weight: 700; }
.vmodal-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: rgba(255,255,255,.8);
  font-size: 2.2rem; line-height: 1; cursor: pointer;
}
.vmodal-close:hover { color: #fff; }

@media (max-width: 820px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .video-grid { grid-template-columns: 1fr; } }

/* ===== 晨光教室主題（2026-10-28 韋哥選定：晨光教室配色＋品牌標語，全站共用） ===== */
body {
  background: linear-gradient(180deg, #eaf4ff 0%, #fff8ec 38%, #ffffff 70%, #f2f8ff 100%);
  min-height: 100vh;
}
body::before, body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}
body::before { width: 420px; height: 420px; background: #ffe3a3; top: -120px; right: -100px; }
body::after { width: 380px; height: 380px; background: #cfe5ff; bottom: -120px; left: -120px; }

/* 導覽列：白色毛玻璃 */
.nav {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(18, 63, 143, .08);
}
.nav-brand { color: var(--navy); }
.nav-brand .dot { color: var(--orange); }
.nav-links a { color: #4b5a70; }
.nav-links a:hover, .nav-links a.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(18, 63, 143, .10);
}
.nav-toggle { color: var(--navy); }

/* 內頁頁頭：不再用深藍色塊，改成大字標題浮在晨光底上 */
.page-header {
  background: transparent;
  color: var(--navy);
  padding: 60px 0 18px;
}
.page-header h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: .02em; }
.page-header p { color: var(--gray); font-size: 1.05rem; }

/* 卡片：半透明白、圓角大、陰影柔 */
.entry-card, .article-card, .work-card, .video-card, .info-card, .topic-cat,
.award-item, .cred-item, .exp-item, .table-wrap, .cases-lead, .invite-form,
.works-intro, .articles-note, .about-intro {
  background: rgba(255, 255, 255, .82);
  border-color: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
}
.cred-item, .exp-item, .award-item { border-radius: 16px; }
.award-item { border-left-color: var(--orange); }
.cases-lead { border-left-color: var(--orange); }
.cases-table tbody tr:nth-child(even) { background: rgba(234, 243, 255, .6); }

/* 聯絡區：白卡 */
.contact {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
}
.contact-figure img { filter: drop-shadow(0 12px 20px rgba(18, 63, 143, .18)); }
.speak-note { background: rgba(255, 243, 230, .9); }

/* 按鈕 */
.btn { border-radius: 16px; }
.btn-primary { background: var(--navy); box-shadow: 0 8px 22px rgba(18, 63, 143, .25); }
.btn-white { border-color: rgba(18, 63, 143, .15); }
.filter-btn { background: rgba(255, 255, 255, .85); }

/* 頁尾：淺色 */
.footer {
  background: rgba(255, 255, 255, .7);
  color: var(--gray);
  border-top: 1px solid rgba(18, 63, 143, .08);
}
.footer .social a { color: var(--navy); }
.footer .slogan-line { color: #4b5a70; }
.footer .copy { color: #8a94a6; }

@media (max-width: 820px) {
  .nav-links {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 24px rgba(18, 63, 143, .12);
  }
}

/* ===== 首頁（2026-10-28 改版） ===== */
.hl {
  background: linear-gradient(90deg, var(--navy), #3f7be0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-hero {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 40px;
  padding: 64px 0 56px;
}
.home-brand { font-size: .95rem; font-weight: 700; letter-spacing: .2em; color: var(--orange); margin-bottom: 14px; }
.home-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.3;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: .02em;
}
.home-hello { font-size: 1.15rem; font-weight: 700; margin: 26px 0 8px; color: var(--navy-dark); }
.home-hello-sub { color: var(--gray); font-size: 1.05rem; max-width: 34em; }
.home-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.home-ip img {
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  filter: drop-shadow(0 22px 36px rgba(18, 63, 143, .22));
  animation: home-float 6s ease-in-out infinite;
}
@keyframes home-float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .home-ip img { animation: none; } }

.home-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: rgba(255, 255, 255, .7);
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: 0 10px 30px rgba(18, 63, 143, .08);
}
.home-num b { display: block; font-size: 2.1rem; font-weight: 900; line-height: 1.2; color: var(--navy); }
.home-num span { font-size: .88rem; color: var(--gray); }
.home-certs {
  text-align: center;
  font-size: .92rem;
  font-weight: 700;
  color: var(--navy);
  margin: 18px 0 0;
}
.home-certs span { color: var(--orange); margin: 0 8px; }

.home-step { padding: 84px 0 20px; }
.home-step-head {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 36px;
}
.home-step-head img { width: 150px; filter: drop-shadow(0 12px 20px rgba(18, 63, 143, .18)); }
.home-kicker {
  display: inline-block;
  background: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(18, 63, 143, .08);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--navy);
}
.home-step h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  font-weight: 900;
  color: var(--navy-dark);
  margin: 8px 0 10px;
}
.home-lead { color: var(--gray); max-width: 40em; }
.home-quote {
  font-size: 1.08rem;
  font-weight: 500;
  border-left: 4px solid var(--yellow);
  padding: 4px 0 4px 18px;
  margin: 14px 0 10px;
  color: var(--navy-dark);
}
.home-quote small { display: block; font-size: .8rem; color: var(--gray); margin-top: 4px; }

.home-card {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 14px 40px rgba(18, 63, 143, .10);
  border: 1px solid rgba(255, 255, 255, .95);
  color: var(--ink);
  transition: transform .3s, box-shadow .3s;
}
.home-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(18, 63, 143, .16); opacity: 1; }

.home-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-shots img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.home-shots p { padding: 12px 16px 16px; font-weight: 700; font-size: .95rem; color: var(--navy-dark); }
.home-shots p span { display: block; font-weight: 400; font-size: .86rem; color: var(--gray); line-height: 1.6; margin-top: 4px; }

.home-films { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.home-film-thumb { position: relative; display: block; }
.home-film-thumb img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.home-film-thumb .video-play { opacity: .92; }
.home-film-thumb .video-dur { font-style: normal; }
.home-card:hover .video-play { background: var(--orange); }
.home-films p { padding: 10px 14px 14px; font-size: .88rem; font-weight: 700; line-height: 1.5; color: var(--navy-dark); }
.home-films p span { display: block; font-size: .76rem; color: var(--orange); font-weight: 700; }

/* 講座區改成一欄：說明在上、近期講座整排在下（韋哥 2026-10-28 選 D，拿掉大字場數） */
.home-talks { display: grid; grid-template-columns: 1fr; gap: 16px; }
.home-talk-big p { font-size: 1.1rem; color: var(--navy-dark); }
.home-talk-list { list-style: none; }
.home-talk-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(18, 63, 143, .18);
}
.home-talk-list time { color: var(--gray); font-size: .88rem; font-variant-numeric: tabular-nums; }
.home-talk-list strong { display: block; font-size: .98rem; color: var(--navy-dark); }
.home-talk-list em { font-style: normal; font-size: .85rem; color: var(--gray); }

.home-writes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.home-write { padding: 22px 24px; }
.home-write span { font-size: .78rem; font-weight: 700; color: var(--orange); letter-spacing: .06em; }
.home-write h3 { font-size: 1.05rem; margin: 6px 0; line-height: 1.5; color: var(--navy-dark); }
.home-write p { font-size: .86rem; color: var(--gray); }

.home-more { display: inline-block; margin-top: 26px; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--yellow); }
.home-end { text-align: center; padding: 96px 0 40px; }
.home-end img { width: 170px; margin: 0 auto 18px; filter: drop-shadow(0 12px 20px rgba(18, 63, 143, .18)); }
.home-end h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; color: var(--navy-dark); }
.home-end p { color: var(--gray); margin: 10px 0 26px; }
.home-end .home-cta { justify-content: center; }

/* 捲動淡入：沒有 JS 時內容照常顯示 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 820px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero { padding-top: 36px; text-align: center; }
  .home-hello-sub { margin: 0 auto; }
  .home-cta { justify-content: center; }
  .home-ip { order: -1; }
  .home-ip img { max-width: 170px; }
  .home-numbers { grid-template-columns: repeat(2, 1fr); }
  .home-shots, .home-films, .home-writes { grid-template-columns: 1fr 1fr; }
  .home-step-head { grid-template-columns: 90px 1fr; gap: 18px; }
  .home-step-head img { width: 90px; }
}
@media (max-width: 520px) {
  .home-hero h1 { font-size: 7.2vw; }
  .home-shots, .home-films, .home-writes { grid-template-columns: 1fr; }
  .home-step-head { grid-template-columns: 1fr; }
  .home-step-head img { width: 80px; }
  .home-talk-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ===== 關於我：擅長領域、講師資料下載（2026-10-28） ===== */
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
.skill {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px 18px;
  text-align: center;
}
.skill .ic { display: block; font-size: 1.8rem; margin-bottom: 8px; }
.skill b { display: block; color: var(--navy); font-size: .98rem; line-height: 1.5; }
.skill small { display: block; color: var(--gray); font-size: .8rem; margin-top: 4px; line-height: 1.5; }
.kit-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; max-width: 920px; margin: 0 auto; align-items: start; }
.kit-card {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.kit-card-img { text-align: center; }
.kit-card-img img { border-radius: 12px; margin: 0 auto 16px; max-height: 420px; }
.kit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.kit-head h3 { color: var(--navy); font-size: 1.02rem; }
.kit-card p { color: var(--ink); font-size: .95rem; line-height: 1.9; }
.btn-copy {
  border: 1.5px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-copy:hover { background: var(--navy); color: #fff; }
.kit-note { color: var(--gray); font-size: .9rem; }
@media (max-width: 820px) {
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .kit-grid { grid-template-columns: 1fr; }
}

/* ── 講義頁（2026-10-28）── */
.hand-lead { max-width: 760px; margin: 8px auto 0; text-align: center; color: var(--ink); line-height: 1.9; }
.hand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 22px; margin-top: 24px; }
.hand-card { display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.hand-cover { display: block; border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: 0 10px 24px rgba(18, 63, 143, .18); transition: transform .2s, box-shadow .2s; }
.hand-cover img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hand-card:hover .hand-cover, .hand-card:focus-visible .hand-cover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(18, 63, 143, .26); }
.hand-title { font-weight: 700; color: var(--navy-dark); line-height: 1.45; margin-top: 6px; }
.hand-sub { font-size: .88rem; color: var(--gray); line-height: 1.6; }
.hand-more { font-size: .88rem; font-weight: 700; color: var(--orange-dark); }
.hand-viewer .shot-stage { background: #E9EDF3; }
.hand-viewer .shot-stage img { max-height: 82vh; }
.home-books { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 34px; }
.home-book img { display: block; width: 100%; border-radius: 4px 10px 10px 4px; box-shadow: 0 8px 18px rgba(18, 63, 143, .18); transition: transform .2s; }
.home-book:hover img { transform: translateY(-4px); }
@media (max-width: 820px) {
  .home-books { grid-template-columns: repeat(3, 1fr); }
  .hand-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
}
