/* 少撐一點｜版型取自 Style D 留白；配色 2026-10-17 作者定案：柔白紙紋＋湖水藍 */
:root {
  --paper: #fbf9f5;        /* 柔白：作者 10/17 選定（偏白與米白的中間值） */
  --card: #fffffc;         /* 卡片：暖白，不用純白 */
  --glow: rgba(255, 255, 254, .78);   /* 紙面亮處 */
  --shade: rgba(203, 194, 176, .18);  /* 紙面暗處 */
  --grain: .39;            /* 紙紋濃度 */
  --ink: #26221c;
  --ink-deep: #1e1a14;
  /* 重點色：accent＝色塊與大字，accent-text＝小字（米底對比 ≥4.5），
     accent-soft＝深色區塊上的字，on-accent＝色塊上的字 */
  --accent: #2b7fb0;       /* 湖水藍 */
  --accent-text: #1f6a96;
  --accent-soft: #7cc4ea;
  --on-accent: #fff;
  --muted: rgba(38, 34, 28, .72);   /* 內文灰：底色上對比約 6:1 */
  --faint: rgba(38, 34, 28, .62);   /* 註記灰：對比約 4.4:1，只用在註記與版權 */
  --line-green: #06c755;
  --gutter: clamp(24px, 6vw, 90px);
  --ease: cubic-bezier(.22, .6, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* 紙紋：細顆粒＋細纖維，疊在整頁上（multiply，不擋點擊）；紙面明暗用柔和漸層，避免拼接痕 */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 55% at 12% 8%, var(--glow), transparent 70%),
    radial-gradient(ellipse 60% 50% at 92% 88%, var(--shade), transparent 70%);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 25; pointer-events: none;
  mix-blend-mode: multiply; opacity: var(--grain, .5);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .24 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .42 0 0 0 0 .28 0 0 0 .9 -.52'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
img { max-width: 100%; display: block; }

/* ---------- 導覽 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 20px var(--gutter);
  background: color-mix(in srgb, var(--paper) 97%, transparent); backdrop-filter: blur(8px);
}
.nav .brand { font-weight: 900; font-size: 16px; letter-spacing: .1em; color: var(--ink); white-space: nowrap; }
.nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 13px; letter-spacing: .14em; font-weight: 500; }
.nav .links a { color: var(--ink); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav .links a:hover, .nav .links a[aria-current] { border-color: var(--accent); }
.nav .menu { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 2px; padding: 6px 10px; font: inherit; font-size: 12px; letter-spacing: .14em; color: var(--ink); }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; letter-spacing: .12em; font-weight: 700;
  padding: 13px 28px; border-radius: 999px; border: 1.5px solid var(--ink);
  color: var(--ink); background: transparent; cursor: pointer;
  transition: background .35s, color .35s, border-color .35s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.btn.line { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.line:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.small { padding: 9px 20px; font-size: 12.5px; letter-spacing: .14em; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-green); flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 版面 ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: clamp(70px, 10vh, 120px) var(--gutter); }
.wrap.narrow { max-width: 760px; }
.eyebrow { margin: 0 0 18px; font-size: 14px; letter-spacing: .12em; font-weight: 700; color: var(--accent-text); }
h1.display { margin: 0; font-weight: 900; font-size: clamp(64px, 14vw, 180px); line-height: 1.12; letter-spacing: .04em; color: var(--ink-deep); }
h1.page { margin: 0; font-weight: 900; font-size: clamp(44px, 8vw, 96px); line-height: 1.15; letter-spacing: .04em; color: var(--ink-deep); }
h1 .stop, h2 .stop { color: var(--accent); }
h2 { margin: 0 0 8px; font-weight: 900; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: .06em; }
h3 { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: .06em; }
.lead { margin: 30px 0 0; max-width: 520px; font-weight: 300; font-size: clamp(15px, 1.8vw, 17px); line-height: 2.1; letter-spacing: .05em; color: var(--muted); }
.sub { margin: 0 0 48px; font-weight: 400; font-size: 15px; line-height: 2; color: var(--muted); }
.prose { font-weight: 300; font-size: clamp(15px, 1.8vw, 16.5px); line-height: 2.3; letter-spacing: .04em; color: rgba(38, 34, 28, .78); }
.prose p { margin: 0 0 20px; }
.prose strong { font-weight: 700; color: var(--ink); }

.hero { min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 40px var(--gutter) 60px; }
.page-head { padding: clamp(56px, 9vh, 110px) var(--gutter) 0; max-width: 1120px; margin: 0 auto; }

/* 雙軸大卡 */
.axis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 52px; max-width: 820px; }
.card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px 26px;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 2px; color: inherit;
  transition: transform .35s, box-shadow .35s;
}
a.card:hover { border-color: var(--accent); color: inherit; }
.tag { font-size: 12.5px; letter-spacing: .08em; font-weight: 700; color: var(--accent-text); }
.card .title { font-size: 19px; font-weight: 900; letter-spacing: .06em; }
.card .desc { font-weight: 400; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 26px; font-size: 12.5px; letter-spacing: .16em; font-weight: 500; }

