@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Quicksand:wght@500;600;700&display=swap");

:root {
  --bg: #fff5fa;
  --panel: #fffafd;
  --text: #3a2438;
  --muted: #9a7d92;
  --brand: #ff4d97;
  --brand-2: #b15cff;
  --accent: #ff3d77;
  --accent-soft: #ffe6f1;
  --ok: #15803d;
  --warn: #c2569b;
  --border: #f6d8e7;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(255, 77, 151, .12);
  --display: "Baloo 2", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-family: "Quicksand", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; color: var(--text);
  background:
    radial-gradient(900px 500px at 110% -5%, rgba(177, 92, 255, .12), transparent 60%),
    radial-gradient(800px 460px at -10% 8%, rgba(255, 126, 182, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, .price, .brand-zh { font-family: var(--display); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }

header.site {
  position: sticky; top: 0; z-index: 500;
  background: linear-gradient(110deg, #ff5fa2 0%, #ff4d97 42%, #c44ce0 100%);
  color: #fff;
  padding: 14px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 26px rgba(255,77,151,.28);
  backdrop-filter: saturate(1.4) blur(4px);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 20px; flex-wrap: wrap; }
header.site .brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
header.site .brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255,255,255,.75);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(196,76,224,.35);
}
header.site .brand-mark img { width: 100%; height: 100%; display: block; }
header.site .brand-text { display: inline-flex; flex-direction: column; line-height: 1.12; }
header.site .brand-zh { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
header.site .brand-zh-accent { color: #fff3a8; text-shadow: 0 1px 4px rgba(155,40,120,.4); }
header.site .brand-en { font-size: 11px; font-weight: 600; opacity: .85; letter-spacing: 1.2px; text-transform: uppercase; }
header.site h1 { font-size: 19px; margin: 0; letter-spacing: .3px; font-weight: 800; }
header.site nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
header.site nav a {
  color: #fff; opacity: .78; padding: 7px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: background .2s ease, opacity .2s ease, transform .2s ease;
}
header.site nav a.active { background: rgba(255,255,255,.18); opacity: 1; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12) inset; }
header.site nav a:hover { opacity: 1; text-decoration: none; background: rgba(255,255,255,.12); transform: translateY(-1px); }
header.site .nav-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background .2s ease;
}
header.site .nav-toggle:hover { background: rgba(255,255,255,.2); }
header.site .nav-toggle-bar {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
header.site .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.site .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
header.site .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

header.site .nav-dropdown { position: relative; display: inline-flex; }
header.site .nav-dropdown-toggle {
  background: transparent; border: 0; color: #fff; opacity: .78;
  padding: 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background .2s ease, opacity .2s ease, transform .2s ease;
}
header.site .nav-dropdown-toggle:hover { opacity: 1; background: rgba(255,255,255,.12); transform: translateY(-1px); }
header.site .nav-dropdown-toggle.active { background: rgba(255,255,255,.18); opacity: 1; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12) inset; }
header.site .nav-dropdown-caret { display: inline-block; margin-left: 4px; font-size: 11px; transition: transform .2s ease; }
header.site .nav-dropdown.open .nav-dropdown-caret { transform: rotate(180deg); }
header.site .nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  padding: 6px; display: none; z-index: 50;
}
header.site .nav-dropdown.open .nav-dropdown-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
header.site .nav-dropdown-menu a {
  color: var(--text); opacity: 1; padding: 8px 12px; border-radius: 6px;
  font-size: 13px; white-space: nowrap; text-decoration: none;
}
header.site .nav-dropdown-menu a:hover { background: var(--panel); transform: none; text-decoration: none; }
header.site .nav-dropdown-menu a.active { background: var(--brand); color: #fff; }

/* Language toggle — a real <a> so middle-click / share / open-in-new-tab
   work, but styled like a chip-button for visual parity with other nav items. */
header.site .nav-lang-toggle {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  color: #fff; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  margin-left: 4px;
}
header.site .nav-lang-toggle:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); text-decoration: none; opacity: 1; }
header.site nav a.nav-lang-toggle { opacity: 1; }

