/* ==========================================================
   君品8期｜松雅好生活 — 晨光暖系・輕盈希望感設計系統
   ========================================================== */
:root {
  --bg-cream: #FAF7F2;
  --bg-sand: #F3ECE1;
  --bg-white: #FFFFFF;
  --sage: #4F7259;
  --sage-dark: #3B5944;
  --sage-soft: #EBF2EC;
  --gold: #C48E4D;
  --gold-light: #DFB57E;
  --gold-soft: #FDF3E4;
  --peach-soft: #FCEFE6;
  --ink: #38332E;
  --ink-soft: #6C645C;
  --ink-muted: #968D83;
  --border: rgba(138, 114, 86, 0.14);
  --shadow-soft: 0 12px 36px rgba(130, 102, 70, 0.08);
  --shadow-hover: 0 18px 44px rgba(130, 102, 70, 0.14);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* ==========================================================
   Header / Navigation
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage-dark);
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-cta {
  background: linear-gradient(135deg, var(--sage), #638A6E);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(79, 114, 89, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(79, 114, 89, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  background: var(--bg-white);
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-weight: 500;
  padding: 6px 0;
  color: var(--ink);
}

.mobile-drawer .drawer-cta {
  background: var(--sage);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  margin-top: 6px;
}

/* ==========================================================
   Buttons & Pills
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sage), #638A6E);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 114, 89, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(79, 114, 89, 0.3);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--sage-dark);
  border: 1.5px solid rgba(79, 114, 89, 0.28);
}

.btn-secondary:hover {
  background: var(--sage-soft);
  border-color: var(--sage);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 8px;
}

.warm-pill {
  display: inline-block;
  background: var(--gold-soft);
  color: #9A692C;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
  background: linear-gradient(180deg, #FDFBF7 0%, var(--bg-cream) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.55;
}

.hero-glow-1 {
  width: 420px;
  height: 420px;
  background: #F6DFC2;
  top: -120px;
  left: -100px;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: #D9E9DC;
  bottom: -100px;
  right: -80px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
  box-shadow: 0 4px 14px rgba(130, 102, 70, 0.06);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67A876;
  box-shadow: 0 0 0 4px rgba(103, 168, 118, 0.22);
}

.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2.2rem, 4.2vw, 3.25rem);
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.accent-gold {
  color: var(--gold);
  background: linear-gradient(120deg, #B87D3B, #D6A15E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.03rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  max-width: 540px;
}

.price-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.price-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: all 0.22s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-light);
}

.price-card.featured {
  background: linear-gradient(145deg, #FFFFFF 0%, #FFF9F0 100%);
  border-color: rgba(196, 142, 77, 0.42);
}

.price-card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.plan-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--sage-dark);
  background: var(--sage-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.plan-badge.warm {
  color: #9A6628;
  background: var(--gold-soft);
}

.plan-spec {
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  margin-bottom: 4px;
}

.price-amount .num {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sage-dark);
}

.price-card.featured .price-amount .num {
  color: #AE7432;
}

.price-amount .unit {
  font-size: 1rem;
  font-weight: 600;
}

.price-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.gift-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #FFF6E9 0%, #FCEFE2 100%);
  border: 1px solid rgba(196, 142, 77, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 24px;
}

.gift-icon {
  font-size: 1.35rem;
  line-height: 1.2;
}

.gift-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
}

.gift-text strong {
  color: #8C5B21;
}

.gift-text span {
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
}

.visual-main-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.visual-main-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 54px rgba(112, 87, 58, 0.16);
  border: 6px solid #fff;
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 11px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(100, 78, 52, 0.14);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.floating-badge strong {
  font-size: 0.95rem;
  color: var(--sage-dark);
}

.floating-badge span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.badge-top {
  top: 16px;
  right: -12px;
}

.badge-bottom {
  bottom: 20px;
  left: -14px;
}

/* ==========================================================
   Trust Strip
   ========================================================== */
.trust-strip {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  text-align: center;
  padding: 4px 8px;
}

.trust-num {
  display: block;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 2px;
}

.trust-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ==========================================================
   Common Sections
   ========================================================== */
.section {
  padding: 84px 0;
  scroll-margin-top: 80px;
}

.section-head {
  margin-bottom: 44px;
}

.section-head.center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.35;
}

.section-desc {
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ==========================================================
   Section 1: AI Smart Living Demo
   ========================================================== */
.ai-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-sand) 100%);
}

