/* ==========================================================================
   新光牙醫診所 (Shine Dental Clinic) - 現代精品醫療風格樣式庫
   ========================================================================== */

:root {
  /* 品牌核心色系 */
  --primary: #0284c7;        /* 醫療青藍 */
  --primary-hover: #0369a1;  /* 深海青 */
  --primary-light: #e0f2fe;  /* 柔和淺藍 */
  --teal: #0d9488;           /* 典雅碧綠 */
  --teal-light: #ccfbf1;
  --navy: #0f172a;           /* 深邃海軍藍 */
  --navy-light: #1e293b;
  --accent: #f59e0b;         /* 暖金重點色 */

  /* 中性色與背景 */
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --card-bg-glass: rgba(255, 255, 255, 0.85);
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* 陰影與圓角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 25px 40px -12px rgba(2, 132, 199, 0.22);

  /* 轉場效果 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* 容器與版面佈局 */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 14px;
}

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

/* 按鈕系統 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}

.btn-outline:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-white {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

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

.btn-block {
  width: 100%;
}

/* 頂部資訊列 (Topbar) */
.topbar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-item .icon {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
}

.topbar-phone .icon {
  width: 14px;
  height: 14px;
  color: #38bdf8;
}

.topbar-phone strong {
  color: #38bdf8;
}

.topbar-social {
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.topbar-social:hover {
  color: #38bdf8;
}

.topbar-social .icon {
  width: 15px;
  height: 15px;
}

/* 主導覽列 (Navbar) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.logo-symbol.small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta-mobile {
  display: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* 首頁主視覺 (Hero Section) */
.hero {
  position: relative;
  padding: 100px 0 120px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(2, 132, 199, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pill-text strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.pill-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-card-visual {
  position: relative;
}

.hero-main-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}

.hero-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #e2e8f0;
  aspect-ratio: 4 / 3;
}

.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(8px);
}

.badge-number {
  font-size: 28px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
}

.badge-label {
  font-size: 12px;
  line-height: 1.4;
  color: #cbd5e1;
}

/* 診所特色三欄卡片 (Highlights) */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.highlight-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  opacity: 0;
  transition: var(--transition);
}

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

.highlight-card:hover::before {
  opacity: 1;
}

.highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 26px;
}

.highlight-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.highlight-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 醫療項目九宮格 (Services Grid) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(2, 132, 199, 0.3);
}

