/* =========================================================
   王欣儀 市議員服務網站 — 粉×藍 · 升級質感版
   襯線大標題 + 真人照片 hero + 細線 SVG 圖標 + 大留白
   重新品牌只需修改 :root 變數
   ========================================================= */
:root {
  /* 品牌色：粉 × 藍（保留識別，微調更沉穩） */
  --pink: #e56b95;
  --pink-deep: #d2557f;
  --pink-soft: #fbe3ec;
  --pink-bg: #fdf2f7;
  --blue: #1d3d8f;
  --blue-deep: #14265e;
  --blue-soft: #eaf0fb;
  --grad: linear-gradient(120deg, var(--pink), var(--blue));

  --bg: #ffffff;
  --bg-alt: #faf7fb;
  --text: #232a3a;
  --text-soft: #66708a;
  --line: rgba(29, 61, 143, 0.12);
  --radius: 20px;
  --shadow: 0 16px 44px rgba(20, 38, 94, 0.10);
  --maxw: 1140px;

  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro TC", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

/* ---------- 統一圖標系統 ---------- */
.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex: none; display: block;
}
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: transform .18s ease, box-shadow .18s ease, opacity .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(29, 61, 143, .24); }
.btn-primary:hover { opacity: .92; }
.btn-pink { background: var(--pink); color: #fff; box-shadow: 0 8px 22px rgba(229, 107, 149, .32); }
.btn-ghost { background: var(--pink-soft); color: var(--blue); }
.btn-ghost:hover { background: var(--pink); color: #fff; }

/* ---------- 頂部導航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: .98rem; font-weight: 800;
}
img.brand-mark { background: none; border-radius: 50%; object-fit: contain; }
.site-footer img.brand-mark { background: #fff; padding: 3px; }
.brand-name { font-family: var(--serif); font-size: 1.08rem; letter-spacing: .04em; color: var(--blue-deep); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; color: var(--text); }
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--pink-deep); }
.nav-links a.active { color: var(--blue); font-weight: 700; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  border-radius: 2px; background: var(--grad);
}
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; color: var(--blue); line-height: 0; }

/* ---------- 首屏（左文右圖，襯線大標題） ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 76px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 72%, rgba(255,255,255,.9) 96%, #fff 100%),
    url(assets/hero-bg.jpg) -80px center / cover no-repeat,
    linear-gradient(180deg, var(--pink-bg), #fff 84%);
}
.hero-grid { display: grid; grid-template-columns: 1.38fr 1fr; gap: 44px; align-items: center; }
.hero-copy { max-width: 510px; justify-self: end; margin-right: -24px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--pink-deep);
  font-weight: 700; font-size: .84rem; letter-spacing: .04em; margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(20, 38, 94, .06);
}
.hero-kicker .icon { width: 15px; height: 15px; }
.hero-title {
  font-family: var(--serif); font-size: clamp(2.9rem, 6.6vw, 4.5rem);
  line-height: 1.08; font-weight: 900; letter-spacing: .01em;
  color: var(--blue-deep); margin: 0 0 10px;
}
.hero-title small {
  display: block; font-family: var(--sans); font-size: .3em; font-weight: 700;
  letter-spacing: .16em; margin-top: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.08rem; color: var(--text-soft); margin: 24px 0 36px; max-width: 460px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo { position: relative; width: 100%; max-width: 540px; justify-self: end; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: 28px; background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft));
  z-index: 0;
}
/* 輪播容器 */
.hero-slider {
  position: relative; z-index: 1; width: 100%;
  aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--pink-soft);
}
.hero-slide {
  position: absolute; inset: 0; z-index: 1; opacity: 0;
  transition: opacity .8s ease; cursor: default;
}
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-slide img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 50% 28%;
}
.hero-slide a { display: block; width: 100%; height: 100%; }
/* 無後台輪播資料時，顯示預設靜態圖 */
.hero-slider.has-slides .hero-slide[data-static] { display: none; }
/* 輪播圖上文字標題（可選） */
.hero-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 38px 20px 30px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20, 38, 94, .6));
}
.hero-slide-cap h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; letter-spacing: .02em; }
.hero-slide-cap p { margin: 5px 0 0; font-size: .9rem; opacity: .92; }
/* 輪播指示點 */
.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: flex; gap: 8px; justify-content: center; pointer-events: none;
}
.hero-dot {
  width: 9px; height: 9px; padding: 0; border: none; border-radius: 999px;
  background: rgba(255, 255, 255, .6); cursor: pointer; pointer-events: auto;
  transition: width .25s ease, background .25s ease;
}
.hero-dot.is-active { width: 24px; background: #fff; }
/* 輪播左右箭頭（hover 顯示） */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .8); color: var(--blue);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(20, 38, 94, .18);
  opacity: 0; transition: opacity .2s ease; line-height: 0;
}
.hero-arrow .icon { width: 20px; height: 20px; }
.hero-slider:hover .hero-arrow { opacity: 1; }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-arrow:focus-visible { opacity: 1; outline: 2px solid var(--blue); }
.hero-badge {
  position: absolute; z-index: 2; left: -16px; bottom: -40px;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #ffffff, #f6f8ff);
  border-radius: 999px; padding: 7px 18px 7px 7px;
  box-shadow: 0 16px 36px rgba(20, 38, 94, 0.18), 0 2px 6px rgba(20, 38, 94, 0.08);
  font-weight: 700; color: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.95); font-size: .92rem;
}
.hero-badge-ico {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(145deg, #f79bb8, #d2557f);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -3px 5px rgba(0, 0, 0, 0.18), 0 5px 12px rgba(210, 85, 127, 0.42);
}
.hero-badge-ico .icon { width: 18px; height: 18px; color: #fff; stroke-width: 2; }

/* ---------- 區塊通用 ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  text-align: center; margin: 0 0 10px; font-weight: 900;
  letter-spacing: .01em; color: var(--blue-deep);
}
.section-lead { text-align: center; color: var(--text-soft); margin: 0 auto 52px; max-width: 600px; }

/* ---------- 三大服務主軸 ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  background: #fff; border-radius: var(--radius); padding: 42px 30px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 22px 54px rgba(20, 38, 94, .14); }
.pillar-icon {
  width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center;
  color: #fff; margin-bottom: 22px;
}
.pillar-icon .icon { width: 27px; height: 27px; }
.pillar-card:nth-child(1) .pillar-icon { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.pillar-card:nth-child(2) .pillar-icon { background: linear-gradient(135deg, var(--blue), #3f6ac4); }
.pillar-card:nth-child(3) .pillar-icon { background: var(--grad); }
.pillar-card h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.32rem; font-weight: 700; color: var(--blue-deep); }
.pillar-card p { margin: 0; color: var(--text-soft); font-size: .97rem; }

/* ---------- 政見卡片 ---------- */
.policy-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.policy-card2 {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.policy-card2:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pc-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-badge { padding: 3px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.pc-badge.done { background: var(--pink-soft); color: var(--pink-deep); }
.pc-badge.fight { background: var(--blue-soft); color: var(--blue); }
.pc-cat { padding: 3px 12px; border-radius: 999px; background: #f1f4f9; color: var(--text-soft); font-size: .76rem; }
.policy-card2 p { margin: 0; font-size: .95rem; color: var(--text); line-height: 1.65; }

/* ---------- 最新消息（圖片卡三欄，參考巧觀點） ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: #fff; border: 1px solid rgba(29, 61, 143, .1); border-radius: var(--radius);
  padding: 18px 18px 22px; box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; transition: transform .22s ease;
}
.news-card:hover { transform: translateY(-4px); }
.news-thumb {
  height: 170px; border-radius: 16px; overflow: hidden; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft));
  display: grid; place-items: center; color: #fff; font-size: 2.2rem; font-weight: 800;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-cat {
  align-self: flex-start; padding: 4px 13px; border-radius: 999px;
  background: var(--pink-soft); color: var(--blue); font-size: .78rem; font-weight: 700;
}
.news-card h4 { margin: 0; font-size: 1.1rem; }
.news-card p { margin: 0; color: var(--text-soft); font-size: .92rem; flex: 1; }
.news-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.news-date { font-size: .82rem; color: var(--pink); font-weight: 700; }
.news-read { font-size: .85rem; font-weight: 700; color: var(--blue); }
.news-read:hover { color: var(--pink); }
.news-more { text-align: center; margin-top: 36px; }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .84); padding: 60px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { background: rgba(255, 255, 255, .16); }
.footer-note { color: rgba(255, 255, 255, .5); font-size: .88rem; margin: 10px 0 0; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background .2s;
}
.footer-social a:hover { background: var(--pink); }
.footer-social .icon { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 32px; padding-top: 18px; font-size: .84rem; color: rgba(255, 255, 255, .5); display: flex; justify-content: center; text-align: center; }

/* ---------- 關於欣儀 ---------- */
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center; max-width: 880px; margin-inline: auto; }
.about-photo { aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; object-position: 50% 25%; transition: transform .35s ease; }
.about-photo:hover img { transform: scale(1.03); }
.about-bio h3 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 12px; color: var(--blue-deep); }
.about-bio p { color: var(--text-soft); margin: 0 0 22px; }
.about-facts { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; flex-wrap: wrap; }
.about-facts li { display: flex; flex-direction: column; }
.about-facts strong { font-size: 1.7rem; color: var(--pink-deep); font-weight: 800; line-height: 1; }
.about-facts span { font-size: .85rem; color: var(--text-soft); margin-top: 6px; }
.about-cv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 22px 0; }
.about-cv h4 { margin: 0 0 10px; color: var(--pink-deep); font-size: 1.02rem; }
.about-cv ul { list-style: none; padding: 0; margin: 0; }
.about-cv li { position: relative; padding-left: 18px; margin-bottom: 9px; color: var(--text-soft); font-size: .92rem; line-height: 1.55; }
.about-cv li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }

/* ---------- 影音 ---------- */
.video-wrap { max-width: 860px; margin-inline: auto; }
.video-placeholder {
  aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft));
  display: grid; place-items: center; color: var(--blue); font-weight: 600;
  border: 1px solid rgba(29, 61, 143, .1);
}
.video-placeholder span {
  background: #fff; padding: 14px 26px; border-radius: 999px;
  box-shadow: var(--shadow); font-size: .95rem;
}

