/*
Theme Name: Astra Dr.Chiaopa
Theme URI: https://drchiaopa.com
Description: Astra 子主題，套用 Dr.喬巴 品牌設計系統（深海藍綠 + 橘 CTA）。為沈煥喬醫師個人品牌網站客製，含衛教文章與臨床案例頁面模板。
Author: Natural (AI 分身) for Dr. Chiao-Pa Shen
Author URI: https://drchiaopa.com
Template: astra
Version: 0.2.13
Text Domain: astra-drchiaopa
*/

/* ============================================
   品牌設計系統 — Design Tokens
   來源：200_Reference/brand/DESIGN.md v1.0
   ============================================ */

:root {
  /* Primary palette */
  --primary:        #2C7DA0;
  --primary-dark:   #1A5276;
  --primary-light:  #A9CCE3;
  --primary-soft:   #EAF4FB;

  /* Accent */
  --accent:         #E8956D;
  --accent-soft:    #FDF0E8;

  /* Neutral */
  --text-primary:   #1A2027;
  --text-secondary: #3D5875;
  --text-muted:     #8099B5;
  --border:         #DDE6EF;
  --bg:             #F4F6F8;
  --surface:        #FFFFFF;

  /* Typography */
  --font-zh: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;
  --font-en: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Shadow */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(26, 82, 118, 0.10);

  /* Transition */
  --ease: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Global Resets & Typography
   ============================================ */

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

body {
  font-family: var(--font-zh);
  color: var(--text-primary);
  background: var(--bg);
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.8;
  letter-spacing: 0.01em;
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-zh);
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 var(--space-md);
  overflow-wrap: break-word;
}

h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.3; letter-spacing: -0.5px; }
h2 { font-size: clamp(22px, 4vw, 32px); font-weight: 600; letter-spacing: -0.3px; }
h3 { font-size: clamp(16px, 2.2vw, 20px); font-weight: 600; letter-spacing: -0.1px; }
h4 { font-size: 16px; font-weight: 600; }

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
}

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

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

/* 數字、英文用 DM Sans */
.font-en,
time,
.post-date,
.case-number {
  font-family: var(--font-en);
  letter-spacing: 0;
}

/* ============================================
   Layout Helpers
   ============================================ */

.dc-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.dc-wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.dc-section {
  padding: var(--space-3xl) 0;
}

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

@media (max-width: 768px) {
  .dc-section { padding: var(--space-2xl) 0; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}

/* ============================================
   Section Header (label + divider + title)
   ============================================ */

.dc-section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.dc-section-divider {
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin: 0 0 var(--space-lg);
  border-radius: 2px;
}

.dc-section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  letter-spacing: -0.3px;
}

.dc-section-subtitle {
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  font-size: clamp(14px, 2vw, 16px);
}

.dc-section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.dc-section-header .dc-section-divider {
  margin: 0 auto var(--space-lg);
}

/* ============================================
   Buttons
   ============================================ */

.dc-btn,
body .elementor-button.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-zh);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.dc-btn--primary {
  background: var(--primary);
  color: #fff;
}

.dc-btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.dc-btn--accent {
  background: var(--accent);
  color: #fff;
}

.dc-btn--accent:hover {
  background: #D87E54;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 149, 109, 0.30);
}

.dc-btn--secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.dc-btn--secondary:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.dc-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

/* ============================================
   Cards
   ============================================ */

.dc-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

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

.dc-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--primary-soft);
}

.dc-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease);
}

.dc-card:hover .dc-card__thumb img {
  transform: scale(1.04);
}

.dc-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dc-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
}

.dc-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}

.dc-card__title a {
  color: inherit;
}

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

.dc-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dc-card__more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.dc-card__more::after {
  content: ' →';
  transition: margin-left var(--ease);
  display: inline-block;
}

.dc-card:hover .dc-card__more::after {
  margin-left: 4px;
}

/* ============================================
   Tags & Badges
   ============================================ */

.dc-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.dc-tag--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.dc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-en);
}

/* ============================================
   Card Grid
   ============================================ */

.dc-grid {
  display: grid;
  gap: var(--space-lg);
}

.dc-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.dc-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .dc-grid--3,
  .dc-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .dc-grid--3,
  .dc-grid--4 { grid-template-columns: 1fr; }
}

