/* ============================================
   格格｜格維顧問 個人網頁  style.css
   主色要換：改下面 --accent 一個地方就好
   ============================================ */

:root {
  --accent: #6E4C7E;        /* 主色：紫 */
  --accent-dark: #4F3560;
  --plum-deep: #3B2A45;     /* 深紫（邀請區底色） */
  --plum-soft: #EFE7F2;     /* 淡紫（金句帶） */
  --honey: #F6E7B8;         /* 兄弟黃（標籤） */
  --honey-ink: #3D3420;
  --bg: #FBF8F4;            /* 米白底 */
  --sand: #F4EFE8;
  --line: #ECE4DA;
  --ink: #2A2733;
  --ink-2: #4A4652;
  --muted: #5E5A66;
  --white: #FFFFFF;
  --serif: 'Noto Serif TC', serif;
  --sans: 'Noto Sans TC', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p { margin: 0; }
strong { font-weight: 500; }

.container { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- 共用元件 ---------- */
.eyebrow { font-size: 14px; letter-spacing: 3px; color: var(--accent); font-weight: 500; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section-head.center { text-align: center; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.45; }
.lead { color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px; border-radius: 999px;
  font-weight: 500; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { border: 1px solid #CFC3D6; color: var(--ink); font-weight: 400; }
.btn-outline-accent { border: 1px solid var(--accent); color: var(--accent); }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { color: var(--ink); background: #F1DC9A; }

.tag { display: inline-block; align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.tag-honey { background: var(--honey); color: var(--honey-ink); }
.tag-sand { background: var(--sand); color: var(--honey-ink); }
.tag-plum { background: var(--plum-soft); color: var(--plum-deep); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; }

/* ---------- 導覽列 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251,248,244,0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 2px; }
.brand-sub { font-size: 14px; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; font-weight: 400; }
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; color: var(--white); }

/* ---------- 主視覺 ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 72px; }
.hero-photo { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero-photo img { width: 100%; max-width: 400px; aspect-ratio: 4 / 5; border-radius: 200px 200px 24px 24px; object-fit: cover; object-position: 50% 40%; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.4; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-quote { margin-top: 10px; font-family: var(--serif); font-size: 18px; color: var(--muted); }

/* ---------- 專業數字 ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-bottom: 72px; }
.stat { padding: 28px 30px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.2; color: var(--accent); }
.stat-label { font-weight: 500; font-size: 17px; }
.stat-note { font-size: 15px; color: var(--muted); }

/* ---------- 關於格格 ---------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 88px; padding-bottom: 88px; }
.about-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.about-side img { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; border-radius: 24px; object-fit: cover; object-position: 40% 25%; margin-top: 12px; }
.about-body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips span { background: var(--sand); padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 400; }
.resume { margin: 12px 0 0; padding: 24px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; row-gap: 12px; font-size: 16px; }
.resume dt { font-weight: 500; color: var(--accent); }
.resume dd { margin: 0; }
.about-quote { margin-top: 4px; font-family: var(--serif); font-size: 19px; color: var(--plum-deep); }

/* ---------- 我能幫你什麼 ---------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.help-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.help-num { font-family: var(--serif); font-size: 28px; color: var(--accent); }
.help-card h3 { font-size: 21px; font-weight: 500; }
.help-card p { color: var(--ink-2); }

/* ---------- 金句帶 ---------- */
.quotes { background: var(--plum-soft); }
.quotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; text-align: center; padding-top: 72px; padding-bottom: 72px; }
.quotes-grid p { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.6; color: var(--plum-deep); }

/* ---------- 現場照片 ---------- */
.gallery { padding-top: 96px; }
.gallery .section-head { margin-bottom: 32px; }
.gallery-title { margin: 8px 0 16px; font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.gallery-title + .photo-grid + .gallery-title { margin-top: 40px; }
.gallery-title .tag { font-size: 13px; padding: 4px 12px; }
.photo-grid { display: grid; gap: 16px; }
.photo-grid.tall { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.photo-grid.wide { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.photo-grid img { width: 100%; border-radius: 20px; object-fit: cover; }
.photo-grid.tall img { aspect-ratio: 3 / 4; }
.photo-grid.wide img { aspect-ratio: 4 / 3; }

/* ---------- 我的故事 ---------- */
.story { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.story-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.story-side img { width: 100%; max-width: 360px; aspect-ratio: 3 / 4; border-radius: 24px; object-fit: cover; object-position: 50% 22%; }
.timeline { flex: 999 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; border-left: 2px solid #E2D6E8; }
.timeline li { padding: 0 0 32px 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline-label { font-size: 15px; font-weight: 500; color: var(--accent); }
.story-punch { flex: 1 1 100%; padding: 32px 36px; text-align: center; }
.story-punch p:first-child { font-size: 17px; color: var(--ink-2); }
.story-punch p:last-child { margin-top: 8px; font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--accent); }

/* ---------- 諮詢方式 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service { border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.service.featured { border: 2px solid var(--accent); background: #FDFBFE; }
.service img { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; object-fit: cover; }
.service .tag { font-size: 13px; padding: 4px 12px; }
.service h3 { font-size: 24px; font-weight: 500; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-num { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--accent); }
.price-note { font-size: 15px; color: var(--muted); }
.promo { background: #FFF7DC; border: 1px dashed #D9B44A; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.promo strong { font-weight: 700; font-size: 16px; color: var(--honey-ink); }
.promo span { font-size: 15px; color: var(--ink-2); }
.service p, .service ul { color: var(--ink-2); }
.service ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.service .btn { margin-top: auto; }

/* ---------- 常見問題 ---------- */
.faq { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 26px; }
.faq-list summary { font-weight: 500; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "＋"; color: var(--accent); }
.faq-list details[open] summary::after { content: "－"; }
.faq-list p { margin-top: 12px; color: var(--ink-2); }

/* ---------- 邀請區 ---------- */
.contact-wrap { padding: 0 24px 96px; }
.contact {
  max-width: 1120px; margin: 0 auto; background: var(--plum-deep); color: var(--white);
  border-radius: 32px; padding: 72px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px;
}
.contact-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--honey); }
.contact h2 { font-family: var(--serif); font-weight: 600; font-size: 36px; line-height: 1.45; }
.contact-lead { font-size: 18px; color: #E8DFEE; }
.contact-promo { font-size: 16px; color: var(--honey); }
.contact-quote { margin-top: 6px; font-family: var(--serif); font-size: 20px; color: var(--honey); }
.contact-action { flex: 1 1 240px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.line-card { background: var(--white); color: var(--ink); border-radius: 20px; padding: 24px 32px; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 220px; }
.line-card small { font-size: 14px; color: var(--muted); }
.line-id { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: 1px; }

/* ---------- 頁尾 ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }

/* ---------- 照片比例保護（避免平台樣式把照片拉長） ---------- */
.hero-photo img { height: auto !important; aspect-ratio: 4 / 5 !important; object-fit: cover !important; }
.about-side img { height: auto !important; aspect-ratio: 4 / 5 !important; object-fit: cover !important; }
.story-side img { height: auto !important; aspect-ratio: 3 / 4 !important; object-fit: cover !important; }
.photo-grid.tall img { height: auto !important; aspect-ratio: 3 / 4 !important; object-fit: cover !important; }
.photo-grid.wide img { height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; }
.service img { height: auto !important; aspect-ratio: 16 / 9 !important; object-fit: cover !important; }
.contact-avatar { width: 96px !important; height: 96px !important; object-fit: cover !important; }

/* ---------- 手機版 ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .nav-links a:not(.btn) { display: none; }   /* 手機只留「加 LINE」按鈕 */
  .brand-sub { display: none; }
  .hero { padding-top: 32px; gap: 28px; }
  .hero-photo img { max-width: 260px; }
  .hero h1 { font-size: 28px; }
  .hero h1 br, .hero-sub br { display: none; }
  .hero-sub { font-size: 17px; }
  .h2 { font-size: 27px; }
  .about { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .contact { padding: 48px 24px; border-radius: 24px; }
  .contact h2 { font-size: 28px; }
  .service { padding: 24px; }
  .resume { padding: 20px; column-gap: 14px; }
}
