﻿/* 配色取自〈政大傳播學院__莊東燐0928.pptx〉：深海軍藍 + 金 */
:root {
  --navy-900: #083D45;
  --navy-800: #0B5560;
  --navy-600: #1E7A85;
  --gold: #F6D84C;
  --gold-soft: #FBE98A;
  --bg: #F6F4F1;
  --bg-tint: #FFFFFF;
  --text: #1C2733;
  --muted: #56636F;
  --line: #E3DED7;
  --todo-bg: #FFF4CC;
  --todo-text: #6B5200;

  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "Cormorant Garamond", Georgia, serif;
  --accent: #CF6246;
  --sage: #8FB0BA;
  --font: "Microsoft JhengHei", "微軟正黑體", -apple-system, BlinkMacSystemFont,
    "PingFang TC", "Noto Sans TC", "Heiti TC", "Segoe UI", sans-serif;
  --radius: 6px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; }
p { margin: 0; }
a { color: var(--navy-600); }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 500;
}

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
}

.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-line { background: transparent; color: var(--gold-soft); }
.btn:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }

/* 首屏 */
.hero {
  background: var(--navy-800);
  color: #FFFFFF;
  padding: 28px 0 40px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-photo {
  width: 132px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  border: 3px solid var(--gold);
}

.eyebrow {
  font-size: 14px;
  color: #C9D6E2;
  margin-bottom: 4px;
}

.name {
  font-size: 34px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.name-suffix {
  font-size: 18px;
  font-weight: 400;
  color: #C9D6E2;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.tagline .x { color: var(--gold); font-weight: 400; }

.role-line {
  color: #E3EAF1;
  margin-bottom: 10px;
}

.actions { display: flex; gap: 12px; }
.actions .btn { flex: 1; }

/* 首屏下方的三段目錄 */
.toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.toc a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(218, 183, 109, 0.5);
  border-radius: var(--radius);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.toc a span { font-size: 13px; color: var(--gold); }
.toc a:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }

/* 數字亮點 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat {
  background: var(--navy-800);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 16px;
}

.stat-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
}

.stat-num span {
  font-size: 16px;
  margin-left: 4px;
  color: var(--gold-soft);
}

.stat-label { font-size: 14px; line-height: 1.5; margin-top: 6px; }
.stat-label small { color: #A9BCCD; font-size: 12px; }

/* 三段式區塊標題 */
.sec-head { margin-bottom: 20px; }

.sec-num {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 4px;
}

.sec-head h2 { margin-bottom: 4px; }
.sec-sub { font-size: 18px; color: var(--navy-600); font-weight: 700; }

.lead { font-size: 18px; margin-bottom: 8px; }
.sec-text { margin-bottom: 12px; }

.block-title {
  font-size: 20px;
  color: var(--navy-900);
  margin: 48px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}

.lead + .block-title { margin-top: 32px; }
.cards + .block-title,
.stats-grid + .block-title { margin-top: 48px; }

/* 區塊通用 */
.section { padding: 48px 0; }
.section-tint { background: var(--bg-tint); }

.kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-600);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.section h2 {
  font-size: 24px;
  color: var(--navy-900);
  margin-bottom: 24px;
}

.sub-heading {
  font-size: 18px;
  color: var(--navy-900);
  margin: 32px 0 12px;
}

/* 作品卡片 */
.cards { display: grid; gap: 20px; }

.card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(18, 54, 83, 0.06);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card img.img-contain {
  object-fit: contain;
  background: #FFFFFF;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.card-body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.card h3 { font-size: 19px; color: var(--navy-900); }
.card .role { font-size: 14px; color: var(--navy-600); font-weight: 700; }

/* 競賽 */
.awards-feature {
  display: grid;
  gap: 16px;
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(18, 54, 83, 0.06);
}

.awards-feature img {
  border-radius: 8px;
  max-height: 360px;
  width: 100%;
  object-fit: cover;
  object-position: top;
}

.awards-feature h4 { font-size: 19px; color: var(--navy-900); margin-bottom: 8px; }
.source { font-size: 13px; color: var(--muted); margin-top: 8px; }

.award-year {
  display: inline-block;
  min-width: 3.2em;
  font-weight: 700;
  color: var(--navy-600);
}

.award-list, .plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.award-list li, .plain-list li {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.award-list li .award-year, .plain-list li .award-year { flex: 0 0 3.2em; }

.wide-photo { margin: 24px 0 0; }
.wide-photo img { border-radius: var(--radius); width: 100%; }
.wide-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* 三門課 */
.path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: none;
}

.path li {
  background: var(--navy-800);
  color: #FFFFFF;
  border-radius: var(--radius);
  padding: 18px 20px;
}

.path li:nth-child(2) { background: var(--navy-600); }
.path li:nth-child(3) { background: var(--navy-900); }

.path-step { font-size: 14px; color: var(--gold); font-weight: 700; }
.path h4 { font-size: 22px; margin: 2px 0 4px; }
.path li > p:last-child { color: #DCE5EE; font-size: 15px; }

.course-groups { display: grid; gap: 12px; }

.course-groups > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.group-name { font-weight: 700; color: var(--navy-800); }

/* 研究 */
.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pubs li {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
}

.pubs strong { color: var(--navy-600); font-size: 18px; margin-right: 4px; }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 24px; }

.research-grid { display: grid; gap: 12px; }

.research-item {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(18, 54, 83, 0.06);
}

.research-item h4 { font-size: 17px; color: var(--navy-900); margin-bottom: 6px; }
.research-item p { font-size: 15px; }

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-600);
  background: #E4EDF5;
  border-radius: 4px;
  padding: 0 6px;
  margin-right: 6px;
}