/* ============================================
   Section: CTA (預約)
   ============================================ */

.dc-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: var(--space-3xl) var(--space-lg);
  border-radius: var(--radius-xl);
  text-align: center;
}

.dc-cta h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.dc-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.dc-cta__clinics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .dc-cta__clinics { grid-template-columns: 1fr; }
  .dc-cta h2 { font-size: 24px; }
}

.dc-cta__clinic {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(8px);
  text-align: left;
}

.dc-cta__clinic h3 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 var(--space-xs);
}

.dc-cta__clinic p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin: 0;
}

/* ============================================
   Schedule Table（CTA 區內的本週診次）
   ============================================ */

.dc-schedule {
  margin-top: var(--space-2xl);
}

.dc-schedule__title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 var(--space-md);
  text-align: center;
  letter-spacing: 0.08em;
}

.dc-schedule__title::before,
.dc-schedule__title::after {
  content: '·';
  margin: 0 12px;
  opacity: 0.5;
}

.dc-schedule__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  max-width: 100%;
}

.dc-schedule__table {
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 4px;
  color: #fff;
}

.dc-schedule__table th,
.dc-schedule__table td {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 400;
  min-width: 58px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dc-schedule__table thead th,
.dc-schedule__table tbody th[scope="row"] {
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.dc-schedule__table thead th[aria-label="時段"] {
  background: transparent;
  border-color: transparent;
}

.dc-schedule__cell--empty {
  color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03) !important;
}

.dc-schedule__note {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 2px;
  opacity: 0.95;
}

.dc-schedule__legend {
  text-align: center;
  margin: var(--space-lg) 0 0;
  font-size: 13px;
}

.dc-schedule__legend a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  transition: all var(--ease);
}

.dc-schedule__legend a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

@media (max-width: 600px) {
  .dc-schedule__table th,
  .dc-schedule__table td {
    padding: 8px 8px;
    min-width: 48px;
    font-size: 12px;
  }
}

/* ============================================
   Single Article / Case
   ============================================ */

.dc-article {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 760px;
  margin: var(--space-2xl) auto;
}

.dc-article__header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.dc-article__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.dc-article__meta {
  display: flex;
  gap: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
}

.dc-article__content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-primary);
}

.dc-article__content p { margin-bottom: 1.2em; }
.dc-article__content h2 { margin-top: 2em; margin-bottom: 0.8em; }
.dc-article__content h3 { margin-top: 1.5em; margin-bottom: 0.6em; }
.dc-article__content img { max-width: 100%; border-radius: var(--radius-md); margin: var(--space-md) 0; }
.dc-article__content blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-sm) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-primary);
  font-style: normal;
}

@media (max-width: 768px) {
  .dc-article { padding: var(--space-xl) var(--space-lg); }
  .dc-article__title { font-size: 24px; }
}

/* ============================================
   Case Report Specific
   ============================================ */

.dc-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

@media (max-width: 600px) {
  .dc-case-grid { grid-template-columns: 1fr; }
}

.dc-case-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.dc-case-image img {
  width: 100%;
  height: auto;
  display: block;
}

.dc-case-image__label {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: rgba(26, 32, 39, 0.85);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

.dc-case-field {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.dc-case-field:last-child { border-bottom: none; }

.dc-case-field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  font-family: var(--font-en);
}

.dc-case-field__value {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.8;
}

.dc-case-privacy {
  margin-top: var(--space-2xl);
  padding: var(--space-md);
  background: var(--primary-soft);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* ============================================
   Footer
   ============================================ */

.dc-footer {
  background: #0E1A24;
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

.dc-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .dc-footer__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
}

.dc-footer h3 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}

.dc-footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 var(--space-xs);
}

.dc-footer p,
.dc-footer li {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.dc-footer__clinics li { margin-bottom: var(--space-md); }
.dc-footer__role { color: var(--accent); font-size: 12px; margin: 0; }
.dc-footer__loc { font-size: 12px; opacity: 0.6; margin: 0; }

.dc-footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.dc-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all var(--ease);
}

.dc-footer__social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.dc-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.dc-footer__slogan {
  font-family: var(--font-zh);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
}

/* ============================================
   Navigation (Header)
   ============================================ */

.dc-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

.dc-nav.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.dc-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-lg);
}

