/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f4f7f2;
  --card-bg: #ffffff;
  --primary: #2c4c3b;
  --accent: #d4a373;
  --text: #333333;
  --text-light: #5c6b61;
  --border: #dce3da;
  --shadow: 0 4px 16px rgba(44, 76, 59, 0.08);
  --radius: 16px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif TC', 'Georgia', serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.navbar-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  color: #eef3ed;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #eef3ed;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  margin-top: 64px;
  background: linear-gradient(135deg, #2c4c3b 0%, #466c54 60%, #a3b18a 100%);
  color: #fff;
  padding: 84px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 45%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  text-align: left;
  max-width: 42rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,255,255,0.12);
  color: #eef3ed;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #eef3ed;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-narrative {
  color: #eef3ed;
  font-size: 1.03rem;
  max-width: 38rem;
  margin-bottom: 24px;
}

.hero-quote-panel {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: rgba(14, 28, 20, 0.3);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 30px rgba(20,10,4,0.14);
}

.hero-quote-label {
  color: #d4a373;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.hero-quote-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #ffffff;
}

.hero-quote-source {
  color: #dce3da;
  font-size: 0.92rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-aside {
  display: grid;
  gap: 18px;
}

.hero-scene-card,
.hero-stats {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 30px rgba(20,10,4,0.16);
  backdrop-filter: blur(8px);
}

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

.hero-scene-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: none;
}

.hero-scene-label {
  color: #d4a373;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.hero-scene-title {
  color: #ffffff;
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.hero-scene-text {
  color: #eef3ed;
  font-size: 0.96rem;
}

.hero-scene-link {
  display: inline-flex;
  margin-top: 16px;
  color: #dce3da;
  font-size: 0.94rem;
}

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

.hero-stat {
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  text-align: center;
}

.hero-stat-number {
  display: block;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-stat-label {
  color: #dce3da;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.04em;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #b58555;
  border-color: #b58555;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* ===== SECTION ===== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #eef3ed;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 48px;
  letter-spacing: 0.03em;
}

.section-header {
  margin-bottom: 48px;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44, 76, 59, 0.12);
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.35s ease;
}

.card:hover .card-img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: auto 16px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-kicker,
.story-readtime {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(44, 76, 59, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.story-readtime {
  background: rgba(244, 247, 242, 0.88);
  color: var(--primary);
}

.card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #dce3da 0%, #a3b18a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.6;
}

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

.card-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
}

.card-summary {
  font-size: 0.95rem;
  color: var(--text-light);
  flex: 1;
}

.story-hook {
  color: var(--primary);
  font-size: 0.98rem;
  line-height: 1.7;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  margin: 4px 0 2px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ===== STORY EXPAND ===== */
.story-expand {
  display: none;
  border-top: 1px solid var(--border);
  padding: 24px;
}

.story-expand.open { display: block; }

.story-lead-block {
  margin-bottom: 26px;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4f7f2 0%, #eef3ed 100%);
}

.story-lead {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 14px;
}

.story-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.story-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.83rem;
}

.story-section {
  margin-bottom: 20px;
}

.story-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.story-section p {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.8;
}

.story-dialogue {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  font-style: italic;
  color: var(--primary);
}

.story-lesson {
  background: #eef3ed;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--primary);
}

/* ===== PERSON CARD ===== */
.person-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 36px;
  padding: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.person-photo,
.avatar-box {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #eef3ed;
  box-shadow: 0 4px 16px rgba(44, 76, 59, 0.18);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transform-origin: center;
}

.avatar-box-4 > .person-photo-img-4 {
  transform-origin: center;
  transform: scale(1.9) translate(5px, 5px);
}

.avatar-box-5 {
  width: 200px;
  height: 200px;
}

.person-photo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dce3da, #a3b18a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.person-info { flex: 1; }

.person-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.person-english {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.person-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  background: #eef3ed;
  color: var(--primary);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.85rem;
}

.person-quote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--primary);
  background: #eef3ed;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}

.person-desc {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.9;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 24px;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.8;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}

/* ===== VALUES ===== */
.values-intro {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 48px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.value-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--accent);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44, 76, 59, 0.12);
}

.value-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.value-desc {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.8;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(44, 76, 59, 0.12);
}

.gallery-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.gallery-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #dce3da 0%, #a3b18a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.7;
}

.gallery-caption {
  padding: 16px 20px;
}

.gallery-caption h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.gallery-caption p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ===== FEATURED PERSON (index) ===== */
.featured-person {
  display: flex;
  gap: 36px;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.featured-person-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dce3da, #a3b18a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.featured-person-info { flex: 1; }
.featured-person-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.featured-person-role {
  color: var(--text-light);
  margin-bottom: 12px;
}
.featured-person-quote {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  font-style: italic;
  color: var(--primary);
  font-size: 1rem;
}

/* ===== ABOUT ===== */
.about-block {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
}

.about-block h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ===== PAGE HERO ===== */
.page-hero {
  margin-top: 64px;
  background: linear-gradient(135deg, #2c4c3b 0%, #466c54 100%);
  color: #fff;
  padding: 60px 0 52px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.page-hero p {
  color: #eef3ed;
  font-size: 1rem;
}

.story-spotlight {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 24px;
  margin-bottom: 36px;
  padding: 30px 32px;
  background: linear-gradient(135deg, #ffffff 0%, #eef3ed 100%);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.story-spotlight-label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dce3da;
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.story-spotlight-title {
  font-size: 1.65rem;
  line-height: 1.45;
  color: var(--primary);
  margin-bottom: 12px;
}

.story-spotlight-text {
  color: var(--text-light);
  max-width: 44rem;
}

.story-spotlight-quote {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 16px;
  background: rgba(44, 76, 59, 0.92);
  color: #eef3ed;
  font-size: 1.2rem;
  line-height: 1.8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: #a3b18a;
  text-align: center;
  padding: 36px 20px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-top: 80px;
}

.footer a { color: var(--accent); }

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 200;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

#back-to-top:hover {
  background: #b58555;
  transform: translateY(-2px);
}

#back-to-top.visible { display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .navbar-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--primary);
    padding: 16px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }

  .navbar-links.open { display: flex; }

  .navbar-links li { padding: 0; }

  .navbar-links a {
    display: block;
    padding: 12px 28px;
    border-bottom: none;
    font-size: 1rem;
  }

  .hamburger { display: flex; }

  .hero { padding: 72px 0 60px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: 1.8rem; }
  .hero-quote-text { font-size: 1.08rem; }
  .hero-stats { grid-template-columns: 1fr; }

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

  .person-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    gap: 24px;
  }

  .person-tags { justify-content: center; }

  .featured-person {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
  }

  .about-block { padding: 28px 20px; }

  .story-spotlight {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .card-overlay {
    inset: auto 10px 10px 10px;
    flex-wrap: wrap;
  }

  .timeline { padding-left: 28px; }
  .timeline-dot { left: -22px; }
  .timeline::before { left: 6px; }

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

  .section { padding: 52px 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.3rem; }
  .hero-buttons { gap: 12px; }
}
