/* ==========================================================
   新竹好房｜買房找可彤
   視覺：深海軍藍夜空 × 夕陽金橙 × 雲層（Aero Sunset）
   ========================================================== */
:root {
  --navy: #1A233A;
  --navy-deep: #111830;
  --navy-2: #222d4a;
  --gold: #FF8C00;
  --gold-soft: #FFB347;
  --gold-pale: #FFD9A0;
  --white: #FFFFFF;
  --text: #EEF1F7;
  --muted: #A9B3C9;
  --line-green: #06C755;
  --glass: rgba(20, 28, 50, .62);
  --glass-border: rgba(255, 255, 255, .10);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold-pale); }
h1, h2, h3 { color: var(--white); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: .03em; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.rel { position: relative; z-index: 2; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap; color: var(--white);
}
.btn:hover { transform: translateY(-2px); color: var(--white); }
.btn svg { width: 22px; height: 22px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-line { background: var(--line-green); box-shadow: 0 8px 24px rgba(6, 199, 85, .35); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ff6a00); box-shadow: 0 8px 24px rgba(255, 140, 0, .35); width: 100%; }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }

/* ---------- 導覽列 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(17, 24, 48, .88); backdrop-filter: blur(14px); box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.nav-inner { height: 100%; width: min(1240px, 100% - 32px); margin: auto; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); margin-right: auto; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--navy); font-weight: 900; font-size: 1.15rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; }
.logo-text small { font-size: .72rem; color: var(--gold-soft); font-weight: 500; letter-spacing: .15em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text); padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.08); color: var(--gold-soft); }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- 天空背景（照片質感的漸層＋雲層） ---------- */
.sky { position: relative; overflow: hidden; isolation: isolate; }
.sky-sunset {
  background:
    radial-gradient(120% 60% at 70% 100%, rgba(255, 140, 0, .85) 0%, rgba(255, 106, 0, .45) 25%, transparent 60%),
    radial-gradient(80% 40% at 20% 95%, rgba(255, 179, 71, .55) 0%, transparent 60%),
    linear-gradient(180deg, #0c1226 0%, #1A233A 30%, #2d2f52 52%, #6b3f4f 70%, #c0592c 86%, #ff9a2e 100%);
}
.sky-dusk {
  background:
    radial-gradient(90% 50% at 50% 0%, rgba(255, 140, 0, .28) 0%, transparent 60%),
    linear-gradient(180deg, #3a2f45 0%, #26304d 35%, #1A233A 100%);
}
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.clouds i {
  position: absolute; border-radius: 50%; filter: blur(38px); opacity: .55;
  background: radial-gradient(closest-side, rgba(255, 210, 170, .55), rgba(120, 90, 120, .25) 60%, transparent);
  animation: drift 40s linear infinite alternate;
}
.clouds i:nth-child(1) { width: 60vw; height: 14vw; left: -10vw; top: 58%; }
.clouds i:nth-child(2) { width: 50vw; height: 10vw; right: -12vw; top: 70%; animation-duration: 55s; }
.clouds i:nth-child(3) { width: 70vw; height: 12vw; left: 20vw; top: 82%; opacity: .45; animation-duration: 65s; }
.clouds i:nth-child(4) { width: 40vw; height: 8vw; left: 5vw; top: 30%; opacity: .25; background: radial-gradient(closest-side, rgba(180, 190, 230, .35), transparent); }
.clouds.soft i { opacity: .25; }
@keyframes drift { to { transform: translateX(6vw); } }
@media (prefers-reduced-motion: reduce) { .clouds i { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 20px) 0 60px; }
.hero::after { /* 底部暗色漸層，讓文字更清楚 */
  content: ""; position: absolute; inset: auto 0 0 0; height: 35%; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 48, .55));
}
.hero-inner { width: min(1160px, 100% - 32px); margin: auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero-photo { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero-photo img { position: relative; z-index: 2; max-height: 72svh; width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.hero-photo img.framed {
  width: min(400px, 100%); height: auto; max-height: none; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%;
  border-radius: 220px 220px 24px 24px; border: 3px solid rgba(255, 179, 71, .65);
  box-shadow: 0 0 0 10px rgba(255, 140, 0, .12), 0 30px 60px rgba(0, 0, 0, .5); filter: none;
}
.halo {
  position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; bottom: 6%; z-index: 1;
  background: radial-gradient(circle, rgba(255, 179, 71, .55) 0%, rgba(255, 140, 0, .25) 40%, transparent 70%);
}
.photo-placeholder {
  position: relative; z-index: 2; width: min(340px, 80%); aspect-ratio: 4/5; border-radius: 200px 200px 24px 24px;
  border: 2px dashed rgba(255, 217, 160, .5); background: rgba(17, 24, 48, .35); backdrop-filter: blur(4px);
  flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--gold-pale);
}
.photo-placeholder span { font-size: 1.4rem; font-weight: 700; }
.photo-placeholder small { color: var(--muted); margin-top: 6px; line-height: 1.5; }
.eyebrow { color: var(--gold-soft); font-weight: 500; letter-spacing: .12em; margin: 0 0 10px; font-size: .95rem; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero h1 .nick { font-size: .42em; font-weight: 500; color: var(--gold-pale); margin-left: 14px; vertical-align: middle; letter-spacing: .2em; }
.tagline { font-size: clamp(1.25rem, 2.6vw, 1.75rem); color: var(--gold-pale); font-weight: 500; margin: 14px 0 6px; line-height: 1.5; }
.store { color: var(--text); opacity: .85; margin: 0 0 26px; font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-services { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(17, 24, 48, .45); border: 1px solid rgba(255, 217, 160, .35); color: var(--white); font-size: .95rem;
  backdrop-filter: blur(8px); transition: .2s;
}
.chip:hover { background: rgba(255, 140, 0, .25); border-color: var(--gold-soft); color: var(--white); }
.scroll-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--gold-pale);
  font-size: 1.4rem; animation: bob 2s ease-in-out infinite; z-index: 3;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }
.br-m { display: none; }

/* ---------- 區塊共用 ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.kicker { color: var(--gold); font-weight: 700; letter-spacing: .3em; font-size: .8rem; margin: 0 0 6px; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.lead { color: var(--muted); margin: 0 0 36px; max-width: 640px; font-weight: 300; }
.sub { font-size: 1.25rem; margin: 0 0 18px; color: var(--gold-pale); }
.sub.center { text-align: center; margin-top: 56px; }
.card { border-radius: var(--radius); padding: 28px; }
.glass { background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.badge-sample {
  display: inline-block; font-size: .7rem; padding: 2px 8px; border-radius: 6px; background: rgba(255, 140, 0, .18);
  color: var(--gold-soft); border: 1px solid rgba(255, 140, 0, .4); font-weight: 500; letter-spacing: .05em;
}

/* ---------- 關於我 ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.about-text p { margin: 0 0 20px; }
.quote {
  margin: 0 0 26px; padding: 18px 22px 18px 52px; position: relative; border-radius: 14px;
  background: rgba(255, 140, 0, .08); color: var(--gold-pale); font-weight: 300;
}
.quote::before { content: "“"; position: absolute; left: 14px; top: -6px; font-size: 3.4rem; color: var(--gold); font-family: Georgia, serif; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid rgba(255, 140, 0, .4); }
.timeline li { padding: 0 0 14px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,140,0,.2); }
.timeline b { color: var(--gold-soft); margin-right: 10px; font-weight: 700; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why { padding: 22px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,140,0,.12), rgba(34,45,74,.6)); border: 1px solid var(--glass-border); }
.why h4 { margin: 0 0 6px; color: var(--white); font-size: 1.05rem; }
.why p { margin: 0; color: var(--muted); font-size: .93rem; }
.why .num { color: var(--gold); font-weight: 900; font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 8px; }

/* ---------- 服務 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  text-align: left; cursor: pointer; padding: 26px 22px; border-radius: var(--radius); color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border); transition: .25s; position: relative;
}
.service:hover { transform: translateY(-4px); border-color: rgba(255, 140, 0, .5); }
.service.active { border-color: var(--gold); background: linear-gradient(160deg, rgba(255, 140, 0, .22), var(--glass)); }
.service .ico { font-size: 2rem; display: block; margin-bottom: 10px; }
.service h3 { font-size: 1.2rem; margin-bottom: 6px; }
.service p { margin: 0 0 14px; color: var(--muted); font-size: .93rem; }
.service .more { color: var(--gold-soft); font-size: .88rem; font-weight: 500; }
.service-detail { margin-top: 20px; animation: fadeUp .35s ease; }
.service-detail .sd-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.service-detail h3 { font-size: 1.5rem; margin-bottom: 4px; }
.service-detail .who { color: var(--gold-soft); margin: 0 0 14px; font-size: .95rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 10px 0 10px 44px; position: relative; border-bottom: 1px dashed rgba(255,255,255,.1); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--navy); font-weight: 900; font-size: .9rem;
}
.sd-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 物件 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; padding: 18px 22px; margin-bottom: 26px; }
.filters label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: 4px; }
.filters .count { margin-left: auto; color: var(--gold-soft); font-weight: 500; }
select, input, textarea {
  background: rgba(10, 15, 32, .6); color: var(--white); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 10px 12px; min-width: 140px; outline: none; transition: border .2s;
}
select:focus, input:focus, textarea:focus { border-color: var(--gold); }
select option { background: var(--navy); }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.listing {
  border-radius: var(--radius); overflow: hidden; background: var(--glass); border: 1px solid var(--glass-border);
  cursor: pointer; transition: .25s; display: flex; flex-direction: column; color: var(--text);
}
.listing:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(255,140,0,.45); color: var(--text); }
.l-img { aspect-ratio: 16/10; position: relative; display: flex; align-items: flex-end; padding: 14px; }
.l-img.img-real { background-size: cover; background-position: center; }
.sky-card-dusk { background: linear-gradient(180deg, #1c2442 0%, #4b3a5a 55%, #d0673a 92%, #ffa040 100%); }
.sky-card-gold { background: linear-gradient(180deg, #2a3150 0%, #8a4a3e 50%, #ff8c00 85%, #ffc070 100%); }
.sky-card-deep { background: linear-gradient(180deg, #0f1730 0%, #263256 55%, #a65a3c 90%, #f29a46 100%); }
.l-img .skyline { position: absolute; inset: auto 0 0 0; height: 46%; opacity: .9; }
.l-img .tag-type { position: relative; z-index: 2; background: rgba(17,24,48,.75); padding: 3px 12px; border-radius: 999px; font-size: .82rem; color: var(--white); }
.l-img .badge-sample { position: absolute; top: 12px; right: 12px; z-index: 2; }
.l-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.l-body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.l-zone { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.l-meta { display: flex; gap: 14px; font-size: .88rem; color: var(--text); opacity: .85; margin-bottom: 12px; flex-wrap: wrap; }
.l-price { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.l-price strong { color: var(--gold); font-size: 1.6rem; font-weight: 900; }
.l-price strong small { font-size: .9rem; font-weight: 500; margin-left: 2px; }
.l-price span { color: var(--muted); font-size: .85rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tags span { font-size: .78rem; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--gold-pale); }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* ---------- 物件詳情 Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 20, .75); backdrop-filter: blur(6px); }
.modal-body {
  position: relative; width: min(880px, 100%); max-height: 92svh; overflow-y: auto; border-radius: 22px;
  background: var(--navy); border: 1px solid var(--glass-border); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: fadeUp .3s ease;
}
.modal-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(17,24,48,.8); color: var(--white); font-size: 1.6rem; cursor: pointer;
}
.m-hero { aspect-ratio: 21/9; position: relative; display: flex; align-items: flex-end; padding: 22px 26px; }
.m-hero h2 { position: relative; z-index: 2; font-size: clamp(1.3rem, 3vw, 1.9rem); text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.m-content { padding: 24px 26px 30px; }
.m-price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.m-price strong { font-size: 2.2rem; color: var(--gold); font-weight: 900; }
.m-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
.m-specs div { background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 14px; }
.m-specs dt { font-size: .78rem; color: var(--muted); }
.m-specs dd { margin: 0; font-weight: 700; color: var(--white); }
.m-block { margin-bottom: 20px; }
.m-block h4 { margin: 0 0 8px; color: var(--gold-soft); font-size: 1rem; }
.m-block p { margin: 0; }
.m-block ul { margin: 0; padding-left: 1.2em; }
.m-block.risk { background: rgba(255, 140, 0, .07); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- 商圈 ---------- */
.area-tabs, .tool-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent;
  color: var(--text); cursor: pointer; transition: .2s;
}
.tab:hover { border-color: var(--gold-soft); }
.tab.active { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 700; }
.area-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.area-list { display: grid; gap: 14px; }
.area {
  text-align: left; padding: 20px 22px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); cursor: pointer; transition: .2s;
}
.area:hover { border-color: rgba(255,140,0,.45); }
.area.active { border-color: var(--gold); background: linear-gradient(160deg, rgba(255,140,0,.16), var(--glass)); }
.area .a-city { font-size: .78rem; color: var(--gold-soft); letter-spacing: .1em; }
.area h3 { font-size: 1.15rem; margin: 2px 0 6px; }
.area p { margin: 0 0 10px; color: var(--muted); font-size: .93rem; }
.area .a-row { font-size: .85rem; margin-top: 4px; }
.area .a-row b { color: var(--gold-pale); font-weight: 500; margin-right: 6px; }
.area-map { padding: 10px; position: sticky; top: calc(var(--nav-h) + 16px); }
.area-map iframe { width: 100%; aspect-ratio: 1; border: 0; border-radius: 12px; filter: saturate(.85) contrast(1.05); display: block; }
.map-caption { margin: 10px 6px 4px; color: var(--muted); font-size: .88rem; }

