/* ============================================
   仙杜瑞拉診所員林店 前台樣式
   風格基調：艾絲柏 — 奶油白 / 深棕 / serif / 拱形圖
   ============================================ */
:root {
  --cream: #f7f4ee;
  --cream-2: #efe9df;
  --cream-3: #e6ddcf;
  --brown: #4f4237;
  --brown-2: #6f5d4d;
  --gold: #b39268;
  --gold-2: #cbb392;
  --ink: #3b322a;
  --white: #fff;
  --serif-en: 'Cormorant Garamond', Georgia, serif;
  --serif-zh: 'Noto Serif TC', serif;
  --sans: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.85; letter-spacing: .04em; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,238,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-3);
}
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; line-height: 1.25; }
.brand-logo { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-en { font-family: var(--serif-en); font-size: 24px; letter-spacing: 3px; color: var(--gold); }
.brand-zh { font-size: 12px; letter-spacing: 2px; color: var(--brown); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; font-size: 14.5px; color: var(--brown);
  padding: 8px 13px; border-radius: 20px; transition: color .2s, background .2s; white-space: nowrap;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a.on { color: var(--gold); font-weight: 500; }
.main-nav a.nav-cta { background: var(--brown); color: #fff; margin-left: 8px; padding: 9px 20px; }
.main-nav a.nav-cta:hover { background: var(--gold); color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); margin: 5px 0; transition: .25s; }

/* ---------- 通用區塊標題 ---------- */
.sec-en { font-family: var(--serif-en); font-size: 15px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); }
.sec-title { font-family: var(--serif-zh); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; color: var(--brown); letter-spacing: .18em; margin: 6px 0 18px; }
.section { padding: 84px 24px; }
.section-inner { max-width: 1180px; margin: 0 auto; }
.center { text-align: center; }

/* ---------- Hero 輪播 ---------- */
.hero { position: relative; height: min(78vh, 720px); min-height: 420px; overflow: hidden; background: var(--cream-2); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--brown-2); gap: 10px; }
.hero-placeholder .en { font-family: var(--serif-en); font-size: clamp(42px, 7vw, 84px); letter-spacing: 8px; color: var(--gold-2); }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots button { width: 34px; height: 3px; border: none; background: rgba(255,255,255,.5); cursor: pointer; transition: background .3s; }
.hero-dots button.on { background: #fff; }

/* ---------- About 區塊 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-text p { margin-bottom: 1.1em; color: var(--brown-2); }
.about-visual { position: relative; }
.arch-frame { border-radius: 300px 300px 18px 18px; overflow: hidden; aspect-ratio: 3 / 3.8; background: var(--cream-3); position: relative; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.arch-frame img.on { opacity: 1; }
.arch-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gold-2); font-family: var(--serif-en); font-size: 26px; letter-spacing: 3px; }

/* ---------- 醫療團隊 ---------- */
.team-strip { background: var(--white); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px; margin-top: 40px; }
.doctor-card { text-align: center; text-decoration: none; }
.doctor-photo { border-radius: 200px 200px 14px 14px; overflow: hidden; aspect-ratio: 3/4; background: var(--cream-2); margin-bottom: 16px; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.doctor-card:hover .doctor-photo img { transform: scale(1.04); }
.doctor-photo .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gold-2); font-family: var(--serif-en); font-size: 20px; }
.doctor-name { font-family: var(--serif-zh); font-size: 20px; color: var(--brown); letter-spacing: .12em; }
.doctor-title { font-size: 13.5px; color: var(--gold); margin-top: 2px; }
.doctor-spec { font-size: 13px; color: var(--brown-2); margin-top: 8px; line-height: 1.7; }

