:root {
  --parch: #f6ead0;
  --parch-deep: #ecd9b0;
  --card: #fff8e8;
  --ink: #3a2412;
  --ink-soft: #6a4f38;
  --wood: #8b4f1c;
  --wood-deep: #4a2810;
  --wood-dark: #24140a;
  --gold: #f3c35b;
  --gold-deep: #d9962b;
  --orange: #c9611a;
  --line: #d9bf8b;
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--parch);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.8;
  font-size: 17px;
}
a { color: var(--orange); }
img { max-width: 100%; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--serif); }

header.site { background: var(--wood-dark); border-bottom: 3px solid var(--wood); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-weight: 800; font-size: 1.1rem; font-family: var(--serif); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav.top a { margin-left: 18px; color: #e9d5ae; text-decoration: none; font-size: 0.93rem; }
nav.top a:hover { color: var(--gold); }

.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 56px 0 72px;
  background:
    linear-gradient(180deg, rgba(24, 12, 4, 0.55) 0%, rgba(24, 12, 4, 0.35) 40%, rgba(24, 12, 4, 0.82) 100%),
    url("/img/bg-home.webp") center 30% / cover no-repeat;
}
.hero .plaque { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)); }
.hero h1 { margin: 18px 0 14px; font-size: clamp(1.9rem, 6vw, 3rem); line-height: 1.3; text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { margin: 0 auto; max-width: 640px; font-size: 1.12rem; color: #fbeccb; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.hero .pet { width: min(230px, 56vw); height: auto; margin-top: 18px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); }
.cta {
  display: inline-block; margin-top: 22px; padding: 14px 34px; border-radius: 14px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: var(--wood-dark); font-weight: 800; font-size: 1.1rem; text-decoration: none;
  border: 3px solid var(--wood-deep); box-shadow: 0 5px 0 var(--wood-deep), 0 10px 22px rgba(0, 0, 0, 0.45);
}
.cta small { display: block; font-weight: 600; font-size: 0.78rem; opacity: 0.8; }

section.block { padding: 56px 0; }
section.block .kicker { text-align: center; color: var(--orange); font-weight: 800; letter-spacing: 0.18em; font-size: 0.85rem; margin: 0 0 6px; }
section.block h2 { text-align: center; color: var(--wood-deep); font-size: clamp(1.5rem, 4.5vw, 2.1rem); margin: 0 0 12px; line-height: 1.35; }
section.block p.sub { text-align: center; max-width: 640px; margin: 0 auto 28px; color: var(--ink-soft); }

.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pain { background: var(--card); border: 3px solid var(--wood); border-radius: 18px; padding: 20px 18px; text-align: center; box-shadow: 0 6px 0 rgba(74, 40, 16, 0.25); }
.pain b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--wood-deep); margin-bottom: 6px; }
.pain span { color: var(--ink-soft); font-size: 0.96rem; }

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.case { background: var(--card); border: 3px solid var(--wood); border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 rgba(74, 40, 16, 0.25); }
.case .top { background: var(--wood-deep); color: var(--gold); text-align: center; padding: 14px; font-family: var(--serif); font-size: 1.6rem; font-weight: 800; }
.case .body { padding: 18px 20px 22px; }
.case .row { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.case .tag { flex: none; font-size: 0.78rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--parch-deep); color: var(--wood-deep); }
.case p { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.97rem; }

.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mode { background: var(--card); border: 3px solid var(--wood); border-radius: 20px; padding: 12px 12px 18px; text-align: center; box-shadow: 0 6px 0 rgba(74, 40, 16, 0.25); }
.mode img { width: 100%; height: auto; display: block; border-radius: 12px; }
.mode h3 { margin: 12px 0 4px; color: var(--wood-deep); font-size: 1.2rem; }
.mode p { margin: 0 6px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }

