/* ==========================================================================
   聖公會李福慶中學 現代化校網 2.0 樣式表 (LFH Modern Portal Design System)
   ========================================================================== */

:root {
  --primary: #0f2b5c;
  --primary-hover: #1e3a8a;
  --primary-light: #eff6ff;
  --accent-blue: #0284c7;
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  --accent-green: #059669;
  --accent-red: #dc2626;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", Georgia, serif;
  --max-w: 1200px;
  --nav-height: 76px;
}

/* 高對比模式 (WCAG 2.1 AA 支援) */
html.high-contrast {
  --primary: #ffff00;
  --primary-hover: #ffffff;
  --primary-light: #1e293b;
  --accent-blue: #38bdf8;
  --accent-gold: #facc15;
  --bg-page: #000000;
  --bg-card: #0f172a;
  --bg-alt: #1e293b;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --text-light: #94a3b8;
  --border-color: #ffff00;
  --shadow-md: 0 0 0 2px #ffff00;
}

/* 字體大小縮放支援 */
html.font-lg { font-size: 18px; }
html.font-xl { font-size: 20px; }

/* 基礎重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 無障礙跳至主要內容 */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-gold);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
a:hover {
  color: var(--accent-blue);
}

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

/* 頂部快捷列 (Top Utility Bar) */
.top-bar {
  background: #081735;
  color: #cbd5e1;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-motto {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #fbbf24;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-link {
  color: #94a3b8;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.top-link:hover {
  color: #ffffff;
}
.accessibility-controls {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.a11y-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.a11y-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 主導航列 (Main Header & Navbar) */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
}
.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 52px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name-zh {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}
.brand-name-en {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* 桌面選單 */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--primary);
  background: var(--bg-alt);
}
.nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* 下拉選單 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease-in-out;
  z-index: 100;
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item a {
  display: block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}
.dropdown-item a:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 22px;
}

/* 導航右側動作按鈕 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-trigger-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}
.search-trigger-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-card);
}
.btn-cta {
  background: linear-gradient(135deg, var(--accent-gold), #b45309);
  color: #fff !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
  color: var(--text-main);
}

/* 重要通知橫幅 (Notification Banner) */
.smart-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  padding: 10px 20px;
  font-size: 0.9rem;
}
.smart-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.smart-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.banner-badge {
  background: #d97706;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}
.banner-link {
  font-weight: 700;
  color: #b45309;
  text-decoration: underline;
}
.banner-close-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #92400e;
  cursor: pointer;
  padding: 2px 8px;
}

/* 英雄首頁橫額 (Hero Section) */
.hero {
  position: relative;
  background: linear-gradient(135deg, #091b3a 0%, #173369 100%);
  color: #ffffff;
  padding: 60px 20px 80px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-page), transparent);
}
.hero-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fde68a;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: #0284c7;
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: #0369a1;
}
.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
}
.hero-visual {
  position: relative;
}
.hero-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.3);
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: var(--bg-card);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.floating-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.floating-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 核心實證指標列 (Quick Stats Strip) */
.stats-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 20px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-box {
  padding: 10px;
}
.stat-box:not(:last-child) {
  border-right: 1px solid var(--border-color);
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 通用容器與區塊 (Sections & Containers) */
.section-pad {
  padding: 70px 20px;
}
.section-alt {
  background: var(--bg-alt);
}
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 45px;
}
.section-tag {
  color: var(--accent-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 12px auto 0;
}

/* 卡片網格 (Grid & Cards) */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.portal-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
}
.portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}
.card-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e2e8f0;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.portal-card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 43, 92, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}
.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}
.card-snippet {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.card-action {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-action:hover {
  color: var(--primary);
}

/* 校長的話特別精選區 (Principal Message Feature) */
.principal-feature {
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 50px;
}
.principal-portrait {
  background: #e2e8f0;
  overflow: hidden;
}
.principal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.principal-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.principal-quote {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 24px;
  position: relative;
}
.principal-author {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
}
.principal-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 服務台與到校捷徑 (Service Hub) */
.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}
.service-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.service-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.service-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 互動行事曆 (Calendar Widget) */
.calendar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.calendar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.pill-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.event-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent-blue);
  background: var(--bg-alt);
  transition: background 0.15s;
}
.event-row:hover {
  background: var(--primary-light);
}
.event-date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  padding: 4px 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.event-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
}
.event-day {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.event-info {
  flex-grow: 1;
}
.event-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 2px;
}
.event-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.event-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
}

/* 全域即時搜尋視窗 (Instant Search Modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.modal-overlay.open {
  display: flex;
}
.search-modal {
  background: var(--bg-card);
  width: 90%;
  max-width: 640px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.search-header {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}
.search-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
}
.search-input {
  border: none;
  font-size: 1.1rem;
  flex-grow: 1;
  outline: none;
  background: transparent;
  color: var(--text-main);
}
.search-results-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
}
.search-result-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: block;
  transition: background 0.15s;
}
.search-result-item:hover, .search-result-item:focus {
  background: var(--primary-light);
}
.search-result-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.search-result-snippet {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 頁尾 (Comprehensive Accessible Footer) */
.site-footer {
  background: #081735;
  color: #94a3b8;
  padding-top: 60px;
  border-top: 4px solid var(--accent-gold);
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 800;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #94a3b8;
}
.footer-contact-info {
  list-style: none;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 18px;
  font-weight: 700;
  border-left: 3px solid var(--accent-gold);
  padding-left: 10px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: all 0.15s;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-bottom {
  background: #040d21;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  font-size: 0.82rem;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.a11y-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
}

/* 流動端抽屜選單 (Mobile Navigation Drawer) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transition: right 0.3s ease-in-out;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open {
  right: 0;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.drawer-close-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
}
.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-nav-list a {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 8px 0;
}
.drawer-nav-list a:hover {
  color: var(--primary);
}

/* 響應式斷點 (Responsive Breakpoints) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .principal-feature {
    grid-template-columns: 1fr;
  }
  .principal-portrait {
    height: 300px;
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4, .service-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-nav, .search-trigger-btn {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-box:nth-child(2) {
    border-right: none;
  }
  .card-grid-3, .card-grid-4, .service-hub-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .hero-floating-card {
    position: static;
    margin-top: 16px;
  }
}
