:root {
  --ink: #17211d;
  --muted: #66736d;
  --line: #dbe3df;
  --paper: #fbfcfa;
  --soft: #eef4fb;
  --brand-blue: #003572;
  --brand-blue-2: #0056a7;
  --brand-blue-3: #dceaf8;
  --yellow: #ffd200;
  --gold: #b8892e;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 53, 114, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--yellow);
  background: var(--brand-blue);
  border-radius: 8px;
  font-weight: 700;
}

.brand span:last-child {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 64px 0 48px;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 64px 0 42px;
  border-bottom: 1px solid var(--line);
}

.admin-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-blue-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro-copy > p:not(.eyebrow),
.section-heading p,
.lead-capture > div p,
.compliance li {
  color: var(--muted);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.advisor-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 620px;
  margin-top: 24px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 53, 114, 0.1);
}

.advisor-card img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  background: var(--brand-blue-3);
  border: 3px solid var(--brand-blue);
  border-radius: 50%;
}

.advisor-card span {
  display: block;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
}

.advisor-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.contact-strip span {
  padding: 7px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.wechat-mini {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  max-width: 560px;
  margin-top: 16px;
  padding: 12px;
  background: var(--brand-blue);
  color: var(--white);
  border-radius: 8px;
}

.wechat-mini img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  background: var(--white);
  border: 4px solid var(--white);
  border-radius: 8px;
}

.wechat-mini p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--brand-blue);
}

.button.secondary {
  color: var(--brand-blue);
  background: transparent;
}

.button.gold {
  color: var(--brand-blue);
  background: var(--yellow);
  border-color: var(--yellow);
}

.market-panel,
.tool-card,
.report-card,
.lead-form,
.metric,
.lead-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.market-panel {
  padding: 22px;
}

.panel-head,
.report-head,
.lead-item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head span,
.signal-label,
.metric span,
.lead-item small {
  color: var(--muted);
  font-size: 13px;
}

.signal-grid {
  display: grid;
  gap: 14px;
}

.signal-grid > div {
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

meter {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 8px;
}

.suburb-map {
  position: relative;
  min-height: 280px;
  margin-top: 18px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(36, 90, 122, 0.18), transparent 45%),
    linear-gradient(30deg, rgba(0, 86, 167, 0.2), transparent 50%),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.suburb-map::before,
.suburb-map::after {
  position: absolute;
  content: "";
  inset: 24px 70px 24px 120px;
  border: 2px solid rgba(0, 53, 114, 0.26);
  border-left: 0;
  border-radius: 48% 52% 44% 56%;
}

.suburb-map::after {
  inset: 58px 130px 68px 60px;
  border-color: rgba(0, 86, 167, 0.24);
  transform: rotate(-16deg);
}

.suburb-map span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 5px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  transform: translate(-50%, -50%);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 24px 0 48px;
}

.workflow div {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--white);
  background: var(--brand-blue-2);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.workflow p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.listings {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

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

.listing-card {
  display: grid;
  gap: 14px;
  overflow: hidden;
  min-height: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 53, 114, 0.1);
}

.listing-card > *:not(.listing-photo) {
  margin-left: 20px;
  margin-right: 20px;
}

.listing-card > *:last-child {
  margin-bottom: 20px;
}

.listing-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--brand-blue-3);
}

.listing-photo.placeholder {
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  background:
    linear-gradient(135deg, rgba(0, 53, 114, 0.16), rgba(255, 210, 0, 0.2)),
    var(--brand-blue-3);
  font-weight: 800;
}

.listing-status {
  width: fit-content;
  padding: 6px 10px;
  color: var(--brand-blue);
  background: var(--brand-blue-3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.listing-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.listing-card p {
  margin: 0;
  color: var(--muted);
}

.listing-meta {
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 700;
}

.listing-card .button {
  align-self: end;
}

.proof {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.proof-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.proof-layout h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.sold-list,
.review-list {
  display: grid;
  gap: 12px;
}

.sold-card,
.review-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 53, 114, 0.08);
}

.sold-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.sold-photo {
  width: 118px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
}

.sold-card h4,
.review-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.sold-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
}

