/* 診所開業通 - clinic123.tw 靜態版 */
:root {
  --brand: #256493;
  --brand-dark: #1d5076;
  --text: #333;
  --muted: #666;
  --bg-lightblue: #dce7f5;
  --bg-pink: #f7ecf9;
  --pink-text: #b96bc6;
  --white: #fff;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; transition: background .3s, box-shadow .3s;
}
.site-header.solid, .site-header.always-solid {
  background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #333; font-size: 20px; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #333; font-size: 17px; padding: 4px 0; }
.main-nav a.active { text-decoration: underline; text-underline-offset: 6px; }
.main-nav a:hover { color: var(--brand); }
.btn {
  display: inline-block; background: var(--brand); color: #fff !important;
  border-radius: 999px; padding: 10px 26px; font-weight: 500;
  transition: background .2s;
}
.btn:hover { background: var(--brand-dark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; text-align: center; padding: 120px 20px 80px;
}
.hero-home { background-image: url("../images/79355_422661.jpeg"); }
.hero-overlay-light::before {
  content: ""; position: absolute; inset: 0; background: rgba(120,120,120,.25);
}
.hero-inner { position: relative; max-width: 900px; }
.hero h1 { color: #fff; font-size: 48px; font-weight: 700; margin-bottom: 24px; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.hero .sub { color: #fff; font-size: 24px; font-weight: 400; margin-bottom: 36px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.hero .btn { font-size: 18px; padding: 12px 34px; }
.hero-arrow {
  position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent;
  border-bottom: 26px solid #fff;
}

/* 深色 Hero(聯絡我們) */
.hero-dark {
  background-image: url("../images/659524_71424.jpeg");
  text-align: left; justify-content: flex-start;
}
.hero-dark::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.hero-dark .hero-inner { max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 20px; }
.hero-dark h1 { text-align: left; }
.hero-dark ul { list-style: disc; color: #fff; margin: 0 0 40px 22px; font-size: 17px; }
.hero-dark li { margin-bottom: 10px; }

/* ===== Sections ===== */
.section { padding: 80px 20px; }
.container { max-width: 1140px; margin: 0 auto; }
.section-title { color: var(--brand); font-size: 36px; font-weight: 700; text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--muted); font-size: 17px; margin-bottom: 50px; }
.bg-lightblue { background: var(--bg-lightblue); }

/* 4 欄卡片(首頁困擾/服務頁設立服務) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { text-align: center; }
.card img { width: 100%; height: 180px; object-fit: cover; margin-bottom: 18px; }
.card h3 { color: var(--brand); font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; text-align: left; }

/* 6 格圖片磁磚(首頁服務) */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; min-height: 170px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; color: #fff;
}
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.25); }
.tile h3 {
  position: relative; font-size: 24px; font-weight: 700; text-align: center; padding: 0 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

/* 成功開業故事 */
.story { text-align: center; }
.story img { width: 100%; height: 220px; object-fit: cover; margin-bottom: 20px; }
.story .loc { color: var(--brand); font-size: 16px; font-weight: 700; }
.story h3 { color: var(--brand); font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.story p { text-align: left; color: #444; font-size: 15px; margin-bottom: 14px; }

/* 推薦語卡片 */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card {
  background: var(--bg-pink); border-radius: 8px; padding: 30px 26px;
  color: #3d7fa8; font-size: 16px; line-height: 1.9;
}
.quote-card .who { display: block; margin-top: 16px; text-align: right; color: var(--pink-text); }
.quote-center { max-width: 380px; margin: 24px auto 0; }

/* 服務頁:圖片背景區塊 */
.bg-photo {
  position: relative; background-size: cover; background-position: center; color: #fff;
}
.bg-photo::before { content: ""; position: absolute; inset: 0; background: rgba(40,40,40,.55); backdrop-filter: blur(3px); }
.bg-photo .container { position: relative; }
.bg-photo .section-title { color: #fff; }
.bg-photo .section-sub { color: #eee; }
.panel { background: #fff; padding: 26px 20px; text-align: center; }
.panel h3 { color: var(--brand); font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.panel p { color: var(--muted); font-size: 15px; text-align: left; }

/* 服務頁:框線卡片 */
.outline-card { border: 1px solid #ccc; padding: 26px 24px; text-align: center; }
.outline-card h3 { color: var(--brand); font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.outline-card p { color: var(--muted); font-size: 15px; }

/* 服務頁:流程步驟 */
.steps { max-width: 640px; margin: 0 auto; }
.step { display: flex; gap: 26px; position: relative; padding-bottom: 44px; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 60px; bottom: 0; width: 1px; background: #bbb;
}
.step-num {
  flex: 0 0 54px; height: 54px; border: 1px solid #999; display: flex; align-items: center;
  justify-content: center; font-size: 26px; color: #444; background: #fff;
}
.step h3 { color: var(--brand); font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.step p { color: #444; font-size: 15px; }

/* FAQ */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item { border: 1px solid #ccc; border-radius: 4px; margin-bottom: 18px; background: #fff; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 24px; color: var(--brand);
  font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "›"; font-size: 26px; color: #888; transform: rotate(90deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(-90deg); }
.faq-item .answer { padding: 0 24px 22px; color: #444; font-size: 15px; }
.faq-item .answer p { margin-bottom: 10px; }

/* 聯絡我們:顧問卡片 */
.consultant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.consultant-grid img { width: 100%; }

/* 內文頁(Cookie) */
.article { max-width: 800px; margin: 0 auto; padding: 140px 20px 80px; }
.article h1 { color: var(--brand); font-size: 34px; margin-bottom: 30px; }
.article h2 { color: var(--brand); font-size: 24px; margin: 34px 0 14px; }
.article p, .article li { color: #444; font-size: 15px; margin-bottom: 12px; word-break: break-word; }
.article ul { margin-left: 22px; }

/* ===== Footer ===== */
.site-footer { background: var(--brand); color: #fff; text-align: center; padding: 60px 20px 40px; }
.footer-icon {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.25);
  align-items: center; justify-content: center; margin-bottom: 22px; color: #fff; font-size: 20px;
}
.footer-icon:hover { background: rgba(255,255,255,.4); }
.site-footer p { font-size: 13px; }
.site-footer a { color: #fff; }

/* 404 */
.page-404 { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 20px 60px; }
.page-404 h1 { color: var(--brand); font-size: 60px; margin-bottom: 10px; }
.page-404 p { color: var(--muted); margin-bottom: 30px; }

/* ===== RWD ===== */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tile-grid, .quote-grid, .grid-3, .consultant-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
  .hero .sub { font-size: 19px; }
  .section-title { font-size: 28px; }
}
@media (max-width: 620px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 10px 0; box-shadow: 0 6px 12px rgba(0,0,0,.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 24px; width: 100%; text-align: center; }
  .main-nav .btn { margin: 10px auto; width: auto; }
  .nav-toggle { display: block; }
  .site-header { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
  .grid-4, .grid-2, .tile-grid, .quote-grid, .grid-3, .consultant-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .hero-dark ul { font-size: 15px; }
  .section { padding: 60px 16px; }
}