/* 文章列 */
.rows { display: flex; flex-direction: column; border-bottom: 1.5px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: clamp(16px, 3vw, 36px); align-items: baseline;
  padding: 28px 4px; border-top: 1.5px solid var(--ink); color: inherit;
  transition: background .35s, padding-left .35s;
}
.row.is-static:hover { background: none; padding-left: 4px; }
.row.is-static { grid-template-columns: 64px 1fr; }
.row:hover { background: var(--card); padding-left: 16px; color: inherit; }
.row .t { display: flex; flex-direction: column; gap: 6px; }
.row .title { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; letter-spacing: .04em; }
.row .desc { font-weight: 400; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.row .go { font-weight: 900; color: var(--accent-text); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.filters button { font: inherit; font-size: 12px; letter-spacing: .2em; font-weight: 700; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* 深色段 */
.dark { background: var(--ink); color: var(--paper); }
.dark h2 { color: var(--paper); }
.dark .sub { color: rgba(250, 247, 241, .72); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 26px;
  border: 1.5px solid rgba(250, 247, 241, .25); border-radius: 2px; color: var(--paper);
  transition: border-color .35s, background .35s;
}
.tile.is-soon { border-style: dashed; }
.tile.is-soon .more { color: rgba(250, 247, 241, .55); }
a.tile:hover { border-color: var(--accent-soft); background: color-mix(in srgb, var(--accent-soft) 10%, transparent); color: var(--paper); }
.tile .tag { color: var(--accent-soft); }
.tile .name { font-size: 18px; font-weight: 700; letter-spacing: .05em; }
.tile .desc { font-weight: 400; font-size: 13px; line-height: 1.9; color: rgba(250, 247, 241, .74); }
.tile .more { margin-top: auto; font-size: 12px; letter-spacing: .16em; color: var(--accent-soft); }

/* LINE 收尾區 */
.cta {
  max-width: 1120px; margin: 0 auto clamp(70px, 10vh, 120px); padding: 0 var(--gutter);
}
.cta .box {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: clamp(32px, 5vw, 56px); border: 1.5px solid var(--ink); background: var(--card); border-radius: 2px;
}
.cta h2 { font-size: clamp(26px, 3.4vw, 40px); }
.cta p { margin: 10px 0 0; font-weight: 400; font-size: 14.5px; line-height: 2; color: var(--muted); }
.cta .side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta .note { font-size: 12px; letter-spacing: .08em; color: var(--faint); }

/* 清單、步驟、權益 */
.list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 4px; border-bottom: 1px solid rgba(38, 34, 28, .18); }
.list .n { font-weight: 900; color: var(--accent-text); font-size: 15px; letter-spacing: .1em; }
.list b { display: block; font-size: 17px; letter-spacing: .05em; margin-bottom: 4px; }
.list span { font-weight: 400; font-size: 14px; line-height: 1.95; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1.5px solid var(--ink); background: var(--card); }
.step { padding: 28px 26px; border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.step:last-child { border-right: 0; }
.step .num { font-size: 44px; font-weight: 900; line-height: 1; color: var(--accent); }
.step b { font-size: 17px; letter-spacing: .05em; }
.step span { font-weight: 400; font-size: 13.5px; line-height: 1.9; color: var(--muted); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.perk { padding: 34px 30px; border: 1.5px solid var(--ink); background: var(--card); border-radius: 2px; display: flex; flex-direction: column; gap: 14px; }
.perk .big { font-size: clamp(40px, 6vw, 64px); font-weight: 900; line-height: 1; color: var(--ink-deep); letter-spacing: .02em; }
.perk .big small { font-size: .38em; letter-spacing: .1em; color: var(--accent-text); margin-left: 6px; }
.perk p { margin: 0; font-weight: 400; font-size: 14px; line-height: 2; color: var(--muted); }
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1.5px solid var(--ink); margin-top: 10px; }
.split div { padding: 14px 0; font-size: 13.5px; line-height: 1.8; }
.split div:first-child { border-right: 1px solid rgba(38, 34, 28, .2); padding-right: 14px; }
.split div:last-child { padding-left: 14px; }
.split b { display: block; color: var(--accent-text); font-size: 12px; letter-spacing: .2em; }
.price { font-size: 13px; letter-spacing: .12em; color: var(--faint); }
.pill { display: inline-block; font-size: 11px; letter-spacing: .16em; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor; }
.todo { color: var(--accent); border-bottom: 1px dashed var(--accent); font-weight: 500; }
.chat { max-width: 380px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.8; }
.chat .me, .chat .oa { padding: 10px 14px; border-radius: 14px; max-width: 86%; }
.chat .me { align-self: flex-end; background: #dff5c8; border-bottom-right-radius: 4px; }
.chat .oa { align-self: flex-start; background: var(--card); border: 1px solid rgba(38, 34, 28, .15); border-bottom-left-radius: 4px; }
.chat .who { font-size: 11px; letter-spacing: .14em; color: var(--faint); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

/* 文字段落型區塊（取代對稱卡片） */
.note-block { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; }
.note-block h3 { margin-bottom: 10px; }
.note-block p { margin: 0 0 12px; font-size: 15px; line-height: 2; color: var(--muted); }
.note-block p:last-child { margin-bottom: 0; }
.plain { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 2.1; color: var(--muted); }
.plain li { margin-bottom: 4px; }
.faq { margin: 20px 0 0; }
.faq dt { font-weight: 700; font-size: 16px; margin-top: 22px; }
.faq dd { margin: 4px 0 0; font-size: 14.5px; line-height: 2; color: var(--muted); }
.aside { font-size: 14px; line-height: 2; color: var(--muted); padding: 22px 24px; background: var(--card); border: 1.5px solid var(--ink); }
.aside b { color: var(--ink); }

/* 頁尾 */
footer { border-top: 1.5px solid var(--ink); padding: 48px var(--gutter) 40px; }
footer .cols { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
footer h4 { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .08em; color: var(--accent-text); }
footer a { display: block; color: var(--ink); font-size: 13.5px; line-height: 2.1; }
footer a:hover { color: var(--accent-text); }
footer .brand { font-weight: 900; letter-spacing: .1em; font-size: 15px; }
footer .copy { max-width: 1120px; margin: 40px auto 0; font-weight: 400; font-size: 12px; letter-spacing: .06em; color: var(--faint); }

/* 首頁開場浮現（只用在首頁） */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1.5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }

@media (max-width: 760px) {
  .nav { gap: 12px; padding: 16px; }
  .nav .menu { display: block; }
  .nav .links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1.5px solid var(--ink); padding: 8px 16px 16px; }
  .nav.open .links { display: flex; }
  .nav .links a { padding: 12px 0; border-bottom: 1px solid rgba(38, 34, 28, .12); }
  .nav .btn.small { display: none; }
  :root { --gutter: 16px; }
  .cta .box, .two { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr auto; }
  .row .tag { grid-column: 1 / -1; }
  .row.is-static { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .step:last-child { border-bottom: 0; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > div:first-child { grid-column: 1 / -1; }
}