/* ---------- 店面介紹 ---------- */
.store-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; }
.store-info-list { list-style: none; margin: 22px 0; }
.store-info-list li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--cream-3); font-size: 15px; }
.store-info-list .c-label { color: var(--gold); flex-shrink: 0; letter-spacing: .2em; }
.store-info-list a { color: var(--brown); text-decoration: none; }
.store-info-list a:hover { color: var(--gold); }
.map-embed { border-radius: 16px; overflow: hidden; margin-top: 20px; aspect-ratio: 16/8; background: var(--cream-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.store-visual .arch-frame { border-radius: 18px; aspect-ratio: 4/3.4; }

/* ---------- 療程卡片 ---------- */
.treat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 36px; }
.treat-card { background: var(--white); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 2px 14px rgba(79,66,55,.06); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.treat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(79,66,55,.12); }
.treat-cover { aspect-ratio: 16/10; background: var(--cream-2); overflow: hidden; }
.treat-cover img { width: 100%; height: 100%; object-fit: cover; }
.treat-cover .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gold-2); font-family: var(--serif-en); font-size: 18px; letter-spacing: 2px; }
.treat-body { padding: 20px 22px 24px; flex: 1; }
.treat-name { font-family: var(--serif-zh); font-size: 19px; color: var(--brown); letter-spacing: .1em; }
.treat-sub { font-size: 12.5px; color: var(--gold); font-family: var(--serif-en); letter-spacing: 1.5px; margin-top: 2px; }
.treat-desc { font-size: 13.5px; color: var(--brown-2); margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.group-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.group-tabs a, .group-tabs button { font-family: var(--sans); font-size: 14px; padding: 8px 20px; border-radius: 24px; border: 1px solid var(--cream-3); background: var(--white); color: var(--brown-2); cursor: pointer; text-decoration: none; transition: .2s; }
.group-tabs a.on, .group-tabs button.on, .group-tabs a:hover, .group-tabs button:hover { background: var(--brown); border-color: var(--brown); color: #fff; }
.group-block { margin-top: 46px; }
.group-heading { font-family: var(--serif-zh); font-size: 22px; color: var(--brown); letter-spacing: .14em; padding-left: 14px; border-left: 3px solid var(--gold); }

/* ---------- 療程單頁 ---------- */
.treat-hero { height: 320px; background: var(--cream-2); overflow: hidden; position: relative; }
.treat-hero img { width: 100%; height: 100%; object-fit: cover; }
.treat-hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(59,50,42,0) 30%, rgba(59,50,42,.55)); display: flex; align-items: flex-end; }
.treat-hero .overlay .wrap { max-width: 1180px; margin: 0 auto; width: 100%; padding: 0 24px 34px; color: #fff; }
.treat-hero .overlay .en { font-family: var(--serif-en); letter-spacing: 3px; font-size: 15px; opacity: .85; }
.treat-hero .overlay h1 { font-family: var(--serif-zh); font-size: clamp(26px, 4vw, 40px); letter-spacing: .16em; font-weight: 600; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: -40px auto 0; max-width: 900px; position: relative; z-index: 5; padding: 0 24px; }
.info-card { background: var(--white); border-radius: 14px; padding: 20px 14px; text-align: center; box-shadow: 0 6px 22px rgba(79,66,55,.1); }
.info-card .ic-label { font-size: 12.5px; color: var(--gold); letter-spacing: .18em; }
.info-card .ic-value { font-size: 15px; color: var(--brown); margin-top: 6px; font-weight: 500; }
.treat-article { max-width: 860px; margin: 0 auto; padding: 60px 24px 80px; }
.treat-article h2 { font-family: var(--serif-zh); font-size: 24px; color: var(--brown); letter-spacing: .14em; margin: 44px 0 16px; padding-left: 13px; border-left: 3px solid var(--gold); }
.treat-article p { color: var(--brown-2); margin-bottom: 1em; white-space: pre-line; }
.treat-article ul { margin: 0 0 1em 1.4em; color: var(--brown-2); }
.notice-box { background: var(--cream-2); border-radius: 14px; padding: 22px 26px; font-size: 14px; color: var(--brown-2); margin-top: 18px; white-space: pre-line; }

/* ---------- 文章列表（新知/分享/消息） ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin-top: 40px; }
.article-card { background: var(--white); border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 2px 14px rgba(79,66,55,.06); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(79,66,55,.12); }
.article-cover { aspect-ratio: 16/9; background: var(--cream-2); overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gold-2); font-family: var(--serif-en); font-size: 17px; letter-spacing: 2px; }
.article-body { padding: 20px 22px 24px; flex: 1; }
.article-date { font-size: 12.5px; color: var(--gold); font-family: var(--serif-en); letter-spacing: 1px; }
.article-title { font-size: 17px; color: var(--brown); font-weight: 500; margin-top: 6px; line-height: 1.6; }
.article-summary { font-size: 13.5px; color: var(--brown-2); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-chip { display: inline-block; font-size: 12px; color: var(--gold); border: 1px solid var(--gold-2); border-radius: 14px; padding: 1px 10px; margin: 8px 6px 0 0; }

/* ---------- 文章內頁 ---------- */
.article-detail { max-width: 820px; margin: 0 auto; padding: 60px 24px 80px; }
.article-detail h1 { font-family: var(--serif-zh); font-size: clamp(24px, 3.4vw, 34px); color: var(--brown); letter-spacing: .1em; line-height: 1.5; margin: 8px 0 26px; }
.article-detail .content { color: var(--brown-2); white-space: pre-line; }
.article-detail .cover { border-radius: 16px; overflow: hidden; margin-bottom: 30px; }
.video-embed { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; margin: 26px 0; background: #000; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.ext-link-btn { display: inline-block; background: var(--brown); color: #fff; text-decoration: none; border-radius: 24px; padding: 10px 26px; font-size: 14px; margin-top: 14px; }
.ext-link-btn:hover { background: var(--gold); }
.back-link { display: inline-block; margin-top: 40px; color: var(--gold); text-decoration: none; font-size: 14px; letter-spacing: .1em; }

/* ---------- 頁面 banner（列表頁頂部） ---------- */
.page-banner { background: linear-gradient(160deg, var(--cream-2), var(--cream)); padding: 66px 24px 48px; text-align: center; }
.page-banner .sec-en { font-size: 16px; }

/* ---------- 門診時間 & 設備 ---------- */
.schedule-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 14px; overflow: hidden; margin-top: 20px; }
.schedule-table th, .schedule-table td { padding: 13px 10px; text-align: center; border-bottom: 1px solid var(--cream-2); font-size: 14.5px; }
.schedule-table th { background: var(--brown); color: #fff; letter-spacing: .1em; font-weight: 500; }
.schedule-table td:first-child { color: var(--gold); letter-spacing: .06em; }
.schedule-img { border-radius: 14px; overflow: hidden; margin-top: 20px; }
.schedule-note { font-size: 13.5px; color: var(--brown-2); margin-top: 14px; }
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 36px; }
.equip-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 14px rgba(79,66,55,.06); }
.equip-cover { aspect-ratio: 16/10; background: var(--cream-2); overflow: hidden; }
.equip-cover img { width: 100%; height: 100%; object-fit: cover; }
.equip-cover .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--gold-2); font-family: var(--serif-en); font-size: 17px; }
.equip-body { padding: 20px 22px 26px; }
.equip-name { font-family: var(--serif-zh); font-size: 19px; color: var(--brown); letter-spacing: .08em; }
.equip-desc { font-size: 14px; color: var(--brown-2); margin-top: 10px; }

