:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-light: #ffedd5;
  --success: #16a34a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --header-height: 72px;
  --font-base: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Noto Sans TC', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 14px 28px rgba(2, 132, 199, 0.12), 0 10px 10px rgba(2, 132, 199, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

body {
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

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

.section-container, .header-container, .footer-container, .page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. INDEPENDENT CLEAN NAVBAR (Option 1)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 1000;
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  max-height: 48px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}

.header-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.header-nav .nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.header-nav .nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.header-nav .nav-item.active .nav-link {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn .bar {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  right: -280px;
  width: 280px;
  height: calc(100vh - var(--header-height));
  background: #ffffff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.mobile-overlay.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
}

.mobile-nav-item.active .mobile-nav-link {
  color: var(--primary);
  background: var(--primary-light);
}

.mobile-drawer-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-social-link {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   2. HERO SLIDER SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  background: #0f172a;
}

.hero-swiper {
  width: 100%;
  height: 540px;
  position: relative;
}

.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 15%;
     object-position: center 15%;
  filter: brightness(0.96);
}

.hero-caption-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 48px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.2) 40%, rgba(15, 23, 42, 0.6) 100%);
}

.hero-caption-card {
  text-align: center;
  color: #ffffff;
  padding: 22px 36px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  max-width: 640px;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  color: #f1f5f9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-btn.primary {
  background: var(--primary);
  color: #ffffff;
}

.hero-btn.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.hero-btn.secondary {
  background: #ffffff;
  color: var(--text-main);
}

.hero-btn.secondary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.hero-swiper .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.6;
  width: 10px;
  height: 10px;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
  width: 24px;
  border-radius: var(--radius-full);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #ffffff;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
  opacity: 1;
}

/* ==========================================================================
   3. THREE CORE CULTURE CARDS
   ========================================================================== */
.culture-section {
  padding: 60px 0 40px 0;
}

.culture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.culture-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
}

.culture-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.culture-icon-wrap {
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.culture-icon {
  width: 40px;
  height: 40px;
}

.culture-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.culture-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 20px;
  flex-grow: 1;
}

.culture-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   4. FEATURED GALLERY (ALBUM)
   ========================================================================== */
.album-section {
  padding: 60px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.section-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.album-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
}

.album-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center 20%;
     object-position: center 20%;
  transition: transform 0.4s ease;
}

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

.album-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
}

.album-tag {
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.album-body {
  padding: 18px 20px;
  flex-grow: 1;
}

.album-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.album-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-footer {
  margin-top: 36px;
}

.btn-more-outline {
  display: inline-block;
  padding: 10px 24px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-more-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   5. LATEST NEWS SECTION
   ========================================================================== */
.news-section {
  padding: 60px 0 80px 0;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.news-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-match {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-study {
  background: #fef3c7;
  color: #b45309;
}

.badge-event {
  background: #dcfce7;
  color: #15803d;
}

.badge-general {
  background: #f1f5f9;
  color: #475569;
}

.news-date {
  font-size: 13.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.news-title a {
  color: var(--text-main);
}

.news-title a:hover {
  color: var(--primary);
}

.news-excerpt {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-link-wrap {
  text-align: right;
}

.news-read-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

.btn-more-primary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: var(--primary);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.btn-more-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   6. INNER PAGES & ARTICLE DETAIL
   ========================================================================== */
.page-header-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  padding: 48px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-main-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-main-slogan {
  font-size: 16px;
  opacity: 0.9;
}

.page-content-card, .article-detail-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 60px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin: 24px 0 16px 0;
}

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

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.article-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 10px;
}

.typography h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 32px 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.typography h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 12px 0;
}

.typography p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: #334155;
}

.typography ul, .typography ol {
  margin: 16px 0 24px 24px;
  color: #334155;
}

.typography li {
  margin-bottom: 8px;
}

.typography hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 32px 0;
}

.article-footer-nav {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-back {
  font-weight: 600;
  color: var(--text-muted);
}

.btn-back:hover {
  color: var(--primary);
}

/* Gallery Page Grid */
.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.gallery-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gallery-item-img-wrap {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.gallery-item-img-wrap img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.gallery-item-body {
  padding: 20px;
}

.gallery-item-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.gallery-item-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.gallery-link-btn {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

/* Archives Page */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 60px;
}

.archive-item-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.archive-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.archive-item-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.archive-item-title a {
  color: var(--text-main);
}

.archive-item-title a:hover {
  color: var(--primary);
}

.archive-item-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.archive-item-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 60px 0 30px 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-slogan {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.footer-col h5 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-swiper {
    height: 340px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .page-content-card, .article-detail-card {
    padding: 24px 20px;
  }
}