  :root {
    --gold: #b89864;
    --gold-deep: #7a5a26;
    --gold-soft: #e2c38c;
    --dark: #29251f;
    --dark-2: #39332b;
    --cream: #faf5ec;
    --sand: #e9d9bd;
    --paper: #fffdfa;
    --text: #332f29;
    --muted: #6b6157;
    --line: #e5d9c6;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(41, 37, 31, .08);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 70px; }
  body {
    font-family: "Noto Sans TC", system-ui, -apple-system, sans-serif;
    color: var(--text); background: var(--paper); line-height: 1.8;
  }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
  section { padding: 96px 0; }
  .center { text-align: center; }
  [hidden] { display: none !important; }
  .gold { color: var(--gold-deep); }
  .kicker { color: var(--gold-deep); letter-spacing: .25em; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
  h2 { font-family: "Noto Serif TC", serif; font-size: clamp(26px, 4vw, 36px); font-weight: 900; line-height: 1.4; margin-bottom: 20px; }
  .section-head { margin-bottom: 48px; }
  .section-head p { color: var(--muted); }

  /* ---------- 頁首 ---------- */
  header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 250, 242, .94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: "Noto Serif TC", serif; font-weight: 900; font-size: 20px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 50%; background: var(--dark); color: var(--gold-soft); display: grid; place-items: center; font-size: 19px; }
  .brand small { display: block; font-family: "Noto Sans TC", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .15em; color: var(--gold-deep); line-height: 1; margin-top: 3px; }
  footer .brand small { color: var(--gold); }
  .menu { display: flex; gap: 26px; list-style: none; font-size: 14px; font-weight: 500; }
  .menu a:hover { color: var(--gold-deep); }
  .menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; border-radius: 10px; font-size: 26px; line-height: 1; cursor: pointer; color: var(--dark); }

  /* ---------- 主視覺 ---------- */
  .hero {
    background:
      radial-gradient(circle at 80% 20%, rgba(255,255,255,.55), transparent 45%),
      linear-gradient(120deg, #e8d5b5, #fff8eb);
    text-align: center; padding: 120px 0 110px;
  }
  .hero h1 { font-family: "Noto Serif TC", serif; font-size: clamp(40px, 7vw, 66px); font-weight: 900; line-height: 1.4; letter-spacing: .12em; color: var(--dark); }
  .hero .sub { font-size: 17px; margin: 22px 0 34px; color: var(--text); }
  .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px;
    font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s;
  }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
  .btn-dark { background: var(--dark); color: #fff; }
  .btn-outline { border: 2px solid var(--dark); color: var(--dark); }
  .btn-gold { background: var(--gold-soft); color: var(--dark); }
  .stats { display: flex; justify-content: center; gap: 56px; margin-top: 64px; flex-wrap: wrap; }
  .stats b { display: block; font-family: "Noto Serif TC", serif; font-size: 38px; color: var(--gold-deep); line-height: 1.1; }
  .stats span { font-size: 13px; color: var(--muted); letter-spacing: .1em; }

  /* ---------- 關於 ---------- */
  .prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 2.2; }
  .prose p { margin-bottom: 18px; }
  .prose h3 { font-family: "Noto Serif TC", serif; font-size: clamp(20px, 3vw, 24px); margin: 10px 0 22px; line-height: 1.6; }
  .share-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; text-align: left; }
  .share-list div { background: var(--cream); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
  .share-list b { display: block; font-family: "Noto Serif TC", serif; font-size: 19px; color: var(--gold-deep); margin-bottom: 6px; }
  .share-list span { font-size: 15px; line-height: 1.8; display: block; }

  /* ---------- 執行長 ---------- */
  .dark { background: var(--dark); color: #fff; }
  .dark p { color: #e2d7c5; }
  .dark .gold, .dark .kicker { color: var(--gold); }
  .join .kicker, .light .kicker { color: #5b431a; }
  .founder { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
  .founder-photo {
    aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--dark-2);
    border: 1px solid #665842; display: grid; place-items: center; text-align: center;
    color: var(--gold-soft); font-size: 15px; overflow: hidden;
  }
  .founder-photo img { width: 100%; height: 100%; object-fit: cover; }
  .founder blockquote { font-family: "Noto Serif TC", serif; font-size: clamp(22px, 3vw, 28px); line-height: 1.6; color: var(--gold-soft); border-left: 3px solid var(--gold); padding-left: 20px; margin-bottom: 28px; }
  .founder p { margin-bottom: 16px; font-size: 16px; line-height: 2; }
  .sign { color: var(--gold) !important; font-weight: 700; margin-top: 24px; }

  /* ---------- 核心文化 ---------- */
  .culture { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .culture .card { background: var(--dark-2); border: 1px solid #665842; border-radius: var(--radius); padding: 30px 22px; text-align: center; }
  .culture .card b { display: block; font-family: "Noto Serif TC", serif; font-size: 34px; color: var(--gold-soft); margin-bottom: 8px; }
  .culture .card p { font-size: 14px; }

  /* ---------- 服務 ---------- */
  .light { background: var(--cream); }
  .services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow); text-align: left; }
  .svc .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
  .svc h3 { font-size: 20px; color: var(--gold-deep); margin-bottom: 6px; }
  .svc p { font-size: 15px; color: var(--muted); }

  /* ---------- 門市 ---------- */
  .storegrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .storegrid .store { flex: 0 1 calc((100% - 40px) / 3); min-width: 0; }
  .founder.no-photo { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
  .listing { margin-top: 36px; }
  .listing p { font-weight: 700; margin-bottom: 12px; color: var(--text); }
  .listing-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .listing-links a { border: 1px solid var(--b); color: var(--b-text); border-radius: 999px; padding: 10px 22px; font-size: 15px; font-weight: 700; background: #fff; }
  .listing-links a:hover { background: var(--b); color: var(--b-on); }
  .phone-pop a { border-left: 5px solid var(--b); }
  .phone-pop b { color: var(--b-text); }
  .phone-pop { position: fixed; right: 80px; bottom: 16px; z-index: 61; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 8px; min-width: 240px; }
  .phone-pop a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; font-size: 15px; }
  .phone-pop a:hover { background: var(--cream); }
  .phone-pop b { font-variant-numeric: tabular-nums; }
  .pop-title { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px 4px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  .store { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
  /* 品牌色：有巢氏＝綠、永義＝黃 */
  .store--u { --b: #1f7a3a; --b-on: #fff; --b-text: #1a6431; --b-soft: #e8f3ea; }
  .store--y { --b: #f2b705; --b-on: #29251f; --b-text: #7a5a00; --b-soft: #fff6d6; }
  .store-top { background: var(--b); color: var(--b-on); padding: 22px 24px; }
  .store-top h3 { font-family: "Noto Serif TC", serif; font-size: 22px; line-height: 1.4; }
  .store-top .h-brand { display: block; font-family: "Noto Sans TC", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; opacity: .9; margin-bottom: 2px; }
  .store-top .note { font-size: 15px; font-weight: 700; color: inherit; opacity: .88; margin-top: 4px; }
  .store-photo { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 581; object-fit: cover; }
  .store-body { padding: 20px 24px; flex: 1; font-size: 15px; display: flex; flex-direction: column; }
  .store-body .links { margin-top: auto; padding-top: 14px; }
  .row { display: flex; gap: 10px; margin-bottom: 6px; }
  .row .k { flex: 0 0 40px; color: var(--muted); font-size: 14px; padding-top: 1px; }
  .staff { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
  .staff span { background: var(--b-soft); border: 1px solid var(--b); border-radius: 999px; padding: 3px 14px; font-weight: 700; font-size: 15px; }
  .staff small { color: var(--b-text); font-weight: 500; font-size: 12px; margin-right: 6px; }
  .links { display: flex; gap: 8px; margin-top: 14px; }
  .links a { flex: 1; min-height: 42px; text-align: center; font-size: 14px; font-weight: 700; padding: 8px 6px; border: 1px solid var(--b); color: var(--b-text); border-radius: 8px; }
  .links a:hover { background: var(--b); color: var(--b-on); }
  .actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .actions a { text-align: center; padding: 14px 8px; font-weight: 700; font-size: 14px; color: var(--dark); }
  .actions a:first-child { border-right: 1px solid var(--line); }
  .actions a:hover { background: var(--b-soft); color: var(--b-text); }
  .areas { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
  .areas span { border: 1px solid var(--gold); color: var(--gold-deep); border-radius: 999px; padding: 2px 16px; font-size: 14px; }

  /* ---------- 人才招募 ---------- */
  .join { background: var(--sand); text-align: center; }
  .join p { font-size: 17px; line-height: 2.1; margin-bottom: 30px; }
  .ladder { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; font-weight: 700; }
  .ladder span { background: #fff; border-radius: 999px; padding: 6px 18px; font-size: 15px; }
  .ladder i { font-style: normal; color: var(--gold-deep); }

  /* ---------- 頁尾 ---------- */
  footer { background: #26231e; color: #f5ebdb; padding: 56px 0 28px; font-size: 14px; }
  .foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
  footer .brand { color: #fff; }
  footer .brand-mark { background: var(--dark-2); border: 1px solid #665842; }
  .foot-links a { padding: 2px 0; }
  .foot p { line-height: 2; margin-top: 14px; opacity: .85; }
  .foot-links { display: flex; flex-direction: column; gap: 6px; }
  .foot-links a:hover { color: var(--gold); }
  .copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 12px; opacity: .6; }

  /* ---------- 右下角浮動按鈕 ---------- */
  .float { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
  .float .f-line { background: #06c755; }
  .float .f-tel { background: var(--dark); font-size: 22px; border: 0; cursor: pointer; }
  .float a, .float button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

  /* ---------- 手機版 ---------- */
  @media (max-width: 960px) {
    .storegrid .store { flex-basis: calc((100% - 20px) / 2); }
    .culture { grid-template-columns: repeat(2, 1fr); }
    .founder { grid-template-columns: 1fr; gap: 32px; }
    .founder-photo { max-width: 260px; width: 100%; margin: 0 auto; }
  }
  @media (max-width: 720px) {
    section { padding: 64px 0; }
    .menu-btn { display: grid; place-items: center; }
    .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fffaf2; border-bottom: 1px solid var(--line); }
    .menu.open { display: flex; }
    .menu a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
    .hero { padding: 80px 0 72px; }
    .stats { gap: 32px; }
    .share-list, .services { grid-template-columns: 1fr; }
    .storegrid .store { flex-basis: 100%; }
    .phone-pop { right: 16px; bottom: 82px; left: 16px; }
    footer { padding-bottom: 96px; }
    .prose { font-size: 16px; }
  }

/* ============ 多頁版新增 ============ */
.menu a[aria-current="page"] { color: var(--gold-deep); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold); }
.page-hero {
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.55), transparent 45%), linear-gradient(120deg, #e8d5b5, #fff8eb);
  text-align: center; padding: 72px 0 64px;
}
.page-hero h1 { font-family: "Noto Serif TC", serif; font-size: clamp(30px, 5vw, 46px); font-weight: 900; color: var(--dark); line-height: 1.4; }
.page-hero p { margin-top: 10px; color: var(--muted); }
.page-hero .kicker { margin-bottom: 6px; }
.svc-link { display: block; transition: transform .15s, box-shadow .15s; }
.svc-link:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(41,37,31,.14); }
.svc .more { display: inline-block; margin-top: 12px; color: var(--gold-deep); font-weight: 700; font-size: 14px; }
.minigrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.mini { flex: 1 1 180px; max-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.mini-top { background: var(--b); color: var(--b-on); padding: 16px 18px; flex: 1; }
.mini-top b { display: block; font-family: "Noto Serif TC", serif; font-size: 22px; line-height: 1.3; }
.mini-top span { display: block; font-size: 13px; opacity: .9; margin-top: 4px; line-height: 1.5; }
.mini-body { display: grid; }
.mini-body a { text-align: center; padding: 12px 8px; font-weight: 700; font-size: 14px; }
.mini-tel { color: var(--b-text); border-bottom: 1px solid var(--line); }
.mini-more { color: var(--text); }
.mini-body a:hover { background: var(--b-soft); color: var(--b-text); }
.center-btn { margin-top: 36px; text-align: center; }
.teaser { text-align: center; }
.teaser blockquote { font-family: "Noto Serif TC", serif; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.7; color: var(--gold-soft); max-width: 720px; margin: 0 auto 28px; }
.cta-band { background: var(--sand); text-align: center; padding: 64px 0; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin-bottom: 24px; }
@media (max-width: 720px) {
  .menu a[aria-current="page"] { box-shadow: none; background: var(--cream); }
  .minigrid { gap: 12px; }
  .mini { flex: 0 1 calc(50% - 6px); max-width: none; }
  .page-hero { padding: 52px 0 44px; }
}


/* Facebook 圖示：藍底白色 f */
.fb-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: #1877f2; color: #fff; font: 900 15px/1 Arial, Helvetica, sans-serif; padding-bottom: 2px; flex: none; }
.links a, .mini-more { display: flex; align-items: center; justify-content: center; }

/* 鍵盤操作時的焦點框 */
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* 斷行：標題與短句平均分行，避免最後一兩個字掉到下一行 */
h1, h2, h3, blockquote, .hero .sub, .page-hero p, .section-head p, .cta-band p, .join p, .culture .card p { text-wrap: balance; }
.prose p, .founder p, .steps span, .flow-card > p, .info-wrap > p, .svc p, .share-list span { text-wrap: pretty; }
.nb { white-space: nowrap; }

/* 服務項目頁：買房／賣房流程 */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.flow-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow); }
.flow-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; }
.flow-card h2 { font-size: 26px; margin-bottom: 6px; }
.flow-card > p { color: var(--muted); margin-bottom: 18px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: var(--gold-soft); display: grid; place-items: center; font-size: 14px; font-weight: 700; margin-top: 1px; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }
.info-wrap { max-width: 720px; margin: 0 auto; }
.info-wrap .icon { margin: 0 auto 14px; width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 26px; }
.info-wrap > p { color: var(--muted); margin-bottom: 28px; }
@media (max-width: 720px) {
  .flow { grid-template-columns: 1fr; }
  .flow-card { padding: 26px 22px; }
  .ladder { gap: 6px; }
  .ladder span { padding: 5px 11px; font-size: 13px; }
  .ladder i { font-size: 12px; }
}
@media (max-width: 360px) {
  .ladder { gap: 4px; }
  .ladder span { padding: 4px 8px; font-size: 12px; }
}

/* ================= 美編升級 ================= */
/* 線條圖示 */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc .icon .ic, .flow-card .icon .ic, .info-wrap .icon .ic { width: 26px; height: 26px; color: var(--gold-deep); stroke-width: 1.6; }
.actions a, .mini-tel, .links a { display: flex; align-items: center; justify-content: center; gap: 6px; }
.links a .ic { width: 17px; height: 17px; }
.float .f-tel .ic { width: 24px; height: 24px; stroke: var(--gold-soft); }

/* 首頁主視覺：左文右圖 */
.hero { text-align: left; padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.hero .btns, .hero .stats { justify-content: flex-start; }
.hero .stats { margin-top: 48px; gap: 44px; }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: 22px; z-index: 0; }
.hero-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 24px 60px rgba(41,37,31,.22); }
.hero-badge { position: absolute; z-index: 2; left: -26px; bottom: 28px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 18px 12px 14px; box-shadow: 0 14px 34px rgba(41,37,31,.18); }
.hero-badge .ic { width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: var(--dark); stroke: var(--gold-soft); stroke-width: 1.7; }
.hero-badge small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.hero-badge b { display: block; font-family: "Noto Serif TC", serif; font-size: 20px; line-height: 1.3; color: var(--dark); }

/* 榮譽時刻 */
.honors-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.honors-photo img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); border: 1px solid #665842; }
.honors-text h2 { color: #fff; }
.honors-text > p { font-size: 18px; margin-bottom: 22px; }
.honor-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.honor-list li { display: flex; align-items: center; gap: 10px; color: #f5ebdb; font-weight: 700; }
.honor-list li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329251f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

/* 照片牆 */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; text-align: left; }
.gallery-head h2 { margin-bottom: 0; }
.gal-nav { display: flex; gap: 10px; }
.gal-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--dark); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.gal-nav button:hover { background: var(--dark); color: var(--gold-soft); }
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(20px, calc((100vw - 1060px) / 2)); padding: 4px max(20px, calc((100vw - 1060px) / 2)) 20px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gal-item { position: relative; flex: 0 0 min(560px, 84vw); scroll-snap-align: start; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.gal-item img { display: block; width: 100%; height: auto; aspect-ratio: 1400 / 581; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 14px; background: linear-gradient(transparent, rgba(20,17,13,.85)); color: #fff; display: flex; align-items: baseline; gap: 10px; }
.gal-cap::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--b); align-self: center; }
.gal-cap b { font-family: "Noto Serif TC", serif; font-size: 20px; }
.gal-cap small { font-size: 13px; opacity: .85; }

/* 滑過卡片微微浮起 */
.store, .mini, .flow-card { transition: transform .2s, box-shadow .2s; }
.store:hover, .mini:hover, .flow-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(41,37,31,.14); }

/* 捲動浮現 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { text-align: center; padding: 64px 0 72px; }
  .hero-grid, .honors-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .btns, .hero .stats { justify-content: center; }
  .hero-photo { max-width: 680px; margin: 0 auto; width: calc(100% - 18px); }
  .hero-badge { position: relative; left: auto; bottom: auto; width: max-content; margin: -26px auto 0; text-align: left; }
  .honors-text { text-align: center; }
  .honor-list { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .hero-photo::before { inset: 12px -12px -12px 12px; }
  .gal-nav { display: none; }
  .gallery-head { justify-content: center; text-align: center; }
  .gal-cap { flex-direction: column; gap: 0; padding: 32px 16px 12px; }
  .gal-cap::before { display: none; }
  .gal-cap b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .store:hover, .mini:hover, .flow-card:hover, .gal-item:hover img { transform: none; }
}

/* Logo */
.brand-logo { display: block; height: 40px; width: auto; }
.foot-logo { display: block; height: 52px; width: auto; }
.about-logo { display: block; width: min(340px, 78%); height: auto; margin: 0 auto 44px; border-radius: 22px; box-shadow: 0 20px 50px rgba(41,37,31,.16); }
@media (max-width: 720px) {
  .brand-logo { height: 34px; }
  .foot-logo { height: 44px; }
}

/* ================= 動態與美學調整 ================= */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

/* 頁首：捲動後浮起 */
header { transition: box-shadow .3s, background .3s; }
header.scrolled { box-shadow: 0 6px 24px rgba(41,37,31,.08); background: rgba(255, 250, 242, .97); }
.menu a { position: relative; transition: color .2s; }
@media (min-width: 721px) {
  .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .menu a:hover::after { transform: scaleX(1); }
  .menu a[aria-current="page"] { box-shadow: none; }
  .menu a[aria-current="page"]::after { transform: scaleX(1); }
}

/* 金色筆刷圓圈（取自 Logo）當背景裝飾 */
.hero, .page-hero, .teaser { position: relative; overflow: hidden; }
.hero > .wrap, .page-hero > .wrap, .teaser > .wrap { position: relative; z-index: 1; }
.ring { position: absolute; pointer-events: none; user-select: none; height: auto; }
.hero .ring { width: min(620px, 70vw); left: -140px; top: 50%; translate: 0 -50%; opacity: .32; }
.page-hero .ring { width: 360px; right: -60px; top: 50%; translate: 0 -50%; opacity: .35; }
.teaser .ring { width: 460px; left: 50%; top: 50%; translate: -50% -50%; opacity: .14; }
@media (max-width: 900px) {
  .hero .ring { width: 420px; left: 50%; top: 22%; translate: -50% -50%; opacity: .22; }
  .page-hero .ring { width: 240px; right: -70px; opacity: .3; }
}

/* 區塊標題下的金色短線 */
.section-head h2::after, .page-hero h1::after, .honors-text h2::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--gold); margin: 16px auto 0;
}
.gallery-head h2::after, .honors-text h2::after { margin-left: 0; }
@media (max-width: 900px) { .honors-text h2::after { margin-left: auto; } }
@media (max-width: 720px) { .gallery-head h2::after { margin-left: auto; } }
.section-head h2 + p, .section-head h2 { margin-bottom: 14px; }

/* 深色區塊：金色光暈 */
.honors { background: radial-gradient(circle at 18% 50%, rgba(184,152,100,.20), transparent 55%), var(--dark); }
#founder { background: radial-gradient(circle at 85% 20%, rgba(184,152,100,.14), transparent 50%), var(--dark); }

/* 按鈕：滑過時光澤掃過、箭頭往右 */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.svc .more { transition: letter-spacing .3s var(--ease); }
.svc-link:hover .more { letter-spacing: .06em; }

/* 圖示格：滑過時變深色 */
.svc .icon, .flow-card .icon { transition: background .3s, color .3s; }
.svc-link:hover .icon, .flow-card:hover .icon { background: var(--dark); }
.svc-link:hover .icon .ic, .flow-card:hover .icon .ic { color: var(--gold-soft); }

/* 照片：滑過時微微放大 */
.store-photo { transition: transform .6s var(--ease); }
.store { isolation: isolate; }
.store:hover .store-photo { transform: scale(1.03); }

/* ---------- 進場動畫（只在允許動態時） ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ringIn { from { opacity: 0; rotate: -25deg; scale: .9; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(14px) scale(.92); } 70% { transform: translateY(-3px) scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes frameIn { from { opacity: 0; inset: 0; } }

.motion .hero-text > * { animation: fadeUp .9s var(--ease) both; }
.motion .hero-text > :nth-child(1) { animation-delay: .05s; }
.motion .hero-text > :nth-child(2) { animation-delay: .15s; }
.motion .hero-text > :nth-child(3) { animation-delay: .3s; }
.motion .hero-text > :nth-child(4) { animation-delay: .42s; }
.motion .hero-text > :nth-child(5) { animation-delay: .55s; }
.motion .hero-photo img { animation: slideIn 1.1s .25s var(--ease) both; }
.motion .hero-photo::before { animation: frameIn 1s .7s var(--ease) both; }
.motion .hero-badge { animation: pop .8s 1s var(--ease) both, floaty 5s 2s ease-in-out infinite; }
.motion .ring { animation: ringIn 1.6s .1s var(--ease) both; }
.motion .page-hero .wrap > * { animation: fadeUp .8s var(--ease) both; }
.motion .page-hero .wrap > :nth-child(2) { animation-delay: .1s; }
.motion .page-hero .wrap > :nth-child(3) { animation-delay: .2s; }
.motion .page-hero .wrap > :nth-child(4) { animation-delay: .3s; }

/* 標題金線：浮現時從中間畫開 */
.reveal h2::after, h2.reveal::after { transform: scaleX(0); transition: transform .8s .35s var(--ease); }
.reveal.in h2::after, h2.reveal.in::after { transform: scaleX(1); }
.motion .page-hero h1::after { animation: fadeIn .1s both; transform-origin: center; }

/* 榮譽照片：浮現時由大縮回 */
.honors-photo { overflow: hidden; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.honors-photo img { box-shadow: none; }
.honors-photo.reveal img { transform: scale(1.08); transition: transform 1.4s var(--ease); }
.honors-photo.reveal.in img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn::after, .menu a::after { transition: none; }
  .store:hover .store-photo { transform: none; }
}

/* 首頁數字：做成一張半透明資訊卡 */
.hero .stats { display: inline-grid; grid-template-columns: repeat(3, auto); gap: 0; margin-top: 44px; padding: 18px 6px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(184,152,100,.35); border-radius: 18px; box-shadow: 0 12px 30px rgba(41,37,31,.08); }
.hero .stats > div { position: relative; padding: 0 26px; text-align: left; }
.hero .stats > div + div::before { content: ""; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px; background: linear-gradient(transparent, var(--gold), transparent); }
.hero .stats b { display: inline; font-size: 40px; line-height: 1; }
.hero .stats em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--gold-deep); margin-left: 4px; }
.hero .stats span { display: block; margin-top: 8px; font-size: 13px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  .hero .stats > div { text-align: center; }
}
@media (max-width: 480px) {
  .hero .stats { padding: 14px 2px; }
  .hero .stats > div { padding: 0 12px; }
  .hero .stats b { font-size: 32px; }
  .hero .stats em { font-size: 13px; margin-left: 2px; }
  .hero .stats span { font-size: 12px; letter-spacing: 0; }
}

/* ================= 進階動態 ================= */
/* 頁首捲動進度條 */
header { position: sticky; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft), var(--gold)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* 主標題逐字升起 */
.hero h1.split { animation: none !important; }
.hero h1 .ch { display: inline-block; animation: charUp .9s calc(.12s + var(--i) * .08s) var(--ease) both; }
@keyframes charUp { from { opacity: 0; transform: translateY(.55em) rotate(6deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero h1.split .gold { display: inline-block; animation: fadeUp .9s .5s var(--ease) both; }

/* 「領航未來」金色流光 */
.hero h1 .gold {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold-deep) 38%, #f3dca6 50%, var(--gold-deep) 62%, var(--gold-deep) 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.motion .hero h1 .gold { animation: fadeUp .9s .5s var(--ease) both, shimmer 5s 1.6s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }

/* 主視覺照片：緩慢推近 + 立體轉動 */
.hero-photo { transition: transform .4s var(--ease); transform-style: preserve-3d; will-change: transform; }
.hero-img { position: relative; z-index: 1; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(41,37,31,.22); }
.hero-img img { box-shadow: none; border-radius: 0; }
.motion .hero-photo img { animation: kenburns 20s ease-in-out infinite alternate; }
.motion .hero-img { animation: slideIn 1.1s .25s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
.hero-badge { transition: translate .4s var(--ease); }

/* 跑馬燈橫幅 */
.marquee { background: var(--dark); color: var(--gold-soft); overflow: hidden; padding: 18px 0; border-top: 1px solid #3d362d; border-bottom: 1px solid #3d362d; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 28px; font-family: "Noto Serif TC", serif; font-size: 22px; font-weight: 600; letter-spacing: .12em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--gold); font-size: 14px; }
.motion .marquee-track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }
@media (max-width: 720px) { .marquee { padding: 14px 0; } .marquee-track { font-size: 18px; gap: 20px; } }

/* 獎項圖：每隔幾秒一道光澤掃過 */
.honors-photo { position: relative; }
.honors-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255,240,200,.35) 50%, transparent 60%); transform: translateX(-100%); pointer-events: none; }
.motion .honors-photo.in::after, .motion .honors-photo:not(.reveal)::after { animation: sheen 6s 1.2s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(-100%); } 30%, 100% { transform: translateX(100%); } }

/* 卡片立體傾斜時的陰影 */
.store, .mini, .svc-link, .flow-card, .culture .card { will-change: transform; }
.culture .card { transition: transform .5s var(--ease), box-shadow .3s, border-color .3s; }
.culture .card:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.35); }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .gold { background: none; color: var(--gold-deep); }
}