/* ---------- 捐款 / 周邊 ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.donate-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease; }
.donate-card:hover { transform: translateY(-6px); }
.donate-thumb { aspect-ratio: 1/1; display: grid; place-items: center; color: #fff; font-size: 2.2rem; font-weight: 800; background: var(--grad); }
.donate-card:nth-child(even) .donate-thumb { background: linear-gradient(135deg, var(--blue), var(--pink)); }
.donate-body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.donate-body h4 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--blue-deep); }
.donate-body p { margin: 0; color: var(--text-soft); font-size: .85rem; flex: 1; }
.donate-price { font-weight: 800; color: var(--pink-deep); font-size: 1.05rem; }
.donate-note { text-align: center; color: var(--text-soft); font-size: .84rem; margin-top: 30px; }

/* ---------- 聯絡我們 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; max-width: 920px; margin-inline: auto; }
.contact-info h3 { font-family: var(--serif); margin: 0 0 16px; color: var(--blue-deep); }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--pink-soft); color: var(--pink-deep); display: grid; place-items: center; flex: none; }
.contact-list .ci-ico .icon { width: 20px; height: 20px; }
.contact-list .ci-txt { line-height: 1.5; }
.contact-list .ci-txt b { display: block; color: var(--blue-deep); font-size: .9rem; }
.contact-list .ci-txt span { color: var(--text-soft); font-size: .92rem; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.contact-form input, .contact-form textarea { border: 1px solid #e3e8f2; border-radius: 12px; padding: 11px 14px; font: inherit; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(229, 107, 149, .14); }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: .8rem; color: var(--text-soft); margin: 0; }

/* ---------- 內頁通用 ---------- */
.page-banner { height: 88px; background: linear-gradient(180deg, var(--pink-bg), #fff); }
.page-head { padding: 72px 0 0; }
.ph-kicker { font-size: .85rem; font-weight: 700; letter-spacing: .22em; color: var(--pink-deep); margin: 0 0 16px; }
.ph-title { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.3; font-weight: 900; margin: 0 0 20px; color: var(--blue-deep); letter-spacing: .01em; }
.ph-lead { color: var(--text-soft); max-width: 680px; margin: 0; line-height: 1.9; }

/* ---------- 響應式 ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 100%; justify-self: stretch; margin-right: 0; }
  .hero-bg { background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.7) 70%, #fff 100%), url(assets/hero-bg.jpg) 22% center / cover no-repeat; }
  .hero-photo { width: 100%; max-width: 430px; margin: 0 auto; }
  .pillar-grid, .donate-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-facts { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 64px 0 60px; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 10px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; width: 100%; }
  .nav-toggle { display: block; }
  .pillar-grid, .donate-grid, .news-grid, .policy-cards, .about-cv { grid-template-columns: 1fr; }
}

/* ===== 競選影音（YouTube iframe 網格） ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}
.video-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(29, 61, 143, .08);
  border: 1px solid rgba(29, 61, 143, .06);
}
.video-frame {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: #0e1530;
}
.video-frame iframe,
.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-card h4 {
  margin: 16px 18px 4px;
  font-size: 1.06rem;
  color: #1d3d8f;
}
.video-card p {
  margin: 0 18px 18px;
  color: #5b6472;
  font-size: .92rem;
  line-height: 1.6;
}
.video-empty {
  text-align: center;
  color: #5b6472;
  padding: 48px 0;
  font-size: 1.02rem;
}

/* ===== 頁首品牌：放大姓名 + 副標題「現任台北市議員」 ===== */
.site-header .brand { gap: 12px; }
.site-header .brand-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.55rem;          /* 原 1.08rem，放大 */
  line-height: 1.12;
  color: var(--blue-deep);
}
.site-header .brand-name::after {
  content: "現任台北市議員";
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--text-soft);
  margin-top: 3px;
}
