/* ==========================================================================
   香港牙科診所官網 · 獨立設計（2026-09-16 重寫）
   --------------------------------------------------------------------------
   這套**不是**從骨架渲染出來的，也不共用其他模板的設計語言。

   對照（vs 其他模板的預設風格）
     主色     深青 #0E5C6B（醫療專業）        vs  金色 #C9A961（零售奢華）
     圓角     6px（方正克制）                 vs  16px（圓潤親和）
     標題字重 600（醫療不需要喊）             vs  700
     首屏     左文右圖 + 價格速覽條           vs  全屏背景圖 + 標語
     核心區塊 完整價目表（按專科分組）        vs  服務卡片牆
     折疊     <details> 原生                  vs  Bootstrap accordion
     圖標     內聯 SVG                        vs  Bootstrap Icons 字體
     柵格     純 CSS Grid                     vs  Bootstrap row/col

   為什麼牙科要這樣設計：香港牙科站（如齊仁牙科）的信任來自**明碼價目**，
   不是漂亮圖片牆。所以價格要前置到首屏正下方，表格要能一眼掃完。
   ========================================================================== */

:root {
  --ink:       #0F1B1F;
  --ink-2:     #1C2E34;
  --teal:      #0E5C6B;
  --teal-deep: #0A4551;
  --teal-pale: #E8F1F3;
  --mint:      #4FA3A5;
  --paper:     #FFFFFF;
  --paper-2:   #F7FAFB;
  --line:      #DFE7EA;
  --muted:     #5C6E75;
  --radius:    6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang HK", "Noto Sans HK", "Microsoft JhengHei",
               -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex: 0 0 auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- 頂部資訊條：只放能即時行動的東西 ---------- */
.topstrip { background: var(--ink); color: rgba(255,255,255,.82); font-size: 13px; letter-spacing: .02em; }
.topstrip .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: space-between; min-height: 40px;
}
.topstrip a { color: rgba(255,255,255,.92); }
.topstrip a:hover { color: #fff; }
.topstrip .ts-left { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- 導覽：白底、底線、不用陰影 ---------- */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: var(--radius);
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
}
.nav-links { display: flex; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--teal); border-bottom-color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-deep); color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--teal); color: var(--teal); }

/* ---------- 首屏：左文右圖 ---------- */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px;
}
.hero h1 { font-size: 40px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-lead { font-size: 17px; color: var(--muted); margin-bottom: 26px; max-width: 46ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 30px; }
.hero-facts span { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); }
.hero-facts svg { color: var(--teal); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shot { position: relative; }
.hero-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.hero-shot .badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(15,27,31,.88); color: #fff;
  font-size: 13px; padding: 9px 14px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- 價格速覽條：牙科最該前置的東西 ---------- */
.pricebar { background: var(--teal); color: #fff; }
.pricebar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.pricebar .pb { padding: 26px 8px; text-align: center; border-right: 1px solid rgba(255,255,255,.16); }
.pricebar .pb:last-child { border-right: 0; }
.pb-item { font-size: 14px; color: rgba(255,255,255,.82); margin-bottom: 6px; }
.pb-price { font-size: 23px; font-weight: 600; letter-spacing: -.01em; }
.pb-price small { font-size: 13px; font-weight: 400; opacity: .85; margin-left: 3px; }

/* ---------- 區塊通用 ---------- */
.sec { padding: 78px 0; }
.sec-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 34px; }
.sec-head .kicker {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 10px;
}
.sec-head h2 { font-size: 29px; margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 16px; max-width: 62ch; }

/* ---------- 價目表：本套的核心區塊 ---------- */
.fee-group { margin-bottom: 40px; }
.fee-group:last-child { margin-bottom: 0; }
.fee-group > h3 {
  font-size: 17px; padding-bottom: 10px; margin-bottom: 2px;
  border-bottom: 2px solid var(--teal); display: inline-block;
}
table.fees { width: 100%; border-collapse: collapse; }
table.fees th, table.fees td {
  text-align: left; padding: 13px 14px;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
table.fees thead th {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
table.fees td.amt { text-align: right; font-weight: 600; color: var(--teal); white-space: nowrap; }
table.fees td.unit { color: var(--muted); font-size: 14px; white-space: nowrap; }
table.fees tbody tr:hover { background: var(--teal-pale); }

.fee-note {
  margin-top: 26px; padding: 16px 18px;
  background: var(--teal-pale); border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px; color: var(--ink-2);
}

/* ---------- 專科分科 ---------- */
.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.spec { background: var(--paper); padding: 24px 22px; }
.spec h3 { font-size: 16px; margin-bottom: 12px; color: var(--teal); }
.spec li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 14px; position: relative; line-height: 1.6; }
.spec li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--mint);
}

