
    .page-hero h1 {font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; color: white !important; }
    .page-hero .lead { color: rgba(255,255,255,0.85) !important; }
    
    :root {
      --navy: #1B2952;
      --gold: #8e6a1d;
      --gold-light: #f5d77a;
      --gold-400: #e8b84b;
      --gold-600: #a67520;
      --white: #ffffff;
      --off-white: #f8f9fc;
      --gray-100: #f4f5fa;
      --gray-200: #e8eaf2;
      --gray-500: #5a6a8a;
      --gray-700: #4a5568;
      --font-serif: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif;
      --font-sans: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', sans-serif;
      font-size: 1rem;
      line-height: 1.8;
      color: var(--gray-700);
      background: var(--white);
    }
    img { max-width: 100%; height: auto; display: block; }
    a { color: var(--blue-accent); text-decoration: none; }
    a:hover { text-decoration: underline; }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
    .font-serif { font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; }
    .site-header { background: var(--white); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
    .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
    .brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
    .brand-mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
    .brand-text { display: flex; flex-direction: column; line-height: 1.3; font-size: 0.82rem; }
    .brand-text strong { font-weight: 700; color: var(--navy); font-size: 1.15rem; 
  white-space: nowrap;}
    .brand-text em { font-style: normal; color: var(--gray-500); font-size: 0.78rem; 
  white-space: nowrap;}
    .brand-mark { width: 44px; height: 44px; }
    .primary-nav { display: flex; gap: 0; }
    .primary-nav a { text-decoration: none; }
    .primary-nav a:hover { background: var(--gray-100); }
    
    
    .page-hero { background: var(--navy); padding: 5rem 0 4rem; color: var(--white); text-align: center; }
    .page-hero h1 { font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
    .page-hero p { font-size: 1.125rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
    .specialty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2rem; padding: 5rem 0; }
    .specialty-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 2.5rem; transition: all 0.3s; }
    .specialty-card:hover { border-color: var(--gold); box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-4px); }
    .specialty-icon { font-size: 3rem; margin-bottom: 1.5rem; }
    .specialty-card h2 { font-family: 'NotoSerifTC-Sub', 'Noto Serif TC', 'Songti TC', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 1rem; }
    .specialty-card p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 1.5rem; }
    .specialty-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-weight: 600; }
    .specialty-link:hover { color: var(--gold-light); text-decoration: none; }
    footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 3rem 0; font-size: 0.9rem; }
    .footer-brand { text-align: left; }
    .footer-col { text-align: left; }
    .footer-top { display: flex; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
    .footer-brand { flex: 0 0 auto; }
    .footer-col { flex: 1 1 auto; min-width: 140px; }
    .footer-bottom { padding-top: 1.5rem; }
    footer a { color: rgba(255,255,255,0.7); }
    footer a:hover { color: var(--white); text-decoration: none; }
    .footer-col ul { list-style: none; margin: 0; padding: 0; }
    .footer-col li { margin-bottom: 6px; }
    @media (max-width: 768px) {
      .primary-nav { display: none; }
      .page-hero { padding: 3rem 0 2.5rem; }
      .specialty-grid { padding: 3rem 0; }
      .specialty-card { padding: 2rem; }
    }
    .search-result-item strong { font-weight:600; }
  
.primary-nav a {
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 4px;
  transition: background 0.2s;

  white-space: nowrap;
  text-decoration: none;}
.primary-nav a:hover { background: var(--gray-100); color: var(--navy); }
.primary-nav a.active { background: var(--navy); color: #fff !important; }
.primary-nav a.cta-btn { background: var(--gold-600); color: #141414; font-weight: 600; }
.primary-nav a.cta-btn:hover { background: var(--gold-400); }
.primary-nav a.cta-btn.active { background: var(--navy); }

@media (min-width: 769px) and (max-width: 1100px) {
  .primary-nav {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c8ccd8 transparent;
  }
  .primary-nav::-webkit-scrollbar { height: 4px; }
  .primary-nav::-webkit-scrollbar-thumb { background: #c8ccd8; border-radius: 2px; }
  .primary-nav::-webkit-scrollbar-track { background: transparent; }
  .primary-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* 沒有漢堡按鈕的頁面：手機版把導覽列改回橫排可捲動，而不是整個隱藏 */
@media (max-width: 768px) {
  .site-header:not(:has(.nav-toggle)) .primary-nav {
    display: flex !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    border-bottom: 0 !important;
    flex-direction: row !important;
    padding: 0 !important;
    z-index: auto !important;
    width: auto !important;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header:not(:has(.nav-toggle)) .primary-nav::-webkit-scrollbar { display: none; }
  .site-header:not(:has(.nav-toggle)) .primary-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* ============================================================
   Nav responsive fix (2026-10-27)
   平板/手機不再整頁橫向溢出；沒有漢堡按鈕的頁面改用可橫捲的導覽列。
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {
  .primary-nav {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c8ccd8 transparent;
  }
  .primary-nav::-webkit-scrollbar { height: 4px; }
  .primary-nav::-webkit-scrollbar-thumb { background: #c8ccd8; border-radius: 2px; }
  .primary-nav::-webkit-scrollbar-track { background: transparent; }
  .primary-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* 沒有漢堡按鈕的頁面：手機版把導覽列改回橫排可捲動，而不是整個隱藏 */
@media (max-width: 768px) {
  .site-header:not(:has(.nav-toggle)) .nav-wrap {
    flex-wrap: wrap;
    height: auto;
    min-height: 68px;
    row-gap: 6px;
    padding-bottom: 6px;
  }
  .site-header:not(:has(.nav-toggle)) .primary-nav {
    display: flex !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    border-bottom: 0 !important;
    flex-direction: row !important;
    padding: 0 !important;
    z-index: auto !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .site-header:not(:has(.nav-toggle)) .primary-nav::-webkit-scrollbar { display: none; }
  .site-header:not(:has(.nav-toggle)) .primary-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* narrow-screen card fix (2026-10-27) */
@media (max-width: 360px) {
  .specialty-card {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .specialty-card * { min-width: 0; overflow-wrap: anywhere; }
}

/* ── 麵包屑（頁面專屬 CSS 未引用主 styles.css，故在此補齊）───────── */
.breadcrumb { margin: 0 auto; padding: 1rem 1.5rem; max-width: 1200px; font-size: 0.85rem; color: #5a6a8a; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding: 0; margin: 0; }
.breadcrumb-list li { display: inline-flex; align-items: center; }
.breadcrumb-list a { color: #1B2952; text-decoration: underline; text-underline-offset: 0.2em; padding: 0.25rem 0; transition: color 0.2s; }
.breadcrumb-list a:hover { color: #8e6a1d; }
.breadcrumb-list .breadcrumb-sep { padding: 0 0.5rem; color: #767676; margin: 0 0.25rem; }
.breadcrumb-list > li:last-child > span { color: #5a6a8a; }
@media (max-width: 768px) {
  .breadcrumb { padding: 0.75rem 1rem; font-size: 0.8rem; }
  .breadcrumb-list .breadcrumb-sep { padding: 0 0.25rem; }
}

/* 文章頁 hero 標題容器寬度統一（2026-10-31，全站視覺一致） */
body .article-hero .container,
body .hub-hero .container,
body .page-hero .container {
  max-width: 760px;
}
