/* ============================================================
   沃夫會計師事務所 客戶工具站
   Theme: Pastel_Watercolor_Coastal_v1
   規則：手繪水彩、粉彩色調、細線稿、柔和氛圍
   禁止：3D／CGI、強烈陰影、寫實照片、粗黑漫畫線、螢光高飽和
   ============================================================ */

:root{
  color-scheme: light;

  /* 色盤（風格鎖定，勿新增高飽和色） */
  --bg:        #E8F4F8;   /* 淺水藍底，呼應天空與海 */
  --bg-wash:   #F4FAFC;
  --ink:       #333333;   /* 深灰偏軟，不用死黑 */
  --ink-soft:  #5C6771;
  --ink-faint: #8B959D;
  --accent:    #F9E79F;   /* 粉彩暖黃（遮陽篷） */
  --accent-ink:#8A6D1F;
  --sky:       #A8D8E8;
  --mint:      #BFE3D6;
  --coral:     #F7C6C7;
  --lavender:  #D9CBE8;
  --sand:      #F3E7D3;

  --card:      rgba(255,255,255,.80);
  --card-solid:#FFFFFF;
  --line:      rgba(51,51,51,.10);
  --line-soft: rgba(51,51,51,.06);

  --radius:    24px;
  --radius-sm: 14px;
  /* 柔和暈開，不用硬陰影 */
  --shadow:    0 10px 28px rgba(122,164,184,.16);
  --shadow-sm: 0 4px 14px rgba(122,164,184,.12);

  --font: "Noto Sans TC", ui-rounded, "Segoe UI", system-ui, -apple-system,
          "PingFang TC", "Microsoft JhengHei", sans-serif;

  --wrap: 1080px;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--ink);
  background-color:var(--bg);
  /* 水彩暈染：多層極柔和的徑向漸層 */
  background-image:
    radial-gradient(900px 520px at 8% -6%,  rgba(255,255,255,.90), transparent 62%),
    radial-gradient(760px 480px at 96% 2%,  rgba(249,231,159,.42), transparent 60%),
    radial-gradient(880px 560px at 78% 42%, rgba(168,216,232,.36), transparent 62%),
    radial-gradient(760px 520px at 4% 72%,  rgba(191,227,214,.36), transparent 60%),
    radial-gradient(680px 460px at 60% 96%, rgba(247,198,199,.26), transparent 62%);
  background-attachment: fixed;
  line-height:1.85;
  font-size:16px;
  letter-spacing:.015em;
  overflow-x:hidden;
}

img,svg{ max-width:100%; }

a{ color:#2F6E85; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset:3px; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 16px; }

/* ---------- 頁首 ---------- */
.site-head{
  position:sticky; top:0; z-index:50;
  background:rgba(232,244,248,.82);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line-soft);
}
.site-head .wrap{
  display:flex; align-items:center; gap:12px;
  min-height:62px; flex-wrap:wrap; padding-top:8px; padding-bottom:8px;
}
.brand{ display:flex; align-items:center; gap:10px; color:var(--ink); }
.brand:hover{ text-decoration:none; }
.brand-mark{ width:34px; height:34px; flex:0 0 34px; }
.brand-txt strong{ display:block; font-size:15px; font-weight:800; letter-spacing:.04em; line-height:1.35; }
.brand-txt span{ display:block; font-size:11.5px; color:var(--ink-faint); letter-spacing:.08em; line-height:1.3; }

.nav{ display:flex; gap:4px; margin-left:auto; flex-wrap:wrap; align-items:center; }
.nav a{
  font-size:13.5px; color:var(--ink-soft); padding:7px 12px;
  border-radius:999px; white-space:nowrap;
}
.nav a:hover{ background:rgba(255,255,255,.75); text-decoration:none; color:var(--ink); }
.nav a[aria-current="page"]{ background:var(--card-solid); color:var(--ink); font-weight:700; box-shadow:var(--shadow-sm); }
.nav .btn-cta{
  background:var(--accent); color:var(--accent-ink); font-weight:800;
  border:1px solid rgba(232,200,106,.5);
}
.nav .btn-cta:hover{ background:#F6DE84; color:var(--accent-ink); }

/* ---------- 區塊 ---------- */
section{ padding:40px 0; }
.hero{ padding:36px 0 18px; position:relative; }

h1,h2,h3{ line-height:1.45; letter-spacing:.02em; }
h1{ font-size:30px; font-weight:900; margin:0 0 10px; }
h2{ font-size:22px; font-weight:800; margin:0 0 14px; }
h3{ font-size:17px; font-weight:800; margin:0 0 8px; }
p{ margin:0 0 14px; }

.lede{ font-size:16.5px; color:var(--ink-soft); max-width:60ch; }
.eyebrow{
  display:inline-block; font-size:12px; letter-spacing:.18em; font-weight:700;
  color:var(--accent-ink); background:var(--accent);
  padding:4px 14px; border-radius:999px; margin-bottom:14px;
}

/* 重點摘要（GEO：開頭三行答案） */
.summary{
  background:var(--card); border:1px solid var(--line);
  border-left:5px solid var(--sky);
  border-radius:var(--radius-sm); padding:16px 18px; margin:0 0 26px;
  box-shadow:var(--shadow-sm);
}
.summary h2{ font-size:14px; letter-spacing:.12em; color:var(--ink-faint); margin:0 0 8px; font-weight:800; }
.summary p{ margin:0 0 6px; font-size:15px; }
.summary p:last-child{ margin-bottom:0; }

/* 卡片 */
.card{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); padding:22px; box-shadow:var(--shadow);
}
.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }

