/* 坪見官網（pingjian.tw）的樣式：照設計稿 官網/index.html（設計 2026-12-01.2） */
:root {
  --navy-50: #f1f6fa;
  --navy-100: #dce6ee;
  --navy-200: #b9cbda;
  --navy-400: #4a6e8e;
  --navy-500: #2e5474;
  --navy-600: #1f3d56;
  --navy-700: #1a3149;
  --navy-800: #16293c;
  --navy-900: #13202e;
  --navy-950: #0e1620;
  --sky-50: #eef7fb;
  --sky-100: #d5edf6;
  --sky-300: #7ecce5;
  --sky-600: #3f8cae;
  --text: #0e1620;
  --text-2: #475569;
  --muted: #64748b;
  --page: #f8fafc;
  --card: #fff;
  --line: #e2e8f0;
  --display:
    "LXGW WenKai TC", -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans CJK TC", "Noto Sans TC",
    "Microsoft JhengHei", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font: 16px/1.75 var(--sans);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--sky-300);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus {
  left: 16px;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
}
p {
  margin: 0;
}

/* 頁首 */
.hd {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
}
.hd .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}
.logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-2);
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  color: var(--navy-600);
}
.sp {
  flex: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--navy-600);
  color: #fff;
  font: 700 16px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--navy-700);
}
.btn.sm {
  height: 40px;
  padding: 0 18px;
  font-size: 15px;
}
.btn.sky {
  background: var(--sky-300);
  color: var(--navy-950);
}
.btn.sky:hover {
  background: #9bd8ec;
}
.link {
  color: var(--navy-600);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.menu {
  display: none;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sky-600);
}

