/* ============================================================
   基隆海洋獅子會 — Keelung Oceanic Lions Club
   Main Stylesheet
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-light: #1a2a44;
  --navy-mid: #0f1f38;
  --gold: #d4a853;
  --gold-light: #e8c06a;
  --gold-dark: #b8923d;
  --white: #ffffff;
  --text-muted: rgba(255,255,255,0.7);
  --text-dim: rgba(255,255,255,0.5);
  --border: rgba(212,168,83,0.3);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --font-zh: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-en: 'Georgia', 'Times New Roman', serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-zh);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  line-height: 1.3;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--navy);
}

.section-mid {
  background-color: var(--navy-mid);
}

.section-light {
  background-color: var(--navy-light);
}

.section-title {
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  letter-spacing: 0.08em;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.75rem auto 2.5rem;
  border-radius: 2px;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.99);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.navbar-logo {
  font-size: 1.6rem;
  line-height: 1;
}

.navbar-name {
  display: flex;
  flex-direction: column;
}

.navbar-name .zh {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.navbar-name .en {
  color: var(--text-muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--gold);
  background: rgba(212,168,83,0.1);
}

.navbar-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700;
  padding: 0.4rem 1rem !important;
  border-radius: 20px !important;
}

.navbar-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(135deg, #0a1628 0%, #0f1f38 40%, #091422 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(212,168,83,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(212,168,83,0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(10,50,120,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.35rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-title span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.hero-en {
  font-family: var(--font-en);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '↓';
  font-size: 1.2rem;
  color: var(--gold);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,83,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-secondary:hover {
  background: rgba(212,168,83,0.1);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.875rem;
}

/* ============================================================
   STATS GRID
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 3rem 0;
}

.stat-item {
  background: var(--navy-light);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(212,168,83,0.08);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--font-en);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */

.countdown-section {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.countdown-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,168,83,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.countdown-event {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.countdown-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.countdown-complete {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  background: rgba(212,168,83,0.12);
  color: var(--gold);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}

.countdown-number {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-en);
  line-height: 1;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  min-width: 80px;
  text-align: center;
}

.countdown-label {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.countdown-separator {
  font-size: 3rem;
  color: var(--gold);
  font-weight: 900;
  line-height: 1;
  align-self: center;
  margin-top: -0.5rem;
}

/* ============================================================
   CARDS
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212,168,83,0.15);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}

.timeline-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 1;
  margin-top: 0.4rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-content {
  flex: 1;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: calc(50% - 2rem);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: calc(50% + 2rem);
}

.timeline-year {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-family: var(--font-en);
}

.timeline-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   PRESIDENTS TABLE
   ============================================================ */

.presidents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.president-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.president-card:hover {
  border-color: var(--gold);
  background: rgba(212,168,83,0.05);
}

.president-card.current {
  border-color: var(--gold);
  background: rgba(212,168,83,0.08);
}

.president-card.outgoing {
  border-color: rgba(212,168,83,0.5);
}

.president-term {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-family: var(--font-en);
}

.president-name {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.president-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================
   LCIF TABLE
   ============================================================ */

.lcif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.lcif-table th {
  background: var(--gold);
  color: var(--navy);
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lcif-table td {
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
}

.lcif-table tr:hover td {
  background: rgba(212,168,83,0.05);
  color: var(--white);
}

.lcif-table tr.top-donor td {
  color: var(--gold);
  font-weight: 700;
}

.lcif-count {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-en);
  font-size: 1.05rem;
}

/* ============================================================
   SERVICE SECTION
   ============================================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.service-item:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.service-content h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  border-color: var(--gold);
  transform: scale(1.02);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-dim);
}

.gallery-placeholder .ph-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.gallery-placeholder .ph-text {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.gallery-coming-soon {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.gallery-coming-soon h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.gallery-coming-soon p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================
   FORM / JOIN
   ============================================================ */

.form-section {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-iframe-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}

.form-iframe-wrapper iframe {
  border: none;
  border-radius: var(--radius);
  max-width: 100%;
}

.join-reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.join-reason {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.join-reason .reason-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.join-reason h4 {
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.join-reason p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-block {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.contact-item strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.contact-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-link:hover {
  color: var(--gold-light);
}

.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   ABOUT / SPIRIT
   ============================================================ */

.spirit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.spirit-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.spirit-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.spirit-chinese {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.spirit-en {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.founder-avatar {
  width: 200px;
  height: 200px;
  background: var(--navy-light);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: #050e1a;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .zh {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.footer-brand .en {
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-nav ul li {
  margin-bottom: 0.5rem;
}

.footer-nav ul li a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-nav ul li a:hover {
  color: var(--gold);
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-lions {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   PAGE HERO (sub-pages)
   ============================================================ */

.page-hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(212,168,83,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: var(--gold);
}

/* ============================================================
   NOTICE BANNER
   ============================================================ */

.notice-banner {
  background: linear-gradient(90deg, rgba(212,168,83,0.15), rgba(212,168,83,0.05), rgba(212,168,83,0.15));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.notice-banner .notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.notice-banner p {
  color: var(--gold);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  .navbar-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }

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

  .navbar-links a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before { left: 1rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 3rem;
  }
  .timeline-dot {
    left: 1rem;
  }
  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

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

  .founder-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .countdown-timer {
    gap: 0.75rem;
  }

  .countdown-number {
    min-width: 60px;
    font-size: 2rem;
    padding: 0.4rem 0.75rem;
  }

  .countdown-separator {
    font-size: 2rem;
  }

  .presidents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .presidents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-iframe-wrapper iframe {
    width: 100%;
    height: 700px;
  }

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

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gold-line {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 3rem 0;
}

.tag {
  display: inline-block;
  background: rgba(212,168,83,0.15);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.highlight-box {
  background: rgba(212,168,83,0.07);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────────────────────
   2026-08-06 手機版橫向溢出修正（純新增，未改動任何既有規則）
   病灶：部分容器以行內 style 寫死 grid-template-columns，且 1fr 的
   隱含最小值為 min-content，在 375px 下欄寬被內容撐破 → 整頁橫捲。
   影響頁：index(440px) / gallery(634px) / presidents(438px)。
   回滾：刪除本區塊即可（備份 scratchpad/styles.css.bak_pre_mobilefix）。
   ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .cards-grid  { grid-template-columns: 1fr !important; }
  .stats-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .cards-grid > *, .stats-grid > *, .gallery-grid > *,
  [style*="grid-template-columns"] > * { min-width: 0 !important; }
}

/* 相片格（首頁「現場實況」與相片館共用；2026-08-10 自 gallery.html 內嵌樣式收攏至此） */
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg, 10px);
  border: 1px solid var(--border);
  background: #0c1a30;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(0deg, rgba(10,22,40,0.95) 0%, transparent 100%);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-label { opacity: 1; }
