/* ══════════════════════════════════════════
   敦和里洪佩琦 政績牆 — Design Token & Global Styles
   ══════════════════════════════════════════ */

/* ── CSS Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ── Design Tokens ── */
:root {
  --primary:        #ECB65F;
  --primary-light:  #F0E76F;
  --primary-pale:   #FEF8E8;
  --primary-dark:   #E89951;
  --accent:         #F0E76F;
  --accent-pale:    #FAFBE8;
  --green:          #A5CF83;
  --green-pale:     #EEF8E8;
  --warm:           #FFF9EE;
  --warm-mid:       #FFEFD4;
  --bg:             #FFFDF6;
  --bg-card:        #FFFFFF;
  --text:           #2C2C3A;
  --text-muted:     #7A8AA0;
  --text-light:     #A0B0C0;
  --border:         #F0D4A8;
  --shadow:         0 4px 24px rgba(232,153,81,0.18);
  --shadow-hover:   0 10px 40px rgba(232,153,81,0.32);
  --radius:         16px;
  --radius-sm:      10px;
  --radius-pill:    999px;
  --font-display:   'Noto Serif TC', serif;
  --font-body:      'Noto Sans TC', sans-serif;
  --font-num:       'DM Sans', sans-serif;
  --transition:     0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* ── Scroll Fade ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Global Body ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  z-index: 900;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255,253,246,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 16px rgba(232,153,81,0.14);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,231,111,0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════════
   MOBILE NAV
   ══════════════════════════════════════════ */

.mobile-nav {
  display: none;
  position: fixed;
  top: 62px;
  right: 0;
  bottom: 0;
  width: 240px;
  background: var(--bg-card);
  box-shadow: -4px 0 24px rgba(44,44,58,0.12);
  flex-direction: column;
  padding: 24px 0;
  z-index: 850;
  transform: translateX(100%);
  transition: transform var(--transition);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.mobile-nav-line {
  margin-top: auto;
  color: var(--text) !important;
  font-weight: 700 !important;
  background: var(--accent-pale);
}


/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */

/* Hero：嚴格等於一個螢幕，不允許向下延伸 */
.hero {
  height: 100svh;
  min-height: 560px;   /* 極小/橫向手機安全底線 */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 62px;
}

/* 背景層（absolute，不參與 flex flow） */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #FEF3E0 0%, #F8E0C0 35%, #F5F0C0 70%, #E8F5D8 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(236,182,95,0.28) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(240,231,111,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(165,207,131,0.20) 0%, transparent 80%);
}

/* 光暈（absolute，人物後方） */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 70% at 50% 35%, rgba(236,182,95,0.40) 0%, transparent 65%),
    radial-gradient(ellipse 45% 50% at 50% 65%, rgba(240,231,111,0.35) 0%, transparent 58%),
    radial-gradient(ellipse 38% 32% at 50% 12%, rgba(165,207,131,0.25) 0%, transparent 55%);
  pointer-events: none;
}

/* 人物照（absolute，滿版，z-index 2） */
.hero-person {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 62px);
  object-fit: contain;
  object-position: top center;
  z-index: 2;
  pointer-events: none;
}

/* Spacer：推文字至下方，最多佔可用高度 50% */
.hero-spacer {
  flex: 1;
  min-height: 0;
  max-height: 50%;
}

/* ── Hero 底部容器：卡片 + 按鈕整合為一個區塊 ── */
.hero-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 20px 48px;
}

/* 文字色塊 */
.hero-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 253, 246, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px 20px 0 0;
  padding: 28px 28px 24px;
  box-shadow: 0 -4px 32px rgba(232,153,81,0.18);
  text-align: center;
}

/* 按鈕區：緊接在卡片下方，共用同一圓角容器感 */
.hero-ctas {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 253, 246, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 0 28px 28px;
  display: flex;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(232,153,81,0.22);
}

.hero-tag {
  display: inline-block;
  background: var(--primary-pale);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.5vw, 42px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary-dark);
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.7;
  z-index: -1;
}

.hero-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hero-tag-item {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
}

.hero-tag-item-orange {
  background: rgba(232,153,81,0.12);
  color: #B06010;
  border: 1.5px solid #E89951;
}

.hero-tag-item-peach {
  background: rgba(236,182,95,0.15);
  color: #9A6010;
  border: 1.5px solid #ECB65F;
}