/* 工具入口卡 */
.tool-card{
  display:block; color:var(--ink); position:relative; overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover{ text-decoration:none; transform:translateY(-2px); box-shadow:0 16px 36px rgba(122,164,184,.22); }
.tool-card .ico{ width:64px; height:64px; margin-bottom:10px; }
.tool-card h3{ margin-bottom:6px; }
.tool-card p{ font-size:14px; color:var(--ink-soft); margin-bottom:10px; }
.tool-card .go{ font-size:13.5px; font-weight:800; color:#2F6E85; }

/* 小結 */
.takeaway{
  background:rgba(249,231,159,.34);
  border:1px solid rgba(232,200,106,.38);
  border-radius:var(--radius-sm);
  padding:12px 16px; font-size:15px; font-weight:600; margin:18px 0 0;
}

/* 提醒／免責 */
.note{
  background:rgba(255,255,255,.66); border:1px dashed rgba(51,51,51,.18);
  border-radius:var(--radius-sm); padding:12px 16px;
  font-size:13.5px; color:var(--ink-soft); margin:16px 0 0;
}
.note strong{ color:var(--ink); }
.disclaimer-chip{
  display:block; margin-top:12px; font-size:12.5px; color:var(--ink-faint);
  line-height:1.7;
}

/* ---------- 表單 ---------- */
.form-grid{ display:grid; gap:14px; grid-template-columns:repeat(2,1fr); }
.field{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:13.5px; font-weight:700; color:var(--ink); }
.field .hint{ font-size:12px; color:var(--ink-faint); font-weight:400; line-height:1.6; }
.field input, .field select{
  font-family:var(--font); font-size:16px; color:var(--ink);
  background:var(--card-solid); border:1px solid var(--line);
  border-radius:12px; padding:11px 13px; width:100%;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus{
  outline:none; border-color:var(--sky);
  box-shadow:0 0 0 3px rgba(168,216,232,.42);
}
fieldset{ border:1px solid var(--line); border-radius:var(--radius-sm); padding:16px; margin:0 0 16px; }
legend{ font-size:13.5px; font-weight:800; padding:0 8px; color:var(--ink); }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font); font-size:15.5px; font-weight:800; letter-spacing:.04em;
  padding:13px 26px; border-radius:999px; border:1px solid transparent;
  cursor:pointer; transition:transform .15s ease, background .15s ease;
}
.btn:hover{ text-decoration:none; transform:translateY(-1px); }
.btn-primary{ background:var(--accent); color:var(--accent-ink); border-color:rgba(232,200,106,.55); }
.btn-primary:hover{ background:#F6DE84; }
.btn-ghost{ background:var(--card-solid); color:var(--ink); border-color:var(--line); }
.btn-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:4px; }

/* ---------- 結果 ---------- */
.result{
  background:var(--card-solid); border:1px solid var(--line);
  border-radius:var(--radius); padding:20px; box-shadow:var(--shadow);
  margin-top:18px;
}
.result-hero{
  background:linear-gradient(180deg, rgba(168,216,232,.28), rgba(191,227,214,.20));
  border-radius:var(--radius-sm); padding:18px; text-align:center; margin-bottom:16px;
}
.result-hero .k{ font-size:13px; color:var(--ink-soft); letter-spacing:.08em; font-weight:700; }
.result-hero .v{ font-size:34px; font-weight:900; letter-spacing:.01em; line-height:1.3; }
.result-hero .sub{ font-size:13px; color:var(--ink-soft); }
.kpi-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:16px; }
.kpi{
  background:rgba(255,255,255,.75); border:1px solid var(--line);
  border-radius:var(--radius-sm); padding:12px; text-align:center;
}
.kpi .k{ font-size:12px; color:var(--ink-soft); display:block; line-height:1.5; }
.kpi .v{ font-size:19px; font-weight:800; display:block; line-height:1.5; }
.pos{ color:#2F7A5E; } .neg{ color:#B9635F; }

/* ---------- 表格（手機可橫向捲動） ---------- */
.table-wrap{
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  border:1px solid var(--line); border-radius:var(--radius-sm);
  background:var(--card-solid);
}
.table-hint{ font-size:12px; color:var(--ink-faint); margin:6px 0 0; }
table{ border-collapse:collapse; width:100%; min-width:520px; font-size:14px; }
caption{ text-align:left; font-size:13px; color:var(--ink-faint); padding:10px 14px 0; }
th,td{ padding:10px 14px; text-align:right; border-bottom:1px solid var(--line-soft); white-space:nowrap; }
th:first-child, td:first-child{ text-align:left; }
thead th{
  background:rgba(168,216,232,.30); font-weight:800; color:var(--ink);
  position:sticky; top:0; font-size:13px;
}
tbody tr:nth-child(even){ background:rgba(232,244,248,.42); }
tbody tr:last-child td{ border-bottom:none; }
tr.is-hit{ background:rgba(249,231,159,.55) !important; font-weight:800; }
table.wrap-first td:first-child{ white-space:normal; }

/* ---------- FAQ ---------- */
.faq details{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-sm); padding:14px 18px; margin-bottom:10px;
}
.faq summary{ cursor:pointer; font-weight:800; font-size:15.5px; list-style:none; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::before{ content:"Q　"; color:var(--ink-faint); font-weight:800; }
.faq details[open] summary{ margin-bottom:8px; }
.faq .a{ font-size:14.5px; color:var(--ink-soft); }
.faq .a p:last-child{ margin-bottom:0; }

/* ---------- 預約 CTA ---------- */
.booking{
  background:linear-gradient(180deg, rgba(249,231,159,.42), rgba(255,255,255,.72));
  border:1px solid rgba(232,200,106,.40);
  border-radius:var(--radius); padding:26px; text-align:center;
  box-shadow:var(--shadow);
}
.booking h2{ margin-bottom:6px; }
.booking p{ color:var(--ink-soft); font-size:15px; max-width:52ch; margin-left:auto; margin-right:auto; }
.booking .btn-row{ justify-content:center; margin-top:16px; }
.contact-list{
  list-style:none; padding:0; margin:18px 0 0;
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center;
  font-size:14px;
}
.contact-list li{
  background:var(--card-solid); border:1px solid var(--line);
  border-radius:999px; padding:8px 16px;
}

/* 手機底部固定預約列 */
.sticky-cta{ display:none; }

/* ---------- 頁尾 ---------- */
.site-foot{
  margin-top:40px; padding:30px 0 96px;
  background:rgba(255,255,255,.58);
  border-top:1px solid var(--line);
  font-size:13.5px; color:var(--ink-soft);
}
.site-foot .fw{ display:grid; grid-template-columns:1.3fr 1fr; gap:24px; }
.site-foot strong{ color:var(--ink); }
.foot-legal{ line-height:1.9; }
.foot-legal .firm{ font-size:15px; font-weight:800; color:var(--ink); display:block; margin-bottom:4px; }
.foot-disclaimer{
  margin-top:18px; padding-top:16px; border-top:1px solid var(--line-soft);
  font-size:12.5px; color:var(--ink-faint); line-height:1.9;
}
.foot-links{ display:flex; flex-direction:column; gap:6px; }
.foot-links a{ color:var(--ink-soft); }
.built-by{ margin-top:10px; font-size:12px; color:var(--ink-faint); }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- 手機 ---------- */
@media (max-width: 860px){
  .grid-3{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .site-foot .fw{ grid-template-columns:1fr; }
}
@media (max-width: 640px){
  body{ font-size:15.5px; line-height:1.8; }
  section{ padding:30px 0; }
  .hero{ padding:26px 0 12px; }
  h1{ font-size:24px; }
  h2{ font-size:19.5px; }
  h3{ font-size:16px; }
  .lede{ font-size:15.5px; }

  .site-head .wrap{ min-height:56px; gap:8px; }
  .brand-mark{ width:30px; height:30px; flex-basis:30px; }
  .brand-txt strong{ font-size:14px; }
  .nav{
    width:100%; margin-left:0; order:3;
    overflow-x:auto; flex-wrap:nowrap;
    padding-bottom:4px; -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .nav::-webkit-scrollbar{ display:none; }
  .nav a{ font-size:13px; padding:7px 11px; }

  .card, .result, .booking{ padding:16px; border-radius:18px; }
  .form-grid{ grid-template-columns:1fr; }
  .kpi-row{ grid-template-columns:1fr; }
  .kpi{ display:flex; justify-content:space-between; align-items:baseline; text-align:left; }
  .result-hero .v{ font-size:27px; }
  .btn{ width:100%; }

  table{ font-size:13px; min-width:460px; }
  th,td{ padding:9px 11px; }

  /* 手機底部常駐預約按鈕 */
  .sticky-cta{
    display:block; position:fixed; left:0; right:0; bottom:0; z-index:60;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:rgba(232,244,248,.94);
    backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
    border-top:1px solid var(--line);
  }
  .sticky-cta .btn{ padding:12px 20px; font-size:15px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}

@media print{
  .site-head,.sticky-cta,.booking{ display:none; }
  body{ background:#fff; }
}
