:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #5c687a;
  --line: #d9e1ea;
  --soft: #f5f8fb;
  --panel: #ffffff;
  --blue: #0d4f8b;
  --teal: #0a7c7a;
  --gold: #8a5c1e;
  --danger: #8b1d1d;
  --shadow: 0 18px 45px rgba(24, 33, 47, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--blue);
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.brand-name {
  display: grid;
  gap: 2px;
  color: var(--blue);
}

.brand-name span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

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

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button:visited {
  color: #fff;
}

.button:hover {
  background: #0a3e70;
  color: #fff;
}

.button:focus-visible {
  outline: 3px solid rgba(13, 79, 139, .32);
  outline-offset: 3px;
}

.nav-links a.button,
.nav-links a.button:visited {
  color: #fff;
}

.nav-links a.button:hover,
.nav-links a.button:focus-visible {
  background: #0a3e70;
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--blue);
  border-color: #b8c9da;
}

.button.secondary:visited {
  color: var(--blue);
}

.button.secondary:hover {
  background: #eef5fb;
  border-color: #7fa4c4;
  color: #0a3e70;
}

.button.gold {
  background: var(--gold);
  color: #fff;
}

.button.gold:hover {
  background: #704815;
  color: #fff;
}

.button:disabled,
button.button:disabled,
.button[disabled],
button.button[disabled] {
  background: #4b5563;
  border-color: #4b5563;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}

.button:disabled:hover,
button.button:disabled:hover,
.button[disabled]:hover,
button.button[disabled]:hover {
  background: #4b5563;
  color: #ffffff;
}

.hero {
  background: linear-gradient(90deg, rgba(8, 39, 69, .94), rgba(8, 39, 69, .72)), url("/assets/yuanjia-marriage-hero.png") center/cover;
  color: #fff;
}

.hero-inner {
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 74px 22px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow,
.qa-hero .eyebrow {
  color: #b8d9e5;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: #e7eef6;
  font-size: 19px;
}

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

.hero-card {
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.check-list,
.plain-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  margin: 10px 0;
  padding-left: 24px;
  position: relative;
}

.check-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: .63em;
  background: var(--teal);
}

.plain-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  left: 2px;
  top: .65em;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.section {
  padding: 72px 22px;
}

.section.alt {
  background: var(--soft);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 26px rgba(24, 33, 47, .05);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

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

.priority-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.priority-guide-card {
  display: grid;
  gap: 9px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(24, 33, 47, .05);
}

.priority-guide-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0;
}

.priority-guide-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: 19px;
}

.priority-guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.evidence {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #dbe4ed;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 410px;
  object-fit: cover;
}

.case-card {
  display: grid;
  gap: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e9f2f4;
  color: #145a5c;
  font-size: 12px;
  font-weight: 750;
}

.notice {
  border-left: 4px solid var(--gold);
  background: #fff8ec;
  color: #583c16;
  padding: 18px 20px;
  border-radius: 6px;
}

.contact-band {
  background: #092c4f;
  color: #fff;
}

.contact-strip {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.contact-strip h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
}

.contact-strip p {
  color: #dbe8f3;
  margin: 0;
}

.contact-methods {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
}

.contact-link span {
  color: #b8d9e5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.scenario-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(24, 33, 47, .05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scenario-card:hover {
  border-color: #98b6d1;
  box-shadow: 0 18px 38px rgba(24, 33, 47, .10);
}

.scenario-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

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

.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 33, 47, .05);
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.team-card > div {
  padding: 22px;
}

.team-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.asset-list {
  height: 100%;
}

.lead-panel {
  background: #102c4a;
  color: #fff;
  border-radius: 8px;
  padding: 28px;
}

.lead-panel h2,
.lead-panel h3 {
  margin-top: 0;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lead-form .full {
  grid-column: 1 / -1;
}

.lead-advanced {
  border: 1px solid rgba(231, 238, 246, .34);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .06);
}

.lead-advanced summary {
  cursor: pointer;
  color: #fff;
  font-weight: 760;
}

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

.lead-form label {
  display: grid;
  gap: 6px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c7d4e2;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.lead-form textarea {
  min-height: 128px;
  resize: vertical;
}

.consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 600 !important;
  color: #e7eef6 !important;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  font-weight: 700;
}

.form-status.error {
  color: #ffd0d0;
}

.form-status.success {
  color: #b6f2d5;
}

.footer {
  background: #0e1f33;
  color: #c9d6e4;
  padding: 34px 22px;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .scenario-grid,
  .priority-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-name span {
    font-size: 11px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-inner,
  .evidence,
  .contact-strip,
  .grid,
  .grid.two,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .scenario-grid,
  .priority-guide-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 52px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-extra-grid {
    grid-template-columns: 1fr;
  }

  .image-panel img {
    height: 280px;
  }
}