.dc-nav__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.dc-nav__brand-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.dc-nav__brand-sub {
  font-size: 11px;
  color: var(--primary);
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* 防 Astra 從外部 hook 注入 custom-logo — 一律隱藏在 dc-nav 內 */
.dc-nav .custom-logo-link,
.dc-nav .custom-logo,
.dc-nav .site-title { display: none !important; }

.dc-nav__menu-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.dc-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.dc-nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

.dc-nav__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--ease);
  transform-origin: center;
}

.dc-nav__menu a:hover,
.dc-nav__menu .current-menu-item a {
  color: var(--primary);
}

.dc-nav__menu a:hover::after,
.dc-nav__menu .current-menu-item a::after {
  transform: scaleX(1);
}

.dc-nav__cta {
  padding: 8px 18px !important;
  font-size: 13px !important;
}

.dc-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.dc-nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--ease);
}

.dc-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.dc-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.dc-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .dc-nav__toggle { display: flex; }

  .dc-nav__menu-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--ease);
  }

  .dc-nav__menu-wrap.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .dc-nav__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .dc-nav__menu li { border-bottom: 1px solid var(--border); }
  .dc-nav__menu li:last-child { border-bottom: none; }
  .dc-nav__menu a { padding: 14px 0; display: block; }
  .dc-nav__menu a::after { display: none; }

  .dc-nav__cta {
    margin-top: var(--space-md);
    justify-content: center;
  }
}

/* ============================================
   Hero 區塊（首頁第一屏）
   桌面：左裝飾欄 60px | 醫師肖像 1fr | 內容 1.4fr
   平板：裝飾欄 40px | 肖像 0.8fr | 內容 1.2fr
   手機：上方 4px accent 帶 | 肖像全寬 | 內容全寬
   ============================================ */

.dc-hero {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1.4fr);
  background: var(--primary-soft);
  min-height: clamp(520px, 70vh, 720px);
  overflow: hidden;
}

@media (max-width: 1023px) {
  .dc-hero {
    grid-template-columns: 40px minmax(0, 0.85fr) minmax(0, 1.15fr);
    min-height: 560px;
  }
}

@media (max-width: 767px) {
  .dc-hero {
    grid-template-columns: 1fr;
    grid-template-rows: 4px auto auto;
    min-height: 0;
  }
}

/* ── 左裝飾欄 ── */
.dc-hero__aside {
  position: relative;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dc-hero__aside-text {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.dc-hero__aside::before,
.dc-hero__aside::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.dc-hero__aside::before { top: 24px; }
.dc-hero__aside::after  { bottom: 24px; }

@media (max-width: 767px) {
  .dc-hero__aside { display: none; }
  .dc-hero::before {
    content: '';
    grid-column: 1;
    grid-row: 1;
    background: var(--accent);
    height: 4px;
  }
}

/* ── 醫師肖像區 ── */
.dc-hero__portrait {
  position: relative;
  background: radial-gradient(circle at 50% 50%,
    #4a5360 0%,
    #2d343d 45%,
    #1a1f26 75%,
    #0e1219 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.dc-hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  mix-blend-mode: normal;
}

/* vignette 強化光暈：底部漸入暗角 */
.dc-hero__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 45%,
      transparent 0%,
      rgba(14, 18, 25, 0.15) 60%,
      rgba(14, 18, 25, 0.55) 100%);
  pointer-events: none;
}

@media (max-width: 767px) {
  .dc-hero__portrait {
    grid-column: 1;
    grid-row: 2;
    height: 320px;
  }
}

/* ── 右側內容 ── */
.dc-hero__content {
  position: relative;
  padding: clamp(32px, 6vw, 64px) clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2vw, 24px);
}

@media (max-width: 767px) {
  .dc-hero__content {
    grid-column: 1;
    grid-row: 3;
    padding: 40px 24px 56px;
  }
}

/* 裝飾 + 與點點 */
.dc-hero__deco-plus {
  position: absolute;
  top: 32px;
  right: 56px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 300;
  opacity: 0.45;
}

.dc-hero__deco-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.dc-hero__deco-dot--tr { top: 88px; right: 32px; opacity: 0.7; }
.dc-hero__deco-dot--br { bottom: 80px; right: 60px; opacity: 0.5; }

@media (max-width: 767px) {
  .dc-hero__deco-plus,
  .dc-hero__deco-dot { display: none; }
}