.ai-demo-box {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.ai-panel-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 12px;
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.scene-btn {
  text-align: left;
  background: var(--bg-cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: inherit;
}

.scene-btn:hover {
  background: var(--gold-soft);
}

.scene-btn.active {
  background: linear-gradient(135deg, #FFF7EB, #F5EFE4);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(196, 142, 77, 0.14);
}

.scene-emoji {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.scene-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.scene-sub {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.device-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-cream);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
}

.device-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.device-icon {
  font-size: 1.35rem;
}

.device-info strong {
  display: block;
  font-size: 0.93rem;
}

.device-info span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.device-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.mini-btn:hover {
  background: var(--gold-soft);
}

.temp-readout {
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 38px;
  text-align: center;
  color: var(--sage-dark);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #D8D1C7;
  transition: 0.25s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.switch input:checked + .slider {
  background-color: var(--sage);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.ai-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-preview-img-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 270px;
}

.ai-preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.ai-overlay-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 244, 224, 0.08), rgba(56, 51, 46, 0.28));
  transition: background 0.4s ease;
  pointer-events: none;
}

.ai-live-chips {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-chip {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
}

.live-chip.on {
  background: rgba(255, 255, 255, 0.96);
  color: var(--sage-dark);
  border: 1px solid rgba(79, 114, 89, 0.35);
}

.ai-story-box {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.ai-story-badge {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--gold);
}

.ai-story-box p {
  font-size: 0.94rem;
  color: var(--ink);
}

.ai-upgrade-note {
  margin-top: auto;
  background: var(--gold-soft);
  color: #8C5B21;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 10px;
}

/* ==========================================================
   Section 2: Calculator & Dual Perspective
   ========================================================== */
.calc-section {
  background: var(--bg-cream);
}

.calc-card {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.plan-switch-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.plan-switch {
  background: var(--bg-cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s ease;
}

.plan-switch.active {
  background: var(--sage-soft);
  border-color: var(--sage);
}

.ps-title {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.ps-price {
  display: block;
  font-family: 'Noto Serif TC', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-top: 2px;
}

.slider-group {
  margin-bottom: 22px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.slider-val {
  color: var(--sage-dark);
  font-size: 1rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--sage);
  cursor: pointer;
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.pill-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-opt {
  flex: 1;
  min-width: 96px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-cream);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.pill-opt.active {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.monthly-result-box {
  background: linear-gradient(145deg, #FBF6EE 0%, #F4ECDF 100%);
  border: 1px solid rgba(196, 142, 77, 0.26);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.res-label {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.res-number {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 10px;
  color: var(--sage-dark);
}

.res-number .currency {
  font-size: 1.1rem;
  font-weight: 700;
}

#monthlyPayment {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.res-number .per-month {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.res-sub-meta {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.upgrade-tip {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: #8C5B21;
}

.saving-compare {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 20px;
}

.saving-compare h4 {
  font-size: 0.96rem;
  margin-bottom: 14px;
  color: var(--ink);
}

.compare-bar-item {
  margin-bottom: 14px;
}

.cbar-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.muted-cost {
  color: var(--ink-muted);
}

.gold-cost {
  color: var(--sage-dark);
}

.cbar-track {
  height: 10px;
  background: #E8E0D4;
  border-radius: 999px;
  overflow: hidden;
}

.cbar-fill {
  height: 100%;
  border-radius: 999px;
}

.cbar-fill.rent {
  background: #C9BEB0;
}

.cbar-fill.own {
  background: linear-gradient(90deg, var(--sage), var(--gold));
}

.disclaimer-tiny {
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* Dual Perspective */
.perspective-wrap {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 28px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.perspective-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.persp-tab {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-cream);
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.persp-tab.active {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.persp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.persp-item {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 20px;
}

.persp-ico {
  display: inline-block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.persp-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.persp-item p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ==========================================================
   Section 3: Floorplans & Specs
   ========================================================== */
.floorplan-section {
  background: var(--bg-white);
}

.fp-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.fp-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--bg-cream);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.fp-tab.active {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.fp-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.fp-img-frame {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-soft);
}

.fp-img-frame img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #fff;
}

.zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(56, 51, 46, 0.72);
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.fp-tag {
  display: inline-block;
  background: var(--gold-soft);
  color: #966224;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.fp-detail-col h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.fp-summary {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.fp-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.spec-card {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.spec-img-wrap {
  height: 175px;
  overflow: hidden;
}

.spec-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spec-body {
  padding: 18px;
}

.spec-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.spec-body h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.spec-body p {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ==========================================================
   Section 4: Lifestyle & Real Tests
   ========================================================== */
.life-section {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-sand) 100%);
}

.foodpanda-feature {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(196, 142, 77, 0.22);
  margin-bottom: 28px;
}

.fp-feat-img img {
  width: 100%;
  border-radius: var(--radius-md);
  max-height: 340px;
  object-fit: cover;
}

.fp-feat-content h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.6rem;
  line-height: 1.38;
  margin-bottom: 12px;
}

.fp-feat-content p {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.mini-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-cream);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.life-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.life-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.life-card.highlight-edu {
  border-color: rgba(196, 142, 77, 0.45);
}

.life-card-img {
  position: relative;
  height: 195px;
  overflow: hidden;
}

.life-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.time-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.life-card-body {
  padding: 20px;
  flex: 1;
}

.card-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--peach-soft);
  color: #A45C30;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.card-badge.green {
  background: var(--sage-soft);
  color: var(--sage-dark);
}

.card-badge.gold {
  background: var(--gold-soft);
  color: #966224;
}

.life-card-body h4 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.life-card-body p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.map-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.map-header h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.25rem;
}

.map-header p {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.map-img-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid var(--border);
}

.map-img-wrap img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #fdfbf7;
}

/* ==========================================================
   Section 5: Project Profile
   ========================================================== */
.info-section {
  background: var(--bg-cream);
}

.info-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  align-items: start;
}

.info-left h3 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.info-lead {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.info-building-img {
  border-radius: var(--radius-md);
  width: 100%;
}

.spec-table {
  display: flex;
  flex-direction: column;
}

.spec-table > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

.spec-table > div:last-child {
  border-bottom: none;
}

.spec-table dt {
  font-weight: 700;
  color: var(--sage-dark);
}

.spec-table dd {
  color: var(--ink);
}

/* ==========================================================
   Section 6: Contact & Multi-Team QR Placeholder
   ========================================================== */
.contact-section {
  background: linear-gradient(180deg, var(--bg-sand) 0%, #EFE4D4 100%);
}

.contact-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(124, 96, 62, 0.12);
  border: 1px solid rgba(196, 142, 77, 0.25);
}

.contact-left h2 {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  line-height: 1.38;
  margin-bottom: 12px;
}

.contact-desc {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.channel-box {
  background: var(--bg-cream);
  border: 1.5px dashed rgba(196, 142, 77, 0.45);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ch-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.ch-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.ch-value.line-val {
  color: #2D7A4D;
}

.ch-sub {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.share-family-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.copy-toast {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sage-dark);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.copy-toast.show {
  opacity: 1;
}

.qr-card {
  background: linear-gradient(160deg, #FDF9F2 0%, #F7EFE2 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.qr-frame {
  width: 210px;
  height: 210px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(130, 102, 70, 0.08);
  padding: 12px;
}

.qr-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(196, 142, 77, 0.55);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  color: var(--ink-soft);
}

.qr-icon {
  font-size: 1.8rem;
}

.qr-placeholder strong {
  font-size: 0.9rem;
  color: #9A6628;
}

.qr-placeholder small {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.qr-caption {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.qr-hours {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================
   Footer & Mobile Sticky Bar & Lightbox
   ========================================================== */
.site-footer {
  background: #EFE7DB;
  padding: 32px 0 42px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-note {
  max-width: 460px;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  gap: 8px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
}

.sticky-btn {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.sticky-btn.phone {
  background: var(--sage);
  color: #fff;
}

.sticky-btn.line {
  background: #E8F5EC;
  color: #256E3E;
}

.sticky-btn.share {
  background: var(--gold-soft);
  color: #8C5B21;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(40, 35, 30, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox img {
  max-width: min(1000px, 94vw);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.lightbox p {
  color: #F7F2EA;
  margin-top: 12px;
  font-size: 0.92rem;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .ai-demo-box,
  .calc-card,
  .fp-showcase,
  .foodpanda-feature,
  .info-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .life-cards,
  .persp-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .badge-top {
    left: 10px;
  }

  .badge-bottom {
    right: 10px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .price-cards,
  .contact-channels,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .ai-demo-box,
  .calc-card,
  .fp-showcase,
  .foodpanda-feature,
  .info-card,
  .contact-card {
    padding: 20px;
  }

  .mobile-sticky-bar {
    display: flex;
  }

  .site-footer {
    padding-bottom: 84px;
  }
}
