:root {
  --navy: #0B2545;
  --navy-mid: #17458F;
  --gold: #F7A81B;
  --gold-dark: #D98A00;
  --gold-soft: #FEF5E3;
  --cream: #FAF8F5;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-muted: #475569;
  --shadow-sm: 0 4px 14px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 37, 69, 0.10);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Theme Switcher Bar */
.theme-switcher {
  background: #0F172A;
  color: #F8FAFC;
  padding: 8px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.switcher-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.switcher-label {
  color: #F7A81B;
  font-weight: 700;
  white-space: nowrap;
}

.switcher-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.switcher-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  font-weight: 600;
  font-size: 0.78rem;
  transition: background 0.15s, color 0.15s;
}

.switcher-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

.switcher-pill.active {
  background: #F7A81B;
  color: #0B2545;
  font-weight: 800;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  max-width: 245px;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brand-logo-img {
    height: 46px;
    max-width: 310px;
  }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 37, 69, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(247, 168, 27, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-wheel {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #FFD166);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: #ffb938;
}

.menu-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 1.15rem;
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--navy);
  padding: 12px 20px 20px;
  border-bottom: 2px solid var(--gold);
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer a {
  color: var(--white);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 56px 0 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 37, 69, 0.94) 35%, rgba(11, 37, 69, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-content > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 88px;
  }
  .hero-content {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 48px;
  }
}

.pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  background: rgba(247, 168, 27, 0.16);
  border: 1px solid rgba(247, 168, 27, 0.5);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.hero-lead {
  font-size: 1.06rem;
  color: #E2E8F0;
  margin: 0 0 28px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, background-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-gold:hover {
  background: #ffb938;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(247, 168, 27, 0.35);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.hero-card h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--gold);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.93rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #CBD5E1;
  flex-shrink: 0;
}

.info-val {
  font-weight: 600;
  text-align: right;
  color: var(--white);
}

/* Sections */
section {
  padding: 64px 0;
}

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

.section-head {
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  color: var(--navy-mid);
  background: #E0ECFF;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  color: var(--navy);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 680px;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

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

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

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.four-way-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.leader-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #E2E8F0;
  color: var(--text);
  margin-bottom: 10px;
}

.leader-badge.active {
  background: var(--navy);
  color: var(--gold);
}

.leader-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0;
}

.leader-role {
  color: var(--navy-mid);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-cat {
  background: var(--gold-soft);
  color: var(--gold-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.news-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
  line-height: 1.4;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--navy-mid);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* FB Section */
.fb-banner {
  background: linear-gradient(135deg, #0B2545, #17458F);
  color: var(--white);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .fb-banner {
    flex-direction: row;
    align-items: center;
  }
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
}

.form-control:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.72);
  z-index: 200;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 44px 0 36px;
  font-size: 0.9rem;
}

.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 58px;
}

.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}