/* ---------- 聯絡我們區塊 ---------- */
.contact-section { background: var(--brown); color: #efe7db; padding: 84px 24px; }
.contact-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.contact-section .sec-en { color: var(--gold-2); }
.contact-section .sec-title { color: #f4ede2; }
.contact-lead { font-size: 15px; opacity: .9; margin-bottom: 26px; }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 15px; }
.contact-list .c-label { color: var(--gold-2); letter-spacing: .25em; flex-shrink: 0; }
.contact-list a { color: #efe7db; text-decoration: none; }
.contact-list a:hover { color: var(--gold-2); }
.contact-social { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.social-btn { border: 1px solid rgba(255,255,255,.4); border-radius: 24px; padding: 9px 22px; font-size: 14px; color: #efe7db; text-decoration: none; transition: .2s; }
.social-btn:hover { background: rgba(255,255,255,.12); }
.social-btn.line { background: var(--gold); border-color: var(--gold); color: #fff; }
.social-btn.line:hover { background: var(--gold-2); }

.booking-form { background: var(--white); border-radius: 18px; padding: 34px 32px 30px; color: var(--ink); }
.bf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.bf-grid .bf-full { grid-column: 1 / -1; }
.booking-form label { display: block; font-size: 13px; color: var(--brown); margin-bottom: 4px; font-weight: 500; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--cream-3); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fffdf9; color: var(--ink);
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: 2px solid var(--gold-2); border-color: var(--gold-2); }
.bf-submit { width: 100%; margin-top: 20px; background: var(--brown); color: #fff; border: none; border-radius: 26px; padding: 13px; font-size: 15px; letter-spacing: .2em; cursor: pointer; transition: background .2s; font-family: inherit; }
.bf-submit:hover { background: var(--gold); }
.bf-submit:disabled { opacity: .6; cursor: wait; }
.bf-msg { text-align: center; font-size: 14px; margin-top: 12px; min-height: 20px; }
.bf-msg.ok { color: #5d7a5a; }
.bf-msg.err { color: #b0563c; }

/* ---------- Footer ---------- */
.site-footer { background: #3f352c; color: rgba(240,232,220,.75); padding: 40px 24px 30px; text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; line-height: 1.3; margin-bottom: 14px; }
.footer-logo { height: 96px; width: auto; background: #f7f4ee; border-radius: 12px; padding: 10px 16px; }
.footer-info { font-size: 13.5px; }
.footer-note { font-size: 12px; opacity: .7; margin-top: 10px; }
.footer-copy { font-size: 12px; opacity: .55; margin-top: 14px; font-family: var(--serif-en); letter-spacing: 1px; }

/* ---------- RWD ---------- */
@media (max-width: 1024px) {
  .about-grid, .store-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 768px) {
  .header-inner { height: 62px; }
  .brand-logo { height: 42px; }
  .brand-text .brand-en { font-size: 18px; }
  .brand-text .brand-zh { font-size: 10.5px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 12px 20px 22px; border-bottom: 1px solid var(--cream-3); gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; }
  .main-nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .section { padding: 56px 20px; }
  .hero { height: 56vh; min-height: 340px; }
  .bf-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: repeat(2, 1fr); }
  .treat-hero { height: 240px; }
}