.more {
  margin-top: 16px;
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 4px 16px;
  border: 1px solid var(--line);
}

.more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-800);
  padding: 10px 0;
  min-height: 44px;
}

.more .plain-list li { font-size: 15px; }
.more .plain-list li:last-child { border-bottom: 0; }

/* 連結資源 */
/* 照片牆 */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 6px; }

.gallery-2 { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.gallery-2 img { aspect-ratio: 16 / 10; }

.grant-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.grant-list li {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.grant-org { font-weight: 700; color: var(--navy-600); font-size: 14px; }
.grant-title { font-weight: 700; color: var(--navy-900); }

/* 經歷時間軸 */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--line);
}

.timeline li { position: relative; padding-bottom: 24px; }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-tint);
}

.timeline .when { font-size: 14px; color: var(--muted); }
.timeline h4 { font-size: 17px; color: var(--navy-900); margin: 2px 0; }
.timeline li > p:last-child:not(.when) { color: var(--muted); font-size: 15px; }

/* 技能 */
.skill-groups { display: grid; gap: 20px; }
.skill-groups h4 { font-size: 16px; color: var(--navy-800); margin-bottom: 8px; }

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 14px;
  border-radius: 999px;
  background: #E4EDF5;
  color: var(--navy-900);
  font-size: 15px;
}

/* 聯絡 */
.contact-section {
  background: var(--navy-800);
  color: #FFFFFF;
  padding: 48px 0;
}

.contact-section h2 { font-size: 24px; color: var(--gold-soft); margin-bottom: 20px; }

.contact-name { margin-bottom: 16px; color: #E3EAF1; }
.contact-section .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }

.footer {
  background: var(--navy-900);
  color: #A9BCCD;
  font-size: 14px;
  padding: 20px 0;
}