/* ---------- 設備與資歷 ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cred { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 24px 22px; background: var(--paper); }
.cred .ico {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--teal-pale); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 14px;
}
.cred h3 { font-size: 17px; margin-bottom: 8px; }
.cred p { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.cred .tag { display: inline-block; font-size: 13px; color: var(--teal); background: var(--teal-pale); padding: 3px 10px; border-radius: 4px; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 46px; }
.step .n {
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.step h3 { font-size: 16px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--muted); }
.step::after { content: ""; position: absolute; top: 16px; left: 40px; right: -24px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }

/* ---------- 診所資料 ---------- */
.clinics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.clinic { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 20px; background: var(--paper); }
.clinic h3 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.clinic h3 svg { color: var(--teal); }
.clinic dl { margin: 0; font-size: 14.5px; }
.clinic dt { color: var(--muted); font-size: 13px; margin-top: 9px; }
.clinic dd { margin: 2px 0 0; }
.clinic .soon { display: inline-block; font-size: 12px; color: var(--teal); background: var(--teal-pale); padding: 2px 8px; border-radius: 4px; margin-left: 6px; }

/* ---------- FAQ：原生 details ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 40px 20px 0; cursor: pointer; position: relative; font-size: 16px; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--teal); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 40px 22px 0; color: var(--muted); font-size: 15px; }

/* ---------- 預約表單 ---------- */
.booking { background: var(--ink); color: #fff; }
.booking .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.booking h2 { font-size: 28px; margin-bottom: 14px; }
.booking .lead { color: rgba(255,255,255,.75); font-size: 15.5px; margin-bottom: 26px; }
.booking .contact-line {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px;
}
.booking .contact-line svg { color: var(--mint); }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 30px 28px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,92,107,.12);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-card .btn-solid { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- 免責聲明：小字、緊湊 ---------- */
.legal { background: var(--paper-2); border-top: 1px solid var(--line); padding: 40px 0 44px; }
.legal h2 { font-size: 15px; color: var(--muted); margin-bottom: 10px; letter-spacing: .04em; }
.legal p { font-size: 13.5px; color: var(--muted); line-height: 1.8; max-width: 92ch; }

/* ---------- 頁腳 ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.62); font-size: 14px; padding: 44px 0 34px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.foot h4 { color: #fff; font-size: 14px; margin-bottom: 13px; letter-spacing: .04em; }
.foot li { padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot .brandline { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.foot .mark { width: 28px; height: 28px; border-radius: var(--radius); background: var(--teal); display: grid; place-items: center; font-size: 14px; }
.foot .bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px;
}


/* ---------- 診所環境影片 ---------- */
.tour { margin: 0; }
.tour video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg); background: #000; display: block;
}
.tour figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--muted);
}

/* ---------- 響應式 ---------- */
@media (max-width: 991px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; padding-bottom: 46px; }
  .hero h1 { font-size: 32px; }
  .pricebar .wrap { grid-template-columns: repeat(2, 1fr); }
  .pricebar .pb:nth-child(2) { border-right: 0; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .step::after { display: none; }
  .booking .wrap { grid-template-columns: 1fr; gap: 34px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .nav-links { display: none; }
  .sec { padding: 54px 0; }
  .sec-head h2 { font-size: 24px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 16px; }
  .pricebar .pb { padding: 20px 6px; }
  .pb-price { font-size: 20px; }
  .spec-grid, .cred-grid, .clinics, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  table.fees th, table.fees td { padding: 11px 10px; font-size: 14px; }
  table.fees td.unit { display: none; }
  .foot .cols { grid-template-columns: 1fr; gap: 22px; }
  .booking h2 { font-size: 23px; }
  .form-card { padding: 24px 20px; }
}