.hero-tag-item-green {
  background: rgba(165,207,131,0.15);
  color: #3A7820;
  border: 1.5px solid #A5CF83;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(232,153,81,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(240,231,111,0.4);
}

/* Hero CTA — 持續浮動 + 光暈脈衝 */
@keyframes heroBtnFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 6px 24px rgba(232,153,81,0.4), 0 0 0 0 rgba(232,153,81,0.3);
  }
  50% {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(232,153,81,0.62), 0 0 0 10px rgba(232,153,81,0.0);
  }
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.06em;
  animation: heroBtnFloat 2.6s ease-in-out infinite;
  transition: filter 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-hero-cta:hover {
  background: #d0813a;
  filter: brightness(1.08);
  animation-play-state: paused;
  box-shadow: 0 12px 36px rgba(232,153,81,0.55);
}


/* ══════════════════════════════════════════
   SECTION 共用
   ══════════════════════════════════════════ */

.section {
  padding: 72px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-alt {
  background: var(--warm);
}

.ach-section {
  padding: 40px 24px 72px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
}


/* ══════════════════════════════════════════
   BADGE
   ══════════════════════════════════════════ */

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-blue   { background: var(--primary-pale); color: #A06020; }
.badge-yellow { background: var(--accent-pale);  color: #9A6B00; }
.badge-green  { background: #E8F5E3; color: #3A7A2A; }
.badge-pink   { background: #FCEDF5; color: #A0386B; }
.badge-purple { background: #F0ECFF; color: #6B4DB5; }
.badge-gray   { background: #F0F0F0; color: #666; }


/* ══════════════════════════════════════════
   FEATURED 精選卡片
   ══════════════════════════════════════════ */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.featured-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.featured-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--primary-light) 100%);
}

.img-placeholder-emoji {
  font-size: 40px;
  line-height: 1;
}

.featured-pin {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.featured-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.featured-date {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-light);
}

.featured-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.featured-action {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 8px 0;
  transition: gap var(--transition);
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.featured-action:hover {
  gap: 8px;
}


/* ══════════════════════════════════════════
   FILTER TAB BAR
   ══════════════════════════════════════════ */

.filter-wrap {
  position: sticky;
  top: 62px;
  z-index: 800;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-wrap::-webkit-scrollbar {
  display: none;
}

.filter-tabs {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
  white-space: nowrap;
}

.ftab {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 48px;
}

.ftab:hover {
  color: var(--primary-dark);
}

.ftab.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  font-weight: 700;
}


/* ══════════════════════════════════════════
   政績卡片
   ══════════════════════════════════════════ */

.ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ach-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.ach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.ach-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.ach-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ach-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.ach-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ach-date {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-light);
}

.ach-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ach-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ach-action {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  padding: 8px 0;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: gap var(--transition);
}

.ach-action:hover {
  gap: 8px;
}

/* Empty State */
.empty-state {
  display: none;
  text-align: center;
  padding: 60px 24px;
}

.empty-state.visible {
  display: block;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-text {
  color: var(--text-muted);
  font-size: 15px;
}


/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,44,58,0.5);
  z-index: 9000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  max-height: 90svh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32,1.18,0.5,1);
  overscroll-behavior: contain;
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 8px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-pale);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  min-width: 44px;
  min-height: 44px;
}

.modal-close:hover {
  background: var(--border);
}

.modal-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-pale) 0%, var(--primary-light) 100%);
}

.modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-cover-emoji {
  font-size: 72px;
  line-height: 1;
}

.modal-body {
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.pill-date {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pill-featured {
  background: var(--accent-pale);
  color: #9A6B00;
}

.pill-share {
  background: var(--green-pale);
  color: #3A7820;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-share:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.share-toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #2C2C3A;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(44,44,58,0.3);
}

.share-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--text);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--warm-mid);
  color: var(--text-muted);
}

.modal-lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-line;
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-process {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  align-items: flex-start;
}

.process-item:last-child {
  border-bottom: none;
}

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition);
  background: linear-gradient(135deg, var(--primary-pale), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-thumb:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-hover);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 放大提示 overlay */
.gallery-thumb-zoom {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  opacity: 0;
  transition: background var(--transition), opacity var(--transition);
  pointer-events: none;
}

.gallery-thumb:hover .gallery-thumb-zoom {
  background: rgba(0, 0, 0, 0.32);
  opacity: 1;
}