/* ---------- 實績 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case { padding: 22px; border-radius: 16px; background: rgba(17, 24, 48, .6); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); position: relative; }
.case .c-days { font-size: 2.4rem; font-weight: 900; color: var(--gold); line-height: 1; }
.case .c-days small { font-size: .9rem; color: var(--gold-pale); font-weight: 500; margin-left: 4px; }
.case h4 { margin: 12px 0 2px; color: var(--white); font-size: 1.05rem; }
.case .c-role { color: var(--gold-soft); font-size: .85rem; }
.case p { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.case .badge-sample { position: absolute; top: 14px; right: 14px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi { padding: 26px; border-radius: 18px; background: rgba(17, 24, 48, .55); border: 1px solid var(--glass-border); position: relative; }
.testi::before { content: "“"; font-family: Georgia, serif; font-size: 4rem; color: var(--gold); line-height: .6; display: block; height: 28px; }
.testi p { margin: 0 0 16px; font-style: italic; font-weight: 300; }
.testi footer { color: var(--gold-pale); font-size: .9rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ---------- 試算工具 ---------- */
.tool { animation: fadeUp .3s ease; }
.tool-head h3 { font-size: 1.35rem; }
.tool-head p { color: var(--muted); margin: 4px 0 22px; font-size: .93rem; }
.tool-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }
.tool-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--text); }
.tool-form label small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.tool-form input, .tool-form select { min-width: 0; width: 100%; }
.tool-form .check { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 10px; color: var(--gold-pale); }
.tool-form .check input { width: 20px; height: 20px; min-width: 20px; margin-top: 3px; accent-color: var(--gold); }
.result { margin-top: 24px; border-radius: 16px; background: rgba(10, 15, 32, .55); border: 1px solid rgba(255, 140, 0, .25); padding: 20px 22px; }
.result .r-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.result .r-main span { color: var(--muted); }
.result .r-main strong { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--gold); font-weight: 900; }
.result table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.result td { padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.result td:last-child { text-align: right; color: var(--white); font-weight: 500; font-variant-numeric: tabular-nums; }
.result .r-note { color: var(--muted); font-size: .82rem; margin: 12px 0 0; }
.result .r-empty { color: var(--muted); margin: 0; }
.mini-convert { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.mini-convert span { color: var(--gold-soft); margin-right: 6px; }
.mini-convert input { width: 110px; min-width: 0; }

/* ---------- 聯絡 ---------- */
.contact { padding-bottom: 120px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card {
  padding: 22px; border-radius: 16px; background: rgba(17, 24, 48, .6); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); display: flex; flex-direction: column; color: var(--white); transition: .2s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--gold-soft); color: var(--white); }
.contact-card strong { font-size: 1.15rem; }
.contact-card span { color: var(--muted); font-size: .9rem; }
.contact-card.line { background: linear-gradient(150deg, rgba(6,199,85,.45), rgba(17,24,48,.6)); border-color: rgba(6,199,85,.5); }
.qr { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr img { border-radius: 10px; background: #fff; }
.qr span { font-size: .85rem; color: var(--muted); }
.contact-form { display: grid; gap: 14px; }
.contact-form h3 { font-size: 1.3rem; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- 頁尾 ---------- */
.footer { background: #0b1022; padding: 44px 0 100px; font-size: .9rem; color: var(--muted); }
.foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.foot-top strong { color: var(--white); }
.foot-top p { margin: 6px 0 0; }
.foot-links { display: flex; gap: 6px 16px; flex-wrap: wrap; align-content: flex-start; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--gold-soft); }
.legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; margin: 0 0 10px; line-height: 1.9; }
.credit { font-size: .78rem; margin: 0 0 6px; opacity: .8; }
.credit a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.copy { font-size: .78rem; margin: 0; opacity: .6; }

/* ---------- 手機底部列 ---------- */
.mobile-bar { display: none; }
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 120; max-width: calc(100% - 32px);
  background: var(--white); color: var(--navy); padding: 12px 20px; border-radius: 12px; font-weight: 500; box-shadow: var(--shadow);
}

/* ==========================================================
   RWD
   ========================================================== */
@media (max-width: 1080px) {
  .service-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 6px 8px; font-size: .9rem; }
}
@media (max-width: 900px) {
  :root { --nav-h: 58px; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav { background: rgba(17, 24, 48, .7); backdrop-filter: blur(12px); }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 18px;
    background: rgba(17, 24, 48, .97); transform: translateY(-120%); transition: transform .3s; box-shadow: 0 20px 40px rgba(0,0,0,.4);
    z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 10px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); border-radius: 0; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 首頁：手機一進來就看到照片＋LINE */
  .hero { min-height: auto; padding: calc(var(--nav-h) + 8px) 0 40px; align-items: flex-start; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; text-align: center; }
  .hero-photo img { max-height: 38svh; }
  .hero-photo img.framed { width: auto; height: 36svh; max-height: 340px; min-height: 220px; border-radius: 160px 160px 18px 18px; }
  .photo-placeholder { width: 200px; }
  .halo { width: 70%; max-width: 300px; }
  .hero h1 .nick { margin-left: 8px; }
  .hero-actions, .hero-services { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .eyebrow { margin-top: 14px; font-size: .85rem; }
  .store { margin-bottom: 18px; }
  .scroll-hint { display: none; }
  .br-m { display: inline; }

  .section { padding: 68px 0; }
  .about-grid, .area-layout, .contact-grid, .service-detail .sd-grid { grid-template-columns: 1fr; }
  .area-map { position: static; order: -1; }
  .area-map iframe { aspect-ratio: 16/10; }
  .tool-form { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .m-specs { grid-template-columns: repeat(2, 1fr); }

  .mobile-bar {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(11, 16, 34, .96); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.08);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mobile-bar a {
    display: grid; place-items: center; height: 46px; border-radius: 12px; font-weight: 700; color: var(--white);
    background: rgba(255,255,255,.08);
  }
  .mobile-bar a.mb-line { background: var(--line-green); }
  .mobile-bar a:last-child { background: var(--gold); color: var(--navy); }
}
@media (max-width: 600px) {
  .service-grid, .listing-grid, .case-grid, .why-grid, .tool-form, .contact-cards { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters label select { width: 100%; }
  .filters .count { margin-left: 0; }
  .card { padding: 22px 18px; }
  .hero-services .chip { font-size: .88rem; padding: 7px 13px; }
  .m-content, .m-hero { padding-left: 18px; padding-right: 18px; }
}
