/*
Theme Name: UroKingdom 2026
Theme URI: https://www.urokingdom.com
Author: 謝政興泌尿科診所
Description: 謝政興泌尿科診所 2026 自製主題。深藍低亮度醫療配色，架構比照 ruianc-2026（字串表 i18n、四版型、theme.json 承接 Astra 舊色票）。
Version: 0.4.30
Requires PHP: 8.0
License: proprietary
Text Domain: urokingdom-2026
*/

:root {
	--c-primary: #1f2c5c;        /* 深藍（沿用現站 Astra 主色，內容引用最多的 slot 0） */
	--c-primary-dark: #16213f;
	--c-primary-light: #2c3f7d;
	--c-accent: #4f6bb0;
	--c-accent-soft: #edf1f9;
	--c-teal: #6ec5cc;           /* 輔助色（logo 愛心同色系）：深底文字與裝飾線用 */
	--c-teal-dark: #28808a;      /* 輔助色深階：白底小字用（對比 4.6:1） */
	--c-teal-soft: #e9f6f8;      /* 輔助色淡底 */
	--c-ivory: #f6f8fb;
	--c-footer: #121a30;
	--c-text: #1e293b;
	--c-text-light: #64748b;
	--c-border: #dfe5f0;
	--c-line-green: #089950;
	--font-serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
	--font-sans: "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); color: var(--c-text); background: #fff; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--c-primary); line-height: 1.35; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 30px; border-radius: 999px; font-size: 16px; font-weight: 700; letter-spacing: .05em; border: 0; cursor: pointer; }
.btn-line { background: var(--c-line-green); color: #fff; }
.btn-line:hover { background: #077e43; color: #fff; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border: 1.5px solid var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--c-accent-soft); }

.cond-tags .tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 6px; background: var(--c-teal-soft); color: var(--c-teal-dark); font-size: 12.5px; font-weight: 600; }

/* ---------- 跑馬燈公告帶 ---------- */
.marquee { background: var(--c-primary-dark); color: #c6d0ea; font-size: 14px; letter-spacing: .04em; padding: 9px 16px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 60; }
.site-header .bar { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 46px; height: 46px; flex: none; }
.header-nhi { flex: none; display: flex; align-items: center; margin-left: -14px; }
.header-nhi img { width: 40px; height: 40px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-family: var(--font-serif); font-size: 21px; font-weight: 700; letter-spacing: .1em; margin-right: -.1em; color: var(--c-primary); }
.brand-sub { font-size: 10px; letter-spacing: .24em; margin-right: -.24em; color: var(--c-accent); font-weight: 600; }
.main-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav-list > li { flex: none; }
.nav-list a { color: var(--c-text); white-space: nowrap; }
.nav-list a:hover { color: var(--c-primary); }
.nav-list li { position: relative; }
#appointment { scroll-margin-top: 120px; }
.nav-group summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; white-space: nowrap; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); margin-top: -4px; }
.nav-group[open] > summary { color: var(--c-primary); }
.nav-group[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.nav-list summary:focus-visible, .nav-list a:focus-visible { outline: 2px solid var(--c-teal-dark); outline-offset: 3px; border-radius: 4px; }
.nav-list .sub-menu { position: absolute; top: 100%; left: -16px; width: 320px; max-width: calc(100vw - 40px); max-height: calc(100dvh - 150px); overflow-y: auto; background: #fff; border: 1px solid var(--c-border); border-top: 3px solid var(--c-teal); border-radius: 0 0 12px 12px; box-shadow: 0 14px 34px rgba(31,44,92,.12); list-style: none; margin: 0; padding: 12px; z-index: 70; }
.nav-list > li:nth-last-child(-n+3) .sub-menu { left: auto; right: -16px; }
.nav-list .sub-menu a { display: block; padding: 10px 12px; min-height: 44px; font-size: 15px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; font-weight: 500; border-radius: 6px; }
.nav-list .sub-menu a:hover { background: var(--c-teal-soft); }
.nav-list > li.nav-item--mega { position: static; }
.nav-item--mega summary { min-height: 80px; }
.nav-linked-group { display: flex; align-items: center; }
.nav-linked-group > .nav-parent-link { display: flex; align-items: center; min-height: 80px; }
.nav-group--split > summary { width: 24px; justify-content: center; gap: 0; }
.nav-group--split > summary::after { flex: none; }
.nav-mega-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(1056px, calc(100vw - 48px)); max-height: calc(100dvh - 150px); overflow-y: auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding: 32px; background: #fff; border: 1px solid var(--c-border); border-top: 3px solid var(--c-teal); border-radius: 0 0 16px 16px; box-shadow: 0 18px 36px rgba(31,44,92,.14); z-index: 70; }
.nav-mega-intro { padding: 20px 24px; background: var(--c-ivory); border-radius: 8px; }
.nav-mega-eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--c-teal-dark); }
.nav-mega-intro .nav-mega-title { font-family: var(--font-serif); font-size: 26px; color: var(--c-primary); margin: 12px 0; }
.nav-mega-intro p { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.8; color: var(--c-text-light); }
.nav-list .nav-mega-panel .sub-menu { position: static; width: auto; max-width: none; max-height: none; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px 24px; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.nav-mega-panel .sub-menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 12px; border-bottom: 1px solid var(--c-border); border-radius: 0; }
.nav-mega-panel .sub-menu a::after { content: '→'; color: var(--c-teal-dark); }
.nav-list .nav-booking { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 6px; background: var(--c-primary); color: #fff; }
.nav-list .nav-booking:hover { background: var(--c-primary-dark); color: #fff; }
@media (min-width: 1025px) { .site-header .bar { gap: 20px; } .nav-list { gap: 14px; font-size: 14px; } }
@media (min-width: 1025px) and (max-width: 1199.98px) { .site-header .header-nhi { display: none; } }
@media (min-width: 1025px) and (max-width: 1500px) {
  html[lang]:not([lang="zh-TW"]) .site-header .bar { gap: 12px; }
  html[lang]:not([lang="zh-TW"]) .site-header .header-nhi { display: none; }
  html[lang]:not([lang="zh-TW"]) .brand-name { font-size: 17px; letter-spacing: .03em; }
  html[lang]:not([lang="zh-TW"]) .brand-sub { letter-spacing: .1em; }
  html[lang]:not([lang="zh-TW"]) .nav-list { gap: 10px; font-size: 13px; }
  html[lang]:not([lang="zh-TW"]) .lang-toggle { padding-inline: 11px; }
  html[lang]:not([lang="zh-TW"]) .lang-toggle span { display: none; }
}
@media (max-width: 1024px) {
  .site-header .main-nav { max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); }
  body:has(.main-nav.open) #fcp-root { visibility: hidden !important; pointer-events: none; }
}
.menu-toggle { display: none; background: none; border: 0; color: var(--c-primary); padding: 8px; cursor: pointer; }

/* 語言切換下拉（靜態連結到 /en/ /ja/ /cn/ /hk/ 落地頁） */
.lang-switch { position: relative; flex: none; }
.lang-toggle { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--c-border); background: #fff; color: var(--c-text); font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.lang-toggle:hover { border-color: var(--c-accent); color: var(--c-primary); }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--c-border); border-radius: 12px; box-shadow: 0 14px 34px rgba(31,44,92,.14); list-style: none; margin: 0; padding: 8px 0; min-width: 176px; z-index: 80; }
.lang-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu,
.lang-switch.open .lang-menu { display: block; }
.lang-menu a { display: block; padding: 9px 18px; font-size: 14px; color: var(--c-text); }
.lang-menu a:hover { background: var(--c-accent-soft); color: var(--c-primary); }
.lang-menu li.current a { color: var(--c-accent); font-weight: 700; }

/* ---------- Hero ---------- */
/* 底圖：台北 101 夜景（信義區在地意象），上疊 80% 深藍維持文字可讀性 */
.hero { background-color: var(--c-primary-dark); background-image: linear-gradient(rgba(22,33,63,.8), rgba(22,33,63,.8)), url(assets/img/hero-taipei.webp); background-size: cover; background-position: center; background-repeat: no-repeat; color: #fff; }
@media (max-width: 1024px) { .hero { background-image: linear-gradient(rgba(22,33,63,.8), rgba(22,33,63,.8)), url(assets/img/hero-taipei-1200.webp); } }
@media (max-width: 600px) { .hero { background-image: linear-gradient(rgba(22,33,63,.8), rgba(22,33,63,.8)), url(assets/img/hero-taipei-768.webp); } }
.hero.service-hero--image { background-image: linear-gradient(90deg, rgba(11,22,45,.97) 0%, rgba(16,31,57,.91) 40%, rgba(16,31,57,.42) 68%, rgba(16,31,57,.18) 100%), var(--service-hero-image); background-position: center; }
.hero-inner { display: flex; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero-text h1, .hero-text p, .hero-sub, .hero-kicker { text-shadow: 0 2px 14px rgba(8,14,34,.45); }
.hero-text { flex: 1.05; }
.hero-kicker { font-size: 14.5px; letter-spacing: .28em; color: var(--c-teal); font-weight: 700; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: 50px; font-weight: 900; letter-spacing: .04em; margin: 0; text-wrap: balance; }
.hero-sub, .hero-kicker { text-wrap: balance; }
.hero-sub { font-family: var(--font-serif); font-size: 21px; color: #c6d0ea; margin: 14px 0 20px; letter-spacing: .06em; }
.hero-text p { font-size: 16px; line-height: 1.9; color: rgba(255,255,255,.86); margin: 0 0 30px; max-width: 560px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { flex: .95; }
.hero-visual .ph, .hero-visual img { width: 100%; height: 400px; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.foreign-home-hero h1 { font-size: clamp(36px, 4vw, 50px); }
.foreign-hero-photo { position: relative; margin: 0; min-width: 0; }
.foreign-hero-photo figcaption { position: absolute; inset: auto 0 0; padding: 72px 24px 22px; border-radius: 0 0 20px 20px; background: linear-gradient(transparent,rgba(8,14,34,.82)); color: #fff; font-weight: 700; }
.hero-closures { margin-top: 24px; padding: 16px 18px; border-left: 4px solid var(--c-teal); border-radius: 0 8px 8px 0; background: rgba(255,255,255,.08); color: #fff; }
.hero-closures ul { margin: 0; padding-left: 20px; }
.hero-closures li { margin: 5px 0; font-size: 13px; line-height: 1.55; }
.foreign-home-content { padding-bottom: 64px; }
.foreign-home-content #ez-toc-container { display: none; }

.trust-band { border-top: 1px solid rgba(110,197,204,.32); }
.trust-band .wrap { display: flex; flex-wrap: wrap; padding: 18px 24px; gap: 12px 28px; align-items: center; justify-content: space-between; font-size: 14.5px; color: rgba(255,255,255,.82); }
.trust-band--single .wrap { justify-content: center; }

/* ---------- 精簡頁首（無 hero 的頁面） ---------- */
.page-head { background: var(--c-primary-dark); color: #fff; padding: 44px 0 40px; }
.page-head h1 { color: #fff; font-size: 38px; margin: 0; letter-spacing: .04em; text-wrap: balance; }
.page-head p { margin: 14px 0 0; max-width: 720px; font-size: 16px; line-height: 1.9; color: rgba(255,255,255,.86); }

/* ---------- 衛教文版型 ---------- */
.wrap-narrow { max-width: 880px; }
.article-body h2 { font-size: 27px; margin: 0 0 18px; }
.article-body p { font-size: 16.5px; line-height: 2; margin: 0 0 16px; }
.article-body p:last-child { margin-bottom: 0; }
.art-list { margin: 4px 0 18px; padding-left: 22px; font-size: 16px; line-height: 2; color: var(--c-text); }
.art-list li { margin-bottom: 4px; }
.art-figure { margin: 22px 0 0; }
.art-figure img { width: 100%; height: auto; border-radius: 16px; display: block; }
.art-disclaimer { margin: 36px 0 0; padding: 16px 20px; border-left: 3px solid var(--c-border); font-size: 13.5px; line-height: 1.8; color: var(--c-text-light); }

/* ---------- 頁內導覽 ---------- */
.anchornav { background: #fff; border-bottom: 1px solid var(--c-border); box-shadow: 0 6px 18px rgba(31,44,92,.05); position: sticky; top: 80px; z-index: 50; }
.anchornav ul { list-style: none; display: flex; justify-content: center; justify-content: safe center; flex-wrap: nowrap; overflow-x: auto; gap: 28px; margin: 0; padding: 15px 16px; counter-reset: anchornav; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.anchornav ul::-webkit-scrollbar { display: none; }
.anchornav li { flex: none; }
.anchornav a { font-size: 15px; font-weight: 600; color: var(--c-text); padding-bottom: 4px; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.anchornav a::before { counter-increment: anchornav; content: counter(anchornav) "."; font-family: var(--font-serif); font-weight: 700; color: var(--c-teal-dark); margin-right: 5px; }
.anchornav a:hover, .anchornav li.active a { color: var(--c-primary); border-bottom-color: var(--c-teal); }

/* ---------- answer-ready 摘要 ---------- */
.summary-box { border-left: 4px solid var(--c-teal); background: var(--c-teal-soft); border-radius: 0 12px 12px 0; padding: 20px 28px; font-size: 15.5px; line-height: 1.9; color: var(--c-primary); margin: 40px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-ivory { background: var(--c-ivory); }
.section-navy { background: var(--c-primary); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .kicker { font-size: 14px; letter-spacing: .3em; color: var(--c-teal-dark); font-weight: 700; margin-bottom: 10px; }
.section-head h2 { font-size: 34px; font-weight: 700; margin: 0; }
.section-head h2::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--c-teal); margin: 16px auto 0; }
.section-head .lede { font-size: 16px; color: var(--c-text-light); max-width: 760px; margin: 16px auto 0; }

.card { background: #fff; border: 1px solid var(--c-border); border-radius: 16px; }
.ph { background: linear-gradient(135deg, #e8edf6 0%, #d3dcec 100%); display: flex; align-items: center; justify-content: center; color: #7d8db0; font-size: 13.5px; letter-spacing: .1em; }

/* ---------- 服務卡格 ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-card { padding: 30px 28px; display: block; color: inherit; transition: box-shadow .2s ease, transform .2s ease; }
a.svc-card:hover { box-shadow: 0 14px 34px rgba(31,44,92,.1); transform: translateY(-2px); color: inherit; }
.svc-card svg { margin-bottom: 16px; }
.svc-card h3 { font-size: 20px; margin: 0 0 10px; }
.svc-card p { font-size: 14.5px; color: var(--c-text-light); margin: 0 0 14px; }
.svc-card .more { font-size: 14px; font-weight: 700; color: var(--c-teal-dark); }
a.svc-card:hover { border-color: var(--c-teal); }

/* ---------- 院長介紹 ---------- */
.doctor-card { display: flex; gap: 44px; align-items: center; padding: 40px 44px; max-width: 980px; margin: 0 auto; }
.doctor-photo { flex: none; width: 240px; }
.doctor-photo img, .doctor-photo .ph { width: 240px; height: 300px; object-fit: cover; border-radius: 16px; }
.doctor-body h3 { font-size: 26px; margin: 0 0 4px; }
.doctor-body .doctor-title { font-size: 14.5px; color: var(--c-teal-dark); font-weight: 700; letter-spacing: .08em; margin-bottom: 16px; }
.doctor-creds { margin: 0 0 16px; padding-left: 20px; font-size: 15px; line-height: 2; color: var(--c-text); }
.doctor-body > p { font-size: 14.5px; color: var(--c-text-light); margin: 0; line-height: 1.9; }

/* ---------- 門診時間表 ---------- */
.svc-table-wrap { overflow-x: auto; }
.svc-table { border-collapse: collapse; width: 100%; min-width: 720px; background: #fff; }
.svc-table th { background: var(--c-primary); color: #fff; font-weight: 600; font-size: 15px; padding: 13px 12px; text-align: left; }
.svc-table td { border: 1px solid var(--c-border); padding: 13px 12px; font-size: 14.5px; vertical-align: top; }
.svc-table td b { color: var(--c-primary); }
.svc-table tbody tr:nth-child(even) td { background: var(--c-ivory); }
.service-original-block + .service-original-block { margin-top: 36px; }
.service-original-block > h3 { margin: 0 0 14px; color: var(--c-primary); font-size: clamp(20px, 2vw, 26px); }
.service-detail-copy { max-width: 920px; margin: 0 auto; padding: clamp(24px, 4vw, 42px); }
.service-detail-copy p { margin: 0; color: var(--c-muted); line-height: 1.9; }
.service-detail-copy p + p { margin-top: 18px; }
.service-inline-reference { display: inline-block; margin-left: 0.35em; font-size: 0.82em; font-weight: 700; white-space: nowrap; }
.service-references { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.service-references h3 { margin: 0 0 12px; font-size: 1.05rem; }
.service-references ol { margin: 0; padding-left: 1.4em; color: var(--c-muted); }
.service-references li + li { margin-top: 10px; }
.service-references a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.service-detail-figure, .service-comparison-figure { margin: 28px auto 0; text-align: center; }
.service-detail-figure img, .service-comparison-figure img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.service-detail-figure img { max-width: 820px; }
.service-comparison-figure { max-width: 960px; margin-bottom: 24px; }
.svc-table-figure { display: block; margin-top: 12px; }
.svc-table-figure img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto; border-radius: 6px; }
.svc-note { font-size: 13.5px; color: var(--c-text-light); margin-top: 18px; }
/* 班表格：時段列 × 星期欄，格心置中 */
.sched-table th, .sched-table td { text-align: center; }
.sched-table td:first-child, .sched-table th:first-child { text-align: left; white-space: nowrap; }
.sched-table .on { color: var(--c-primary); font-weight: 700; }
.sched-table .off { color: #c3cbdd; }

/* ---------- 首頁近期門診日曆 ---------- */
.home-schedule { background: #f3f8fa; }
.home-schedule .section-head { margin-bottom: 32px; }
.schedule-alert { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 38px; padding: 24px 28px; border: 1px solid #ead7bd; border-left: 4px solid #c47a28; background: #fffaf2; }
.schedule-alert-label { display: flex; align-items: center; gap: 12px; }
.schedule-alert-label > span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: #c47a28; color: #fff; font-weight: 800; }
.schedule-alert h3 { margin: 0; font-size: 19px; }
.schedule-alert ul { margin: 0; padding-left: 20px; }
.schedule-alert li { margin: 4px 0; line-height: 1.7; }
.schedule-calendar-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.schedule-calendar-head h3 { margin: 0 0 4px; font-size: 22px; }
.schedule-calendar-head p { margin: 0; color: var(--c-text-light); font-size: 14px; }
.schedule-calendar-dates { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--c-border); background: #fff; color: var(--c-primary) !important; font-weight: 700; }
.schedule-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.schedule-day { position: relative; min-height: 168px; padding: 14px; border: 1px solid var(--c-border); border-top: 3px solid var(--c-teal); background: #fff; }
.schedule-day.is-today { border-color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-primary); }
.schedule-day.is-closed { border-top-color: #b9c1d2; background: #f1f3f7; }
.schedule-day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--c-border); }
.schedule-day-head time { color: var(--c-primary); font-family: var(--font-serif); font-size: 21px; font-weight: 800; line-height: 1.2; }
.schedule-day-head span { color: var(--c-text-light); font-size: 13px; font-weight: 700; }
.schedule-today { display: inline-block; margin-top: 9px; padding: 1px 7px; background: var(--c-primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.schedule-sessions { display: flex; flex-direction: column; gap: 6px; margin: 11px 0 0; padding: 0; list-style: none; color: var(--c-primary); font-size: 12.5px; font-weight: 700; line-height: 1.45; }
.schedule-closed { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; color: var(--c-text-light); font-size: 12.5px; line-height: 1.45; }
.schedule-closed strong { color: #8b4a1f; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-card { padding: 24px 28px; }
.faq-card h3 { font-size: 17.5px; margin: 0 0 8px; display: flex; gap: 12px; }
.faq-card h3 .q { color: var(--c-teal-dark); font-family: var(--font-serif); }
.faq-card p { font-size: 14.5px; color: var(--c-text-light); margin: 0; padding-left: 28px; }

/* ---------- 位置 ---------- */
.location-inner { display: flex; gap: 56px; align-items: stretch; }
.location-info { flex: 1; color: #fff; }
.location-info .kicker { font-size: 13.5px; letter-spacing: .3em; color: var(--c-teal); font-weight: 700; margin-bottom: 10px; }
.location-info h2 { color: #fff; font-size: 32px; margin: 0 0 24px; }
.location-rows { display: flex; flex-direction: column; gap: 18px; font-size: 15.5px; line-height: 1.8; }
.location-rows .row { display: flex; gap: 14px; }
.location-rows svg { flex: none; margin-top: 4px; }
.location-rows .dim { color: rgba(255,255,255,.62); font-size: 14px; }
.location-map { width: 46%; flex: none; display: flex; }
.location-map a { display: block; width: 100%; }
.location-map img { width: 100%; height: auto; border-radius: 20px; display: block; background: #fff; }
.location-map .ph { width: 100%; height: auto; min-height: 400px; border: 0; border-radius: 20px; }
.location-map .map-embed { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.location-map iframe { width: 100%; flex: 1; min-height: 400px; border: 0; border-radius: 20px; display: block; background: #fff; }
.location-map .map-open { font-size: 14px; color: rgba(255,255,255,.75); align-self: flex-end; }
.location-map .map-open:hover { color: #fff; }
.location-info a { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-accent-soft); padding: 52px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: 27px; margin: 0 0 8px; }
.cta-band p { font-size: 15px; color: var(--c-text-light); margin: 0; }
.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.foot-cols { display: flex; gap: 56px; padding-bottom: 40px; flex-wrap: wrap; }
.foot-brand-col { flex: 1.3; min-width: 260px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.foot-brand-mark { width: 42px; height: 42px; flex: none; }
.foot-nhi { display: flex; align-items: center; gap: 10px; margin: 16px 0 0 !important; font-size: 13px; color: rgba(255,255,255,.68); }
.foot-nhi img { flex: none; width: 34px; height: 34px; }
.foot-brand-name { display: block; font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: .1em; color: #fff; line-height: 1.35; }
.foot-brand-sub { display: block; font-size: 10px; letter-spacing: .24em; color: #a9b8e0; font-weight: 600; }
.foot-brand-col p { font-size: 13.5px; line-height: 1.9; margin: 0; max-width: 380px; }
.foot-col { flex: 1; min-width: 150px; }
.foot-col h3 { color: #fff; font-family: var(--font-sans); font-size: 15px; margin: 0 0 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.foot-col a { color: rgba(255,255,255,.75); }
.foot-col a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 16px 28px; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.45); line-height: 2; }

/* ---------- 內頁（文章 / 固定頁 / 列表） ---------- */
.content-area { padding: 48px 0 72px; }
.entry-narrow { max-width: 860px; margin: 0 auto; }
.entry-header h1 { font-size: 32px; margin: 0 0 14px; }
.entry-meta { font-size: 13.5px; color: var(--c-text-light); margin-bottom: 28px; }
.entry-content { font-size: 16px; line-height: 1.95; }
.entry-content h2 { font-size: 26px; margin: 44px 0 16px; }
.entry-content h3 { font-size: 20px; margin: 32px 0 12px; }
.entry-content img { border-radius: 14px; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th { background: var(--c-primary); color: #fff; font-weight: 600; padding: 12px 10px; }
.entry-content td { border: 1px solid var(--c-border); padding: 12px 10px; }
.entry-content tr:nth-child(even) td { background: var(--c-ivory); }
.entry-content blockquote { border-left: 4px solid var(--c-teal); background: var(--c-teal-soft); border-radius: 0 12px 12px 0; margin: 24px 0; padding: 18px 24px; }

.archive-header { text-align: center; padding: 52px 0 8px; }
.archive-header h1 { font-size: 32px; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 40px 0 24px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: box-shadow .2s ease; }
.post-card:hover { box-shadow: 0 14px 34px rgba(31,44,92,.1); color: inherit; }
.post-card .thumb { height: 190px; object-fit: cover; width: 100%; display: block; }
.post-card .thumb-ph { height: 190px; }
.post-card h3 { font-size: 17px; margin: 16px 18px 8px; line-height: 1.55; }
.post-card .excerpt { font-size: 13.5px; color: var(--c-text-light); margin: 0 18px 14px; }
.post-card .date { font-size: 12.5px; color: var(--c-text-light); margin: auto 18px 16px; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 12px 0 48px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--c-border); color: var(--c-text); font-size: 14.5px; padding: 0 8px; }
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.error404-box { text-align: center; padding: 100px 24px 120px; }
.error404-box .code { font-family: var(--font-serif); font-size: 84px; font-weight: 700; color: var(--c-accent); line-height: 1; }
.error404-box h1 { font-size: 26px; margin: 18px 0 10px; }
.error404-box p { color: var(--c-text-light); margin: 0 0 28px; }

/* ---------- 主項目頁 hero 與積木頁 ---------- */
.hero-inner--page .hero-text p { margin-top: 16px; }
.entry-builder { padding-top: 40px; overflow-x: clip; }
.entry-builder .entry-content { font-size: 16px; line-height: 1.95; }
.entry-builder .entry-content > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.entry-builder .entry-content > .alignwide { max-width: 1200px; }
.entry-builder .entry-content > .alignfull { max-width: none; }
.entry-builder .wp-block-cover__inner-container,
.entry-builder .alignfull > .wp-block-group__inner-container { max-width: 1200px; margin-left: auto; margin-right: auto; }
.entry-builder .wp-block-cover h1,
.entry-builder .wp-block-cover h2,
.entry-builder .wp-block-cover h3 { line-height: 1.4; }
.entry-builder > .entry-content > .alignfull:not(.wp-block-cover) { padding-left: 24px; padding-right: 24px; }
.entry-builder .wp-block-columns { gap: 28px; }
.entry-builder .wp-block-media-text { border-radius: 16px; overflow: hidden; }
.entry-builder .wp-block-media-text .wp-block-media-text__media img { border-radius: 0; }
.entry-builder figure img { border-radius: 14px; }
.entry-builder .wp-block-cover figure img,
.entry-builder .wp-block-cover__image-background { border-radius: 0; }
.entry-builder .wp-block-group.has-background { border-radius: 16px; padding: 28px; }
.entry-builder .alignfull.wp-block-group.has-background { border-radius: 0; }
.entry-builder .wp-block-table table { border-collapse: collapse; width: 100%; }
.entry-builder .wp-block-table th { background: var(--c-primary); color: #fff; font-weight: 600; padding: 12px 10px; }
.entry-builder .wp-block-table td { border: 1px solid var(--c-border); padding: 12px 10px; }
.entry-builder .wp-block-table tr:nth-child(even) td { background: var(--c-ivory); }

/* Gutenberg 按鈕統一膠囊樣式 */
.wp-block-button__link { border-radius: 999px !important; background-color: var(--c-primary); color: #fff; font-weight: 700; letter-spacing: .05em; padding: 13px 30px; font-size: 15.5px; }
.wp-block-button__link:hover { background-color: var(--c-primary-dark); color: #fff; }
.is-style-outline .wp-block-button__link,
.wp-block-button__link.has-background.has-ast-global-color-5-background-color { color: var(--c-primary); }
.is-style-outline .wp-block-button__link { background: transparent; border: 1.5px solid currentColor; }
.is-style-outline .wp-block-button__link.has-ast-global-color-8-color { color: var(--c-primary); }
.is-style-outline .wp-block-button__link:hover { background: var(--c-accent-soft); color: var(--c-primary); }

/* 頁內錨點目標（放在 h2 內的空 span；見 urokingdom2026_anchor()）。
   讓開兩層 sticky：header 80px ＋ 頁內導覽 59px，再留呼吸空間 = 160px。 */
.anchor-target { display: block; height: 0; scroll-margin-top: 160px; }
.entry-content h2[id] { scroll-margin-top: 160px; }

/* ---------- 主題頁共用版型（template-parts/service-page.php） ---------- */
.cond-card { padding: 28px; display: block; color: inherit; transition: box-shadow .2s ease, transform .2s ease; }
a.cond-card:hover { box-shadow: 0 14px 34px rgba(31,44,92,.1); transform: translateY(-2px); color: inherit; }
.cond-card svg { margin-bottom: 14px; }
.cond-card h3 { font-size: 20px; margin: 0 0 8px; }
.cond-card p { font-size: 14.5px; color: var(--c-text-light); margin: 0 0 12px; }
.cond-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cond-card .more { font-size: 14px; font-weight: 700; color: var(--c-teal-dark); }
a.cond-card:hover { border-color: var(--c-teal); }

.watch-cols { display: flex; gap: 24px; }
.watch-card { flex: 1; padding: 30px; }
.watch-card--alert { border-color: var(--c-teal); }
.watch-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.watch-head h3 { font-size: 19px; margin: 0; }
.watch-card ul { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--c-text-light); line-height: 2; }

.treat-card { overflow: hidden; }
.treat-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.treat-plate { height: 170px; display: flex; align-items: center; justify-content: center; background: var(--c-teal-soft); border-bottom: 1px solid var(--c-border); }
.treat-plate svg { width: 46px; height: 46px; opacity: .9; }
.treat-body { padding: 22px; }
.treat-body h3 { font-size: 18px; margin: 0 0 8px; }
.treat-body p { font-size: 14px; color: var(--c-text-light); margin: 0; }

.proc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.proc-no { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--c-teal); line-height: 1; }
.proc-step h3 { color: #fff; font-size: 18px; margin: 10px 0 8px; }
.proc-step p { color: rgba(255,255,255,.78); font-size: 14px; margin: 0; }

.section-navy .section-head h2 { color: #fff; }
.section-navy .section-head .kicker { color: var(--c-teal); }
.section-navy .section-head .lede { color: rgba(255,255,255,.78); }

/* 衛教文／資訊頁的連結清單（article 版型的 links 區塊） */
.art-links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.art-links a { display: flex; flex-direction: column; gap: 4px; padding: 15px 18px; border: 1px solid var(--c-border); border-radius: 12px; background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s; }
.art-links a:hover { border-color: var(--c-teal); box-shadow: 0 8px 22px rgba(31,44,92,.08); color: inherit; }
.art-links b { color: var(--c-primary); font-weight: 700; }
.art-links span { font-size: 14.5px; color: var(--c-text-light); }

/* ---------- 服務頁延伸閱讀 ---------- */
.service-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.service-related-grid li { min-width: 0; }
.service-related-link { display: flex; height: 100%; min-height: 148px; flex-direction: column; padding: 24px; border: 1px solid var(--c-border); border-left: 4px solid var(--c-teal); background: #fff; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.service-related-link:hover { border-color: var(--c-teal); box-shadow: 0 10px 28px rgba(31,44,92,.09); color: inherit; transform: translateY(-2px); }
.service-related-link:focus-visible { outline: 3px solid rgba(40,128,138,.28); outline-offset: 3px; }
.service-related-link strong { color: var(--c-primary); font-family: var(--font-serif); font-size: 18px; line-height: 1.45; }
.service-related-link span { margin-top: 8px; color: var(--c-text-light); font-size: 14px; line-height: 1.75; }
.service-related-link small { margin-top: auto; padding-top: 14px; color: var(--c-teal-dark); font-size: 13px; font-weight: 700; }

/* ---------- RWD ---------- */
@media (max-width: 1199.98px) and (min-width: 1025px) {
	.site-header .bar { gap: 20px; }
	.nav-list { gap: 16px; font-size: 14px; }
	.brand-name { font-size: 19px; }
	.brand-mark { width: 40px; height: 40px; }
	.header-nhi { margin-left: -6px; }
	.header-nhi img { width: 34px; height: 34px; }
	.lang-toggle { height: 38px; padding: 0 12px; font-size: 13.5px; }
}

@media (max-width: 1024px) {
	.menu-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--c-border); margin: 0; padding: 12px 20px 18px; box-shadow: 0 18px 30px rgba(31,44,92,.12); max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
	.main-nav.open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav-list a { display: block; padding: 10px 4px; min-height: 44px; }
	.nav-group summary { justify-content: space-between; padding: 10px 4px; min-height: 48px; }
	.nav-linked-group { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: start; }
	.nav-linked-group > .nav-parent-link { grid-column: 1; grid-row: 1; min-height: 48px; align-items: center; }
	.nav-group--split { display: contents; }
	.nav-group--split > summary { grid-column: 2; grid-row: 1; width: 100%; justify-content: center; padding: 10px; }
	.nav-group--split > .nav-mega-panel { grid-column: 1 / -1; grid-row: 2; }
	.nav-list .sub-menu { position: static; width: 100%; max-width: none; max-height: none; overflow: visible; border: 0; border-left: 2px solid var(--c-teal); box-shadow: none; padding: 4px 0 4px 12px; margin-bottom: 12px; border-radius: 0; }
	.nav-mega-panel { position: static; transform: none; display: block; width: 100%; max-height: none; overflow: visible; padding: 0; border: 0; box-shadow: none; }
	.nav-mega-intro { display: none; }
	.nav-list .nav-mega-panel .sub-menu { display: block; padding: 4px 0 4px 12px; margin-bottom: 12px; border-left: 2px solid var(--c-teal); }
	.nav-list .nav-mega-panel .sub-menu a { padding: 12px; border: 0; }
	.nav-list .nav-booking { display: flex; margin-top: 8px; }
	.lang-switch { margin-left: auto; }
	.hero-inner { gap: 36px; }
	.hero h1 { font-size: 40px; }
	.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.location-inner { flex-direction: column; }
	.location-map { width: 100%; }
	.location-map .ph { height: 340px; min-height: 0; }
	.location-map iframe { min-height: 340px; }
	.watch-cols { flex-direction: column; }
	.proc-grid { gap: 28px; }
	.doctor-card { flex-direction: column; text-align: center; padding: 32px 24px; }
	.doctor-creds { text-align: left; }
	.schedule-alert { grid-template-columns: 190px minmax(0, 1fr); }
	.schedule-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.site-header .bar { height: 64px; gap: 12px; }
	.main-nav { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); }
	.marquee { font-size: 12px; letter-spacing: .02em; padding: 8px 12px; }
	.brand-name { font-size: 16.5px; }
	.brand-sub { font-size: 8.5px; }
	.brand-mark { width: 34px; height: 34px; }
	.header-nhi { margin-left: -2px; }
	.header-nhi img { width: 28px; height: 28px; }
	.lang-toggle { height: 38px; padding: 0 12px; font-size: 13.5px; }
	.section-head h2::after { margin-top: 12px; }
	.hero-inner { flex-direction: column; padding-top: 44px; padding-bottom: 40px; gap: 28px; }
	.hero.service-hero--image { background-image: linear-gradient(rgba(11,22,45,.88), rgba(11,22,45,.88)), var(--service-hero-image); background-position: 66% center; }
	.hero h1 { font-size: 32px; }
	.page-head { padding: 30px 0 28px; }
	.page-head h1 { font-size: 26px; }
	.page-head p { font-size: 15px; }
	.article-body h2 { font-size: 21px; }
	.article-body p { font-size: 15.5px; line-height: 1.95; }
	.art-list { font-size: 15px; }
	.hero-sub { font-size: 16px; }
	.hero-kicker { font-size: 12.5px; letter-spacing: .18em; }
	.hero-text p { font-size: 14.5px; }
	.hero-visual { width: 100%; }
	.hero-visual .ph, .hero-visual img { height: 220px; }
	.trust-band .wrap { justify-content: flex-start; font-size: 13px; }
	.anchornav { top: 64px; }
	.anchor-target, .entry-content h2[id] { scroll-margin-top: 132px; }
	.anchornav ul { gap: 20px; padding: 13px 16px; }
	.section { padding: 52px 0; }
	.section-head h2 { font-size: 25px; }
	.svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	[data-sec="conditions"] .svc-grid, [data-sec="treatments"] .svc-grid { grid-template-columns: 1fr; gap: 16px; }
	.svc-card { padding: 18px 16px; }
	.cond-card { padding: 20px 18px; }
	.cond-card h3 { font-size: 17px; }
	.treat-card img, .treat-plate { height: 150px; }
	.post-grid { grid-template-columns: 1fr; }
	.service-related-grid { grid-template-columns: 1fr; }
	.cta-band .wrap { flex-direction: column; align-items: flex-start; }
	.foot-cols { gap: 32px; }
	.hero-ctas .btn { width: 100%; }
	.hero-ctas { flex-direction: column; width: 100%; }
	.doctor-photo, .doctor-photo img, .doctor-photo .ph { width: 200px; }
	.doctor-photo img, .doctor-photo .ph { height: 250px; }
	.schedule-alert { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
	.schedule-calendar-head { align-items: flex-start; flex-direction: column; }
	.schedule-calendar { display: flex; gap: 10px; margin-right: -24px; padding-right: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
	.schedule-day { flex: 0 0 164px; min-height: 174px; scroll-snap-align: start; }
}

@media (max-width: 480px) {
	.site-header .bar { padding: 0 14px; gap: 10px; }
	.brand { gap: 9px; flex: 1; min-width: 0; }
	.brand-text { min-width: 0; }
	.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.brand-mark { width: 30px; height: 30px; }
	.header-nhi { display: none; }
	.brand-sub { font-size: 8px; letter-spacing: .1em; margin-right: -.1em; }
	.lang-toggle span { display: none; }
	.lang-toggle { padding: 0 11px; gap: 5px; }
}