/* ================= 專業化調整 ================= */
/* 頁首：右側聯絡按鈕 */
.nav { gap: 28px; }
.menu { margin-left: auto; }
.nav-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 700; transition: background .2s; }
.nav-cta .ic { width: 16px; height: 16px; stroke: var(--gold-soft); }
.nav-cta:hover { background: #3a332a; }
@media (max-width: 720px) { .nav-cta { display: none; } .menu-btn { margin-left: auto; } }

/* 按鈕：圓角改為較方正，更穩重 */
.btn { border-radius: 10px; padding: 14px 26px; }

/* 頁尾：三欄資訊 */
footer { padding: 64px 0 28px; }
.foot { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr; gap: 48px; }
.foot h4 { font-size: 14px; letter-spacing: .15em; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.foot p { margin-top: 16px; }
.foot-sub { font-size: 13px; opacity: .6 !important; }
.foot-links { gap: 4px; }
.foot-stores { list-style: none; display: grid; gap: 2px; }
.foot-stores a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-stores a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--b); flex: none; }
.foot-stores span { flex: 1; }
.foot-stores b { font-weight: 500; font-variant-numeric: tabular-nums; color: #f5ebdb; }
.foot-stores a:hover b { color: var(--gold); }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; gap: 32px; } }

/* ================= 手機版優化 ================= */
.brand { padding: 5px 0; }
@media (max-width: 720px) {
  /* 頁尾：右下角電話按鈕不擋住版權文字；導覽連結加大好點 */
  footer { padding-bottom: 104px; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .foot-links a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .foot-stores a { padding: 11px 0; }

  /* 首頁服務卡：改成左圖右文，比較緊湊 */
  .services { gap: 14px; }
  .svc { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 22px 20px; }
  .svc .icon { grid-row: span 3; margin-bottom: 0; }
  .svc h3 { margin-bottom: 2px; }
  .svc .more { margin-top: 8px; }
}

/* 手機（沒有滑鼠）專屬動態：讓老闆用手機也看得到 */
@media (hover: none) {
  /* 團隊照緩慢左右擺動，有立體感 */
  .motion .hero-photo { animation: sway 7s ease-in-out 1.6s infinite alternate; }
  @keyframes sway {
    from { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg); }
    to { transform: perspective(1000px) rotateY(5deg) rotateX(-2deg); }
  }
  /* 捲動浮現：卡片從下方翻起來 */
  .motion .reveal { transform: perspective(800px) rotateX(16deg) translateY(36px); transform-origin: 50% 0; }
  .motion .reveal.in { transform: none; }
  /* 手指按下去時的回饋 */
  .store, .mini, .svc-link, .flow-card, .gal-item, .btn, .nav-cta, .listing-links a, .actions a, .links a { -webkit-tap-highlight-color: transparent; }
  .store:active, .mini:active, .svc-link:active, .flow-card:active, .gal-item:active { transform: scale(.98); transition: transform .12s; }
  .btn:active, .listing-links a:active, .float a:active, .float button:active { transform: scale(.95); transition: transform .1s; }
}