.pets-band { background: linear-gradient(180deg, var(--wood-dark), #3a2210); color: #fff; }
.pets-band .kicker { color: var(--gold); }
.pets-band h2 { color: var(--gold); }
.pets-band p.sub { color: #e9d5ae; }
.pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 6px; }
.pets img { width: clamp(88px, 22vw, 128px); height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }

.feat-bg { background: linear-gradient(rgba(24, 12, 4, 0.78), rgba(24, 12, 4, 0.86)), url("/img/bg-forge.webp") center / cover no-repeat; }
.feat-bg .kicker { color: var(--gold); }
.feat-bg h2 { color: #fff; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feat { background: rgba(255, 248, 232, 0.96); border: 3px solid var(--wood); border-radius: 18px; padding: 18px 18px 20px; }
.feat .n { display: inline-block; width: 34px; height: 34px; line-height: 34px; text-align: center; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 8px; }
.feat b { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--wood-deep); margin-bottom: 4px; }
.feat span { color: var(--ink-soft); font-size: 0.96rem; }

.closing { text-align: center; color: #fff; padding: 64px 0 72px; background: linear-gradient(rgba(24, 12, 4, 0.6), rgba(24, 12, 4, 0.85)), url("/img/bg-book.webp") center / cover no-repeat; }
.closing h2 { color: var(--gold); font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 0 0 10px; }
.closing p { color: #fbeccb; max-width: 560px; margin: 0 auto; }

article.doc { padding: 40px 0 64px; }
article.doc h1 { color: var(--wood-deep); font-size: 2rem; margin: 0 0 6px; }
article.doc .meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 24px; }
article.doc h2 { color: var(--wood-deep); font-size: 1.3rem; margin: 32px 0 8px; padding-top: 8px; border-top: 2px solid var(--line); }
article.doc ul, article.doc ol { padding-left: 1.4em; }
article.doc li { margin: 5px 0; }
table.t { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.97rem; background: var(--card); }
table.t th, table.t td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.t th { background: var(--parch-deep); color: var(--wood-deep); }
.table-scroll { overflow-x: auto; }

footer.site { background: var(--wood-dark); border-top: 3px solid var(--wood); padding: 26px 0; color: #cdb893; font-size: 0.92rem; text-align: center; }
footer.site a { margin: 0 8px; color: var(--gold); }
footer.site p { margin: 4px 0; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  section.block { padding: 40px 0; }
  .modes { gap: 12px; }
  .mode { padding: 8px 8px 14px; border-width: 2px; }
  .mode p { font-size: 0.88rem; }
  nav.top a { margin-left: 12px; }
}

section.block.feat-bg h2, section.block.pets-band h2 { color: #fff; }
section.block.pets-band h2 { color: var(--gold); }
section.block.feat-bg .kicker, section.block.pets-band .kicker { color: var(--gold); }

section[id] { scroll-margin-top: 56px; }

.feat { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; }
.feat .n { flex: none; margin: 2px 0 0; }
.feat div b { margin-bottom: 2px; }
.feat div span { display: block; line-height: 1.6; }
.feats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.feat { align-items: center; }
.feat .n { margin: 0; }
.feat div b { line-height: 1.4; }
.feat div span { line-height: 1.5; }

@media (min-width: 760px) {
  .modes { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .mode { padding: 10px 10px 16px; }
  .mode h3 { font-size: 1.1rem; }
  .mode p { font-size: 0.9rem; margin: 0 2px; }
}

body { background: #1d0f06; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(24, 12, 4, 0.5) 0%, rgba(24, 12, 4, 0.7) 100%),
    url("/img/bg-home.webp") center 35% / cover no-repeat;
}
.hero, .feat-bg, .closing { background: none; }
header.site, footer.site { background: rgba(28, 15, 7, 0.88); }
section.block h2 { color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
section.block .kicker { color: var(--gold); }
section.block p.sub { color: #f0dfbd; }
.closing h2 { color: var(--gold); }

article.doc {
  background: var(--parch);
  border: 3px solid var(--wood);
  border-radius: 20px;
  padding: 30px 28px 36px;
  margin: 32px 0 48px;
  box-shadow: 0 8px 0 rgba(74, 40, 16, 0.35), 0 16px 30px rgba(0, 0, 0, 0.45);
}
@media (max-width: 560px) {
  article.doc { padding: 22px 16px 28px; margin: 18px 0 32px; }
}

.wrap { max-width: 1040px; }

.hero { padding: 44px 0 40px; }
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); margin: 20px 0 16px; letter-spacing: 0.02em; }
.hero p.lead {
  display: inline-block; max-width: 620px; padding: 12px 24px; border-radius: 999px;
  background: rgba(24, 12, 4, 0.55); border: 1px solid rgba(243, 195, 91, 0.45);
  backdrop-filter: blur(4px); font-size: 1.12rem;
}
.hero .pet { position: relative; display: block; margin: 26px auto 0; }
.hero .pet-wrap { position: relative; display: inline-block; }
.hero .pet-wrap::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 78%; height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(243, 195, 91, 0.55), rgba(243, 195, 91, 0) 70%); z-index: -1;
}
.cta { font-size: 1.15rem; padding: 16px 40px; margin-top: 26px; }

section.block { padding: 64px 0; }
section.block .kicker {
  display: table; margin: 0 auto 12px; padding: 4px 16px; border-radius: 999px;
  background: rgba(24, 12, 4, 0.6); border: 1px solid rgba(243, 195, 91, 0.55);
  letter-spacing: 0.14em; font-size: 0.82rem;
}
section.block h2 { font-size: clamp(1.6rem, 4.8vw, 2.3rem); margin-bottom: 36px; position: relative; padding-bottom: 18px; }
section.block h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 96px; height: 4px; transform: translateX(-50%);
  border-radius: 4px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.feats { gap: 18px; }
.feat {
  padding: 22px 24px; gap: 18px; border-radius: 20px;
  background: linear-gradient(180deg, #fffaf0 0%, #f6e7c6 100%);
  box-shadow: 0 6px 0 rgba(74, 40, 16, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.feat .n {
  width: 44px; height: 44px; line-height: 44px; font-size: 1.15rem;
  background: radial-gradient(circle at 35% 30%, #e98a3e, var(--orange)); border: 3px solid var(--gold);
  box-shadow: 0 2px 0 rgba(74, 40, 16, 0.5);
}
.feat div b { font-size: 1.22rem; }
.feat div span { font-size: 1rem; }

.case, .mode { box-shadow: 0 6px 0 rgba(74, 40, 16, 0.45); }
.case .top { font-size: 1.7rem; padding: 16px; }
.case .row { font-size: 1.05rem; }
.mode h3 { font-size: 1.15rem; }

.closing { padding: 40px 0 84px; }
.closing h2 { margin-bottom: 8px; }
.closing h2::after { display: none; }

@media (max-width: 560px) {
  section.block { padding: 44px 0; }
  .hero { padding: 28px 0 24px; }
  .hero p.lead { padding: 10px 16px; font-size: 1rem; border-radius: 18px; }
  .feat { padding: 16px 16px; gap: 14px; }
  .feat .n { width: 38px; height: 38px; line-height: 38px; }
}

.hero p.lead { display: table; margin: 0 auto; }
.hero .pet-wrap { display: table; margin: 24px auto 0; }
.hero .pet { margin: 0 auto; }

body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

.brand img { width: auto; height: 46px; border-radius: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.hero .plaque.egg { width: 132px; height: 132px; border-radius: 30px; border: 3px solid var(--gold); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 28px rgba(243, 195, 91, 0.45); }
.brand img { height: 62px; margin: -8px 0; }
@media (max-width: 560px) { .brand img { height: 52px; margin: -6px 0; } }

.brand img { height: 44px; margin: 0; }
@media (max-width: 560px) { .brand img { height: 36px; margin: 0; } }

.feat .n { display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; }
@media (max-width: 560px) { .feat .n { line-height: 1; } }

.case .body .lead2 { margin: 0 0 12px; font-weight: 800; color: var(--wood-deep); font-size: 1.02rem; }
.case .body .note { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.emph {
  margin: 32px auto 0; max-width: 720px; text-align: center; padding: 18px 22px; border-radius: 20px;
  background: rgba(24, 12, 4, 0.62); border: 2px solid var(--gold); color: #fff; font-size: 1.15rem; line-height: 1.9;
  font-family: var(--serif); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.emph b { color: var(--gold); font-size: 1.25em; }

.case .tag, .case .tag.real { background: var(--parch-deep); color: var(--wood-deep); }

.ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.ctas .cta { margin-top: 0; }
.cta.alt { background: rgba(24, 12, 4, 0.7); color: var(--gold); border-color: var(--gold); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.5); cursor: default; }
.cta.alt small { opacity: 0.85; }

.ctas { align-items: stretch; }
.ctas .cta { flex: 0 0 300px; width: 300px; max-width: 100%; text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 92px; }
@media (max-width: 560px) { .ctas .cta { flex-basis: 100%; width: 100%; max-width: 340px; } }

a.cta.alt { cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.cta.alt:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.5), 0 12px 24px rgba(0, 0, 0, 0.45); }