.modal-video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.modal-video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--primary-pale);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.video-placeholder-icon {
  font-size: 40px;
}


/* ══════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lb-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lb-counter {
  font-family: var(--font-num);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.lb-btn {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 10000;
  border: none;
  cursor: pointer;
}

.lb-btn:hover {
  background: rgba(255,255,255,0.28);
}

.lb-close {
  top: 20px;
  right: 20px;
  font-size: 18px;
}

.lb-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.lb-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}


/* ══════════════════════════════════════════
   VIDEO CAROUSEL
   ══════════════════════════════════════════ */

.video-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-reel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 4px 16px;
  flex: 1;
}

.video-reel::-webkit-scrollbar {
  display: none;
}

.vc-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(280px, 72vw, 480px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.vc-card:hover {
  box-shadow: var(--shadow-hover);
}

.vc-frame {
  aspect-ratio: 16 / 9;
  background: #1a1a2e;
  overflow: hidden;
}

/* 影片頂部漸層文字 overlay */
.vc-frame-reel {
  position: relative;
}

.vc-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 14px 12px 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, transparent 100%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vc-overlay-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc-overlay-views {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Reel 直式（9:16） */
.vc-card-reel {
  flex: 0 0 220px;
}

.vc-frame-reel {
  aspect-ratio: 9 / 16;
  background: #1a1a2e;
  overflow: hidden;
  max-height: 400px;
}

.vc-frame iframe,
.vc-frame-reel iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.vc-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 0 16px;
  line-height: 1.4;
}

.vc-date {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-light);
  padding: 0 16px 14px;
}

/* 箭頭導覽 */
.vc-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
  line-height: 1;
  z-index: 2;
}

.vc-arrow:hover {
  background: var(--primary-pale);
  box-shadow: var(--shadow-hover);
}

.vc-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* 占位符（尚無影片時） */
.vc-placeholder {
  flex: 0 0 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.vc-placeholder-icon {
  font-size: 48px;
}


/* ══════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-quote {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
  background: var(--primary-pale);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
}

.about-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn-fb {
  background: #1877F2;
  color: #fff;
}

.social-btn-fb:hover {
  box-shadow: 0 6px 20px rgba(24,119,242,0.35);
}

.social-btn-line {
  background: var(--accent);
  color: var(--text);
}

.social-btn-line:hover {
  box-shadow: 0 6px 20px rgba(240,231,111,0.4);
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo-frame {
  width: 280px;
  height: 340px;
  border-radius: 80px 24px 24px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: linear-gradient(145deg, var(--primary-light), var(--primary-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  line-height: 1;
}


/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

.site-footer {
  background: #2C2C3A;
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
}

.footer-links-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-list li a,
.footer-link-list li span {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-link-list li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}


/* ══════════════════════════════════════════
   RWD — Tablet (max 1024px)
   ══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ach-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 40px;
  }
}


/* ══════════════════════════════════════════
   RWD — Mobile (max 768px)
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Header */
  .btn-line {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  /* 影片輪播 — 手機隱藏箭頭，改用滑動 */
  .vc-arrow    { display: none; }
  .vc-card     { flex: 0 0 85vw; }
  .vc-card-reel { flex: 0 0 55vw; }

  /* Hero 手機版 */
  .hero-bottom {
    padding: 0 14px 40px;
  }

  .hero-card {
    padding: 22px 20px 20px;
  }

  .hero-ctas {
    padding: 0 20px 22px;
  }

  /* Featured */
  .featured-grid {
    grid-template-columns: 1fr;
  }

  /* Achievements */
  .ach-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-photo-wrap {
    order: -1;
  }

  .about-photo-frame {
    width: 200px;
    height: 240px;
    border-radius: 60px 16px 16px 16px;
  }

  .about-content {
    text-align: center;
  }

  .about-links {
    justify-content: center;
  }

  .about-quote {
    text-align: left;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Section */
  .section {
    padding: 48px 20px;
  }

  .ach-section {
    padding: 28px 20px 48px;
  }

  /* Lightbox buttons */
  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }

  /* Modal */
  .modal-body {
    padding: 16px 20px 36px;
  }
}


/* ══════════════════════════════════════════
   ANTI-SCRAPE
   ══════════════════════════════════════════ */

.tel::before {
  content: attr(data-tel);
  user-select: text;
}