/* 電腦版 */
@media (min-width: 768px) {
  body { font-size: 18px; }

  .hero { padding: 72px 0; }

  .hero-inner { flex-direction: row; align-items: center; gap: 56px; }
  .hero-photo { flex: 0 0 240px; width: 240px; }

  .name { font-size: 52px; }
  .name-suffix { font-size: 24px; }
  .tagline { font-size: 30px; }
  .actions .btn { flex: 0 0 auto; }

  .toc { grid-template-columns: repeat(3, 180px); justify-content: start; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .sec-num { font-size: 64px; }
  .stat-num { font-size: 52px; }

  .section { padding: 80px 0; }
  .section h2 { font-size: 30px; margin-bottom: 32px; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .awards-feature { grid-template-columns: 320px 1fr; align-items: start; padding: 24px; gap: 28px; }
  .awards-feature img { max-height: none; }

  .award-list { columns: 2; column-gap: 40px; }
  .award-list li { break-inside: avoid; }

  .path { grid-template-columns: repeat(3, 1fr); }
  .course-groups { grid-template-columns: repeat(3, 1fr); }
  .research-grid { grid-template-columns: repeat(3, 1fr); }

  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery-2 { grid-template-columns: repeat(2, 1fr); }
  .grant-list { grid-template-columns: repeat(3, 1fr); }

  .skill-groups { grid-template-columns: repeat(3, 1fr); }

}


/* ===== v3：參考版面（左右分割首屏 + 編輯風排版） ===== */
h1, h2, h3, .sec-sub, .lead, .card h3, .path h4, .timeline h4 { font-family: var(--serif); font-weight: 600; }
body { letter-spacing: 0.01em; }

.btn { border-width: 0; letter-spacing: 0.12em; font-size: 14px; min-height: 44px; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-gold { background: var(--accent); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--gold); }

/* 首屏 */
.hero { display: grid; grid-template-columns: 1fr; min-height: 100svh; padding: 0; position: relative; background: var(--navy-800); }
.hero-panel { background: var(--navy-800); color: #fff; padding: 20px var(--gutter) 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.topbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.brand { color: var(--gold); font-family: var(--serif); font-size: 18px; font-weight: 600; text-decoration: none; }
.topnav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.topnav a { color: #fff; font-size: 13px; text-decoration: none; }
.topnav a:hover { color: var(--gold); }
.hero-text { padding: 0 0 8px; }
.hello { font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1.2; }
.name { font-size: 64px; line-height: 1.05; letter-spacing: 0.05em; color: #fff; margin: 4px 0 18px; font-weight: 700; }
.role-line { font-size: 14px; letter-spacing: 0.06em; color: #fff; margin-bottom: 14px; }
.tagline { font-size: 18px; color: var(--gold-soft); font-family: var(--serif); }
.tagline .x { color: var(--accent); }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; color: #BFD6D9; margin: 4px 0 20px; }
.hero-photo-wrap { order: -1; height: 46svh; min-height: 280px; overflow: hidden; background: #cfd3d3; }
.hero-photo { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 20%; border: 0; border-radius: 0; }

/* 右側黃色快速跳轉條 */
.side-bar { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 5; background: var(--gold); display: flex; flex-direction: column; padding: 6px 0; border-radius: 6px 0 0 6px; }
.side-bar a { color: var(--navy-900); font-size: 12px; font-weight: 700; text-decoration: none; display: grid; place-items: center; width: 38px; height: 38px; }
.side-bar a:hover { background: rgba(0,0,0,.1); }

/* 跑馬燈 */
.ticker { background: var(--sage); color: #fff; overflow: hidden; white-space: nowrap; padding: 10px 0; font-size: 12px; letter-spacing: 0.2em; }
.ticker-track { display: inline-flex; width: max-content; animation: tick 40s linear infinite; }
.ticker-track span { padding: 0 18px; }
.ticker-track span::after { content: "·"; margin-left: 36px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* 章節標題：置中、襯線、小字級眉標 */
.sec-head { text-align: center; margin-bottom: 36px; }
.sec-num { font-family: var(--serif); font-size: 13px; letter-spacing: 0.3em; color: var(--accent); font-weight: 600; }
.sec-head h2 { font-size: 32px; color: var(--navy-900); font-weight: 500; margin: 6px 0; }
.sec-sub { font-size: 16px; color: var(--muted); font-weight: 400; }
.lead { text-align: center; font-size: 19px; color: var(--navy-900); max-width: 38em; margin-left: auto; margin-right: auto; }
.section { padding: 72px 0; }
.section-tint { background: #FFFFFF; }
.block-title { border: 0; padding: 0; text-align: center; font-size: 24px; font-weight: 500; margin: 64px 0 24px; }
.block-title::after { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin: 12px auto 0; }
.sec-text { text-align: center; color: var(--muted); }

/* 卡片：圓角、置中標題 */
.card { border: 0; border-radius: 4px; box-shadow: none; background: transparent; overflow: visible; text-align: center; }
.card img { border-radius: 4px; }
.card-body { padding: 16px 8px 8px; }
.card h3 { font-size: 20px; font-weight: 500; }
.card .role { font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.section-tint .card { background: transparent; }

.stat, .path li { border-radius: 4px; }
.stat { background: var(--navy-800); }
.path li:nth-child(2) { background: var(--navy-600); }
.course-groups > div, .research-item, .grant-list li, .more { border-radius: 4px; background: #fff; border: 1px solid var(--line); box-shadow: none; }
.group-name, .grant-org, .award-year, .card .role { font-family: var(--font); }
.tag, .pubs li { border-radius: 999px; background: #E6EEEC; }
.label { background: #E6EEEC; color: var(--navy-800); }
.timeline li::before { background: var(--accent); border-color: var(--bg); }
.awards-feature { box-shadow: none; border: 1px solid var(--line); border-radius: 4px; }
.gallery img, .wide-photo img { border-radius: 4px; }

/* 聯絡 */
.contact-section { background: var(--navy-800); text-align: center; padding: 72px 0; }
.contact-section h2 { color: #fff; font-weight: 500; font-size: 32px; }
.footer { background: var(--navy-900); text-align: center; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-panel { padding: 24px 40px 72px 48px; }
  .hero-text { padding-left: 24px; }
  .hero-photo-wrap { order: 0; height: auto; min-height: 100svh; }
  .hello { font-size: 40px; }
  .name { font-size: 104px; }
  .tagline { font-size: 22px; }
  .role-line { font-size: 15px; }
  .topnav a { font-size: 14px; }
  .sec-head h2 { font-size: 40px; }
}
