/* ===== Jin Acupuncture and Traditional Chinese Medicine LLC 样式 ===== */
:root {
  --green-900: #24382c;
  --green-700: #3f6b4f;
  --green-500: #6a9a72;
  --green-200: #cfe0c9;
  --green-50:  #f2f6ef;
  --earth-700: #8a5a3b;
  --earth-400: #c49a6c;
  --earth-100: #f3ebdf;
  --cream:     #fbf9f4;
  --text:      #2f3a33;
  --muted:     #6b766e;
  --danger:    #b5473a;
  --radius:    14px;
  --shadow:    0 8px 28px rgba(36, 56, 44, .10);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --header-h: 85px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--green-700); text-decoration: none; }
h1, h2, h3 { color: var(--green-900); line-height: 1.35; margin: 0 0 .6em; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: .75em 1.6em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 16px rgba(63,107,79,.25); }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-ghost:hover { background: var(--green-50); }
.btn-small { padding: .4em 1.1em; background: var(--green-700); color: #fff !important; }
.btn-small:hover { background: var(--green-900); }
.btn-block { width: 100%; padding: .9em; font-size: 1.05rem; }
.btn-danger-outline { border-color: var(--danger); color: var(--danger); background: #fff; padding: .35em 1em; font-size: .9rem; }
.btn-danger-outline:hover { background: #fbecea; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(63,107,79,.12);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .6em; color: var(--green-900); }
.logo-mark {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-700); color: #fff;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}
.logo-text { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { font-family: var(--font); font-weight: 400; font-size: .7rem; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 1.4em; }
.main-nav a { color: var(--text); font-size: .95rem; }
.main-nav a:hover { color: var(--green-700); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--green-900); transition: .2s; }

/* ---------- 首屏 ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(196,154,108,.18), transparent 45%),
    linear-gradient(160deg, var(--green-50) 0%, var(--cream) 60%, var(--earth-100) 100%);
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--earth-700); letter-spacing: .2em; font-size: .9rem; margin: 0 0 .8em; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: .05em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 1em; flex-wrap: wrap; margin: 1.8em 0 1.4em; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6em 1.6em; color: var(--green-700); font-size: .95rem; }
.hero-points li::before { content: "✓ "; font-weight: 700; }
.hero-art { position: relative; height: 380px; }
.circle { position: absolute; border-radius: 50%; }
.c1 { width: 320px; height: 320px; background: var(--green-200); top: 20px; right: 20px; opacity: .8; }
.c2 { width: 180px; height: 180px; background: var(--earth-400); bottom: 10px; left: 30px; opacity: .35; }
.leaf { position: absolute; top: 90px; right: 110px; font-size: 140px; filter: saturate(.7); }
.hero-card {
  position: absolute; bottom: 40px; right: 10px;
  background: #fff; padding: 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; font-size: .9rem; color: var(--muted);
}
.hero-card strong { color: var(--green-900); font-size: 1rem; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--green-50); }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); position: relative; padding-bottom: .4em; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; border-radius: 2px; background: var(--earth-400); }
.center { text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-sub { color: var(--muted); margin: -.2em 0 2.4em; }

/* ---------- 诊所介绍 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-list li { display: flex; gap: 12px; background: #fff; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-list .icon { font-size: 1.6rem; }
.feature-list h3 { font-size: 1.02rem; margin: 0 0 .2em; }
.feature-list p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- 卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
  border-top: 4px solid var(--green-500);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(36,56,44,.14); }
.card .card-icon { font-size: 2rem; margin-bottom: .3em; }
.card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .93rem; flex: 1; margin: 0 0 1em; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--green-200); padding-top: .8em; font-size: .9rem; }
.card .price { color: var(--earth-700); font-weight: 700; font-size: 1.1rem; }
.card .price small { font-weight: 400; color: var(--muted); font-size: .75rem; margin-left: .3em; }
.card .card-link { margin-top: 1em; font-size: .9rem; font-weight: 600; }

.doctors { grid-template-columns: repeat(3, 1fr); }
.doctor { border-top-color: var(--earth-400); text-align: center; align-items: center; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; margin-bottom: 1em;
  display: grid; place-items: center; font-family: var(--serif); font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
}
.doctor .title { color: var(--earth-700); font-size: .9rem; margin: -.2em 0 .6em; flex: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: .6em; }
.tag { background: var(--green-50); color: var(--green-700); font-size: .8rem; padding: 2px 10px; border-radius: 999px; }

/* ---------- 预约 ---------- */
.booking-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.tips { padding-left: 1.2em; color: var(--muted); }
.tips li { margin-bottom: .4em; }
.booking-form { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--green-900); }
label em, .agree em { color: var(--danger); font-style: normal; }
input[type="text"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; padding: .7em .9em; font: inherit; font-size: .98rem; color: var(--text);
  border: 1.5px solid #d9dfd5; border-radius: 10px; background: #fcfdfb;
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233f6b4f' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(106,154,114,.2); }
.invalid { border-color: var(--danger) !important; background: #fdf6f5 !important; }
.error { color: var(--danger); font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.error:empty { display: none; }
.hint { color: var(--muted); font-size: .82rem; margin: 4px 0 0; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); margin: 6px 0 4px; }
.agree input { margin-top: .4em; accent-color: var(--green-700); }
.booking-form .btn-block { margin-top: 14px; }

/* ---------- 我的预约 ---------- */
.booking-list { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.booking-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow);
  border-left: 4px solid var(--green-500);
}
.booking-item.cancelled { opacity: .55; border-left-color: #bbb; }
.booking-item h4 { margin: 0 0 .2em; color: var(--green-900); font-size: 1.05rem; }
.booking-item p { margin: 0; color: var(--muted); font-size: .9rem; }
.status { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 999px; margin-left: .5em; background: var(--green-50); color: var(--green-700); vertical-align: middle; }
.cancelled .status { background: #eee; color: #888; }
.empty { text-align: center; color: var(--muted); background: #fff; border: 1.5px dashed var(--green-200); border-radius: var(--radius); padding: 32px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .7em 0; border-bottom: 1px dashed var(--green-200); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { display: inline-block; width: 3.5em; color: var(--earth-700); font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .75em 0; border-bottom: 1px dashed var(--green-200); text-align: left; }
.hours th { font-weight: 600; color: var(--green-900); width: 45%; }
.hours .closed { color: var(--danger); font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-900); color: #d6e2d6; padding: 36px 0; font-size: .92rem; }
.footer-inner { display: grid; gap: .3em; text-align: center; }
.footer-inner p { margin: 0; }
.footer-inner .small { font-size: .8rem; color: #a9bcaa; }
.back-top { color: var(--earth-400); margin-top: .6em; }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(36,56,44,.45); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 18px; padding: 32px 30px 26px; width: min(460px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; animation: pop .25s ease-out; max-height: 90vh; overflow: auto; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-icon { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--green-700); color: #fff; font-size: 1.8rem; font-weight: 700; }
.modal-sub { color: var(--muted); margin: 0 0 1em; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: .5em 1em; text-align: left; background: var(--green-50); border-radius: 12px; padding: 16px 18px; margin: 0 0 1em; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; color: var(--green-900); word-break: break-all; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 1.2em; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .doctors { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(63,107,79,.15);
    box-shadow: 0 10px 20px rgba(0,0,0,.06);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav a { padding: .9em 4%; border-top: 1px solid rgba(63,107,79,.08); }
  .main-nav .btn-small { margin: .8em 4%; border-radius: 999px; }
  .hero { padding: 48px 0 56px; }
  .hero-inner, .about-grid, .booking-wrap, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .doctors { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .about-grid { gap: 28px; }
  .booking-wrap { gap: 20px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .booking-form, .contact-card { padding: 22px 18px; }
  .hero-actions .btn { flex: 1; }
  .logo-text small { display: none; }
}

/* ===== 上门服务（出诊）相关样式 ===== */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5em; flex-wrap: wrap;
  background: #fff; border: 1.5px solid var(--earth-400); color: var(--earth-700);
  padding: .35em 1em .35em .45em; border-radius: 999px; font-size: .9rem; font-weight: 600;
  margin-bottom: 1.1em; box-shadow: 0 4px 12px rgba(138,90,59,.10); transition: background .2s;
}
.hero-badge:hover { background: var(--earth-100); }
.badge-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--earth-100); display: grid; place-items: center; font-size: .9rem; }
.badge-sub { font-weight: 400; color: var(--muted); font-size: .85rem; }
.btn-link { align-self: center; font-weight: 600; color: var(--earth-700); padding: .4em .2em; border-bottom: 1.5px dashed var(--earth-400); }
.btn-link:hover { color: var(--green-900); }

.home-card {
  margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: linear-gradient(120deg, #fff 0%, #fff 55%, var(--earth-100) 100%);
  border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow);
  border-left: 5px solid var(--earth-400); position: relative;
}
.home-card .home-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--earth-100); display: grid; place-items: center; font-size: 2.3rem; }
.home-card .ribbon { display: inline-block; background: var(--earth-700); color: #fff; font-size: .75rem; padding: 1px 10px; border-radius: 999px; margin-left: .6em; vertical-align: middle; font-family: var(--font); font-weight: 600; }
.home-card h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .3em; }
.home-card p { color: var(--muted); margin: 0 0 .5em; font-size: .95rem; }
.home-card .area { font-size: .88rem; color: var(--earth-700); margin: 0; }
.home-card .tags { justify-content: flex-start; margin: .2em 0 .6em; }
.home-card .tag { background: var(--earth-100); color: var(--earth-700); }
.home-meta { text-align: right; min-width: 210px; display: flex; flex-direction: column; gap: .3em; }
.home-meta .price { color: var(--earth-700); font-weight: 700; font-size: 1.25rem; }
.home-meta small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.home-meta .btn { margin-top: .5em; }

.mode-row { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.mode-row legend { font-weight: 600; font-size: .95rem; color: var(--green-900); margin-bottom: 6px; padding: 0; }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-option { margin: 0; cursor: pointer; font-weight: 400; }
.mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.mode-option span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  border: 1.5px solid #d9dfd5; border-radius: 12px; padding: 12px 14px; background: #fcfdfb;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.mode-option strong { color: var(--green-900); font-size: 1rem; }
.mode-option small { color: var(--muted); font-size: .82rem; }
.mode-option input:checked + span { border-color: var(--green-700); background: var(--green-50); box-shadow: 0 0 0 3px rgba(106,154,114,.18); }
.mode-option input[value="home"]:checked + span { border-color: var(--earth-700); background: var(--earth-100); box-shadow: 0 0 0 3px rgba(196,154,108,.22); }
.mode-option input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 2px; }

.home-fields { border: 1.5px dashed var(--earth-400); background: #fffaf3; border-radius: 12px; padding: 16px 16px 4px; margin-bottom: 14px; }
.home-fields[hidden] { display: none; }
.home-notice { margin: 0 0 14px; font-size: .9rem; font-weight: 600; color: var(--earth-700); line-height: 1.6; }
.home-notice span { font-weight: 400; color: var(--muted); font-size: .84rem; }

.mode-tag { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 6px; margin-right: .5em; vertical-align: middle; background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-200); }
.mode-tag.home { background: var(--earth-100); color: var(--earth-700); border-color: var(--earth-400); }
.booking-item.home { border-left-color: var(--earth-400); }
.hours .home-row th, .hours .home-row td { color: var(--earth-700); }

@media (max-width: 860px) {
  .home-card { grid-template-columns: auto 1fr; }
  .home-meta { grid-column: 1 / -1; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .4em 1.2em; min-width: 0; }
  .home-meta .btn { margin-top: 0; margin-left: auto; }
}
@media (max-width: 520px) {
  .home-card { grid-template-columns: 1fr; padding: 22px 18px; gap: 14px; }
  .home-card .home-icon { width: 60px; height: 60px; font-size: 1.8rem; }
  .home-meta .btn { width: 100%; margin-left: 0; }
  .mode-switch { gap: 8px; }
  .mode-option span { padding: 10px; }
  .badge-sub { display: block; width: 100%; padding-left: 2.4em; }
}
/* 弹窗紧凑一些，确保上门预约的较长摘要在常见屏幕高度内完整显示 */
.modal-box { padding: 24px 26px 20px; }
.modal-icon { width: 48px; height: 48px; font-size: 1.5rem; margin-bottom: 6px; }
.modal-box h3 { margin-bottom: .3em; }
.modal-sub { margin-bottom: .7em; }
.summary { gap: .3em 1em; padding: 12px 16px; font-size: .95rem; }
.modal-actions { margin-top: .8em; }
.badge-sub::before { content: "· "; }
@media (max-width: 520px) {
  .hero-badge { border-radius: 16px; }
  .badge-sub::before { content: ""; }
}

/* CONSENT-CSS:START（由 acupuncture-tools 同步，請勿手改） */
/* ===== 《知情同意書》文檔樣式（網站彈窗、打印與獨立文件共用） ===== */
.consent-doc { font-family: "Noto Serif", Georgia, "Times New Roman", "Noto Serif CJK SC", "Songti SC", serif; color: #222; font-size: 14px; line-height: 1.6; background: #fff; }
.consent-doc .zh { font-family: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; color: #33443a; }
.consent-doc h1 { font-size: 1.45em; text-align: center; margin: .3em 0 .2em; color: #1f2f25; line-height: 1.35; }
.consent-doc h1 .zh { display: block; font-size: .85em; font-weight: 700; margin-top: .15em; }
.consent-doc h2 { font-size: 1.08em; margin: 0 0 .5em; padding: .3em .6em; background: #eef4ec; border-left: 4px solid #3f6b4f; color: #1f2f25; line-height: 1.4; }
.consent-doc h2 .zh { font-size: .92em; margin-left: .5em; font-weight: 700; }
.consent-doc p { margin: 0 0 .55em; }
.consent-doc ul { margin: 0 0 .55em; padding-left: 1.3em; }
.consent-doc li { margin-bottom: .2em; }
.cd-draft { border: 2px solid #b5473a; background: #fdf1ef; color: #7a2a20; padding: .7em 1em; border-radius: 6px; margin-bottom: 1em; font-size: .92em; }
.cd-draft .zh { display: block; margin-top: .3em; color: #7a2a20; }
.cd-header { text-align: center; border-bottom: 2px solid #3f6b4f; padding-bottom: .6em; margin-bottom: .9em; }
.cd-clinic { font-size: 1.15em; font-weight: 700; margin: 0; }
.cd-clinic-zh { display: block; font-size: .78em; font-weight: 500; color: #555; margin-top: .1em; }
.cd-meta, .cd-version { font-size: .85em; color: #555; margin: .1em 0; }
.cd-lang { border: 1px dashed #c49a6c; background: #fbf6ee; padding: .6em .9em; border-radius: 6px; margin-bottom: 1em; font-size: .93em; }
.cd-lang p { margin: .15em 0; }
.cd-sec { margin-bottom: 1.1em; }
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4em; }
.bi > .zh { border-left: 1px solid #dfe6dc; padding-left: 1.2em; }
.ph { background: #fff1b8; border-bottom: 1px dashed #b08900; padding: 0 .15em; color: #5c4700; font-style: normal; }
.ref { font-size: .78em; color: #6b766e; margin-top: .2em; font-style: italic; }
.cd-table { width: 100%; border-collapse: collapse; margin: .3em 0 .7em; font-size: .9em; table-layout: fixed; }
.cd-table th, .cd-table td { border: 1px solid #9aa79c; padding: .35em .5em; vertical-align: top; text-align: left; }
.cd-table th { background: #f4f7f2; font-weight: 600; width: 22%; line-height: 1.35; }
.cd-table td { height: 2.2em; }
.cd-sign th { width: auto; }
.cd-sign tr:first-child th { text-align: center; background: #e6eee3; }
.cd-sign .rel { display: block; font-weight: 400; font-size: .92em; margin-top: .3em; color: #444; }
.cd-sign td { height: 3em; }
.cd-checks-title { font-weight: 700; margin-top: .4em; }
.cd-checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15em 1.4em; font-size: .9em; }
.cd-practitioner { border-top: 1px dashed #9aa79c; padding-top: .6em; margin-top: .4em; }
.cd-footer { border-top: 1px solid #9aa79c; margin-top: 1em; padding-top: .4em; font-size: .78em; color: #555; text-align: center; }
@media (max-width: 700px) {
  .bi { grid-template-columns: 1fr; }
  .bi > .zh { border-left: 0; padding-left: 0; border-top: 1px dashed #dfe6dc; padding-top: .5em; margin-top: .2em; }
  .cd-checks { grid-template-columns: 1fr; }
  .cd-table, .cd-table tbody, .cd-table tr, .cd-table th, .cd-table td { display: block; width: 100% !important; }
  .cd-table td { min-height: 2.2em; height: auto; }
}

/* 單語版（中文版 / 英文版各自獨立） */
.consent-doc.single .mono > div { border: 0; padding: 0; }
.consent-doc .cd-sub { display: block; font-size: .62em; font-weight: 500; color: #5d6a61; margin-top: .25em; letter-spacing: .02em; }
.consent-doc.cd-zh { font-family: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; line-height: 1.75; }
.consent-doc.cd-zh .zh { color: inherit; }
.consent-doc.cd-zh .ref { font-style: normal; }
.consent-doc.cd-zh h1 { letter-spacing: .08em; }

.cred-note { font-size: .9em; background: #f7faf5; border-left: 3px solid #3f6b4f; padding: .45em .75em; margin: .4em 0 .7em; color: #33443a; }
.consent-doc.cd-zh .cred-note { font-family: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }

/* 標誌（黑白，適合打印） */
.cd-header .cd-logo { display: block; width: 58px; height: 58px; margin: 0 auto .35em; }
/* v1.1 header: 針 seal + clinic name top-left, title at right (same as intake page 1) */
.cd-header.cd-ihead { display: flex; align-items: center; justify-content: space-between; gap: 1em; text-align: left; }
.cd-ihead .cd-brand { display: flex; align-items: center; gap: .6em; min-width: 0; }
.cd-ihead .cd-logo { display: block; flex: none; width: 48px; height: 48px; margin: 0; }
.cd-ihead .cd-clinic { font-size: 1.05em; }
.cd-ihead .cd-meta { margin: .1em 0 0; }
.cd-ihead .cd-titlebox { text-align: right; flex: none; }
.cd-ihead h1 { text-align: right !important; margin: 0 !important; }
.cd-ihead .cd-version { margin: .15em 0 0; }
@media (max-width: 640px) { .cd-header.cd-ihead { flex-direction: column; align-items: flex-start; } .cd-ihead .cd-titlebox, .cd-ihead h1 { text-align: left !important; } }
.cd-ihead .cd-brand { flex: none; }
.cd-ihead .cd-clinic { white-space: nowrap; }
.cd-ihead .cd-titlebox { flex: 1 1 auto; min-width: 0; }
.consent-doc.cd-en .cd-ihead h1 { font-size: 1.3em !important; line-height: 1.2; }
.consent-doc.cd-en .cd-ihead .cd-clinic { font-size: .95em; }
.consent-doc.cd-en .cd-ihead .cd-titlebox { flex: none; }
.cd-ihead .cd-titlebox { flex: none; }
.cd-ihead h1, .cd-ihead .cd-version { white-space: nowrap; }
.consent-doc .cd-term { margin: 0 0 .5em; } .consent-doc .cd-fees p { margin: 0 0 .5em; }

/* ===== v2.0 兩份簽字文件：治療同意書 + 患者隱私同意書 ===== */
.consent-doc .cd-intro { margin: 0 0 .8em; }
.consent-doc .cd-h1sub { margin: .1em 0 0; font-size: .86em; font-weight: 600; color: #444; text-align: right; white-space: nowrap; }
.consent-doc ul.cd-items { padding-left: 1.2em; }
.consent-doc ul.cd-items li { margin-bottom: .35em; }
.consent-doc .cd-sl { display: flex; align-items: flex-end; gap: 6px; margin: 1.6em 0 .2em; font-weight: 600; font-size: .95em; }
.consent-doc .cd-sl .sl-l, .consent-doc .cd-sl .sl-d { white-space: nowrap; }
.consent-doc .cd-sl .sl-d { margin-left: 8px; }
.consent-doc .cd-sl .ul { display: inline-block; flex: 1; border-bottom: 1px solid #222; height: 1.1em; }
.consent-doc .cd-sl .ul.d { flex: 0 0 120px; }
.consent-doc .cd-cx { margin-top: 1.4em; padding-top: .9em; border-top: 1.5px dashed #7a8a7e; }
.consent-doc .cd-cx h2 { letter-spacing: .02em; }
.consent-doc .cd-ult { margin-top: .4em; }
.cd-doc-break { height: 0; }
@media screen {
  .consent-doc.cd-doc2 { margin-top: 2.2em; padding-top: 1.4em; border-top: 3px double #3f6b4f; }
  .cd-doc-break { height: 1px; }
}
@media print {
  .consent-doc.cd-doc2 { break-before: page; page-break-before: always; }
  .consent-doc .cd-cx, .consent-doc .cd-s1, .consent-doc .cd-s3 { break-inside: avoid; page-break-inside: avoid; }
  .consent-doc .cd-sl .ul { border-bottom-color: #000; }
}
.consent-doc.cd-zh .cd-intro { font-style: normal !important; }
.consent-doc .cd-s3 .cd-sl { margin-top: 2.4em; }
.consent-doc .cd-s1 .cd-sl { margin-top: 2em; }
@media print { .consent-doc .cd-cx { border-top: 0; padding-top: 0; } }
/* v2.1: doc 1 on one page — compact print rhythm, cancellation policy follows on the same page */
@media print {
  .consent-doc.single .cd-header { padding-bottom: .35em; margin-bottom: .6em; }
  .consent-doc.single .cd-intro { margin-bottom: .5em; }
  .consent-doc.single .cd-sec { margin-bottom: .55em !important; }
  .consent-doc.single h2 { margin-bottom: .35em !important; }
  .consent-doc.single ul.cd-items li { margin-bottom: .15em; }
  .consent-doc.single .cd-sec p { margin-bottom: .3em; }
  .consent-doc .cd-sl { margin: 1.5em 0 .1em; }
  .consent-doc .cd-s1 .cd-sl { margin-top: 1.5em; }
  .consent-doc .cd-s3 .cd-sl { margin-top: 2.3em; }
  .consent-doc .cd-cx { border-top: 1.2px dashed #555; padding-top: .6em; margin-top: .9em; break-before: avoid; }
}
/* v2.2: Yi-style "Patient's Name (Please Print)" line under the intro; printed-name note under the practitioner line */
.consent-doc .cd-pname-top { margin: .3em 0 1em; }
.consent-doc .cd-wnote { margin: .25em 0 0; font-size: .85em; color: #444; }

/* ===== 打印版式：美國 Letter 紙張 · v10 黑白打印友好（屏幕顯示不變） ===== */
@page { size: Letter; margin: 0.5in 0.55in; }
@media print {
  .consent-doc { font-size: 9.6pt; line-height: 1.45; color: #111; }
  .consent-doc .zh { color: #111; }
  .consent-doc h1 { color: #111; }
  .consent-doc h2 { font-size: 10.5pt; break-after: avoid; background: #fff !important; color: #111; font-weight: 800; border-left: 4px solid #2f5d4a; border-bottom: 1.2px solid #2f5d4a; padding: .15em .6em; }
  .cd-header { border-bottom: 2.2px solid #2f5d4a; }
  .cd-meta, .cd-version, .ref, .cd-footer, .cd-sign .rel, .consent-doc .cd-sub { color: #333 !important; }
  .cd-draft { background: #fff !important; border: 2px solid #111; color: #111; font-weight: 600; }
  .cd-draft .zh { color: #111; }
  .cd-lang { background: #fff !important; border: 1px dashed #333; }
  .cred-note { background: #fff !important; border: 1px solid #999; border-left: 3px solid #2f5d4a; color: #111; }
  /* 黃色佔位 → 黑白可見：虛線框 + 加粗 */
  .ph { background: #fff !important; color: #000 !important; border: 1px dashed #222 !important; border-radius: 2px; padding: 0 .2em; font-weight: 600; }
  .cd-table th, .cd-table td { border-color: #444 !important; }
  .cd-table th { background: #fff !important; font-weight: 700; color: #111; }
  .cd-sign tr:first-child th { background: #fff !important; border-bottom: 2px solid #111 !important; }
  .cd-practitioner { border-top: 1px dashed #444; }
  .cd-footer { border-top: 1px solid #555; }
  .cd-sec { break-inside: auto; }
  .consent-doc p, .consent-doc li, .cd-table tr { break-inside: avoid; }
  .cd-intake h2 { break-before: auto; }
  .cd-sign, .cd-practitioner, .cd-checks { break-inside: avoid; }
  .bi { grid-template-columns: 1fr 1fr !important; }
  .bi > .zh { border-left: 1px solid #999 !important; padding-left: 1.2em !important; border-top: 0 !important; padding-top: 0 !important; }
  .cd-checks { grid-template-columns: 1fr 1fr !important; }
  .cd-table { display: table !important; }
  .cd-table tbody { display: table-row-group !important; }
  .cd-table tr { display: table-row !important; }
  .cd-table th, .cd-table td { display: table-cell !important; }
  .cd-table th { width: 22% !important; } .cd-sign th { width: auto !important; }
  .cd-table td { height: 2.4em; width: auto !important; }
  .cd-sign td { height: 3.2em; }
  .no-print { display: none !important; }
  .consent-doc.single { font-size: 10.2pt; line-height: 1.5; }
  .consent-doc.cd-zh { line-height: 1.6; }
}
@media print {
  /* v7: keep every signature section (incl. Cancellation heading + text + acknowledgement + signature) on one page */
  .cd-sign-sec, .cd-cx, .cd-s1, .cd-s3 { break-inside: avoid; page-break-inside: avoid; }
  .cd-b { break-after: avoid; }
}

/* CONSENT-CSS:END */

/* ===== 初诊：知情同意与健康信息 ===== */
.first-fields { border: 1.5px solid var(--green-200); background: #f8fbf6; border-radius: 12px; padding: 16px 16px 6px; margin-bottom: 14px; }
.first-fields[hidden], .fv-step[hidden], #allergy-row[hidden], #ack-home-row[hidden] { display: none; }
.fv-head h3 { font-size: 1.05rem; margin: 0 0 .2em; }
.fv-head p { font-size: .86rem; color: var(--muted); margin: 0 0 12px; line-height: 1.6; }
.fv-step { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--green-200); }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; margin-top: 2px; }
#guardian-step .step-no { background: var(--earth-700); }
.step-title { font-weight: 700; color: var(--green-900); margin: 0 0 8px; }
.step-title em { color: var(--danger); font-style: normal; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.consent-actions .btn { padding: .55em 1.2em; font-size: .95rem; }
.read-status { font-size: .86rem; color: var(--muted); margin: 8px 0 0; }
.read-status.done { color: var(--green-700); font-weight: 600; }
.health-row { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.health-row legend { font-weight: 600; font-size: .95rem; color: var(--green-900); margin-bottom: 6px; padding: 0; }
.health-row legend em { color: var(--danger); font-style: normal; }
.health-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.health-grid label, .ack-list label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--text); margin: 0; line-height: 1.5; cursor: pointer; }
.health-grid input, .ack-list input { margin-top: .3em; accent-color: var(--green-700); flex: none; }
.health-grid .none-opt { font-weight: 600; }
.health-grid.invalid-group, .ack-list.invalid-group { outline: 1.5px solid var(--danger); outline-offset: 4px; border-radius: 6px; }
.ack-list { display: grid; gap: 6px; }
.ack-list label:has(input:disabled) { color: #9aa39c; cursor: not-allowed; }
.sig-input { font-family: inherit !important; font-size: 1.1rem !important; background: #fff !important; border-style: dashed !important; }
.sign-date { font-size: .9rem; margin: 0 0 4px; color: var(--green-900); }
.guardian-hint { margin: -4px 0 8px; color: var(--earth-700); }

/* 同意书弹窗 */
.consent-modal { padding: 16px; }
.consent-box { background: #fff; border-radius: 14px; width: min(980px, 100%); height: min(92vh, 1000px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: hidden; animation: pop .25s ease-out; }
.consent-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid #e3e8e0; background: var(--green-50); }
.consent-bar h3 { margin: 0; font-size: 1.05rem; flex: 1; }
.consent-x { border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.consent-scroll { flex: 1; overflow: auto; padding: 22px 28px; }
.consent-scroll:focus { outline: none; }
.consent-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 18px; border-top: 1px solid #e3e8e0; background: #fafcf9; }
#scroll-hint { font-size: .88rem; color: var(--muted); }
#consent-done:disabled { background: #b8c4bb; box-shadow: none; cursor: not-allowed; }
.mode-tag.first { background: #eef1fb; color: #3f4f8a; border-color: #c8d0ef; }

@media (max-width: 520px) {
  .health-grid { grid-template-columns: 1fr; }
  .first-fields { padding: 12px 10px 4px; }
  .fv-step { grid-template-columns: 1fr; }
  .step-no { display: none; }
  .consent-scroll { padding: 14px 14px; }
  .consent-modal { padding: 6px; }
  .consent-box { height: 96vh; }
}

/* 打印：点击“打印纸质版”时只输出同意书正文 */
@media print {
  body.print-consent > *:not(#consent-modal) { display: none !important; }
  body.print-consent #consent-modal { display: block !important; position: static !important; background: none !important; padding: 0 !important; }
  body.print-consent .consent-box { box-shadow: none !important; height: auto !important; width: auto !important; border-radius: 0 !important; overflow: visible !important; animation: none !important; display: block !important; }
  body.print-consent .consent-bar, body.print-consent .consent-foot { display: none !important; }
  body.print-consent .consent-scroll { overflow: visible !important; padding: 0 !important; }
}

/* 按钮形式的文字链接 */
button.btn-link { background: none; border: 0; border-bottom: 1.5px dashed var(--earth-400); border-radius: 0; font: inherit; font-weight: 600; color: var(--earth-700); cursor: pointer; padding: .3em .1em; }
button.btn-link:hover { color: var(--green-900); }

/* INTAKE-DOC-CSS:START（由 acupuncture-tools 同步，請勿手改） */
/* ===== 打印版《新病人信息表 / New Patient Intake Form》v11（網站打印與獨立文件共用）=====
   內容依照診所參考表（4 頁）；黑白打印友好：無深色/大面積底色，用細框線、粗體區分層級；綠色僅作細線/文字。 */
.intake-doc { font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; color: #111; font-size: 12px; line-height: 1.4; background: #fff; }
.intake-doc p { margin: 0; }
.intake-doc .req { color: #111; font-weight: 800; }
.intake-doc .ph { border: 1px dashed #222; border-radius: 2px; padding: 0 .2em; font-weight: 600; color: #000; background: #fff; }
@media screen { .intake-doc .ph { background: #fff1b8; } }
.ipage { position: relative; display: flex; flex-direction: column; }
@media screen { .ipage + .ipage { margin-top: 28px; padding-top: 28px; border-top: 2px dashed #b9c2bb; } }
/* 頁 1 標題 */
.ihead { display: flex; align-items: center; justify-content: space-between; border-bottom: 2.2px solid #2f5d4a; padding-bottom: 4px; margin-bottom: 6px; }
.ih-brand { display: flex; align-items: center; gap: 8px; }
.ih-n1 { font-weight: 700; font-size: 14px; }
.ih-n2 { font-size: 11px; color: #2f5d4a; font-weight: 600; }
.ihead h1 { margin: 0; white-space: nowrap; font-size: 24px; letter-spacing: .06em; color: #111; }
.intake-en .ihead h1 { letter-spacing: .01em; font-size: 21px; }
.ih-n1 { white-space: nowrap; }
.intake-en .ih-n1 { font-size: 13px; }
/* 表格框 */
.tbl { border: 1.4px solid #222; }
.sbar { text-align: center; font-weight: 800; font-size: 13.5px; letter-spacing: .08em; padding: 2px 0; border-bottom: 1px solid #222; border-top: 1.4px solid #222; background: #fff; }
.tbl > .sbar:first-child { border-top: 0; }
.r { display: grid; border-bottom: 1px solid #555; }
.r:last-child { border-bottom: 0; }
.r > .c { border-left: 1px solid #555; padding: 2px 5px; min-height: 33px; }
.r > .c:first-child { border-left: 0; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.gaddr { grid-template-columns: 2fr 1fr .5fr .5fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: 1fr 1fr; }
.g1 { grid-template-columns: 1fr; }
.gbm { grid-template-columns: 1.25fr 1fr; }
.r.ec > .c { min-height: 29px; }
.r.mid > .c { min-height: 64px; }
.r.sig > .c { min-height: 34px; }
.c.auto { min-height: 0 !important; padding-bottom: 4px; }
.cl { display: block; font-size: 10.5px; font-weight: 600; color: #111; }
.bmcell { display: flex; align-items: center; gap: 6px; padding: 4px 6px !important; }
.legend { list-style: none; margin: 0; padding: 0; flex: none; font-size: 10.5px; }
.legend li { display: flex; align-items: center; gap: 5px; line-height: 1.75; }
.legend .mk-ico { color: #111; flex: none; }
.bmfig { flex: 1; min-width: 0; }
.bmfig svg { width: 100%; height: auto; max-height: 2.6in; display: block; margin: 0 auto; }
.intake-doc .bm-img[data-filter] { filter: grayscale(1); }
.intake-doc .bm-title { font: 800 44px "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif; fill: #111; }
.intake-doc .bm-side { font: 700 32px "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif; fill: #333; }
.pcs { display: flex; flex-wrap: wrap; gap: 3px 16px; font-size: 11px; margin-top: 3px; align-items: center; }
.pcs.scale { gap: 3px 22px; }
.pc { white-space: nowrap; display: inline-flex; align-items: center; }
.pc.other { flex: 1; }
.pc.other .ul { flex: 1; min-width: 200px; margin-left: 4px; }
.bx { display: inline-block; width: 11px; height: 11px; border: 1.3px solid #111; border-radius: 1.5px; margin-right: 4px; background: #fff; box-sizing: border-box; flex: none; }
.ul { display: inline-block; border-bottom: 1px solid #222; height: 1.1em; vertical-align: bottom; }
.ul.s { width: 52px; }
.bm-credit-p { font-size: 7px; color: #444; margin-top: 3px !important; text-align: center; }
/* 頁腳 */
.ifoot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: #333; border-top: 1px solid #777; }
.ifoot-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #111; }
/* 頁 2 問卷 */
.ptitle { text-align: center; font-size: 19px; margin: 4px 0 10px; color: #111; letter-spacing: .04em; }
.qbox { display: grid; grid-template-columns: 1fr 1fr; border: 1.4px solid #222; flex: 1; }
.qcol { padding: 8px 12px; display: flex; flex-direction: column; }
.qcol + .qcol { border-left: 1px solid #555; }
.q { flex: 1; min-height: 36px; font-size: 11.5px; border-bottom: 1px dotted #999; padding-top: 3px; }
.q:last-child { border-bottom: 0; }
.q.sub p { padding-left: 1em; }
.q.big { flex: 2.2; }
.q20 { flex: 1.3; }
.cyc { margin-top: 5px !important; }
/* 頁 3 / 4 文書 */
.legal { font-size: 12.5px; line-height: 1.6; }
.legal p { margin: 0 0 9px; text-align: justify; }
.legal ul { margin: 0 0 12px 0; padding-left: 1.8em; }
.legal li { margin-bottom: 3px; }
.lhead { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2.2px solid #2f5d4a; padding-bottom: 6px; margin-bottom: 14px; }
.lh-name { font-weight: 800; font-size: 14px; margin: 0 !important; }
.lh-name2 { font-size: 11px; color: #2f5d4a; font-weight: 600; margin: 0 0 3px !important; }
.lh-addr { font-size: 11px; margin: 0 0 2px !important; }
.sigblock { border-top: 1.6px solid #222; padding-top: 12px; margin-top: 12px; }
.sigrow { display: flex; align-items: flex-end; gap: 6px; margin: 14px 0 6px; font-size: 12px; }
.sigrow .sl-l { white-space: nowrap; font-weight: 600; }
.sigrow .ul { flex: 1; }
.sigrow .ul.d { flex: 0 0 110px; }
.sigrow .sl-d { white-space: nowrap; font-weight: 600; margin-left: 6px; }
.rep { text-align: center; font-size: 10.5px; color: #333; margin-top: 6px !important; }
.ab { padding-left: 0; list-style: none; margin: 14px 0; }
.ab li { margin-bottom: 12px; }
.ptitle.cx { margin-top: 26px; }
@media print {
  .intake-doc, .intake-doc * { box-shadow: none !important; text-shadow: none !important; }
  .ipage { height: 9.9in; break-after: page; break-inside: avoid; overflow: hidden; }
  .ipage:last-child { break-after: auto; }
}

/* 標誌（黑白，適合打印） */
.ih-brand .id-logo { flex: none; width: 48px; height: 48px; }
.ifoot-brand .ifoot-logo { flex: none; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.lhead .lh-logo { flex: none; width: 54px; height: 54px; }
.ihead h1.sm { font-size: 18px; }
/* p4 (financial + cancellation) is short now: share the spare height between its two parts instead of leaving it at the bottom */
.p4 > .ihead + p + p, .p4 > .ptitle.cx, .p4 > .sigrow { margin-top: auto !important; }
.p4 > .sigrow { margin-bottom: 8mm !important; }
@media print {
  /* legal pages: roomier type so each page is evenly used (packet PDFs fine-tune this per page) */
  .ipage.p3.legal { font-size: 15.5px; line-height: 1.8; }
  .intake-en .ipage.p3.legal { font-size: 13.5px; }
  .ipage.p4.legal { font-size: 15.5px; line-height: 1.8; }
  .intake-en .ipage.p4.legal { font-size: 13.5px; }
  .ipage.legal p { margin-bottom: .9em; }
  .ipage.legal ul { margin-bottom: 1.1em; }
  .ipage.legal li { margin-bottom: .3em; }
  .ipage.legal .sigrow { margin: 10mm 0 2mm; font-size: 13px; }
}

/* 繁體中文版（2026-10-21）：中文表格用思源黑體繁體 Noto Sans CJK TC（= Source Han Sans TC，與易老師中文表格同款 Source Han Sans）；英文版不變 */
.intake-doc:lang(zh), .intake-doc:lang(zh) .bm-title, .intake-doc:lang(zh) .bm-side { font-family: "Noto Sans CJK TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }

/* INTAKE-DOC-CSS:END */

/* SITE-EXTRA-CSS:START（由 acupuncture-tools 同步，請勿手改） */
/* ===== 雙語切換 ===== */
html[data-lang="zh"] [data-l="en"], html[data-lang="en"] [data-l="zh"] { display: none !important; }
html[data-lang="en"] body { line-height: 1.6; }
html[data-lang="en"] .hero h1 { letter-spacing: 0; }
html[data-lang="en"] .eyebrow { letter-spacing: .14em; font-size: .8rem; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--green-200); border-radius: 999px; padding: 2px; background: #fff; order: 3; margin-left: 18px; flex: none; }
.lang-switch button { border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted); padding: .28em .8em; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--green-700); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--green-500); outline-offset: 1px; }
.nav-wrap { gap: 12px; }
.main-nav { order: 2; margin-left: auto; }
.logo { order: 1; min-width: 0; }
.logo-mark { width: 42px; height: 42px; flex: none; background: none; border-radius: 50%; }
.logo-text { font-size: 1.08rem; }
html[data-lang="en"] .logo-text { font-family: Georgia, "Noto Serif", serif; font-size: 1.02rem; }
html[data-lang="en"] .main-nav { gap: 1.1em; }
html[data-lang="en"] .main-nav a { font-size: .9rem; }
.hero-logo { position: absolute; top: 60px; right: 80px; width: 220px; height: 220px; filter: drop-shadow(0 18px 30px rgba(36,56,44,.18)); }
.hero-logo svg { width: 100%; height: 100%; }
.print-box { margin-top: 18px; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.print-box p { margin: 0 0 2px; font-weight: 600; color: var(--green-900); font-size: .92rem; }
input[type="email"], input[type="number"] {
  width: 100%; padding: .7em .9em; font: inherit; font-size: .98rem; color: var(--text);
  border: 1.5px solid #d9dfd5; border-radius: 10px; background: #fcfdfb; transition: border-color .2s, box-shadow .2s;
}
.booking-wrap { grid-template-columns: .62fr 1.38fr; gap: 40px; }
.booking-info { position: sticky; top: 90px; }

/* ===== 初診登記表（網站） ===== */
.intake { display: grid; gap: 10px; }
.ix-section { border: 1.5px solid var(--green-200); border-radius: 12px; background: #fff; }
.ix-section > summary { list-style: none; cursor: pointer; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--green-900); border-radius: 12px; }
.ix-section > summary::-webkit-details-marker { display: none; }
.ix-section > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(45deg); transition: transform .2s; }
.ix-section[open] > summary { border-bottom: 1px dashed var(--green-200); border-radius: 12px 12px 0 0; background: var(--green-50); }
.ix-section[open] > summary::after { transform: rotate(-135deg); }
.ix-section > summary:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }
.ix-opt { font-size: .75rem; font-weight: 600; color: var(--earth-700); background: var(--earth-100); border-radius: 999px; padding: 1px 9px; }
.ix-body { padding: 12px 14px 4px; }
.ix-note { margin: 0 0 10px; }
.ix-grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 0 14px; }
.ix-field { grid-column: span 12; margin: 0 0 12px; min-width: 0; }
.ix-field.w-full { grid-column: span 24; } .ix-field.w-third { grid-column: span 8; } .ix-field.w-quarter { grid-column: span 12; } .ix-field.w-sixth { grid-column: span 4; } .ix-field.w-eighth { grid-column: span 6; }
html[data-lang="zh"] .ix-field.ord-zh-first { order: -1; }
.ix-field[hidden], .ix-sub[hidden] { display: none; }
.ix-field label, .ix-group legend, .ix-label { font-size: .9rem; }
.ix-group { border: 0; padding: 0; min-width: 0; }
.ix-group legend { font-weight: 600; color: var(--green-900); margin-bottom: 6px; padding: 0; line-height: 1.45; }
.ix-group legend em, .ix-field label em { color: var(--danger); font-style: normal; }
.ix-label { font-weight: 600; color: var(--green-900); margin: 0 0 2px; }
.ix-sub { grid-column: span 24; margin: 4px 0 10px; font-size: .9rem; color: var(--earth-700); border-bottom: 1px dashed var(--earth-400); padding-bottom: 3px; }
.ix-group.invalid-group .chips, .ix-group.invalid-group .scale { outline: 1.5px solid var(--danger); outline-offset: 4px; border-radius: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { margin: 0; font-weight: 400; cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip > span { display: inline-block; padding: .3em .85em; border: 1.5px solid #d9dfd5; border-radius: 999px; background: #fcfdfb; font-size: .86rem; line-height: 1.4; color: var(--text); transition: background .15s, border-color .15s; }
.chip:hover > span { border-color: var(--green-500); }
.chip input:checked + span { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip input[type="checkbox"]:checked + span::before { content: "✓ "; }
.chip input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; max-width: 520px; }
.scale .chip > span { display: block; text-align: center; padding: .35em 0; border-radius: 8px; font-weight: 600; }
.scale .chip input:checked + span::before { content: none; }
.scale .s0 input:checked + span { background: #6a9a72; border-color: #6a9a72; }
.scale .s1 input:checked + span, .scale .s2 input:checked + span, .scale .s3 input:checked + span { background: #9bb35a; border-color: #9bb35a; }
.scale .s4 input:checked + span, .scale .s5 input:checked + span, .scale .s6 input:checked + span { background: #d9a13b; border-color: #d9a13b; }
.scale .s7 input:checked + span, .scale .s8 input:checked + span { background: #d9733b; border-color: #d9733b; }
.scale .s9 input:checked + span, .scale .s10 input:checked + span { background: #c0473a; border-color: #c0473a; }
.scale-ends { display: flex; justify-content: space-between; max-width: 520px; font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* 人體圖 */
.bm-wrap { background: #fbfaf6; border: 1px solid #ebe5d8; border-radius: 12px; padding: 12px; }
.bm-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; align-items: center; }
.bm-tool { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #d9dfd5; background: #fff; border-radius: 999px; padding: .3em .85em; font: inherit; font-size: .85rem; cursor: pointer; color: var(--text); }
.bm-tool i, .bm-chip i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.bm-tool[aria-pressed="true"] { border-color: var(--green-900); box-shadow: 0 0 0 2px rgba(36,56,44,.15); font-weight: 700; }
.mk-ico { flex: none; }
.bm-tool.mark-spasm .mk-ico, .bm-chip.mark-spasm .mk-ico { color: #e5372a; }
.bm-tool.mark-inflammation .mk-ico, .bm-chip.mark-inflammation .mk-ico { color: #f07a1c; }
.bm-tool.mark-trigger .mk-ico, .bm-chip.mark-trigger .mk-ico { color: #c21d78; }
.bm-tool.mark-elevation .mk-ico, .bm-chip.mark-elevation .mk-ico { color: #8a6d1c; }
.bm-tool.mark-adhesion .mk-ico, .bm-chip.mark-adhesion .mk-ico { color: #5b5b5b; }
.bm-tool.mark-rotation .mk-ico, .bm-chip.mark-rotation .mk-ico { color: #1c8a7a; }
.bm-tool.mark-pain .mk-ico, .bm-chip.mark-pain .mk-ico { color: #b5121b; }
.bm-tool.mark-tender .mk-ico, .bm-chip.mark-tender .mk-ico { color: #8a4fe0; }
.bm-tool.mark-hypertonicity .mk-ico, .bm-chip.mark-hypertonicity .mk-ico { color: #2f7de0; }
.bm-clear { margin-left: auto; border: 0; background: none; font: inherit; font-size: .84rem; color: var(--danger); cursor: pointer; text-decoration: underline; }
.bm-stage { display: flex; justify-content: center; }
.bodymap { width: 100%; max-width: 640px; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; background: #fff; border-radius: 10px; }
.bodymap .bm-img { filter: saturate(.72) brightness(1.03); pointer-events: none; }
.bodymap .bm-region { fill: rgba(255,255,255,.001); stroke: rgba(36,56,44,.22); stroke-width: 1.6; stroke-dasharray: 6 5; cursor: pointer; transition: fill .15s, stroke .15s; outline: none; pointer-events: all; }
.bodymap .bm-region:hover { fill: rgba(63,107,79,.22); stroke: #2f5d4a; stroke-dasharray: none; stroke-width: 2.4; }
.bodymap .bm-region:focus-visible { stroke: #10261a; stroke-width: 5; stroke-dasharray: none; fill: rgba(63,107,79,.18); }
.bodymap .bm-region[data-mark] { stroke-dasharray: none; stroke-width: 4; fill-opacity: .55; }
.bodymap .bm-region[data-mark="spasm"] { fill: #e5372a; stroke: #e5372a; }
.bodymap .bm-region[data-mark="inflammation"] { fill: #f07a1c; stroke: #f07a1c; }
.bodymap .bm-region[data-mark="trigger"] { fill: #c21d78; stroke: #c21d78; }
.bodymap .bm-region[data-mark="elevation"] { fill: #8a6d1c; stroke: #8a6d1c; }
.bodymap .bm-region[data-mark="adhesion"] { fill: #5b5b5b; stroke: #5b5b5b; }
.bodymap .bm-region[data-mark="rotation"] { fill: #1c8a7a; stroke: #1c8a7a; }
.bodymap .bm-region[data-mark="pain"] { fill: #b5121b; stroke: #b5121b; }
.bodymap .bm-region[data-mark="tender"] { fill: #8a4fe0; stroke: #8a4fe0; }
.bodymap .bm-region[data-mark="hypertonicity"] { fill: #2f7de0; stroke: #2f7de0; }
.bodymap .bm-ltr { display: none; pointer-events: none; }
.bodymap .bm-ltr.on { display: inline; }
.bodymap .bm-ltr-bg { fill: #fff; stroke: rgba(0,0,0,.55); stroke-width: 2.5; }
.bodymap .bm-ltr-sym { color: #111; stroke: #111; }
.bm-tools { gap: 6px 6px; }
.scale.scale10 { grid-template-columns: repeat(10, 1fr); }
.bodymap .bm-title { font: 700 40px var(--font); fill: var(--green-900); }
.bodymap .bm-side { font: 600 30px var(--font); fill: var(--muted); }
.bm-swipe { display: none; margin: 0 0 4px; font-size: .78rem; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .bm-swipe { display: block; }
  .bm-stage { overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; border-radius: 10px; }
  .bodymap { width: 185%; max-width: none; flex: none; }
}
.bm-credit { margin: 4px 0 0; font-size: .7rem; color: var(--muted); text-align: center; }
.bm-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.bm-list p { margin: 0; font-size: .82rem; color: var(--muted); width: 100%; }
.bm-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #e3ded2; border-radius: 999px; padding: .15em .3em .15em .7em; font-size: .82rem; }
.bm-chip button { border: 0; background: #f1ece2; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; color: var(--muted); }

/* 打印空白登記表 */
.print-only-doc[hidden] { display: none; }
@media print {
  body.print-intake > *:not(#print-intake) { display: none !important; }
  body.print-intake #print-intake { display: block !important; }
}

@media (max-width: 1000px) {
  .booking-wrap { grid-template-columns: 1fr; }
  .booking-info { position: static; }
}
@media (max-width: 860px) {
  .lang-switch { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; }
  .main-nav { order: 4; margin-left: 0; }
}
@media (max-width: 600px) {
  .ix-field, .ix-field.w-third, .ix-field.w-quarter { grid-column: span 24; }
  .ix-field.w-sixth, .ix-field.w-eighth { grid-column: span 12; }
  .ix-body { padding: 10px 10px 2px; }
  .scale { gap: 2px; }
  .scale .chip > span { font-size: .8rem; padding: .4em 0; }
  .logo-text { font-size: .95rem; }
  html[data-lang="en"] .logo-text { font-size: .86rem; }
  .lang-switch button { padding: .25em .6em; font-size: .78rem; }
  .bm-wrap { padding: 10px 4px; margin-left: -4px; margin-right: -4px; }
  .booking-form { padding: 18px 12px; }
  .first-fields { padding: 10px 6px 4px; }
  .ix-body { padding: 10px 8px 2px; }
}
@media (max-width: 400px) {
  .logo-mark { width: 36px; height: 36px; }
  .logo-text small { display: none; }
}

/* 針灸師卡片：執照 / Dipl. AHM 黃色佔位 */
.doctor .doc-cred { margin: -.4em 0 .55em; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.doctor .doc-cred .ph, .doctor h3 .ph { font-size: .92em; }
.doctor h3 .ph { font-weight: 500; margin-left: .25em; }

/* v13 頁眉雙行品牌字標：第 1 行 Jin Acupuncture（保持原字號），第 2 行較小、較淺；
   兩行左對齊、與圓形標誌垂直居中。頁眉僅用英文名（中文界面同樣使用英文名）。
   正式法定名稱 LLC 仍用於頁腳、表格與同意書。 */
.logo { gap: .65em; }
.logo-lockup, html[data-lang="en"] .logo-lockup { font-family: Georgia, "Noto Serif", "Times New Roman", serif; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.logo-lockup .lk-1 { font-size: .92rem; font-weight: 700; letter-spacing: .035em; color: var(--green-900); white-space: nowrap; }
.logo-lockup .lk-2 { font-size: .66rem; font-weight: 400; letter-spacing: .045em; color: var(--muted); margin-top: .28em; white-space: nowrap; }
@media (max-width: 600px) {
  .logo { gap: .5em; }
  .logo-lockup .lk-1, html[data-lang="en"] .logo-lockup .lk-1 { font-size: .84rem; letter-spacing: .02em; }
  .logo-lockup .lk-2 { font-size: .58rem; letter-spacing: .01em; margin-top: .22em; }
  .lang-switch button { padding: .25em .5em; font-size: .74rem; }
}
@media (max-width: 374px) {
  .logo-mark { width: 32px; height: 32px; }
  .logo-lockup .lk-2 { white-space: normal; max-width: 9.6em; line-height: 1.2; }
}
}
.cd-clinic-zh { display: block; font-size: .78em; font-weight: 500; color: #555; margin-top: .1em; }

/* 服務卡片：照片 + 居中換行網格（7 項：桌面 4+3） */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cards > .card { flex: 0 1 calc((100% - 66px) / 4); min-width: 0; }
.card.card-photo { padding-top: 0; border-top: 0; overflow: hidden; }
.card .card-img { display: block; width: calc(100% + 44px); max-width: none; margin: 0 -22px 16px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--green-100, #e8efe6); }
.card .card-cred { font-size: .8rem; color: var(--green-700, #2f5d4a); flex: 0 0 auto; margin: -.4em 0 1em; padding-left: .7em; border-left: 3px solid var(--earth-400, #c49a6c); }
.home-card .home-img { width: 210px; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 1000px) { .cards > .card { flex-basis: calc((100% - 22px) / 2); } }
@media (max-width: 640px) { .cards > .card { flex-basis: 100%; } .home-card .home-img { width: 100%; } }
.print-box .packet-link { display: block; text-align: center; margin-top: .35em; }

/* v-svc-grid: yitcm-style photo tiles + detail modal */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.svc-tile { position: relative; display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--green-900); aspect-ratio: 4 / 3; box-shadow: 0 6px 16px rgba(31,77,58,.12); font: inherit; }
.svc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.svc-tile:hover img, .svc-tile:focus-visible img { transform: scale(1.05); }
.svc-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.svc-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; text-align: center; line-height: 1.3; background: linear-gradient(transparent, rgba(23,61,46,.88)); }
.svc-ribbon { position: absolute; top: 10px; right: 10px; background: var(--gold); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
@media (max-width: 640px) { .svc-name { font-size: .95rem; padding: 24px 8px 9px; } }
.svc-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15,35,27,.6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.svc-modal[hidden] { display: none; }
.svc-dialog { position: relative; background: #fffdf8; border-radius: 16px; max-width: 860px; width: 100%; max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.svc-dlg-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.svc-dlg-body { padding: 28px 28px 26px; }
.svc-dlg-body h3 { margin: 0 0 10px; font-size: 1.45rem; }
.svc-dlg-body .ribbon { margin-left: 10px; }
.svc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 10px 0; margin-bottom: 12px; border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft); }
.svc-meta .price { font-size: 1.3rem; font-weight: 700; color: var(--green-900); }
.svc-meta .price small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.svc-dlg-body .tags { margin: 10px 0; }
.svc-dlg-body .btn { margin-top: 14px; }
.svc-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--green-900); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
@media (max-width: 700px) { .svc-modal { padding: 10px; } .svc-dialog { grid-template-columns: 1fr; } .svc-dlg-img { min-height: 0; height: 200px; } .svc-dlg-body { padding: 18px; } }
.svc-dlg-body .tags { justify-content: flex-start; text-align: left; }

.svc-dlg-body .svc-meta + .svc-meta { border-top: 0; margin-top: -12px; }
.svc-lab { min-width: 3.2em; color: var(--gold); font-weight: 600; }
.svc-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.svc-grid { grid-template-columns: repeat(3, 1fr); }
#home-visit-card { margin-top: 28px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc-grid > .svc-tile:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); } }

/* shared services page overlay */
.svc-modal { padding: 0; background: #f4efe4; display: block; }
.svc-dialog { display: block; max-width: none; max-height: none; height: 100%; border-radius: 0; background: #f4efe4; box-shadow: none; overflow-y: auto; }
.sp-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: rgba(255,253,248,.96); border-bottom: 1px solid var(--gold-soft); }
.sp-back { border: 0; background: none; font: inherit; color: var(--green-900); cursor: pointer; font-weight: 600; }
.sp-bar-title { flex: 1; font-family: var(--serif); color: var(--green-900); font-weight: 600; text-align: center; }
.sp-bar .svc-x { position: static; box-shadow: none; background: var(--green-50); }
.sp-inner { max-width: 1040px; margin: 0 auto; padding: 32px 20px 60px; }
.sp-item { display: grid; grid-template-columns: 42% 1fr; gap: 32px; align-items: center; background: #fffdf8; border-radius: 16px; padding: 22px; margin-top: 24px; box-shadow: 0 6px 18px rgba(31,77,58,.08); transition: box-shadow .4s; }
.sp-item:nth-of-type(even) img { order: 2; }
.sp-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; }
.sp-item h3 { margin: 0 0 10px; font-size: 1.5rem; }
.sp-item h3 .ribbon { margin-left: 10px; }
.sp-item.sp-hl { box-shadow: 0 0 0 3px var(--gold), 0 10px 26px rgba(31,77,58,.15); }
.sp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 8px 0; border-bottom: 1px solid var(--gold-soft); }
.sp-price .price { font-size: 1.25rem; font-weight: 700; color: var(--green-900); }
.sp-price .price small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.sp-lab { min-width: 3.2em; color: var(--gold); font-weight: 600; }
.sp-dur { color: var(--muted); font-size: .92rem; }
.sp-body p { margin: 12px 0 0; line-height: 1.7; }
.sp-body .svc-btns { margin-top: 16px; }
.sp-foot { text-align: center; margin-top: 36px; }
@media (max-width: 700px) { .sp-item { grid-template-columns: 1fr; gap: 14px; padding: 14px; } .sp-item:nth-of-type(even) img { order: 0; } .sp-bar { padding: 10px 12px; gap: 8px; } .sp-bar-book { display: none; } .sp-item h3 { font-size: 1.3rem; } .sp-price .price { font-size: 1.1rem; } }

.svc-grid { grid-template-columns: repeat(8, 1fr); }
.svc-grid > .svc-tile { grid-column: span 2; }
.svc-grid > .svc-tile:nth-child(5) { grid-column: 2 / span 2; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc-grid > .svc-tile, .svc-grid > .svc-tile:nth-child(5) { grid-column: auto; } .svc-grid > .svc-tile:last-child:nth-child(odd) { grid-column: 1 / -1; } }

.svc-grid { grid-template-columns: repeat(3, 1fr); }
.svc-grid > .svc-tile, .svc-grid > .svc-tile:nth-child(5) { grid-column: auto; }

.sp-price { justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 12px; padding: 10px 0; }
.sp-pinfo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.sp-price .btn { flex: none; padding: 8px 18px; font-size: .9rem; white-space: nowrap; }
@media (max-width: 420px) { .sp-price .btn { padding: 7px 12px; font-size: .85rem; } }

/* v-about: 使命語引言 + 上門橫幅引言 */
.about-quote { margin: 0 0 24px; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold, #b8954a); font-family: Georgia, "Chiron Sung HK", "Songti TC", "PMingLiU", serif; font-size: 1.12rem; line-height: 1.75; color: var(--green-900); }
html[data-lang="en"] .about-quote { font-style: italic; }
.home-card .home-lead { font-family: Georgia, "Chiron Sung HK", "Songti TC", "PMingLiU", serif; color: var(--green-900); font-size: 1.02rem; line-height: 1.7; margin: 4px 0 10px; padding-left: 12px; border-left: 3px solid var(--gold, #b8954a); }

/* ===== v2.0 彈窗內電子簽名（兩份文件，每份單獨簽署；取消政策另有勾選 + 簽名） ===== */
@media screen { .consent-scroll .consent-doc .cd-sl, .consent-scroll .consent-doc .cd-wnote { display: none; } }
@media print { .esign { display: none !important; } }
.esign { margin: 1em 0 1.6em; padding: 14px 16px 10px; border: 1.5px solid #c9d8c6; border-radius: 10px; background: #f6faf4; font-size: .95rem; }
.esign h4 { margin: 0 0 8px; font-size: 1rem; color: var(--green-900, #1f2f25); }
.esign .form-row { margin-bottom: 10px; }
.esign label { font-weight: 600; font-size: .9rem; }
.esign .es-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; margin: 0 0 10px; cursor: pointer; }
.esign .es-check input { margin-top: .3em; accent-color: var(--green-700, #2f5d4a); flex: none; width: 18px; height: 18px; }
.esign .es-check.invalid-group { outline: 1.5px solid var(--danger, #b5473a); outline-offset: 4px; border-radius: 6px; }
.esign .sign-date { font-size: .85rem; margin: 2px 0 0; }
.esign .error:empty { display: none; }
.consent-foot .es-summary { margin: 0 auto 0 0; color: var(--danger, #b5473a); font-size: .86rem; }
/* v2.1 popup print view: doc 1 (incl. cancellation policy) on one page, doc 2 on the next */
@media print {
  body.print-consent .consent-doc.single { font-size: 10.4pt !important; line-height: 1.36 !important; }
  body.print-consent .consent-doc.single.cd-zh { line-height: 1.55 !important; }
  body.print-consent .consent-doc.cd-doc1b { margin-top: 0 !important; }
}
@media print {
  body.print-consent #consent-modal, body.print-consent .consent-box, body.print-consent .consent-scroll { width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; box-sizing: border-box !important; }
  body.print-consent .consent-lang, body.print-consent .consent-doc { max-width: 100% !important; min-width: 0 !important; }
}
.sp-incl { margin: .2rem 0 .6rem; color: var(--green, #1f4d3a); font-weight: 600; font-size: .95rem; }
.herbal-row { margin: .2rem 0 1rem; }
/* ===== v2.2 (2026-10-20): How it works · Preparing · family booking · ZIP ===== */
.how-steps { list-style: none; margin: 28px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1080px; }
.how-steps li { background: #fff; border: 1.5px solid var(--green-200); border-radius: 14px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 16px rgba(31,77,58,.06); }
.how-steps .how-no { width: 36px; height: 36px; border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.how-steps h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--green-900); }
.how-steps p { margin: 0; font-size: .95rem; line-height: 1.55; }
.how-more { margin-top: 18px; }
.prep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 26px auto 0; max-width: 1000px; }
.prep-card { background: #fff; border: 1.5px solid var(--green-200); border-radius: 14px; padding: 16px 20px; }
.prep-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--green-900); }
.prep-card ul { margin: 0; padding-left: 1.1em; }
.prep-card li { margin: 0 0 .45em; line-height: 1.5; }
.family-fields { border: 1.5px dashed var(--green-200); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 14px; background: var(--green-50, #f3f7f2); }
.family-note { margin: 4px 0 10px; padding-left: 1.1em; font-size: .9rem; line-height: 1.5; color: var(--green-900); }
.family-note li { margin-bottom: .3em; }
.zip-grid #zip { max-width: 160px; }
.soon-mail a, .error a, .tips a, .contact-card .hint a { color: inherit; text-decoration: underline; }
.contact-single { max-width: 640px; margin: 0 auto; }
@media (max-width: 900px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .how-steps, .prep-grid { grid-template-columns: 1fr; } .prep-card { padding: 14px 16px; } }
/* nav v2.2: six items incl. longer English labels — keep each on one line */
@media (min-width: 861px) {
  .site-header .main-nav a { white-space: nowrap; }
  .site-header .main-nav .btn-small { padding: .5em 1.2em; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  .site-header .main-nav, html[data-lang="en"] .site-header .main-nav { gap: .8em; }
  .site-header .main-nav a, html[data-lang="en"] .site-header .main-nav a { font-size: .84rem; }
}
@media (min-width: 861px) and (max-width: 1040px) {
  .site-header .logo-lockup .lk-2 { display: none; }
  .site-header .main-nav, html[data-lang="en"] .site-header .main-nav { gap: .6em; }
  .site-header .main-nav a, html[data-lang="en"] .site-header .main-nav a { font-size: .8rem; }
  .site-header .lang-switch { margin-left: 10px; }
}
@media (min-width: 861px) and (max-width: 1040px) { html[data-lang="en"] .site-header .logo-lockup { display: none; } }
@media (min-width: 1041px) and (max-width: 1180px) { html[data-lang="en"] .site-header .logo-lockup .lk-1 { font-size: 1.05rem; } .site-header .logo { margin-right: 14px; } }
/* ===== v2.3 (2026-10-20): lead-in labels + scannable notes ===== */
.form-row > label, .ix-label, fieldset.form-row > legend { font-weight: 700 !important; color: var(--green-900); }
.lead, b.lead { font-weight: 700; color: var(--green-900); }
.contact-list li > span:first-child, .dr-quick p > span, .confirm-summary dt, #confirm-summary dt { font-weight: 700; color: var(--green-900); }
.tips { color: var(--text, #2b2b2b); }
.tips > li { margin-bottom: .75em; line-height: 1.55; }
.tips .tip-sub { margin: .3em 0 0; padding-left: 1.1em; list-style: circle; }
.tips .tip-sub li { margin-bottom: .3em; }
#service-hint { margin-top: 8px; font-size: .86rem; line-height: 1.5; color: var(--text, #2b2b2b); }
#service-hint p { margin: 0 0 4px; }
#service-hint .sh-facts { margin: 2px 0 6px; padding-left: 1.1em; }
#service-hint .sh-facts li { margin-bottom: 2px; }
#service-hint .sh-more { color: var(--muted); font-size: .82rem; }
#service-hint .sh-more a { color: var(--green-700); text-decoration: underline; }
.home-notice p { margin: 0 0 4px; font-size: .88rem; line-height: 1.5; }
.home-notice p:last-child { margin-bottom: 0; }
.sp-notes { max-width: 760px; margin: 0 auto 22px; text-align: left; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.sp-notes p { margin: 0 0 6px; }
.hours-notes { margin: 10px 0 0; padding-left: 1.1em; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.hours-notes li { margin-bottom: 4px; }
.hours-notes a { color: inherit; text-decoration: underline; }
.confirm-hint .ch-line { display: block; margin-bottom: 6px; line-height: 1.5; }
.family-note .lead { color: var(--green-900); }
/* service detail groups (v2.3) */
.sp-body .sp-gl { margin: 14px 0 4px !important; font-weight: 700; color: var(--green-900); font-size: .95rem; letter-spacing: .01em; line-height: 1.4 !important; }
.sp-body .sp-gl-price { margin-top: 6px !important; }
.sp-body .sp-grp ul { margin: 0; padding-left: 1.15em; }
.sp-body .sp-grp li { margin: 0 0 3px; line-height: 1.55; }
.sp-body .sp-grp .tags { margin-top: 4px; justify-content: flex-start; }
.sp-body .sp-grp-notes li { color: var(--muted); font-size: .92rem; }
.sp-body .sp-grp-notes a { color: var(--green-700); text-decoration: underline; }
.sp-price .price { font-size: 1.45rem; }
@media (max-width: 700px) { .sp-body .sp-gl { font-size: .92rem; } .sp-price .price { font-size: 1.3rem; } }
.sp-price .price.price-text { font-size: 1rem; line-height: 1.45; font-weight: 700; }
.sp-price .sp-pinfo:has(.price-text) { flex: 1 1 220px; }
.lead, b.lead { font-size: inherit !important; }
#confirm-modal a[hidden], #confirm-modal [hidden] { display: none !important; }
.confirm-hint { text-align: left; }

.lead span, b.lead span { font-weight: inherit !important; color: inherit !important; font-size: inherit !important; }

/* booking prompt (call / text) — used until JANE_BOOKING_URL is set */
.book-prompt { z-index: 2000; }
.book-prompt[hidden] { display: none !important; }
.book-prompt .bp-box { position: relative; max-width: 420px; text-align: center; }
.book-prompt .bp-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--green-900); cursor: pointer; padding: 4px 8px; }
.book-prompt h3 { margin: .3em 0 .4em; }
.book-prompt .bp-actions { display: flex; flex-wrap: wrap; gap: .6em; justify-content: center; margin-top: 1em; }
.book-prompt .bp-actions .btn { min-width: 10em; justify-content: center; }
.book-prompt .bp-mail { margin: 1em 0 0; font-size: .9rem; }

/* v-fix 2026-10-21: 九宮格在手機/平板也保持 3×3（取消“最後一個單數項獨佔一行”的舊規則） */
.svc-grid > .svc-tile:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; }
/* v-fix 2026-10-21: 預約選擇框（致電 / 發短信 / 取消） */
.book-prompt .bp-cancel { display: block; margin: .9em auto 0; border: 0; background: none; font: inherit; font-size: .95rem; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px 12px; }
.book-prompt .bp-cancel:hover { color: var(--green-900); }
@media (max-width: 520px) { .book-prompt .bp-box { padding-left: 18px; padding-right: 18px; } .book-prompt .bp-actions { flex-direction: column; align-items: stretch; } .book-prompt .bp-actions .btn { min-width: 0; width: 100%; padding-top: .8em; padding-bottom: .8em; } }

/* v-fix 2026-10-21: Jane 上線前的“電話/短信預約”塊（替代在線表單） */
#booking-form[hidden], [data-offline-only][hidden] { display: none !important; }
.book-offline { background: #fff; padding: 30px 32px; border-radius: var(--radius, 16px); box-shadow: var(--shadow); text-align: center; }
.book-offline h3 { margin: 0 0 .3em; font-family: var(--serif); color: var(--green-900); font-size: 1.5rem; }
.book-offline .bo-phone { margin: 0 0 .4em; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; }
.book-offline .bo-phone a { color: var(--green-900); text-decoration: none; }
.book-offline .bo-sub { margin: 0 auto 1.1em; max-width: 34em; color: var(--muted); }
.book-offline .bo-actions .btn { min-width: 14em; justify-content: center; }
.book-offline .bo-forms { margin-top: 1.6em; padding-top: 1.3em; border-top: 1px solid var(--gold-soft, #e6d8bf); text-align: left; display: flex; flex-direction: column; gap: .55em; }
.book-offline .bo-note { margin: 0 0 .3em; line-height: 1.65; }
.book-offline .bo-dl { display: block; padding: .7em .95em; border: 1.5px solid var(--gold-soft, #e6d8bf); border-radius: 10px; color: var(--green-900); font-weight: 600; text-decoration: none; background: #fffdf8; }
.book-offline .bo-dl:hover, .book-offline .bo-dl:focus-visible { border-color: var(--gold, #b8954a); background: #fbf5ea; }
@media (max-width: 640px) { .book-offline { padding: 22px 16px; } .book-offline h3 { font-size: 1.3rem; } .book-offline .bo-phone { font-size: 1.45rem; } .book-offline .bo-actions .btn { width: 100%; min-width: 0; } }

/* v-fix 2026-10-21: 電話/短信預約塊頂部的郵編查詢 */
.bo-zip { margin: .4em auto 1.2em; padding: 16px 16px 12px; background: #f7f3ea; border: 1px solid var(--gold-soft, #e6d8bf); border-radius: 12px; text-align: left; max-width: 34em; }
.bo-zip label { display: block; font-weight: 600; color: var(--green-900); margin-bottom: 8px; }
.bo-zip-row { display: flex; gap: 10px; }
.bo-zip-row input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; letter-spacing: .08em; padding: 10px 14px; border: 1.5px solid #cdbf9f; border-radius: 10px; background: #fff; }
.bo-zip-row input:focus { outline: 2px solid var(--gold, #b8954a); outline-offset: 1px; border-color: var(--gold, #b8954a); }
.bo-zip-row .btn { flex: none; padding-left: 1.4em; padding-right: 1.4em; }
.bo-zip-err { margin: 6px 0 0; min-height: 0; color: #b3261e; font-size: .9rem; }
.bo-zip-err:empty { display: none; }
.bo-zip-res { margin-top: 12px; padding: 12px 14px; border-radius: 10px; }
.bo-zip-res[hidden] { display: none !important; }
.bo-zip-res.is-in { background: #e8f3ec; border: 1px solid #a9cdb6; }
.bo-zip-res.is-out { background: #fff6e8; border: 1px solid #e7c98f; }
.bo-zip-msg { margin: 0 0 10px; font-weight: 600; color: var(--green-900); line-height: 1.6; }
.bo-zip-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bo-zip-btns .btn { flex: 1 1 6em; justify-content: center; padding-top: .6em; padding-bottom: .6em; }

/* 預約須知標題：html scroll-padding 已對準吸頂頁眉，這裡只再留一小段空隙 */
#booking-title { scroll-margin-top: 8px; }

/* 避免段落最後一行只剩一兩個字（Chrome/Edge/Safari 支持；其他瀏覽器照常換行） */
p, li, figcaption, label, td, dd, blockquote, .badge-sub, h1, h2, h3, h4 { text-wrap: pretty; }
.contact-card .zip-jump { margin-top: 10px; }
.contact-card .zip-jump a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bo-zip-cities { margin-top: 10px; font-size: .88rem; color: var(--muted, #6b6b6b); }
.bo-zip-cities summary { cursor: pointer; color: var(--green-700); font-weight: 600; width: fit-content; }
.bo-zip-cities p { margin: 6px 0 0; line-height: 1.7; color: var(--text, #2b2b2b); }
.bo-zip-res.is-out .bo-zip-msg { font-weight: 500; }
.nw { white-space: nowrap; }
[data-online-only][hidden], [data-offline-only][hidden] { display: none !important; }
.nwb { display: inline-block; }
@media (max-width: 560px) { .hero-actions .btn { white-space: nowrap; padding-left: 1.1em; padding-right: 1.1em; } }
/* 英文首屏：兩個按鈕 + “Service area & hours →” 在桌面同一行（與中文一致） */
@media (min-width: 561px) {
  html[data-lang="en"] .hero-actions { column-gap: 1em; }
  html[data-lang="en"] .btn-hero { padding-left: 1.55em; padding-right: 1.55em; }
}
/* 付款前提醒（pay-gate, 2026-11-03）：在線預約上線後，打開預約/付款頁前確認付款及取消政策 */
.pay-gate .pg-box { max-width: 520px; text-align: left; }
.pay-gate h3 { text-align: center; }
.pay-gate .modal-sub { text-align: center; }
.pay-gate .pg-list { margin: .8em 0 .6em; padding-left: 1.2em; font-size: .95rem; line-height: 1.55; }
.pay-gate .pg-list li { margin: .3em 0; }
.pay-gate .pg-agree { display: flex; gap: .5em; align-items: flex-start; font-weight: 600; margin-top: .6em; cursor: pointer; }
.pay-gate .pg-agree input { margin-top: .3em; flex: none; width: 1.1em; height: 1.1em; }
.pay-gate .error { min-height: 1.2em; margin: .3em 0 0; }
.pay-gate #pg-go[disabled] { opacity: .5; cursor: not-allowed; }

.consent-bar h3 small { font-weight: 400; font-size: .78rem; color: var(--muted); margin-left: .5em; }
/* SITE-EXTRA-CSS:END */

/* BRAND-CSS:START（由 acupuncture-tools 同步，請勿手改） */
/* ===== v14 品牌樣式：參照 金麗 的首頁效果圖（2026-10-10）=====
   深綠 #1f4d3a · 金 #b8893a · 奶油 #faf6ec；標題 Chiron Sung HK 昭源宋體 + EB Garamond，正文 Noto Sans TC（2026-10-21 改為繁體） */
:root {
  --green-900: #1f4d3a;
  --green-800: #173d2e;
  --green-700: #1f4d3a;
  --green-500: #5f8a6f;
  --green-200: #d3e0d2;
  --green-100: #e6eee3;
  --green-50:  #f1f3ea;
  --earth-700: #9a6f2b;
  --earth-400: #b8893a;
  --earth-100: #f4ead7;
  --gold:      #b8893a;
  --gold-soft: #e9d6ae;
  --cream:     #faf6ec;
  --text:      #2b3a32;
  --muted:     #66736b;
  --shadow:    0 10px 30px rgba(31, 77, 58, .10);
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", system-ui, sans-serif;
  --serif: "EB Garamond", "Chiron Sung HK", "Songti TC", "PMingLiU", "Noto Serif CJK TC", serif;
  --serif-zh: "Chiron Sung HK", "Songti TC", "PMingLiU", "Noto Serif CJK TC", serif;
  --latin: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
}
body { background: var(--cream); color: var(--text); }
h1, h2, h3 { color: var(--green-900); font-family: var(--serif); }
h3 { font-weight: 600; }
a { color: var(--green-700); }
::selection { background: var(--gold-soft); }

/* ---------- 按鈕 ---------- */
.btn { font-weight: 600; letter-spacing: .04em; }
.btn-primary { background: var(--green-900); color: #fff; box-shadow: 0 8px 18px rgba(31,77,58,.22); }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { border-color: var(--green-900); color: var(--green-900); background: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; }
.btn-small { background: var(--green-900); }

/* ---------- 頁眉 ---------- */
.site-header { background: rgba(250, 246, 236, .94); border-bottom: 1px solid rgba(184,137,58,.28); }
.nav-wrap { height: 84px; }
.logo { gap: .75em; }
.logo-mark { width: 56px; height: 56px; filter: drop-shadow(0 2px 4px rgba(31,77,58,.15)); }
.logo-lockup, html[data-lang="en"] .logo-lockup { font-family: var(--latin); }
.logo-lockup .lk-1, html[data-lang="en"] .logo-lockup .lk-1 { font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; color: var(--green-900); }
.logo-lockup .lk-2 { font-size: .86rem; font-weight: 500; letter-spacing: .02em; color: var(--gold); margin-top: .12em; }
.main-nav { gap: 1.7em; }
.main-nav a { color: var(--text); font-size: .95rem; font-weight: 500; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.main-nav a:not(.btn):hover { color: var(--green-900); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.main-nav .btn-small { background: var(--green-900); color: #fff !important; border: 2px solid var(--gold); padding: .55em 1.5em; font-size: .98rem; box-shadow: 0 6px 14px rgba(31,77,58,.22); }
.main-nav .btn-small:hover { background: var(--green-800); }
.lang-switch { border: 1.5px solid var(--gold-soft); background: #fff; padding: 3px; }
.lang-switch button { color: var(--muted); font-size: .84rem; padding: .32em .95em; }
.lang-switch button[aria-pressed="true"] { background: var(--green-900); color: #fff; }
html[data-lang="en"] .main-nav { gap: 1.25em; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(255,255,255,.75), transparent 55%),
    radial-gradient(circle at 92% 8%, rgba(233,214,174,.30), transparent 40%),
    linear-gradient(170deg, #fbf8f0 0%, var(--cream) 55%, #f6efe0 100%);
  padding: 40px 0 92px;
  overflow: hidden;
}
.hero-inner { grid-template-columns: 1.08fr .92fr; gap: 32px; position: relative; z-index: 1; }
.hero-badge {
  background: rgba(255,255,255,.85); border: 1.5px solid var(--gold-soft); color: var(--green-900);
  padding: .42em 1.1em .42em .45em; gap: .55em; font-size: .95rem; box-shadow: 0 6px 16px rgba(184,137,58,.12);
  margin-bottom: 1.5em; flex-wrap: nowrap;
}
.hero-badge:hover { background: #fff; border-color: var(--gold); }
.badge-dot { width: 32px; height: 32px; background: var(--earth-100); flex: none; }
.badge-main { font-weight: 700; color: var(--earth-700); white-space: nowrap; }
.badge-sub { color: var(--text); font-size: .9rem; font-weight: 400; }
.badge-arrow { color: var(--green-900); font-weight: 600; }
.eyebrow { font-family: var(--serif-zh); color: var(--gold); letter-spacing: .2em; font-size: 1.05rem; font-weight: 500; margin: 0 0 .7em; }
.hero h1 {
  font-family: var(--serif-zh); font-weight: 700; color: var(--green-900);
  font-size: clamp(2.6rem, 6.2vw, 4.7rem); line-height: 1.22; letter-spacing: .04em; margin: 0 0 .45em;
}
html[data-lang="en"] .hero h1 { font-family: var(--latin); font-weight: 600; letter-spacing: 0; line-height: 1.08; font-size: clamp(2.5rem, 5.6vw, 4.3rem); }
html[data-lang="en"] .eyebrow { font-family: var(--latin); letter-spacing: .16em; font-size: .9rem; font-weight: 600; }
.hero-rule { display: block; width: 64px; height: 2px; background: var(--gold); margin: 0 0 1.2em; }
.hero-llc { font-family: var(--latin); font-size: 1.32rem; color: var(--green-900); margin: 0 0 .45em; letter-spacing: .005em; }
.lead { color: #4b5a51; font-size: 1.08rem; line-height: 1.85; max-width: 31em; margin: 0; }
html[data-lang="en"] .lead { font-family: var(--font); line-height: 1.7; }
.hero-actions { margin: 2em 0 0; gap: 1.2em; align-items: center; }
.btn-hero { padding: .85em 2.1em; font-size: 1.08rem; }
.btn-hero .chev { display: inline-block; margin-left: .7em; font-size: 1.25em; line-height: 0; transform: translateY(.04em); }
.btn-link { font-family: var(--serif-zh); font-size: 1.08rem; font-weight: 600; color: var(--earth-700); border-bottom: 1.5px solid var(--gold); padding: .25em .1em; }
html[data-lang="en"] .btn-link { font-family: var(--latin); font-size: 1.12rem; }
.btn-link:hover { color: var(--green-900); border-color: var(--green-900); }

.hero-art { height: 450px; }
.circle { position: absolute; border-radius: 50%; }
.c1 { width: 420px; height: 420px; top: 0; right: -30px; opacity: 1;
      background: radial-gradient(circle at 40% 35%, #e9efe4 0%, #d6e2d3 65%, #cddbca 100%); }
.c2 { width: 230px; height: 230px; left: 0; bottom: 30px; top: auto; opacity: .7;
      background: radial-gradient(circle at 40% 30%, #eedfc2, #dcc398); }
.c3 { width: 560px; height: 560px; top: -80px; right: -110px; background: none; border: 1.5px solid rgba(184,137,58,.35); }
.hero-logo { top: 58px; right: 52px; width: 300px; height: 300px; filter: drop-shadow(0 22px 34px rgba(31,77,58,.22)); }
.hero-card {
  bottom: 18px; right: 0; padding: 18px 26px 18px 18px; border-radius: 18px; flex-direction: row; align-items: center; gap: 14px;
  background: rgba(255,255,255,.96); box-shadow: 0 16px 40px rgba(31,77,58,.14);
}
.hc-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--earth-100); display: grid; place-items: center; flex: none; }
.hc-text { display: flex; flex-direction: column; }
.hero-card strong { font-family: var(--serif-zh); font-size: 1.12rem; color: var(--green-900); letter-spacing: .04em; }
html[data-lang="en"] .hero-card strong { font-family: var(--latin); font-size: 1.15rem; letter-spacing: 0; }
.hero-card .hc-text > span { color: var(--muted); font-size: .9rem; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; display: block; z-index: 0; }

/* ---------- 通用區塊 ---------- */
.section-alt { background: #f3efe3; }
.section-title { font-family: var(--serif); font-weight: 700; letter-spacing: .03em; }
html[data-lang="zh"] .section-title { font-family: var(--serif-zh); }
.section-title::after { background: var(--gold); height: 2px; width: 56px; }
.section-sub { color: var(--muted); }
.card { border-radius: 16px; }
.card h3, .doctor h3 { font-family: var(--serif); }
html[data-lang="zh"] .card h3 { font-family: var(--serif-zh); }
.card .card-cred { border-left-color: var(--gold); color: var(--green-900); }
.site-footer { background: var(--green-800); color: #dfe7dc; border-top: 3px solid var(--gold); }
.site-footer a { color: var(--gold-soft); }
input:focus, select:focus, textarea:focus { border-color: var(--green-900) !important; box-shadow: 0 0 0 3px rgba(184,137,58,.18) !important; }

/* ---------- 響應式 ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 1.1em; }
  .main-nav a { font-size: .9rem; }
  .logo-lockup .lk-1, html[data-lang="en"] .logo-lockup .lk-1 { font-size: 1.25rem; }
  .logo-lockup .lk-2 { font-size: .76rem; }
}
@media (max-width: 1000px) {
  .hero-logo { width: 250px; height: 250px; right: 30px; }
  .c1 { width: 340px; height: 340px; }
}
@media (max-width: 860px) {
  :root { --header-h: 71px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .nav-wrap { height: 70px; }
  .logo-mark { width: 46px; height: 46px; }
  .main-nav { top: 70px; background: var(--cream); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a:not(.btn) { padding: .8em 5%; line-height: 1.5; display: flex; align-items: center; }
  .hero { padding: 36px 0 110px; }
  .hero-badge { flex-wrap: wrap; border-radius: 18px; }
  .hero-wave { height: 80px; }
}
@media (max-width: 600px) {
  .logo-mark { width: 40px; height: 40px; }
  .nav-wrap { gap: 8px; }
  .logo { gap: .45em; }
  .logo-lockup .lk-1, html[data-lang="en"] .logo-lockup .lk-1 { font-size: 1rem; }
  .logo-lockup .lk-2 { font-size: .56rem; letter-spacing: 0; }
  .lang-switch { margin-left: auto; }
  .lang-switch button { font-size: .72rem; padding: .25em .55em; }
  .nav-toggle { padding: 6px 2px; }
  .hero-badge { padding: .5em .9em .5em .5em; }
  .badge-sub { padding-left: 2.9em !important; font-size: .78rem !important; }
  .hero h1 { font-size: 2.6rem; }
  html[data-lang="en"] .hero h1 { font-size: 2.35rem; }
  .hero-llc { font-size: .94rem; letter-spacing: -.005em; }
  .lead { font-size: 1rem; }
  .eyebrow { font-size: .95rem; }
  .hero-badge { font-size: .88rem; }
  .badge-sub { font-size: .82rem; }
  .hero-actions { gap: .8em; }
  .btn-hero { padding: .8em 1.4em; font-size: 1rem; }
  .hero-actions .btn-link { flex-basis: 100%; text-align: center; border-bottom: 0; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
}
@media (max-width: 374px) {
  .logo-mark { width: 34px; height: 34px; }
  .logo-lockup .lk-2 { display: none; }
}

/* 聯繫我們列表：修正標籤寬度誤作用於內層雙語 span 導致的窄列折行（舊問題） */
.contact-list li { position: relative; padding-left: 4.4em; }
html[data-lang="en"] .contact-list li { padding-left: 6.4em; }
.contact-list li > span:first-child { position: absolute; left: 0; width: auto; }
.contact-list li span span, .contact-list li > span:not(:first-child) { display: inline; width: auto; color: inherit; font-weight: inherit; }
.contact-list li > span:first-child span { color: var(--earth-700); font-weight: 600; }

/* 英文首屏徽章：桌面端保持一行 */
@media (min-width: 1100px) {
  html[data-lang="en"] .hero-badge { font-size: .88rem; padding-right: .9em; }
  html[data-lang="en"] .hero-badge .badge-sub { font-size: .82rem; white-space: nowrap; }
}

/* ---------- v15 針灸師簡介（參照 yitcm 的 “照片左 + 姓名/頭銜/簡介右” 版式） ---------- */
.dr-profile {
  display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start;
  background: #fff; border-radius: 22px; padding: 44px 48px; box-shadow: var(--shadow);
  border-top: 3px solid var(--gold); max-width: 1060px; margin: 8px auto 0;
}
.dr-side { position: relative; }
.dr-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--green-900); box-shadow: 0 14px 30px rgba(31,77,58,.18); }
.dr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-photo-ph {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 38%, #2a5e48 0%, #1f4d3a 55%, #173d2e 100%);
  position: relative;
}
.dr-photo-ph::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(233,214,174,.45); border-radius: 12px; }
.dr-photo-ph .dr-seal { width: 62%; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.dr-photo-ring { width: 66%; aspect-ratio: 1; border-radius: 50%; padding: 7px; background: #fbf7ec; box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px #fbf7ec, 0 12px 26px rgba(0,0,0,.3); }
.dr-photo-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; box-shadow: inset 0 0 0 1px rgba(184,137,58,.6); }
.dr-ph-name { font-family: var(--latin); color: var(--gold-soft); font-size: 1.08rem; letter-spacing: .06em; }
.dr-ph-name { text-align: center; padding: 0 22px; line-height: 1.4; }   /* 2026-11-19: longer credential "Dipl. AHM (NCBAHM)" wraps; keep it centred inside the gold frame */
.dr-quick { margin-top: 18px; background: var(--cream); border: 1px solid rgba(184,137,58,.25); border-radius: 14px; padding: 12px 16px; }
.dr-quick p { margin: 0; display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9rem; border-bottom: 1px dashed rgba(184,137,58,.3); }
.dr-quick p:last-child { border-bottom: 0; }
.dr-quick span { color: var(--earth-700); font-weight: 600; }
.dr-quick b { color: var(--green-900); font-weight: 600; text-align: right; }
.dr-eyebrow { font-family: var(--serif-zh); color: var(--gold); letter-spacing: .18em; font-size: .95rem; margin: 0 0 .4em; }
html[data-lang="en"] .dr-eyebrow { font-family: var(--latin); letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; font-weight: 600; }
.dr-name { font-family: var(--serif-zh); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin: 0 0 .2em; line-height: 1.25; }
.dr-name .dr-latin, html[data-lang="en"] .dr-name { font-family: var(--latin); font-weight: 600; }
.dr-name .dr-latin { font-size: .72em; margin-left: .35em; color: var(--green-900); }
.dr-title { color: var(--earth-700); font-family: var(--serif-zh); font-size: 1.08rem; margin: 0; font-weight: 600; letter-spacing: .04em; }
html[data-lang="en"] .dr-title { font-family: var(--latin); font-size: 1.18rem; letter-spacing: .01em; }
.dr-rule { display: block; width: 56px; height: 2px; background: var(--gold); margin: 18px 0 20px; }
.dr-bio p { margin: 0 0 1em; color: #3b4a42; line-height: 1.95; font-size: 1rem; text-align: justify; }
html[data-lang="en"] .dr-bio p { line-height: 1.75; text-align: left; }
.dr-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 1.6em 0 1.2em; padding: 20px 22px; background: #f8f3e6; border-radius: 14px; }
.dr-creds h4, .dr-focus h4, .dr-certs h4 { font-family: var(--serif-zh); color: var(--green-900); font-size: 1.02rem; margin: 0 0 .6em; padding-left: .7em; border-left: 3px solid var(--gold); line-height: 1.2; }
html[data-lang="en"] .dr-creds h4, html[data-lang="en"] .dr-focus h4, html[data-lang="en"] .dr-certs h4 { font-family: var(--latin); font-size: 1.1rem; }
.dr-creds ul { list-style: none; margin: 0; padding: 0; }
.dr-creds li { position: relative; padding-left: 1.1em; margin: 0 0 .45em; font-size: .92rem; line-height: 1.6; color: var(--text); }
.dr-creds li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.dr-focus { margin: 0 0 1.6em; }
.dr-focus .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-focus .tag { background: var(--earth-100); color: var(--green-900); border: 1px solid rgba(184,137,58,.3); }
.dr-cta { display: inline-flex; align-items: center; }
.dr-cta .chev { margin-left: .6em; font-size: 1.2em; line-height: 0; }
.dr-certs { max-width: 1060px; margin: 28px auto 0; }
.dr-cert-row { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; }
.dr-cert-row figure { margin: 0; flex: 0 0 260px; background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.dr-cert-row img { width: 100%; height: 180px; object-fit: contain; display: block; background: #faf8f2; }
.dr-cert-row figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; text-align: center; }
@media (max-width: 900px) {
  .dr-profile { grid-template-columns: 1fr; padding: 26px 20px; gap: 24px; }
  .dr-side { position: static; display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
  .dr-quick { margin-top: 0; }
}
@media (max-width: 560px) {
  .dr-side { grid-template-columns: 1fr; }
  .dr-photo { max-width: 260px; margin: 0 auto; width: 100%; }
  .dr-creds { grid-template-columns: 1fr; padding: 16px; }
  .dr-name .dr-latin { display: block; margin: .15em 0 0; font-size: .62em; }
  .dr-cta { width: 100%; justify-content: center; }
}
.dr-main { text-align: left; min-width: 0; }
.dr-focus .tags { justify-content: flex-start; }
@media (max-width: 560px) { .dr-bio p { text-align: left; } }
.site-footer .photo-credits { font-size: .72rem; opacity: .75; }

/* 證書畫廊 + 燈箱 */
.dr-cert-row { scroll-snap-type: x mandatory; }
.dr-cert-row figure { scroll-snap-align: start; }
.cert-open { all: unset; display: block; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.cert-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cert-open img { transition: transform .2s; }
.cert-open:hover img { transform: scale(1.03); }
.dr-cert-wrap { position: relative; }
.dr-cert-row { scroll-behavior: smooth; scrollbar-width: none; }
.dr-cert-row::-webkit-scrollbar { display: none; }
.cert-nav { position: absolute; top: 95px; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(255,255,255,.95); color: var(--green-900); font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.cert-nav.prev { left: -14px; } .cert-nav.next { right: -14px; }
.cert-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 600px) { .dr-cert-row figure { flex-basis: 72vw; } }
.cert-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(15,25,18,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.cert-lightbox img { max-width: 96vw; max-height: 82vh; object-fit: contain; background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.cert-lightbox p { color: #f3eee2; margin: 12px 0 0; font-size: .95rem; text-align: center; }
.cert-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

.dr-creds{grid-template-columns:1fr !important;}

.print-box p.hint { font-weight: 400; color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 4px 0 10px; }

/* v-fix 2026-10-21: 聯繫我們 — 標籤列按最長標籤自動定寬，標籤永不壓住內容（中英文、窄屏通用） */
.contact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1.1em; }
.contact-list li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding-left: 0 !important; align-items: baseline; }
@supports not (grid-template-columns: subgrid) { .contact-list li { grid-template-columns: max-content minmax(0, 1fr); column-gap: 1.1em; } }
html[data-lang="en"] .contact-list li { padding-left: 0; }
.contact-list li > span:first-child { position: static; white-space: nowrap; }
.contact-list li > :not(:first-child) { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 340px) { .contact-list li { grid-template-columns: 1fr; row-gap: .15em; } .contact-list li > * { grid-column: 1; } }

/* v-fix 2026-10-21: 上門針灸卡片 — 更疏朗的排版（要點列表、適合人群標籤、服務範圍獨立、價格欄分隔） */
.home-card { align-items: start; gap: 28px 34px; }
.home-card > .home-img { align-self: center; }
.home-card .home-body h3 { margin-bottom: .5em; }
.home-card .home-lead { margin: 0 0 18px; line-height: 1.75; }
.home-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.home-points li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.7; color: var(--text, #2b2b2b); font-size: .96rem; }
.home-points .hp-ic { flex: none; width: 30px; height: 30px; margin-top: 1px; border-radius: 50%; background: var(--earth-100); color: var(--earth-700); display: grid; place-items: center; font-size: .9rem; font-weight: 700; }
.home-good { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; }
.home-good-lab { font-size: .85rem; font-weight: 700; color: var(--earth-700); letter-spacing: .02em; }
.home-card .home-good .tags { margin: 0; gap: 8px; }
.home-card .home-good .tag { padding: 4px 12px; }
.home-card .area { margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(184,137,58,.08); line-height: 1.65; }
.home-meta { align-self: center; gap: .55em; padding-left: 30px; border-left: 1px solid rgba(184,137,58,.35); }
@media (max-width: 860px) {
  .home-card > .home-img { align-self: start; margin-top: 6px; }
  .home-meta { padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(184,137,58,.35); gap: .5em 1.4em; }
}
@media (max-width: 640px) {
  .home-card { grid-template-columns: 1fr; padding: 22px 18px; gap: 20px; }
  .home-meta { flex-direction: column; align-items: stretch; gap: .45em; }
  .home-meta .btn { width: 100%; margin: .6em 0 0; justify-content: center; }
  .home-points li { font-size: .95rem; }
}
/* v-fix 2026-10-21: “預約金醫師”下方的發短信按鈕（僅 Jane 上線前顯示） */
.dr-sms { display: flex; width: fit-content; min-width: 12em; justify-content: center; margin-top: 10px; }
.dr-sms[hidden] { display: none !important; }
@media (max-width: 560px) { .dr-sms { width: 100%; } }
@media (min-width: 561px) { .dr-cta { min-width: 13em; justify-content: center; } .dr-sms { min-width: 13em; } }
/* v-fix 2026-10-21: Jane 上線前/後兩套文字切換（data-online-only / data-offline-only） */
[data-online-only][hidden], [data-offline-only][hidden] { display: none !important; }

/* BRAND-CSS:END */

/* Square booking panel: primary CTA + phone/SMS backup */
.bo-actions-primary { margin: 0.75rem 0 1.25rem; }
.bo-backup { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(0,0,0,.08); }
.bo-backup h4 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.bo-zip-res .bo-actions { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }


/* v2: deposit note under home-visit prices */
.home-deposit {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: inherit;
  opacity: 0.92;
}
#area-hours .bo-zip {
  margin-top: 1rem;
}


/* v2: PDF download under New patients tip */
#booking-tips .tip-forms { margin-top: .65em; display: flex; flex-direction: column; gap: .45em; align-items: stretch; }
#booking-tips .tip-forms .bo-dl { margin-top: 0; }
/* v-fix 2026-11-15: 上門針灸卡片中寬度排版修復 — 價格欄限寬，正文欄獲得剩餘空間；≤1100px 時價格/預約移到正文下方 */
/* v-fix 2026-11-15c: 所有寬度下價格/預約都放在正文下方一整行，不再在右側窄欄右對齊 */
.home-card { grid-template-columns: auto minmax(0, 1fr); }
.home-card > .home-body { min-width: 0; }
.home-meta { min-width: 0; }
@media (min-width: 0px) {
  .home-card { grid-template-columns: auto minmax(0, 1fr); }
  .home-meta { grid-column: 1 / -1; text-align: left; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .5em 1.4em; padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(184,137,58,.35); }
  .home-meta .home-deposit { flex: 1 1 100%; margin: 0; }
  .home-meta .btn { margin-top: 0; margin-left: auto; }
}
@media (max-width: 640px) {
  .home-card { grid-template-columns: 1fr; }
  .home-meta { flex-direction: column; align-items: stretch; gap: .45em; }
  .home-meta .btn { width: 100%; margin: .6em 0 0; justify-content: center; }
}
/* v-fix 2026-11-15b: 「預約與須知」重新排版 — 左欄只放付款/取消政策；右欄依次為開始預約卡、初診卡、聯繫我們卡（原獨立的聯繫區塊移入此處，#contact 錨點保留）。手機/平板：預約卡、政策、初診、聯繫依次堆疊 */
.np-card { background: #fff; padding: 24px 28px; border-radius: var(--radius, 16px); box-shadow: var(--shadow); }
.np-card .np-tips { margin: 0; padding-left: 0; list-style: none; }
.np-card .np-tips > li { margin: 0; }
.np-card .np-tips > li > b.lead { display: block; font-family: var(--serif); font-size: 1.2rem !important; color: var(--green-900); margin-bottom: .35em; }
.np-card .tip-sub { padding-left: 1.2em; }
.np-card .tip-forms { margin-top: .9em; padding-top: 0; border-top: 0; }
.bk-contact { padding: 24px 28px; }
.bk-contact .section-title { font-size: 1.2rem; margin: 0 0 .5em; padding-bottom: 0; }
.bk-contact .section-title::after { display: none; }
.bk-contact .contact-list li { padding: .55em 0; }
@media (min-width: 1001px) {
  .booking-wrap:has(.book-offline:not([hidden])) .book-offline { padding: 26px 28px; }
  .booking-wrap:has(.book-offline:not([hidden])) .bo-backup .bo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .booking-wrap:has(.book-offline:not([hidden])) .bo-backup .bo-actions .btn { min-width: 0; flex: 1 1 7em; }
}
@media (max-width: 1000px) {
}
@media (max-width: 640px) { .np-card, .bk-contact { padding: 20px 16px; } }
@media (min-width: 1001px) {
  .booking-wrap:has(.book-offline:not([hidden])) .book-offline { padding: 22px 26px; }
  .booking-wrap:has(.book-offline:not([hidden])) .book-offline h3 { font-size: 1.35rem; }
  .booking-wrap:has(.book-offline:not([hidden])) .bo-actions-primary { margin: .6rem 0 .9rem; }
  .booking-wrap:has(.book-offline:not([hidden])) .bo-backup { margin-top: .9rem; padding-top: .9rem; }
  .booking-wrap:has(.book-offline:not([hidden])) .bo-backup .bo-note { font-size: .92rem; line-height: 1.55; }
  .booking-wrap:has(.book-offline:not([hidden])) .bo-phone { font-size: 1.45rem; margin: .1em 0 .35em; }
  .booking-wrap:has(.book-offline:not([hidden])) .bo-email { margin: .5em 0 0; }
  .booking-wrap:has(.book-offline:not([hidden])) .np-card,
  .booking-wrap:has(.book-offline:not([hidden])) .bk-contact { padding: 20px 26px; }
  .booking-wrap:has(.book-offline:not([hidden])) .bk-contact .contact-list li { padding: .45em 0; }
}
/* 左右欄高度平衡：按語言調整欄寬比例（中文政策文字較短） */
@media (min-width: 1001px) {
  html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  html[data-lang="zh"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
}
@media (min-width: 1200px) {
  html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
}
/* v-fix 2026-11-15c: 「服務範圍 / 上門服務時間」兩卡 — 時間卡底部加預約按鈕區（沿用網站現有文字/按鈕），與左卡底部的郵編查詢框對齊，避免半張空卡 */
#area-hours .contact-card:has(> .hours-cta) { display: flex; flex-direction: column; }
#area-hours .contact-card > .bo-zip { margin: .4em 0 0; max-width: none; }
.hours-cta { margin-top: auto; padding: 18px 18px 16px; background: #f7f3ea; border: 1px solid var(--gold-soft, #e6d8bf); border-radius: 12px; text-align: center; }
.hours-cta .bo-note { margin: 0 0 12px; color: var(--green-900); font-weight: 600; line-height: 1.55; }
.hours-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hours-cta-actions .btn { flex: 1 1 7em; justify-content: center; min-width: 0; }
.hours-cta-actions .btn-primary { flex-basis: 100%; }
#area-hours .hours-notes { margin-bottom: 22px; }
@media (min-width: 861px) {
  #area-hours .hours th, #area-hours .hours td { padding: 1em 0; }
  #area-hours .hours-notes { font-size: .95rem; margin-top: 14px; }
}
/* v-fix 2026-11-15d: 針灸師簡介 — 桌面/橫屏平板時「教育背景」移到照片下方、「專長領域」在右側並排，避免照片下方大片空白（僅 CSS 排版，內容不變） */
@media (min-width: 901px) {
  .dr-profile { grid-template-rows: auto auto auto auto 1fr auto auto auto; row-gap: 0; }
  .dr-profile > .dr-main { display: contents; }
  .dr-profile > .dr-side { grid-column: 1; grid-row: 1 / 6; align-self: start; }
  .dr-main > .dr-eyebrow { grid-column: 2; grid-row: 1; }
  .dr-main > .dr-name { grid-column: 2; grid-row: 2; }
  .dr-main > .dr-title { grid-column: 2; grid-row: 3; }
  .dr-main > .dr-rule { grid-column: 2; grid-row: 4; }
  .dr-main > .dr-bio { grid-column: 2; grid-row: 5; min-width: 0; }
  .dr-main > .dr-creds { grid-column: 1; grid-row: 6 / 9; align-self: start; grid-template-columns: 1fr !important; margin: 1.4em 0 0; }
  .dr-main > .dr-focus { grid-column: 2; grid-row: 6; min-width: 0; margin: 1.4em 0 1.4em; }
  .dr-main > .dr-cta { grid-column: 2; grid-row: 7; justify-self: start; }
  .dr-main > .dr-sms { grid-column: 2; grid-row: 8; justify-self: start; }
  .dr-main > * { text-align: left; }
}
/* 「關於我們」四個特點卡：橫屏平板/小桌面時改為單列，避免每卡只有兩三個字一行 */
@media (min-width: 861px) and (max-width: 1199px) {
  .about-grid .feature-list { grid-template-columns: 1fr; gap: 12px; }
  .about-grid .feature-list li { padding: 14px 18px; }
}
/* 「上門前準備」四卡：改為兩欄瀑布流，卡片按內容高度排列，不再被拉伸出空白 */
@media (min-width: 601px) {
  .prep-grid { display: block; columns: 2; column-gap: 18px; }
  .prep-grid > .prep-card { break-inside: avoid; margin: 0 0 18px; display: block; }
}
/* 預約卡內 致電/短信/郵件 按鈕：所有寬度都留間距，平板一行三個、手機每個一行 */
.book-offline .bo-backup .bo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.book-offline .bo-backup .bo-actions .btn { min-width: 0; flex: 1 1 7em; max-width: 14em; }
@media (max-width: 640px) { .book-offline .bo-backup .bo-actions .btn { flex-basis: 100%; max-width: none; } }
/* v-fix 2026-11-15e: 預約區兩欄 — 左欄（標題+政策，可含聯繫卡）與右欄 .bk-side（預約卡/初診/聯繫）各自獨立高度；手機/平板順序：標題→預約卡→政策→初診→聯繫 */
.bk-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.booking-info > .bk-contact { margin-top: 26px; }
@media (min-width: 1001px) {
  .booking-wrap:has(.book-offline:not([hidden])) { gap: 44px; align-items: start; }
  .booking-wrap:has(.book-offline:not([hidden])) > .booking-info { position: static; }
}
@media (max-width: 1000px) {
  .booking-wrap:has(.book-offline:not([hidden])) { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .booking-wrap:has(.book-offline:not([hidden])) > .booking-info,
  .booking-wrap:has(.book-offline:not([hidden])) > .bk-side { display: contents; }
  .booking-wrap #booking-title { order: 1; margin-bottom: 0; }
  /* 2026-11-15d: 手機/平板順序改為 預約政策 → 開始預約 → 新患者表格 → 聯繫 */
  .booking-wrap #booking-tips { order: 2; margin: 0; }
  .booking-wrap .book-offline { order: 3; }
  .booking-wrap .booking-form { order: 3; }
  .booking-wrap .np-card { order: 4; }
  .booking-wrap .bk-contact { order: 5; margin-top: 0; }
}
@media (min-width: 1101px) and (max-width: 1199px) {
  html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
/* 中文：聯繫卡放在左欄政策下方（英文仍在右欄），兩欄底部對齊 */
.booking-info > .bk-contact { margin-top: 26px; }
/* 「服務流程」四步：按文字量分配欄寬，四卡等高且無大片空白 */
@media (min-width: 901px) { .how-steps { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); } }
/* 兩欄寬度比例（實測使左右底部相差 < 60px） */
@media (min-width: 1001px) {
  html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  html[data-lang="zh"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); }
}
@media (min-width: 1096px) { html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
@media (min-width: 1200px) { html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); } }
/* 預約卡 致電/短信/郵件：寬於手機時固定一行三個 */
@media (min-width: 641px) {
  .booking-wrap .book-offline .bo-backup .bo-actions { flex-wrap: nowrap; }
  .booking-wrap:has(.book-offline) .book-offline .bo-backup .bo-actions .btn { flex: 1 1 0; min-width: 0; max-width: 14em; padding-left: .6em; padding-right: .6em; }
}

/* v-fix 2026-11-16a: 聯繫卡社群媒體行 · 留言表單 · 完整頁腳 */
/* ---- 社群媒體圖標（卡片與頁腳共用） ---- */
.soc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.soc { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto; line-height: 0; transition: background .2s, color .2s, border-color .2s; }
.soc svg { width: 18px; height: 18px; display: block; }
.soc-off { cursor: default; }
.soc-card .soc { border: 1.5px solid var(--green-200); color: var(--green-900); background: #fff; }
.soc-card .soc-off { color: var(--green-500); }
.soc-card a.soc:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.contact-list li.ct-social { align-items: center; }
.contact-list li.ct-social > .soc-row { min-width: 0; }
.ct-msg-link { margin: .8em 0 0; font-size: .95rem; }
.ct-msg-link a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---- 留言表單 ---- */
#message { padding: 72px 0; }
.msg-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.msg-intro .section-title { margin-top: 0; }
.msg-lead { color: var(--text); margin: .2em 0 .8em; line-height: 1.7; }
.msg-alt { color: var(--muted); font-size: .95rem; line-height: 1.7; margin: 0; }
.msg-alt a { color: var(--green-700); font-weight: 600; white-space: nowrap; }
.msg-form { background: #fff; padding: 28px 30px; border-radius: var(--radius, 16px); box-shadow: var(--shadow); min-width: 0; }
.msg-grid { gap: 0 18px; }
.msg-grid .msg-full { grid-column: 1 / -1; }
.msg-form label .opt { font-weight: 400; color: var(--muted); font-size: .85em; }
.msg-form textarea { resize: vertical; min-height: 8.5em; line-height: 1.6; }
.msg-form input[type="email"], .msg-form input[type="tel"], .msg-form input[type="text"] { min-width: 0; }
.msg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.msg-privacy { margin: 2px 0 16px; padding: 10px 14px; background: var(--earth-100, #f4ead7); border-left: 3px solid var(--gold); border-radius: 8px; color: var(--text); font-size: .9rem; line-height: 1.6; }
.msg-actions { display: flex; justify-content: flex-end; }
.msg-submit { min-width: 11em; }
.msg-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--green-50, #f1f3ea); color: var(--green-900); font-size: .92rem; line-height: 1.6; }
.msg-status.is-error { background: #fdf6f5; color: var(--danger); }
.msg-status a { color: inherit; text-decoration: underline; font-weight: 600; }
@media (max-width: 900px) {
  .msg-wrap { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  #message { padding: 56px 0; }
  .msg-form { padding: 20px 16px; }
  .msg-grid { grid-template-columns: 1fr; }
  .msg-actions { justify-content: stretch; }
  .msg-submit { width: 100%; }
}

/* ---- 完整頁腳 ---- */
.site-footer-full { padding: 48px 0 28px; }
.ft-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.ft-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.ft-logo { width: 64px; height: 64px; flex: 0 0 auto; }
.ft-lockup { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-family: var(--latin); line-height: 1.2; }
.ft-l1 { font-size: 1.4rem; font-weight: 600; color: #fff; letter-spacing: .01em; }
.ft-l2 { font-size: .86rem; color: var(--gold-soft); margin-top: .15em; }
.ft-tag { font-family: var(--font); font-size: .8rem; color: #b9c9bb; margin-top: .35em; letter-spacing: .04em; }
.ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em 1.8em; }
.site-footer .ft-nav a { color: #f1ece0; font-size: .95rem; text-decoration: none; padding: .2em 0; border-bottom: 1px solid transparent; }
.site-footer .ft-nav a:hover { color: var(--gold-soft); border-bottom-color: var(--gold); }
.soc-footer { justify-content: center; gap: 12px; }
.soc-footer .soc { border: 1.5px solid rgba(233,214,174,.55); color: var(--gold-soft); }
.soc-footer .soc-off { opacity: .8; }
.site-footer .soc-footer a.soc:hover { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.ft-legal { width: 100%; border-top: 1px solid rgba(233,214,174,.25); padding-top: 18px; display: grid; gap: .35em; }
.ft-legal p { margin: 0; }
.ft-legal .small { font-size: .8rem; color: #a9bcaa; }
.ft-legal .back-top { justify-self: center; margin-top: .4em; font-size: .85rem; }
@media (max-width: 560px) {
  .ft-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .55em 1em; width: 100%; max-width: 340px; }
  .ft-l1 { font-size: 1.2rem; }
  .ft-l2 { font-size: .78rem; }
  .ft-logo { width: 56px; height: 56px; }
}
.contact-list li .soc-row .soc { display: inline-flex !important; width: 36px !important; height: 36px; color: var(--green-900); font-weight: 400; }
.contact-list li .soc-row .soc-off { color: var(--green-500); }
.contact-list li .soc-row a.soc:hover { color: #fff; }

/* ===== Parallax photo bands (2026-11-16) =====
   Decorative full-width photo between sections. The photo layer is position:fixed
   inside a clip-path window, so it stays still while the page scrolls past —
   works on iOS Safari (unlike background-attachment:fixed). */
.photo-band { position: relative; height: clamp(260px, 45vh, 520px); overflow: hidden; clip-path: inset(0); -webkit-clip-path: inset(0); background: #2c4a3b; }
.photo-band .pb-media { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none; }
.photo-band picture, .photo-band img { display: block; width: 100%; height: 100%; }
.photo-band img { object-fit: cover; object-position: var(--pb-pos, 50% 50%); }
.photo-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 10px 14px -10px rgba(20,40,30,.35), inset 0 -10px 14px -10px rgba(20,40,30,.35); }
.pb-moxa { --pb-pos: 50% 70%; }
.pb-scale { --pb-pos: 50% 45%; }
.pb-herbs { --pb-pos: 50% 50%; }
@media (max-width: 1024px) { .photo-band { height: clamp(220px, 35vh, 400px); } }
@media (max-width: 600px) {
  .photo-band { height: clamp(170px, 28vh, 260px); }
}
/* Portrait screens (phones, upright tablets): a fixed full-screen layer would be
   zoomed in too far, so the photo sits inside the band and script.js moves it gently
   (transform only). Without JS it simply stays static. */
@media (orientation: portrait) {
  .photo-band .pb-media { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  html.pb-js .photo-band .pb-media { height: 170%; will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-band .pb-media { position: absolute; top: 0; left: 0; width: 100%; height: 100% !important; transform: none !important; }
}
@media print { .photo-band { display: none !important; } }

/* v-fix 2026-11-16d: 上門針灸卡片價格 — 每項一行：項目在左，價格緊跟其後（間距約 20px，不用點線、不拉到欄邊）；
   兩行價格因標籤長度相近而自然對齊。營業時間、訂金說明各佔一行；預約按鈕在最下方（電腦/平板靠右，手機整寬） */
.home-card .home-meta { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: .55em; text-align: left; }
.home-meta .hm-prices { margin: 0; padding: 0; display: grid; grid-template-columns: max-content max-content; justify-content: start; column-gap: 20px; row-gap: .4em; align-items: baseline; }
.home-meta .hm-row { display: contents; }
.home-meta .hm-row dt { margin: 0; font-weight: 600; color: var(--green-900); font-size: 1rem; }
.home-meta .hm-row dd { margin: 0; color: var(--earth-700); font-weight: 700; font-size: 1.2rem; }
.home-meta .hm-days { margin: .1em 0 0; color: var(--muted); font-size: .92rem; }
.home-meta .home-deposit { margin: 0; flex: none; }
.home-meta .btn { align-self: flex-end; margin: .3em 0 0; }
@media (max-width: 640px) {
  .home-meta .btn { align-self: stretch; width: 100%; margin: .5em 0 0; justify-content: center; }
}
@media (max-width: 340px) { .home-meta .hm-prices { grid-template-columns: minmax(0, auto) max-content; column-gap: 14px; } }

/* v-fix 2026-11-16e: 聯繫我們 + 留言 合併為一個區塊（左：標題、說明、聯繫資料；右：留言表單）。
   #contact 為區塊 id；#message、#contact-zh 為零高度別名錨點，舊連結仍落在本區塊頂部 */
.contact-sec { position: relative; padding: 72px 0; }
.contact-sec > .anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 0; }
/* #bo-zip is an alias at the top of Service Area & Hours, so old #bo-zip links land on the section heading */
#area-hours { position: relative; }
#area-hours > .anchor-alias { position: absolute; top: 0; left: 0; width: 1px; height: 0; }
.contact-sec .msg-lead { margin-bottom: 1.2em; }
.ct-merged { padding: 22px 26px; }
.ct-merged .ct-title { font-family: var(--serif); font-size: 1.2rem; color: var(--green-900); margin: 0 0 .4em; }
.ct-merged .contact-list li { padding: .5em 0; }
@media (max-width: 900px) { .contact-sec .msg-wrap { gap: 22px; } }
@media (max-width: 640px) { .contact-sec { padding: 56px 0; } .ct-merged { padding: 20px 16px; } }
/* 預約區：聯繫卡移走後，左欄＝標題+政策，右欄＝開始預約+新患者表格 */
.booking-info > #booking-tips { margin-bottom: 0; }

/* v-fix 2026-11-16e: 頁腳品牌與導航與頁首一致（同一 SVG 印章、同一 Jin Acupuncture / & Traditional Chinese Medicine 排法；深綠底改淺色字）；
   電腦/平板：左品牌、右導航（含與頁首相同樣式的預約按鈕）；手機：品牌在上，導航兩列，預約按鈕整寬 */
.site-footer .ft-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; text-align: left; }
.site-footer .ft-brand.logo { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; order: 0; }
.site-footer .ft-lockup { align-items: flex-start; }
.site-footer .logo-lockup .lk-1, html[data-lang="en"] .site-footer .logo-lockup .lk-1 { color: #fffdf6; }
.site-footer .logo-lockup .lk-2 { color: var(--gold-soft, #e9d6ae); }
.site-footer .ft-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4em 1.25em; }
.site-footer .ft-nav a:not(.btn) { position: relative; color: #f1ece0; font-size: .9rem; font-weight: 500; padding: .2em 0; border-bottom: 0; }
.site-footer .ft-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.site-footer .ft-nav a:not(.btn):hover { color: #fff; }
.site-footer .ft-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-footer .ft-nav a.btn { color: #fff; background: var(--green-900, #1f4d3a); border: 2px solid var(--gold); border-radius: 999px; padding: .5em 1.2em; font-size: .9rem; font-weight: 500; letter-spacing: .04em; line-height: inherit; }
.site-footer .ft-nav a.btn:hover { color: #fff; }
.ft-legal { gap: .3em; }
@media (max-width: 1100px) {
  .site-footer .ft-top { flex-direction: column; align-items: center; }
  .site-footer .ft-nav { justify-content: center; }
}
@media (max-width: 560px) {
  .site-footer .ft-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .7em 1em; width: 100%; max-width: 340px; margin: 0 auto; text-align: center; }
  .site-footer .ft-nav a:not(.btn) { justify-self: center; }
  .site-footer .ft-nav a.btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; margin-top: .2em; }
}

/* 2026-11-16e: 頁腳版權/免責/回到頂部三行已移除，頁腳在社群圖標後結束 */
.site-footer-full { padding: 44px 0 40px; }
/* 2026-11-16e: 聯繫卡移出預約區後，重新平衡兩欄寬度（實測左右底部相差 < 20px） */
@media (min-width: 1001px) {
  html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  html[data-lang="zh"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
}
@media (min-width: 1096px) { html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
@media (min-width: 1200px) {
  html[data-lang="en"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  html[data-lang="zh"] .booking-wrap:has(.book-offline:not([hidden])) { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
}

/* v-fix 2026-11-16f: 「上門前準備」四卡 — 兩欄時四張卡同寬同高（兩行等高），內容靠上；手機單欄時按內容高度 */
@media (min-width: 601px) {
  .prep-grid { display: grid; columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 18px; }
  .prep-grid > .prep-card { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; box-sizing: border-box; }
}

/* v-fix 2026-11-16f: 價格加第三行（面部美容針灸）。標籤欄寬＝最長標籤（窄屏時可換行），三個價格對齊在其後約 20px */
.home-meta .hm-prices { grid-template-columns: auto max-content; justify-content: start; column-gap: 20px; }
.home-meta .hm-row dt { min-width: 0; }
@media (max-width: 340px) { .home-meta .hm-prices { column-gap: 14px; } }

/* v-fix 2026-11-16g: 價格區兩欄 — 電腦/平板：左欄 初診、複診；右欄 面部美容、營業時間（像一行）；
   每欄 標籤＋約 20px＋價格，欄距約 56px，整體靠左不拉伸。手機（≤640px）：合成單欄 初診→複診→面部美容→營業時間，價格同欄對齊 */
.home-meta .hm-grid { display: flex; align-items: flex-start; justify-content: flex-start; gap: .4em 56px; }
.home-meta .hm-col { flex: 0 1 auto; min-width: 0; }
.home-meta .hm-col1 { flex: none; }
.home-meta .hm-col2 { display: grid; row-gap: .4em; }
.home-meta .hm-prices { grid-template-columns: auto max-content; justify-content: start; column-gap: 20px; row-gap: .4em; }
.home-meta .hm-col2 .hm-days { margin: 0; color: var(--green-900); font-weight: 500; font-size: .95rem; line-height: 1.55; }
@media (max-width: 640px) {
  .home-meta .hm-grid { display: grid; grid-template-columns: auto max-content; justify-content: start; column-gap: 20px; row-gap: .4em; align-items: baseline; }
  .home-meta .hm-grid .hm-col, .home-meta .hm-grid .hm-col2 .hm-prices { display: contents; }
  .home-meta .hm-col2 .hm-days { grid-column: 1 / -1; margin-top: .1em; width: 0; min-width: 100%; }  /* 不參與欄寬計算，避免把價格欄撐寬 */
}

/* v-fix 2026-11-16h: 照片與文字左右並排的卡片 — 照片靠上（與右側標題齊平），並在長文字滾動時吸頂（停在卡片內）；手機單欄不變 */
@media (min-width: 701px) {
  .sp-item { align-items: start; }
  .sp-item > img { align-self: start; position: -webkit-sticky; position: sticky; top: calc(var(--sp-bar-h, 66px) + 16px); }
}
/* 上門針灸卡：照片放在只佔左欄的容器內，吸頂時停在正文結束處，不會蓋到下方價格區 */
.home-card > .home-img-col { min-width: 0; }
@media (min-width: 641px) {
  .home-card > .home-img-col { align-self: stretch; }
  .home-card .home-img-col > .home-img { margin-top: 0; position: -webkit-sticky; position: sticky; top: 92px; }
}
@media (max-width: 640px) { .home-card .home-img-col > .home-img { width: 100%; } }