/* 門市卡片浮現時，一道光澤掃過（手機、電腦都看得到） */
.store::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; z-index: 2; }
.store { position: relative; }
.motion .store.reveal.in::after { animation: cardSheen 1.3s .5s ease-out both; }
@keyframes cardSheen { to { transform: translateX(110%); } }

@media (prefers-reduced-motion: reduce) {
  .hero-photo, .store::after { animation: none !important; }
}

/* ================= 房市情報 ================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 22px; box-shadow: var(--shadow); color: var(--text); position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .3s, border-color .3s; }
.news-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(41,37,31,.12); border-color: var(--gold); }
.news-card:hover::before { transform: scaleY(1); }
.news-card h3 { font-family: "Noto Serif TC", serif; font-size: 19px; line-height: 1.55; color: var(--dark); margin: 12px 0 10px; text-wrap: pretty; }
.news-card p { font-size: 14.5px; color: var(--muted); line-height: 1.8; flex: 1; }
.news-more { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--gold-deep); transition: letter-spacing .3s var(--ease); }
.news-card:hover .news-more { letter-spacing: .06em; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.news-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--dark); color: var(--gold-soft); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.news-sec .center-btn { margin-bottom: 56px; }

/* 臉書社團橫幅 */
.group-band { display: flex; align-items: center; gap: 32px; justify-content: space-between; text-align: left; background: radial-gradient(circle at 90% 10%, rgba(184,152,100,.22), transparent 55%), var(--dark); color: #f3ead9; border-radius: 20px; padding: 36px 40px; box-shadow: 0 24px 60px rgba(41,37,31,.18); }
.group-band .kicker { color: var(--gold); }
.group-band h3 { font-family: "Noto Serif TC", serif; font-size: clamp(22px, 3vw, 28px); color: #fff; margin-bottom: 8px; }
.group-band p { color: #d9ccb6; font-size: 15px; text-wrap: balance; }
.group-side { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.group-num { text-align: center; line-height: 1.2; }
.group-num b { display: block; font-family: "Noto Serif TC", serif; font-size: 44px; color: var(--gold-soft); }
.group-num span { font-size: 13px; color: #d9ccb6; letter-spacing: .1em; }
.btn-fb { display: inline-flex; align-items: center; gap: 10px; background: #1877f2; color: #fff; }
.btn-fb:hover { background: #0f66d6; }
.btn-fb .fb-icon { background: #fff; color: #1877f2; }

/* 文章頁 */
.article-head { padding: 56px 0 8px; background: var(--cream); }
.article-head .wrap, .article-sec .wrap { max-width: 760px; }
.back-link { display: inline-block; font-size: 14px; font-weight: 700; color: var(--gold-deep); margin-bottom: 18px; }
.article-head h1 { font-family: "Noto Serif TC", serif; font-size: clamp(26px, 4.4vw, 38px); font-weight: 900; line-height: 1.45; color: var(--dark); margin: 14px 0 22px; text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.byline span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.byline b { display: block; font-size: 15px; color: var(--dark); }
.article-sec { padding: 40px 0 80px; background: var(--cream); }
.article { font-size: 17px; line-height: 2; color: var(--text); }
.article p { margin-bottom: 1.1em; text-wrap: pretty; }
.article h2 { font-family: "Noto Serif TC", serif; font-size: 22px; color: var(--dark); line-height: 1.5; margin: 1.8em 0 .7em; padding-left: 14px; border-left: 4px solid var(--gold); }
.article ul { margin: 0 0 1.3em; padding: 18px 22px 18px 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.article li { margin: 4px 0; }
.article li::marker { color: var(--gold); }
.note-box { font-size: 14.5px; line-height: 1.85; color: #5b4a30; background: #f6ecd9; border-radius: 10px; padding: 14px 18px; }
.ask-box { margin: 40px 0 28px; padding: 28px; border-radius: 16px; background: var(--dark); color: #f3ead9; text-align: center; }
.ask-box .kicker { color: var(--gold); margin-bottom: 8px; }
.article .ask-q { font-family: "Noto Serif TC", serif; font-size: 19px; line-height: 1.7; color: #fff; margin-bottom: 20px; text-wrap: balance; }
.origin { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.origin a { color: var(--gold-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-card { padding: 20px 20px 18px; }
  .news-card h3 { font-size: 18px; }
  .group-band { flex-direction: column; text-align: center; padding: 30px 22px; gap: 20px; }
  .article-head { padding: 36px 0 4px; }
  .article { font-size: 16.5px; line-height: 1.95; }
  .article h2 { font-size: 20px; }
  .article ul { padding: 14px 16px 14px 34px; }
  .ask-box { padding: 24px 18px; }
  .article .ask-q { font-size: 17.5px; }
}
/* 導覽列多一項：中等寬度時收緊間距、藏起右上按鈕 */
@media (min-width: 721px) and (max-width: 1000px) {
  .menu { gap: 18px; }
  .nav-cta { display: none; }
}

/* 照片牆：只能左右滑，不會在框內上下晃動 */
.gallery { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }

/* 多個社團橫幅上下排列 */
.group-bands { display: grid; gap: 18px; }
.group-band h3 small { display: block; font-family: "Noto Sans TC", sans-serif; font-size: 14px; font-weight: 500; color: var(--gold); letter-spacing: .08em; margin-top: 6px; }

/* ===== 賀成交跑馬燈（首頁，資料在 deals.py） ===== */
.deals { display: flex; align-items: stretch; background: #fffaf0; border-top: 1px solid #ecdcbc; border-bottom: 1px solid #ecdcbc; overflow: hidden; }
.deals-label { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 22px; background: #b3261e; color: #fff; text-align: center; position: relative; z-index: 1; box-shadow: 8px 0 18px rgba(255,250,240,.95); }
.deals-label b { font-family: "Noto Serif TC", serif; font-size: 20px; letter-spacing: .12em; line-height: 1.2; }
.deals-label span { font-size: 11px; letter-spacing: .06em; opacity: .9; white-space: nowrap; }
.deals-view { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.deals-track { display: flex; width: max-content; }
.deals-run { display: flex; gap: 14px; padding-right: 14px; padding-block: 12px; }
.motion .deals-track { animation: deals-scroll var(--dur, 120s) linear infinite; }
@keyframes deals-scroll { to { transform: translateX(-50%); } }
.deal-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; background: #fff; border: 1px solid #ecdcbc; border-radius: 999px; padding: 6px 14px 6px 6px; color: var(--dark); font-size: 15px; cursor: default; user-select: none; }
.deal-store { background: var(--b); color: var(--b-on); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.deal-names { font-weight: 600; }
.deal-item time { color: var(--gold-deep); font-size: 13px; }
@media (max-width: 720px) {
  .deals-label { padding: 10px 12px; }
  .deals-label b { font-size: 16px; }
  .deals-label span { font-size: 10px; }
  .deal-item { font-size: 14px; }
}
/* 不想要動畫的人：改成可以手動左右滑 */
@media (prefers-reduced-motion: reduce) {
  .deals-view { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
  .deals-run[aria-hidden] { display: none; }
}

/* ===== 2026-11 全站檢查修正 ===== */
/* 淡入動畫播放前，卡片會稍微超出螢幕右邊；鎖住整頁不能左右拖動 */
html { overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
/* 手機上的小字與小按鈕：放大到好讀、好點 */
@media (max-width: 720px) { .deals-label span { font-size: 11px; } }
.back-link { padding: 10px 0; margin-bottom: 8px; }
.origin { line-height: 2; }
.origin a { display: inline-block; padding: 4px 0; }

/* 賀成交跑馬燈：捲到之後釘在頁首下方，跟著頁面一起往下 */
.deals { position: sticky; top: var(--hdr, 64px); z-index: 40; transition: box-shadow .3s; }
.deals.stuck { box-shadow: 0 8px 22px rgba(41,37,31,.12); }
@media (max-width: 720px) {
  .deals-run { padding-block: 8px; }
  .deals-label { padding: 6px 10px; flex-direction: row; align-items: center; gap: 6px; }
  .deals-label span { display: none; }
  .deal-item { padding: 4px 12px 4px 4px; font-size: 13px; }
  .deal-store { font-size: 12px; padding: 3px 8px; }
}

/* ===== 人才招募：線上應徵表單 ===== */
.apply-sec { background: #fff; }
.apply-form { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; background: #fffaf2; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 18px 44px rgba(41,37,31,.08); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-field { display: grid; gap: 6px; font-size: 15px; font-weight: 700; color: var(--dark); }
.f-field em { color: #b3261e; font-style: normal; }
.f-field input, .f-field select, .f-field textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--dark); background: #fff; border: 1px solid #d9ccb6; border-radius: 12px; padding: 12px 14px; width: 100%; min-height: 48px; }
.f-field textarea { resize: vertical; min-height: 110px; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(184,152,100,.25); }
.f-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.6; cursor: pointer; }
.f-agree input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--dark); }
.f-submit { justify-self: center; min-width: 220px; justify-content: center; border: 0; cursor: pointer; font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) {
  .apply-form { padding: 22px 18px; }
  .f-row { grid-template-columns: 1fr; }
  .f-submit { width: 100%; }
}

/* ===== 估價／買屋需求表單（沿用應徵表單樣式） ===== */
.apply-sec--alt { background: var(--cream, #fbf5ea); }
.flow-btns { margin-top: 22px; flex-wrap: wrap; }
.f-checks { border: 0; padding: 0; margin: 0; }
.f-checks legend { font-size: 15px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.f-checks > div { display: flex; flex-wrap: wrap; gap: 10px; }
.f-chip { position: relative; cursor: pointer; }
.f-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.f-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid #d9ccb6; border-radius: 999px; background: #fff; font-weight: 500; font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.f-chip input:checked + span { background: var(--dark); color: #fff; border-color: var(--dark); }
.f-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(184,152,100,.4); }

/* 首頁快速入口：免費估價／房貸試算／買屋需求 */
.quick-ctas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.quick-ctas a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--dark); color: #f3ead9; text-align: left; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.quick-ctas a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(41,37,31,.2); }
.quick-ctas b { font-family: "Noto Serif TC", serif; font-size: 20px; color: var(--gold-soft); }
.quick-ctas b::after { content: " →"; }
.quick-ctas span { font-size: 14px; color: #d9ccb6; }
@media (max-width: 720px) { .quick-ctas { grid-template-columns: 1fr; } }

/* ===== 房貸試算 ===== */
.loan { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
.loan-in { display: grid; gap: 18px; background: #fffaf2; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.loan-in input[type=range] { width: 100%; accent-color: var(--dark); min-height: 32px; padding: 0; border: 0; background: none; }
.loan-val { font-size: 15px; color: var(--gold-deep); }
.loan-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chip-btn { font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--dark); background: #fff; color: var(--dark); cursor: pointer; }
.f-chip-btn.on, .f-chip-btn:hover { background: var(--dark); color: #fff; }
.loan-out { background: var(--dark); color: #f3ead9; border-radius: 20px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.loan-k { color: var(--gold); letter-spacing: .15em; font-size: 13px; font-weight: 700; }
.loan-big { font-family: "Noto Serif TC", serif; font-size: clamp(40px, 7vw, 56px); color: var(--gold-soft); line-height: 1.1; }
.loan-big small { font-size: 18px; margin-left: 6px; color: #d9ccb6; }
.loan-grace { font-size: 15px; color: #d9ccb6; }
.loan-grace b { color: #fff; }
.loan-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0; }
.loan-sum div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 12px 14px; }
.loan-sum dt { font-size: 13px; color: #d9ccb6; }
.loan-sum dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: #fff; }
.loan-note { font-size: 13px; color: #b9ab93; line-height: 1.7; }
.loan-out .btn-dark { background: var(--gold-soft); color: var(--dark); }
@media (max-width: 820px) { .loan { grid-template-columns: 1fr; } .loan-in, .loan-out { padding: 22px 18px; } }

/* ===== 客戶怎麼說（Google 評論） ===== */
.reviews-sec { background: #fff; }
.rv-total { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rv-total b { font-family: "Noto Serif TC", serif; font-size: 34px; color: var(--gold-deep); }
.rv-stars { color: #e3a008; letter-spacing: 2px; }
.rv-grid { columns: 3 280px; column-gap: 18px; }
.rv-card { break-inside: avoid; margin: 0 0 18px; background: #fffaf2; border: 1px solid var(--line); border-top: 4px solid var(--b); border-radius: 16px; padding: 20px; display: grid; gap: 12px; }
.rv-card blockquote { margin: 0; font-size: 15px; line-height: 1.8; color: var(--dark); }
.rv-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.rv-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 720px) {
  .rv-grid { columns: auto; display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .rv-card { flex: 0 0 82%; scroll-snap-align: center; margin: 0; }
}
.loan-live { display: none; }
@media (max-width: 820px) {
  .loan-live { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; bottom: 12px; margin: 4px -6px 0; padding: 12px 16px; border-radius: 14px; background: var(--dark); color: #f3ead9; font-size: 15px; box-shadow: 0 10px 24px rgba(41,37,31,.25); z-index: 2; }
  .loan-live b { color: var(--gold-soft); font-size: 20px; font-family: "Noto Serif TC", serif; }
  .loan-live a { color: var(--gold-soft); font-size: 13px; white-space: nowrap; text-decoration: none; padding: 8px 0; }
}
@media (max-width: 820px) { .loan-live { margin-right: 58px; } }

/* 買房需求：LINE 官方帳號按鈕 */
.line-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.line-cta > span { font-size: 14px; color: var(--muted); }
.btn-line { display: inline-flex; align-items: center; gap: 10px; background: #06C755; color: #fff; font-size: 17px; padding: 14px 26px; }
.btn-line:hover { background: #05b04b; }
.line-ico { font-size: 11px; font-weight: 900; letter-spacing: .02em; background: #fff; color: #06C755; border-radius: 6px; padding: 3px 6px; line-height: 1; }
/* 人才招募：直接寄履歷 */
.apply-mail { margin-top: 10px; font-size: 15px; }
.apply-mail a { color: var(--gold-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; display: inline-block; padding: 6px 0; }

/* 評論卡片：改成整齊的格子，同一列等高，名字和店名對齊在底部 */
.rv-grid { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.rv-card { margin: 0; grid-template-rows: auto 1fr auto; height: 100%; }
@media (max-width: 960px) and (min-width: 721px) { .rv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .rv-grid { display: flex; }
  .rv-card { height: auto; }
}
@media (min-width: 721px) { .rv-grid { grid-auto-rows: 1fr; } }