.service-img-wrap {
  aspect-ratio: 16 / 10;
  position: relative;
  background: linear-gradient(135deg, #e0f2fe, #ccfbf1);
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.service-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.service-subtitle {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.service-snippet {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.read-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  color: var(--primary-hover);
  gap: 9px;
}

/* 醫師團隊展示 (Doctors Showcase) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-page-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.doctor-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(2, 132, 199, 0.4);
}

.doctor-avatar-wrap {
  aspect-ratio: 1 / 1.15;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.doctor-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.doctor-card:hover .doctor-avatar-wrap img {
  transform: scale(1.04);
}

.doctor-info {
  padding: 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.doctor-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.doctor-bio {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.7;
  text-align: left;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  width: 100%;
  word-break: break-word;
  white-space: normal;
}

/* 醫師團隊頁面宗旨區塊 (Team Mission Card) */
.team-mission-card {
  margin-top: 60px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.team-mission-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.team-mission-desc {
  max-width: 750px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.team-mission-action {
  margin-top: 24px;
}

/* 院所設備與照片瀑布流 (Equipment) */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.equipment-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.equipment-img-box {
  aspect-ratio: 16 / 11;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.equipment-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.equipment-card:hover .equipment-img-box img {
  transform: scale(1.05);
}

.equipment-info {
  padding: 20px;
}

.equipment-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.equipment-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 內頁專用 Hero (Page Header) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 60px 0 65px 0;
  text-align: center;
  position: relative;
}

.page-hero-title {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero-subtitle {
  font-size: 15px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 14px;
}

.breadcrumb a {
  color: #38bdf8;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 文章深度閱讀版型 (Article Detail) */
.article-detail-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
}

.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 34px;
}

.article-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-featured-img {
  margin-bottom: 34px;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 480px;
}

.article-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2, .article-body h3 {
  color: var(--navy);
  margin: 32px 0 16px 0;
  font-weight: 700;
}

.article-body ul, .article-body ol {
  margin: 16px 0 20px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

/* 聯絡我們與表單區塊 */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.contact-card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  height: 420px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 頁尾樣式 (Footer) */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 80px 0 30px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #38bdf8;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 20px;
}

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

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: var(--transition);
}

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

.col-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.col-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

/* 門診時間卡片 (預設淺色風格，適用於內頁與卡片) */
.hours-card {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}

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

.hours-row .day {
  color: var(--navy);
  font-weight: 700;
}

.hours-row .time {
  text-align: right;
  color: #334155;
  font-weight: 500;
  line-height: 1.5;
}

.hours-row.closed .day {
  color: #64748b;
  font-weight: 600;
}

.hours-row.closed .time {
  color: #ef4444;
  font-weight: 700;
}

.hours-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* 頁尾深色背景專用覆寫 */
.footer .hours-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.footer .hours-row {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  font-size: 13px;
}

.footer .hours-row .day {
  color: #cbd5e1;
  font-weight: 600;
}

.footer .hours-row .time {
  color: #f1f5f9;
}

.footer .hours-row.closed .day,
.footer .hours-row.closed .time {
  color: #f87171;
}

.footer .hours-note {
  font-size: 12px;
  color: #64748b;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.contact-list .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-list a:hover {
  color: #38bdf8;
}

.quick-links {
  list-style: none;
}

.quick-links li {
  margin-bottom: 10px;
}

.quick-links a {
  color: #94a3b8;
  transition: var(--transition);
}

.quick-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.quick-links a.admin-link {
  color: #f59e0b;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

/* 回到頂端浮動按鈕 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* 響應式佈局調整 (Responsive Media Queries) */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .highlight-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-grid, .team-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .topbar-left {
    width: 100%;
    justify-content: center;
  }
  .topbar-right {
    display: none;
  }
  .navbar-inner {
    height: 70px;
  }
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    font-size: 16px;
    width: 100%;
    padding: 8px 0;
  }
  .nav-cta-mobile {
    display: block;
    width: 100%;
    margin-top: 10px;
  }
  .hero {
    padding: 60px 0 80px 0;
  }
  .hero-title {
    font-size: 32px;
  }
  .page-hero {
    padding: 45px 0 50px 0;
  }
  .page-hero-title {
    font-size: 28px;
  }
  .page-hero-subtitle {
    font-size: 14px;
    padding: 0 12px;
  }
  .services-grid, .equipment-grid {
    grid-template-columns: 1fr;
  }
  .team-grid, .team-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .doctor-info {
    padding: 16px 12px;
  }
  .doctor-role-badge {
    font-size: 11px;
    padding: 3px 10px;
  }
  .doctor-name {
    font-size: 17px;
  }
  .doctor-bio {
    font-size: 12.5px;
    line-height: 1.6;
    margin-top: 10px;
    padding-top: 10px;
  }
  .team-mission-card {
    margin-top: 36px;
    padding: 28px 20px;
  }
  .team-mission-title {
    font-size: 20px;
  }
  .team-mission-desc {
    font-size: 14px;
    line-height: 1.7;
  }
  .team-mission-action .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .article-detail-wrap {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  .team-grid, .team-page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .doctor-card {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  .doctor-avatar-wrap {
    aspect-ratio: 1 / 1.05;
    max-height: 380px;
  }
  .doctor-info {
    padding: 18px 16px;
  }
  .doctor-name {
    font-size: 18px;
  }
  .doctor-bio {
    font-size: 13px;
    line-height: 1.65;
  }
  .team-mission-card {
    margin-top: 32px;
    padding: 24px 16px;
  }
}
