/* 房東委託 Landing Page v4 — 2026-05 改版（編輯雜誌風／鼠尾草綠＋金）
   來源設計：Landing Page/landlord-v4.html
   注入方式：page-landlord-lp.php 內聯至 <style id="klp4-main-css"> */

:root {
  --l1: #F5F1E8; --l2: #E8EDE5; --l3: #4A635D; --l4: #1F3D2B;
  --l5: #806529; --l6: #2C2A26; --l7: #6B6862; --line: #06C755;
  --paper: #FBF9F3; --sage-soft: #EEF2EB; --rule: rgba(128,101,41,.24);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", sans-serif;
  --font-serif: "Songti TC", "Source Han Serif TC", "Noto Serif CJK TC", "Noto Serif TC", serif;
  --r-pill: 999px; --r-lg: 32px; --r-md: 22px;
  --shadow-soft: 0 18px 50px -24px rgba(31,61,43,.30);
  --shadow-card: 0 12px 32px -20px rgba(31,61,43,.28);
  --maxw: 1080px; --readw: 34rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--l1); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}
body { margin: 0; background: transparent; color: var(--l6); font-family: var(--font-sans); font-size: 18px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--l4); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 88px 0; position: relative; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--l4); margin: 0 0 .5em; line-height: 1.4; }
h1 { font-size: 2.4rem; font-weight: 700; letter-spacing: .5px; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h1, h2 { text-wrap: balance; }
p { margin: 0 0 1em; max-width: var(--readw); text-wrap: pretty; }
.nb { white-space: nowrap; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: .95rem; letter-spacing: 3px; color: var(--l3); font-weight: 700; margin: 0 0 18px; }
.eyebrow .sprig { width: 18px; height: 24px; color: var(--l5); flex: 0 0 auto; }
.fact { color: var(--l5); font-weight: 700; }
/* 標題底線：與文字同寬 */
.uline { display: block; width: -webkit-fit-content; width: fit-content; max-width: 100%; margin-bottom: 1.3rem; }
.uline::after { content: ""; display: block; height: 3px; background: var(--l5); opacity: .75; border-radius: 2px; margin-top: 16px; }

/* 按鈕 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 15px 30px; border-radius: var(--r-pill); font-size: 1.0625rem; font-weight: 700; font-family: var(--font-sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; line-height: 1.3; transition: transform .15s ease, background .15s ease; }
.btn-cta { background: var(--l4); color: var(--l1); border-color: var(--l4); box-shadow: var(--shadow-card); }
.btn-cta:hover, .btn-cta:focus { background: #16301f; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--l4); border-color: rgba(31,61,43,.35); min-height: 44px; padding: 9px 20px; font-size: 1rem; }
.btn-ghost:hover, .btn-ghost:focus { background: rgba(31,61,43,.06); border-color: var(--l4); }
.btn-line { background: var(--line); color: #053d1d; border-color: var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.tel-link { color: var(--l4); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--l5); outline-offset: 3px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 100; background: rgba(245,241,232,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 0; border: 0; object-fit: contain; }
.brand .name { color: var(--l4); font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a.anchor { color: var(--l4); text-decoration: none; font-size: 1rem; padding: 10px 4px; }
.nav-links a.anchor:hover, .nav-links a.anchor:focus { text-decoration: underline; text-underline-offset: 4px; }

/* Hero split */
.hero { padding: 80px 0; }
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero p.lead { font-size: 1.18rem; max-width: 30rem; color: var(--l6); }
.hero .cta-row { margin-top: 28px; }
.hero-note { margin-top: 20px; color: var(--l7); font-size: .98rem; max-width: 28rem; }
.hero-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 4 / 3.2; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .sprig { position: absolute; right: 18px; bottom: 16px; width: 34px; height: 46px; color: rgba(245,241,232,.9); }

/* 通用面板 */
.panel { border-radius: var(--r-lg); padding: 48px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.panel-sage { background: var(--l2); }
.panel-green { background: var(--l4); color: var(--l1); }
.panel-green h2 { color: var(--l1); }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(31,61,43,.08); color: var(--l4); font-size: .92rem; font-weight: 700; padding: 6px 16px; border-radius: var(--r-pill); margin-bottom: 16px; letter-spacing: 1px; }
.badge .sprig { width: 14px; height: 18px; color: var(--l5); }
.edge .panel { max-width: 840px; }

/* 委託流程 時間軸 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 34px; position: relative; }
.flow::before { content: ""; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px; background: var(--l5); opacity: .35; }
.flow .step { text-align: center; position: relative; }
.flow .dot { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 2px solid var(--l4); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: var(--l4); box-shadow: var(--shadow-card); }
.flow .dot .sprig { width: 18px; height: 24px; color: var(--l4); }
.flow .step h3 { font-size: 1.18rem; margin: 0 0 5px; }
.flow .step p { font-size: .95rem; color: var(--l7); margin: 0; max-width: none; }

/* 分隔線清單（租後）*/
.dlist { list-style: none; margin: 18px 0 0; padding: 0; }
.dlist li { display: grid; grid-template-columns: 230px 1fr; gap: 30px; padding: 26px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.dlist li:last-child { border-bottom: 1px solid var(--rule); }
.dlist .t { font-family: var(--font-serif); font-weight: 700; color: var(--l4); font-size: 1.4rem; }
.dlist .d { color: var(--l6); font-size: 17px; margin: 0; max-width: 44rem; }

/* 團隊 feature 圖文 */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.feature-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3 / 2; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

/* 9 領域 索引（無框）*/
.index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; list-style: none; margin: 28px 0 0; padding: 0; }
.index li { padding: 20px 0; border-top: 1px solid var(--rule); }
.index .t { display: block; font-family: var(--font-serif); font-weight: 700; color: var(--l4); font-size: 1.18rem; }
.index .d { display: block; color: var(--l7); font-size: .95rem; margin-top: 3px; }

/* 成功案例 編輯式區塊 */
.cases-ed { margin-top: 22px; }
.cases-ed .item { display: grid; grid-template-columns: 300px 1fr; gap: 36px; padding: 30px 0; border-top: 1px solid var(--rule); align-items: center; }
.cases-ed .item:last-child { border-bottom: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { font-size: .9rem; font-weight: 700; color: var(--l4); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 5px 14px; }
.chip.rent { background: var(--l4); color: var(--l1); border-color: var(--l4); }
.cases-ed .who { color: var(--l7); font-size: .95rem; margin: 0; }
.cases-ed .relief-wrap { display: flex; align-items: flex-start; gap: 12px; }
.cases-ed .tick { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--l4); color: var(--l1); display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; margin-top: 6px; }
.cases-ed .relief { font-family: var(--font-serif); font-weight: 600; color: var(--l4); font-size: 1.45rem; line-height: 1.55; margin: 0; max-width: none; }
.cases-note { margin-top: 22px; color: var(--l7); font-size: .95rem; }

/* 主承諾 */
.promise .panel-green { max-width: 760px; margin: 0 auto; text-align: center; padding: 56px 40px; }
.promise .seal { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; letter-spacing: 3px; color: #d8c79a; font-weight: 700; margin-bottom: 12px; }
.promise .seal .sprig { width: 14px; height: 18px; color: #d8c79a; }
.promise h2 { font-size: 2.1rem; max-width: 18ch; margin: 0 auto .45em; }
.promise .sub { color: #e9efe8; font-size: 1.15rem; max-width: 28rem; margin: 0 auto 30px; text-wrap: balance; }
.promise .secondary { color: #cdd8cf; max-width: 30rem; margin: 20px auto 0; text-wrap: balance; }
.promise .cta-row { justify-content: center; }
.promise .btn-gold { background: var(--l5); color: var(--l1); border-color: var(--l5); box-shadow: 0 12px 30px -16px rgba(0,0,0,.5); }
.promise .btn-gold:hover, .promise .btn-gold:focus { background: #6d561f; }
.promise .tel-link { color: var(--l1); }

/* Footer */
footer.site { padding: 56px 0 96px; color: var(--l7); font-size: .95rem; }
footer.site .legal { line-height: 1.9; text-align: center; max-width: 640px; margin: 0 auto; }
footer.site .legal strong { color: var(--l4); }
footer.site a { color: var(--l4); }
footer.site .frule { height: 0; border: 0; border-top: 2px solid var(--l5); opacity: .6; width: 64px; margin: 0 auto 24px; }

.sticky-bar { display: none; }

@media (max-width: 900px) {
  .index { grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
}
@media (max-width: 768px) {
  body { font-size: 17px; }
  section { padding: 56px 0; }
  .hero { padding: 44px 0 52px; }
  h1 { font-size: 1.95rem; } h2 { font-size: 1.6rem; }
  .panel { padding: 30px 22px; }
  .promise .panel-green { padding: 38px 24px; }
  .nav-links .anchor { display: none; }

  /* Hero 改為上文下圖 */
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { aspect-ratio: 16 / 11; }

  /* 流程改垂直時間軸 */
  .flow { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  .flow::before { display: none; }
  .flow .step { text-align: left; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 26px; position: relative; }
  .flow .step::after { content: ""; position: absolute; left: 23px; top: 50px; bottom: -2px; width: 2px; background: var(--l5); opacity: .35; }
  .flow .step:last-child::after { display: none; }
  .flow .dot { margin: 0; grid-row: 1; grid-column: 1; }
  .flow .step h3, .flow .step p { grid-column: 2; }
  .flow .step h3 { margin-top: 8px; }
  .flow .step p { max-width: 26rem; }

  /* 清單與索引、圖文、案例 → 單欄堆疊 */
  .dlist li { grid-template-columns: 1fr; gap: 6px; }
  .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature-media { aspect-ratio: 3 / 2; }
  .index { grid-template-columns: 1fr; }
  .cases-ed .item { grid-template-columns: 1fr; gap: 14px; }

  .cta-row .btn { width: 100%; }

  .sticky-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: rgba(245,241,232,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--rule); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .sticky-bar a { min-height: 52px; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 1rem; white-space: nowrap; }
  .sticky-bar .s-line { flex: 0 0 64%; }
  .sticky-bar .s-tel { flex: 0 0 calc(36% - 8px); background: var(--l4); color: var(--l1); border-color: var(--l4); }
}
/* 極窄螢幕（≤360px）：縮字級/間距並禁止換行，避免 CTA 按鈕文字折成兩行 */
@media (max-width: 360px) {
  .btn { font-size: .95rem; padding: 13px 18px; white-space: nowrap; }
  .btn-ghost { font-size: .9rem; padding: 8px 12px; }
}
/* ===== 動畫：捲動淡入上浮、底線描繪、圖片緩入（皆 GPU 友善）===== */
html.anim .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .hero-media img, html.anim .feature-media img { transform: scale(1.06); transition: transform 1.2s cubic-bezier(.22,.61,.36,1); }
html.anim .hero-media.in img, html.anim .feature-media.in img { transform: none; }
html.anim .uline::after { transform: scaleX(0); transform-origin: left center; transition: transform .85s cubic-bezier(.22,.61,.36,1) .15s; }
html.anim .uline.in::after { transform: scaleX(1); }
@media (hover: hover) {
  .hero-media img, .feature-media img { transition: transform 1.2s cubic-bezier(.22,.61,.36,1); }
  .hero-media:hover img, .feature-media:hover img { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  html.anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.anim .hero-media img, html.anim .feature-media img { transform: none !important; transition: none !important; }
  html.anim .uline::after { transform: none !important; transition: none !important; }
  .hero-media:hover img, .feature-media:hover img { transform: none !important; }
}