/* Pill 「根管專科」 */
.dc-hero__pill-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dc-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: clamp(13px, 1.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all var(--ease);
}

.dc-hero__pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dc-hero__pill:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.dc-hero__pill-divider {
  width: 28px;
  height: 1.5px;
  background: var(--primary);
  opacity: 0.4;
  flex-shrink: 0;
}

.dc-hero__label {
  font-family: var(--font-en);
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  text-transform: uppercase;
}

/* H1 主標題（沈煥喬牙醫師） */
.dc-hero__title {
  font-size: clamp(36px, 8.5vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  display: inline;
}

.dc-hero__title-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.dc-hero__title-highlight::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 6%;
  height: 22%;
  background: var(--accent);
  opacity: 0.5;
  z-index: -1;
  border-radius: 2px;
}

/* 副標 */
.dc-hero__subtitle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(8px, 1vw, 16px);
  flex-wrap: wrap;
}

.dc-hero__subtitle-divider {
  width: 32px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.dc-hero__subtitle {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.02em;
}

/* 3 個服務項目 — 桌面 / 平板：grid 3 等寬欄 */
.dc-hero__services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(20px, 3vw, 32px);
  align-items: center;
}

.dc-hero__service {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  text-decoration: none;
  color: inherit;
  transition: transform var(--ease);
  min-width: 0;
}

.dc-hero__service:not(:last-child) {
  padding-right: clamp(12px, 1.5vw, 20px);
  border-right: 1px solid var(--border);
}

.dc-hero__service:hover { transform: translateY(-2px); }

.dc-hero__service-num {
  font-family: var(--font-en);
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.dc-hero__service-icon {
  width: clamp(32px, 4vw, 44px);
  height: clamp(32px, 4vw, 44px);
  flex-shrink: 0;
}

.dc-hero__service-icon img,
.dc-hero__service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dc-hero__service-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dc-hero__service-zh {
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.dc-hero__service-en {
  font-family: var(--font-en);
  font-size: clamp(10px, 1.1vw, 11px);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .dc-hero__services {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dc-hero__service:not(:last-child) {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
}

/* ============================================
   About Section（關於我）
   ============================================ */

.dc-about {
  background: var(--surface);
}

.dc-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .dc-about__grid {
    grid-template-columns: 340px 1fr;
    gap: var(--space-3xl);
  }
}

.dc-about__photo {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: var(--primary-soft);
}

.dc-about__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.dc-about__content p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-primary);
  line-height: 1.9;
}

.dc-about__title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.5px;
}

/* ============================================
   Specialties Section（我的專長）
   ============================================ */

.dc-spec {
  background: var(--bg);
}

.dc-spec__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.dc-spec__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  text-align: left;
}

.dc-spec__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.dc-spec__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
}

.dc-spec__icon img,
.dc-spec__icon svg {
  width: 36px;
  height: 36px;
}

.dc-spec__card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
  color: var(--text-primary);
}

.dc-spec__card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   Credentials Section（學經歷與現任職務）
   ============================================ */

.dc-cred {
  background: var(--surface);
}

.dc-cred__blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

@media (min-width: 768px) {
  .dc-cred__blocks {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl) var(--space-3xl);
  }
}

.dc-cred__block-title {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 var(--space-md);
}

.dc-cred__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dc-cred__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
}

.dc-cred__list li:last-child { border-bottom: none; }

.dc-cred__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}

/* ============================================
   Clinics Section（執業地點）
   ============================================ */

.dc-clinics {
  background: var(--bg);
}

.dc-clinics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.dc-clinics__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
}

.dc-clinics__card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--primary-light);
}

.dc-clinics__img-wrap {
  margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  height: 180px;
}

.dc-clinics__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dc-clinics__name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.dc-clinics__role {
  font-size: 13px;
  color: var(--primary);
  margin: 0 0 var(--space-sm);
  font-weight: 500;
}

.dc-clinics__loc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 var(--space-lg);
}

/* 電話 — 卡片底部 CTA，divider 隔開、點擊撥號 */
.dc-clinics__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color var(--ease);
}

.dc-clinics__phone:hover {
  color: var(--accent);
}

.dc-clinics__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--ease);
}

.dc-clinics__phone:hover .dc-clinics__phone-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.dc-clinics__phone-num {
  font-variant-numeric: tabular-nums;
}