@media (max-width: 820px) {
  header.site .wrap { gap: 12px; }
  header.site .nav-toggle { display: inline-flex; }
  header.site nav {
    flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .25s ease, opacity .2s ease, margin-top .25s ease;
  }
  header.site nav.open { max-height: 720px; opacity: 1; margin-top: 8px; overflow-y: auto; }
  header.site nav a {
    padding: 12px 14px; font-size: 15px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
  }
  header.site nav a.active { background: rgba(255,255,255,.22); }
  /* Mobile: inline the ISP dropdown — no floating panel. */
  header.site .nav-dropdown { display: block; }
  header.site .nav-dropdown-toggle {
    width: 100%; padding: 12px 14px; font-size: 15px; text-align: left;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
  }
  header.site .nav-dropdown-menu {
    position: static; min-width: 0; background: transparent; border: 0;
    box-shadow: none; padding: 6px 0 0 12px;
  }
  header.site .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; gap: 4px; }
  header.site .nav-dropdown-menu a { color: #fff; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
  header.site .nav-dropdown-menu a.active { background: rgba(255,255,255,.22); color: #fff; }
}
@media (max-width: 640px) {
  header.site { padding: 12px 16px; }
  header.site .brand-en { display: none; }
  header.site .brand-zh { font-size: 14px; }
}

.disclaimer-bar { background: #fff0f7; border-bottom: 1px solid var(--border); color: #8a5a78; font-size: 13px; }
.disclaimer-bar .wrap { max-width: 1200px; margin: 0 auto; padding: 8px 24px; line-height: 1.5; }

main.wrap { max-width: 1200px; margin: 0 auto; padding: 20px; }

.hero {
  position: relative;
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 48px 300px 48px 40px;
  margin: 20px 0 8px;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(520px 360px at 88% 120%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(125deg, #ff5fa2 0%, #ff4d97 38%, #b15cff 100%);
  color: #fff;
  box-shadow: 0 22px 54px rgba(255, 77, 151, .32);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 280px at 80% -20%, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(8px 8px at 18% 30%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(6px 6px at 30% 70%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(5px 5px at 62% 22%, rgba(255,255,255,.4), transparent 60%);
}
/* Gigi mascot lives in the hero corner */
.hero::after {
  content: ""; position: absolute; right: 18px; bottom: -8px;
  width: 270px; height: 330px; pointer-events: none;
  background: url("/images/gigi.svg") right bottom / contain no-repeat;
  filter: drop-shadow(0 14px 22px rgba(120, 20, 80, .28));
}
.hero > * { position: relative; z-index: 1; }
.hero .hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.hero h1, .hero h2 { margin: 0 0 12px; font-size: 40px; font-weight: 800; letter-spacing: .3px; color: #fff; line-height: 1.18; text-shadow: 0 3px 16px rgba(150,20,90,.22); }
.hero p { margin: 0; color: rgba(255,255,255,.95); font-size: 17px; max-width: 46ch; line-height: 1.6; }
@media (max-width: 820px) {
  .hero { padding-right: 40px; }
  .hero::after { opacity: .22; right: -30px; width: 320px; height: 360px; }
}
@media (max-width: 640px) {
  .hero { padding: 36px 22px 30px; border-radius: 24px; }
  .hero h1, .hero h2 { font-size: 27px; }
  .hero::after { display: none; }
}

.layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }

.filters, .panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.filters {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.filters-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  text-align: left;
}
.filters-toggle::after { content: "▾"; float: right; transition: transform .2s; }
.filters-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
@media (max-width: 820px) {
  .filters-toggle { display: block; }
  .filters { position: static; max-height: none; display: none; }
  .filters.open { display: block; }
}
.filters h3 { margin: 0 0 10px; font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.filter-group { margin-bottom: 18px; }
.filter-group label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 13px; cursor: pointer; user-select: none; background: #fff;
  color: var(--text); font: inherit; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
  min-height: 32px;
}
.chip:hover { border-color: var(--brand); }
.chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.chip.active { background: linear-gradient(135deg, #ff5fa2, #b15cff); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(255,77,151,.35); }
.chip small { color: inherit; opacity: .7; margin-left: 4px; font-size: 12px; }

.range-wrap { display: flex; align-items: center; gap: 8px; }
.range-wrap input[type=number] { width: 70px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; }
.range-wrap input[type=range] { flex: 1; }

.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.results-head .count { color: var(--muted); font-size: 14px; }
.results-head select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card {
  position: relative;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit; text-decoration: none;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  opacity: 0; transition: opacity .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(255,77,151,.22); border-color: rgba(255,77,151,.45); text-decoration: none; }
.card:hover::before { opacity: 1; }
.card .provider-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card .logo { width: 68px; height: 68px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); padding: 6px; flex-shrink: 0; }
.card .logo img { max-width: 100%; max-height: 100%; display: block; }
.card .title { font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--text); overflow-wrap: break-word; }
.card .rep-badge { display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; font-size: 12px; color: #b8458f; background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; font-weight: 700; }

.prov-pill {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  background: #f1f5f9; color: #1e293b; font-size: 12px; font-weight: 500;
  cursor: pointer; user-select: none; margin: 2px 2px 2px 0;
  transition: background .15s;
}
.prov-pill:hover { background: var(--brand); color: #fff; }
.prov-pill strong { font-weight: 800; }
kbd { background: #f1f5f9; border: 1px solid var(--border); border-bottom-width: 2px; padding: 1px 5px; border-radius: 4px; font-size: 11px; font-family: inherit; }
.card .summary { color: #475569; font-size: 14px; line-height: 1.55; white-space: pre-line; min-height: 3.1em; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; background: var(--accent-soft); color: #c2348a;
  padding: 3px 8px; border-radius: 999px;
}
.tag.warn { background: #f3e7ff; color: #8a3fd1; }
.card .price-row { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.price { font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: -0.5px; line-height: 1; }
.price small { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 4px; }
.card .cta {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; color: var(--brand); padding: 8px 14px;
  border-radius: 10px; font-weight: 700; font-size: 13px;
  border: 1px solid var(--brand);
  transition: background .15s, color .15s;
}
.card:hover .cta { background: var(--brand); color: #fff; }

/* Skeleton card */
.skeleton-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 240px;
}
.skeleton-card .bar { background: linear-gradient(90deg, #eef2f6 0%, #f8fafc 50%, #eef2f6 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
.skeleton-card .bar.h1 { width: 60%; height: 14px; }
.skeleton-card .bar.h2 { width: 80%; height: 18px; }
.skeleton-card .bar.h3 { width: 100%; height: 14px; }
.skeleton-card .bar.h4 { width: 50%; height: 26px; margin-top: auto; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pager button { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.pager button[disabled] { opacity: .4; cursor: not-allowed; }

.breadcrumb { margin: 10px 0 14px; font-size: 13px; }
.breadcrumb a { color: var(--muted); }
.post-detail { display: grid; grid-template-columns: 1fr 320px; gap: 22px; margin-top: 16px; }
@media (max-width: 820px) { .post-detail { grid-template-columns: 1fr; } }
.post-detail .hero-image { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); display: block; }
.post-detail .post-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.post-detail .logo-lg { width: 96px; height: 96px; border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 10px; flex-shrink: 0; }
.post-detail .logo-lg img { max-width: 100%; max-height: 100%; }
.post-detail .post-title { font-size: 28px; margin: 4px 0 4px; font-weight: 900; line-height: 1.25; color: var(--text); }
.post-detail .price-hero { display: inline-flex; align-items: baseline; gap: 2px; margin-top: 6px; font-size: 15px; color: var(--muted); }
.post-detail .price-hero strong { font-size: 30px; color: var(--accent); font-weight: 900; margin: 0 4px; letter-spacing: -0.5px; }
.post-detail .price-hero span { font-size: 13px; color: var(--muted); margin-left: 2px; }
.post-detail .summary { color: #334155; line-height: 1.65; white-space: pre-line; margin-bottom: 12px; font-size: 15px; }
.post-detail .body { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; white-space: pre-wrap; line-height: 1.75; box-shadow: var(--shadow); font-size: 15px; }
.post-detail .body.body-html { white-space: normal; }
.post-detail .body.body-html h1 { font-size: 20px; font-weight: 800; margin: 18px 0 8px; line-height: 1.35; }
.post-detail .body.body-html h2 { font-size: 18px; font-weight: 800; margin: 16px 0 8px; line-height: 1.35; }
.post-detail .body.body-html h3 { font-size: 16px; font-weight: 700; margin: 14px 0 6px; line-height: 1.4; }
.post-detail .body.body-html h4,
.post-detail .body.body-html h5,
.post-detail .body.body-html h6 { font-size: 15px; font-weight: 700; margin: 12px 0 6px; }
.post-detail .body.body-html h1:first-child,
.post-detail .body.body-html h2:first-child,
.post-detail .body.body-html h3:first-child { margin-top: 0; }
.post-detail .body.body-html p { margin: 0 0 10px; }
.post-detail .body.body-html ul,
.post-detail .body.body-html ol { margin: 0 0 10px; padding-left: 22px; }
.post-detail .body.body-html li { margin: 4px 0; }
.post-detail .body.body-html blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--brand); background: #f8fafc; color: #475569; }
.post-detail .body.body-html a { color: var(--brand); text-decoration: underline; word-break: break-all; }
.post-detail .body.body-html strong { font-weight: 700; }

.trust-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: #f1f5f9; color: #334155; font-weight: 600;
}
.trust-badge.ok { background: #dcfce7; color: #15803d; }
.trust-badge.warn { background: #fef3c7; color: #92400e; }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: none; gap: 10px; padding: 10px 12px 14px;
  background: rgba(255,253,249,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(15,23,42,.08);
}
.mobile-cta a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px; border-radius: 12px; font-weight: 800; font-size: 16px;
  color: #fff; text-decoration: none; min-height: 52px;
}
.mobile-cta .phone { background: linear-gradient(135deg, #ff5fa2, #ff3d77); }
.mobile-cta .wa { background: #25d366; }
@media (max-width: 820px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 80px; }
  #floating-cta { display: none; } /* don't double-stack */
}
.rep-card { position: sticky; top: 80px; }
.rep-card h3 { margin: 0 0 8px; }
.rep-card .contact { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rep-card .contact a {
  display: flex; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 2px;
  font-weight: 700; padding: 14px 16px; border-radius: 14px;
  background: var(--accent-soft); color: #c2348a;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  text-decoration: none;
  min-height: 52px;
  cursor: pointer;
}
.rep-card .contact a:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.08); text-decoration: none; border-color: rgba(18,57,91,.25); }
.rep-card .contact a .contact-icon { font-size: 22px; width: 28px; text-align: center; flex-shrink: 0; }
.rep-card .contact a .contact-label { font-size: 15px; line-height: 1.25; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rep-card .contact a .contact-hint { flex-basis: 100%; padding-left: 38px; font-size: 12px; font-weight: 500; opacity: .7; }
.rep-card .contact a.wa { background: linear-gradient(135deg, #e8f9e1, #d1f2c4); color: #1f7a37; }
.rep-card .contact a.tg { background: linear-gradient(135deg, #e0f1fb, #c4e3f4); color: #0a6aa6; }
.rep-card .contact a.phone { background: linear-gradient(135deg, #ffe0ee, #ffd0e4); color: #c2348a; }
.rep-card .contact a.mail { background: #f6ecff; color: #7a3fc0; }

.rep-card-lg { padding: 22px; }
.rep-card-header { display: flex; align-items: center; gap: 14px; }
.rep-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 900; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(18,57,91,.25);
}
.rep-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.rep-name { font-size: 20px; font-weight: 900; color: var(--text); line-height: 1.25; display: inline-block; }
a.rep-name { color: var(--brand); text-decoration: none; }
a.rep-name:hover { text-decoration: underline; }

/* Post page — key facts + section headings */
.post-hero-figure { margin: 12px 0 8px; padding: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.post-hero-figure .hero-image { display: block; width: 100%; height: auto; }

.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin: 14px 0 18px;
}
.fact {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.fact-k { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 4px; }
.fact-v { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.2; overflow-wrap: break-word; }
.fact.accent { background: linear-gradient(135deg, #ffe6f1, #f3e7ff); border-color: var(--border); }
.fact.accent .fact-v { color: var(--accent); font-size: 22px; letter-spacing: -0.3px; }

.post-section { margin-top: 20px; }
.section-title {
  position: relative; margin: 0 0 10px; padding-left: 12px;
  font-size: 17px; font-weight: 800; color: var(--text);
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent)); border-radius: 2px;
}

.post-detail .body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.post-detail .body td, .post-detail .body th { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.summary-panel { white-space: pre-line; line-height: 1.7; color: #334155; font-size: 15px; }
.price-table-panel table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 15px; }
.price-table-panel table tr:last-child td { border-bottom: 0; }
.price-table-panel table td:last-child { font-weight: 800; color: var(--accent); }

@media (max-width: 820px) {
  .rep-card { position: static; top: auto; margin-top: 16px; }
  .rep-card-lg { padding: 18px; }
  .post-detail .post-title { font-size: 24px; }
  .fact-v { font-size: 15px; }
  .fact.accent .fact-v { font-size: 19px; }
}
@media (max-width: 560px) {
  main.wrap { padding: 14px; }
  .hero { padding: 36px 20px 32px; margin: 12px 0 4px; border-radius: 18px; }
  .hero h2 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 14px; }
  .post-detail .post-header { flex-wrap: wrap; }
  .post-detail .logo-lg { width: 72px; height: 72px; }
  .post-detail .post-title { font-size: 22px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.login-wrap { max-width: 420px; margin: 60px auto; }
form.panel label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
form.panel input[type=text], form.panel input[type=password], form.panel input[type=email], form.panel textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font: inherit; margin-top: 4px;
}
form.panel textarea { min-height: 120px; resize: vertical; }
button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border: 0; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255,77,151,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(255,77,151,.42); }
button.ghost { background: #fff; border: 1px solid var(--border); padding: 10px 16px; border-radius: 8px; cursor: pointer; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: #c0392b; font-size: 14px; margin: 8px 0; }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }

footer.site { text-align: center; padding: 30px 80px 100px; color: var(--muted); font-size: 13px; }

#floating-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
}
#floating-cta .fcta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 18px rgba(17,24,39,.18);
  color: #fff; text-decoration: none;
  min-width: 140px; justify-content: center;
  transition: transform .1s, box-shadow .1s;
}
#floating-cta .fcta-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(17,24,39,.22); text-decoration: none; }
#floating-cta .fcta-phone { background: linear-gradient(135deg, #ff5fa2, #ff3d77); }
#floating-cta .fcta-wa { background: #25d366; }
#floating-cta .fcta-icon { font-size: 18px; }
@media (max-width: 560px) {
  #floating-cta { right: 12px; bottom: 12px; }
  #floating-cta .fcta-btn { min-width: 0; padding: 12px 14px; }
  #floating-cta .fcta-text { display: none; }
}

.hero-cta {
  margin: 14px 0 4px;
  background: linear-gradient(95deg, #fff0f7, #f6ecff);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.hero-cta .msg { color: #8a2f6e; font-weight: 700; font-size: 15px; line-height: 1.55; }
.hero-cta .msg::before { content: "💁‍♀️ "; }
.hero-cta .msg small { color: #a06694; font-weight: 500; display: block; margin-top: 2px; }
.hero-cta .buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta a { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; color: #fff; }
.hero-cta .phone { background: linear-gradient(135deg, #ff5fa2, #ff3d77); }
.hero-cta .wa { background: #25d366; }

/* ============================================================
   /address pages — search, district/street/building routes.
   ============================================================ */

.addr-breadcrumb {
  font-size: 14px; color: var(--muted); margin: 10px 0 4px;
}
.addr-breadcrumb a { color: var(--brand-2); text-decoration: none; }
.addr-breadcrumb a:hover { text-decoration: underline; }

.addr-search {
  position: relative; margin: 16px 0 22px;
}
.addr-search input[type="search"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 17px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  outline: none;
}
.addr-search input[type="search"]:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(30, 90, 138, .14);
}
.addr-search-results {
  position: absolute; left: 0; right: 0; top: 100%;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
  max-height: 440px; overflow: auto;
  z-index: 50;
}
.addr-search-item {
  display: block; padding: 10px 14px; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.addr-search-item:hover { background: var(--accent-soft); }
.addr-search-item:last-child { border-bottom: 0; }
.addr-search-title { font-weight: 600; font-size: 15px; }
.addr-search-sub { font-size: 12px; margin-top: 2px; }
.addr-search-empty { padding: 14px; text-align: center; }

.addr-hint { font-size: 13px; margin-bottom: 20px; }

.addr-region { margin-top: 30px; }
.addr-region h2 {
  font-size: 18px; margin: 0 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--border); color: var(--brand);
}
.addr-district-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.addr-district-card {
  display: block; padding: 14px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--text);
  transition: transform .08s, box-shadow .12s, border-color .12s;
}
.addr-district-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand-2);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.addr-district-zh { font-weight: 700; font-size: 16px; color: var(--brand); }
.addr-district-en { font-size: 12px; color: var(--muted); margin-top: 2px; }
.addr-district-count { font-size: 12px; margin-top: 6px; }

.addr-street-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 12px;
}
.addr-street-card {
  display: block; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--text);
}
.addr-street-card:hover { border-color: var(--brand-2); text-decoration: none; box-shadow: var(--shadow); }
.addr-street-name { font-weight: 600; font-size: 15px; }
.addr-street-en { font-size: 12px; margin-top: 2px; }
.addr-street-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; }
.addr-street-meta .tag { background: var(--accent-soft); color: #7c2d12; border-radius: 999px; padding: 2px 8px; }

.addr-building-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 12px;
}
.addr-building-card {
  display: block; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  text-decoration: none; color: var(--text);
}
.addr-building-card:hover { border-color: var(--brand-2); box-shadow: var(--shadow); text-decoration: none; }
.addr-building-title { font-weight: 600; font-size: 15px; }
.addr-building-sub { font-size: 12px; margin-top: 2px; }
.addr-building-no { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Single-building page */
.addr-hero {
  display: grid; gap: 16px; align-items: stretch;
  grid-template-columns: 1.1fr 1fr;
  margin: 14px 0 22px;
}
@media (max-width: 820px) {
  .addr-hero { grid-template-columns: 1fr; }
}
.addr-hero-text {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.addr-hero-text h1 { margin: 0; font-size: 22px; color: var(--brand); }
.addr-hero-en { font-size: 13px; }
.addr-hero-meta { color: var(--muted); font-size: 14px; }
.addr-hero-cta { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.addr-hero-cta a {
  flex: 1 1 auto; text-align: center;
  padding: 11px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.addr-hero-cta a.primary { background: #25d366; color: #fff; }
.addr-hero-cta a.ghost { background: var(--accent-soft); color: #7c2d12; }

.addr-map {
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  z-index: 0;
}

.addr-section { margin: 22px 0; }
.addr-section h2 {
  font-size: 17px; color: var(--brand);
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border);
}
.addr-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--border); margin-bottom: 10px;
}
.addr-section-head h2 { border: 0; margin: 0; padding: 0; }

.addr-plan-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.addr-plan-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.addr-plan-link { color: var(--text); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.addr-plan-link:hover { text-decoration: none; }
.addr-plan-head { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.addr-plan-logo {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 8px; background: #fff; padding: 2px;
  border: 1px solid var(--border);
  object-fit: contain;
}
.addr-plan-head-text { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; flex: 1; min-width: 0; }
.addr-plan-provider { color: var(--muted); font-weight: 600; letter-spacing: .4px; }
.addr-plan-price { color: var(--accent); font-weight: 800; }
.addr-plan-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.addr-plan-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.addr-plan-tags .tag {
  background: var(--accent-soft); color: #7c2d12;
  border-radius: 999px; padding: 2px 8px; font-size: 11px;
}
.addr-plan-cta { display: flex; gap: 8px; }
.addr-plan-cta a {
  flex: 1 1 auto; text-align: center;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 700; text-decoration: none;
}
.addr-plan-cta a.primary { background: #25d366; color: #fff; }
.addr-plan-cta a.ghost   { background: var(--accent-soft); color: #7c2d12; }

.addr-neighbour-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.addr-neighbour {
  display: block;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; text-decoration: none; color: var(--text);
}
.addr-neighbour:hover { border-color: var(--brand-2); text-decoration: none; box-shadow: var(--shadow); }
.addr-neighbour-title { font-weight: 600; font-size: 14px; }
.addr-neighbour-sub, .addr-neighbour-no { font-size: 12px; margin-top: 2px; }