.sold-price {
  color: var(--brand-blue);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.review-list {
  margin-bottom: 14px;
}

.campaign {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.campaign-tool {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 22px;
  align-items: start;
}

.copy-card {
  min-height: 420px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.copy-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 18px;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 15px/1.55 Arial, "Microsoft YaHei", sans-serif;
}

.copy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tool-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 22px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.tool-section.alt {
  background: linear-gradient(90deg, transparent, rgba(238, 245, 241, 0.72), transparent);
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 760px;
}

.tool-card,
.lead-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

label,
legend {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

fieldset input {
  width: 16px;
  min-height: auto;
}

.report-card {
  min-height: 420px;
  padding: 24px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 340px;
  color: var(--muted);
  text-align: center;
}

.report-card h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.pill {
  padding: 6px 10px;
  color: var(--brand-blue);
  background: var(--brand-blue-3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.report-grid div {
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

.report-grid strong {
  display: block;
  font-size: 20px;
}

.report-card ul {
  padding-left: 20px;
}

.lead-capture {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.wechat-card {
  display: grid;
  gap: 10px;
  width: min(100%, 280px);
  margin-top: 20px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 53, 114, 0.08);
}

.wechat-card.compact {
  align-self: center;
  margin-top: 0;
}

.wechat-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wechat-card span {
  color: var(--muted);
  font-size: 14px;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.success-card {
  grid-column: 2;
  padding: 18px;
  background: var(--brand-blue-3);
  border: 1px solid rgba(0, 53, 114, 0.18);
  border-radius: 8px;
}

.success-card[hidden] {
  display: none;
}

.success-card p {
  color: var(--muted);
}

.success-card[data-remote-status="sent"] .remote-hint::before {
  content: "已同步到 Louise 的线索表。";
  display: block;
  color: var(--brand-blue);
  font-weight: 700;
}

.success-card[data-remote-status="failed"] .remote-hint::before {
  content: "线上同步暂时失败，但本机已保存。";
  display: block;
  color: #9a4f00;
  font-weight: 700;
}

.dashboard {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.setup-status {
  margin-bottom: 18px;
}

.setup-card {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 53, 114, 0.08);
}

.setup-card.ready {
  border-left-color: var(--brand-blue-2);
}

.setup-card strong {
  display: block;
  margin-bottom: 4px;
}

.setup-card p {
  margin: 0;
  color: var(--muted);
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 36px;
}

.lead-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

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

.lead-item {
  padding: 18px;
  box-shadow: none;
}

.lead-item p {
  margin-bottom: 10px;
}

.follow-up {
  padding: 12px;
  background: var(--soft);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  color: var(--ink);
}

.compliance {
  padding: 42px 0 64px;
  border-top: 1px solid var(--line);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.redesigned-hero {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding-top: 48px;
}

.redesigned-hero .intro-copy {
  max-width: 760px;
}

.redesigned-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--brand-blue);
  font-size: clamp(44px, 6.8vw, 82px);
}

.redesigned-hero .intro-copy > p:not(.eyebrow) {
  max-width: 670px;
  color: #3f4d58;
  font-size: clamp(17px, 2vw, 21px);
}

.client-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.path-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 53, 114, 0.08);
}

.path-card span {
  width: fit-content;
  padding: 5px 9px;
  color: var(--brand-blue);
  background: var(--brand-blue-3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.path-card strong {
  color: var(--brand-blue);
  font-size: 22px;
}

.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.seller-path {
  border-top: 5px solid var(--yellow);
}

.buyer-path {
  border-top: 5px solid var(--brand-blue-2);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(0, 53, 114, 0.96), rgba(0, 86, 167, 0.9)),
    var(--brand-blue);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 53, 114, 0.22);
}

.hero-advisor {
  max-width: none;
  margin: 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-metrics div {
  padding: 14px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--yellow);
  font-size: 22px;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.hero-qr {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.hero-qr img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  background: var(--white);
  border: 6px solid var(--white);
  border-radius: 8px;
}

.hero-qr p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

@media (max-width: 860px) {
  .topbar,
  .intro,
  .admin-hero,
  .tool-section,
  .lead-capture {
    display: block;
  }

  .topbar {
    position: static;
  }

  nav {
    margin-top: 12px;
    justify-content: flex-start;
  }

  .market-panel,
  .tool-card,
  .report-card,
  .lead-form {
    margin-top: 18px;
  }

  .workflow,
  .listing-grid,
  .proof-layout,
  .campaign-tool,
  .dashboard-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .sold-card {
    grid-template-columns: 1fr;
  }

  .sold-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  h1 {
    font-size: 42px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .intro {
    min-height: auto;
    padding-top: 36px;
  }

  fieldset {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .dashboard-actions {
    display: grid;
  }

  .advisor-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .advisor-card img {
    width: 64px;
    height: 64px;
  }

  .client-paths,
  .hero-metrics,
  .hero-qr {
    grid-template-columns: 1fr;
  }

  .hero-qr img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .wechat-mini {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .wechat-mini img {
    width: 70px;
    height: 70px;
  }
}