.dc-clinics__map-link {
  color: var(--text-muted);
  text-decoration: none;
}

.dc-clinics__map-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   Animation: reduced-motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Blog Page: 衛教資訊 Hero
   ============================================ */

.dc-blog-hero {
  display: grid;
  grid-template-columns: 60px 1fr;
  background: var(--primary-soft);
  min-height: 220px;
  overflow: hidden;
}

.dc-blog-hero__aside {
  position: relative;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dc-blog-hero__aside-text {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.dc-blog-hero__aside::before,
.dc-blog-hero__aside::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.dc-blog-hero__aside::before { top: 20px; }
.dc-blog-hero__aside::after  { bottom: 20px; }

.dc-blog-hero__content {
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1140px;
}

.dc-blog-hero__title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.dc-blog-hero__subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  max-width: 520px;
}

.dc-hide-sm { display: inline; }

@media (max-width: 600px) {
  .dc-blog-hero {
    grid-template-columns: 1fr;
    grid-template-rows: 4px auto;
  }
  .dc-blog-hero__aside {
    height: 4px;
  }
  .dc-blog-hero__aside-text,
  .dc-blog-hero__aside::before,
  .dc-blog-hero__aside::after { display: none; }
  .dc-blog-hero__content { padding: 36px 24px; }
  .dc-hide-sm { display: none; }
}

/* ============================================
   Blog Page: 分類篩選 Tabs
   ============================================ */

.dc-blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.dc-blog-filter__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: all var(--ease);
}

.dc-blog-filter__item:hover {
  border-color: var(--primary-light);
  background: var(--primary-soft);
  color: inherit;
}

.dc-blog-filter__item--active {
  background: var(--primary);
  border-color: var(--primary);
}

.dc-blog-filter__zh {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--ease);
}

.dc-blog-filter__en {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color var(--ease);
}

.dc-blog-filter__item:hover .dc-blog-filter__zh { color: var(--primary); }
.dc-blog-filter__item:hover .dc-blog-filter__en  { color: var(--primary); }

.dc-blog-filter__item--active .dc-blog-filter__zh { color: #fff; }
.dc-blog-filter__item--active .dc-blog-filter__en { color: rgba(255, 255, 255, 0.72); }
.dc-blog-filter__item--active:hover .dc-blog-filter__zh { color: #fff; }
.dc-blog-filter__item--active:hover .dc-blog-filter__en { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 600px) {
  .dc-blog-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-xs);
  }
  .dc-blog-filter::-webkit-scrollbar { display: none; }
  .dc-blog-filter__item { flex-shrink: 0; }
}

/* ============================================
   Blog Page: Pagination
   ============================================ */

.dc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-3xl);
}

.dc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-en);
  text-decoration: none;
  transition: all var(--ease);
}

.dc-pagination .page-numbers:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.dc-pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.dc-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
  pointer-events: none;
}

/* ============================================
   Blog Page: Empty State
   ============================================ */

.dc-blog-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 400px;
  margin: 0 auto;
}

.dc-blog-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  background: var(--primary-soft);
  color: var(--primary);
  margin: 0 auto var(--space-lg);
}

.dc-blog-empty p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* Cases Hero — 與衛教頁相同主色，aside 不覆寫 */

/* ============================================
   Single Case: Before / After
   ============================================ */

.dc-case-ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 600px) {
  .dc-case-ba { grid-template-columns: 1fr; }
}

.dc-case-ba__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--primary-soft);
}

.dc-case-ba__item--after {
  background: var(--accent-soft);
  border-color: #f0c4aa;
}

.dc-case-ba__item img {
  width: 100%;
  height: auto;
  display: block;
}

.dc-case-ba__label {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: rgba(26, 32, 39, 0.82);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.dc-case-ba__label--after {
  background: var(--primary);
}

/* ============================================
   Single Case: Story Content
   ============================================ */

.dc-case-story {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-primary);
  line-height: 1.9;
  margin-bottom: var(--space-2xl);
}

.dc-case-story p { margin-bottom: 1.2em; }
.dc-case-story h2 { margin-top: 2em; margin-bottom: 0.8em; }
.dc-case-story h3 { margin-top: 1.5em; margin-bottom: 0.6em; }
.dc-case-story img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}
.dc-case-story blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-sm) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--accent-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