/* 首屏（B 的文案＋A 的版面） */
.hero {
  background: #fff;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  min-height: clamp(560px, calc(100vh - 76px), 760px);
  padding-top: 16px;
  padding-bottom: 56px;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.28;
  margin: 14px 0 22px;
}
.hero .sub {
  color: var(--text-2);
  font-size: 18px;
  line-height: 1.8;
  max-width: 30em;
  margin-bottom: 34px;
}
.ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.art {
  position: relative;
  height: 480px;
}
.blob {
  position: absolute;
  inset: 24px 0 0 40px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--sky-100), var(--navy-50));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 12px 32px rgba(14, 22, 32, 0.08),
    0 2px 6px rgba(14, 22, 32, 0.04);
}
.lbl {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.big {
  font: 700 34px/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.big small {
  font-size: 18px;
  margin-left: 4px;
}
.meta {
  font-size: 13px;
  color: var(--text-2);
}
.c1 {
  position: absolute;
  left: 0;
  top: 70px;
  width: 340px;
  padding: 22px 24px;
}
.c2 {
  position: absolute;
  right: 0;
  top: 250px;
  width: 300px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.c2 b {
  font-size: 16px;
  white-space: nowrap;
}
.c3 {
  position: absolute;
  left: 60px;
  bottom: 18px;
}
.bar {
  height: 10px;
  border-radius: 99px;
  background: var(--navy-50);
  margin: 14px 0 10px;
  position: relative;
}
.bar i {
  position: absolute;
  left: 30%;
  right: 12%;
  top: 0;
  bottom: 0;
  border-radius: 99px;
  background: var(--sky-300);
}
.avs {
  display: flex;
}
.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 13px/1 var(--sans);
  color: #fff;
  background: var(--navy-600);
  border: 2px solid #fff;
}
.avs .av + .av {
  margin-left: -8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-700);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(14, 22, 32, 0.06);
}
@media (prefers-reduced-motion: no-preference) {
  .c1,
  .c2,
  .c3 {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .c2 {
    animation-delay: 0.12s;
  }
  .c3 {
    animation-delay: 0.24s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* 區塊共用 */
.sec {
  padding: 112px 0;
}
.sec-hd {
  max-width: 40em;
  margin-bottom: 56px;
}
.sec-hd h2 {
  font-size: 38px;
  line-height: 1.3;
  margin: 10px 0 16px;
}
.sec-hd p {
  color: var(--text-2);
  font-size: 17px;
}

/* 屋主怎麼用 */
.how {
  background: var(--page);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
}
.step .n {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy-600);
  color: #fff;
  font: 700 18px/1 var(--sans);
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 10px;
}
.step p {
  color: var(--text-2);
  font-size: 15px;
}
.fee {
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.how .ctas {
  margin-top: 40px;
}

/* 給房仲 */
.agent {
  background: radial-gradient(
    900px 400px at 85% 0%,
    var(--navy-500),
    var(--navy-800) 60%,
    var(--navy-900)
  );
  color: #fff;
}
.agent .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.agent .eyebrow {
  color: var(--sky-300);
}
.agent h2 {
  font-size: 38px;
  line-height: 1.3;
  margin: 10px 0 16px;
}
.agent p {
  color: var(--navy-100);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 30em;
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
}
.points svg {
  flex: none;
  margin-top: 3px;
  color: var(--sky-300);
}
.points b {
  display: block;
  font-size: 16px;
}
.points span {
  font-size: 14px;
  color: var(--navy-200);
}

/* 關於＋聯絡 */
.about .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about h2 {
  font-size: 38px;
  line-height: 1.3;
  margin: 10px 0 20px;
}
.about p {
  color: var(--text-2);
  font-size: 17px;
  max-width: 32em;
}
.about p + p {
  margin-top: 14px;
}
.contact {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
}
.contact h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.contact p {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 20px;
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-600);
  text-decoration: none;
  word-break: break-all;
}
.mail:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 頁尾 */
.ft {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 14px;
  color: var(--muted);
}
.ft .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ft .logo {
  width: 32px;
  height: 32px;
}
.ft nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.ft nav a {
  text-decoration: none;
  color: var(--text-2);
}
.ft nav a:hover {
  text-decoration: underline;
}

/* 平板 */
@media (max-width: 1023px) {
  .hero .wrap,
  .agent .wrap,
  .about .wrap {
    grid-template-columns: 1fr;
  }
  .hero .wrap {
    min-height: 0;
    max-height: none;
    padding-top: 40px;
  }
  .art {
    max-width: 520px;
    width: 100%;
  }
  .steps {
    grid-template-columns: 1fr;
  }
}
/* 手機 */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 68px;
  }
  .wrap {
    padding: 0 16px;
  }
  .hd .wrap {
    height: 60px;
    gap: 12px;
  }
  .nav {
    display: none;
  }
  .logo {
    width: 34px;
    height: 34px;
  }
  .menu {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--text);
    margin-right: -8px;
  }
  .hero .wrap {
    gap: 32px;
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: 34px;
    margin: 10px 0 14px;
  }
  .hero .sub {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .ctas {
    gap: 14px;
  }
  .hero .ctas .btn,
  .how .ctas .btn,
  .agent .btn {
    width: 100%;
  }
  .hero .ctas .link {
    width: 100%;
    text-align: center;
  }
  .art {
    height: 330px;
  }
  .blob {
    inset: 16px 0 0 24px;
    border-radius: 28px;
  }
  .c1 {
    top: 24px;
    width: 268px;
    padding: 16px 18px;
  }
  .big {
    font-size: 26px;
  }
  .c2 {
    top: 178px;
    width: 262px;
    padding: 14px 16px;
  }
  .c2 b {
    font-size: 15px;
  }
  .c3 {
    left: 12px;
    bottom: 6px;
  }
  .sec {
    padding: 72px 0;
  }
  .sec-hd {
    margin-bottom: 32px;
  }
  .sec-hd h2,
  .agent h2,
  .about h2 {
    font-size: 28px;
  }
  .sec-hd p,
  .agent p,
  .about p {
    font-size: 16px;
  }
  .step {
    padding: 22px 20px;
  }
  .step .n {
    width: 34px;
    height: 34px;
    font-size: 16px;
    margin-bottom: 14px;
  }
  .agent .wrap,
  .about .wrap {
    gap: 32px;
  }
  .contact {
    padding: 24px 20px;
  }
  .ft .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* 以下是工程補的（設計稿沒有的部分，見規格文件/後端交接.md 二十七） */
.sprite {
  position: absolute;
}
.av.b {
  background: var(--navy-400);
}
.av.c {
  background: var(--sky-600);
}

/* 產品 agent.pingjian.tw 還沒上線：<html data-product="off"> 時，連到產品的按鈕與連結先不顯示 */
[data-product="off"] .needs-product {
  display: none;
}
[data-product="off"] .agent p {
  margin-bottom: 0;
}

/* 手機選單：列出四個段落連結，樣式照產品頁首的手機選單（popover，Esc 或點外面就關） */
.mnav {
  position: fixed;
  inset: 68px 16px auto auto;
  margin: 0;
  padding: 8px;
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(14, 22, 32, 0.12);
}
.mnav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}
.mnav a:hover {
  background: var(--navy-50);
}
