:root {
  --ink: #1f2937;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #f7f8fa;
  --surface: #ffffff;
  --gold: #b7791f;
  --gold-dark: #956017;
  --green: #16704f;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: #fff;
  background: var(--gold);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 28px;
  color: #475467;
  font-size: 15px;
}

.nav a:hover {
  color: var(--gold-dark);
}

.header-cta,
.submit-btn,
#codeBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.header-cta,
.submit-btn {
  color: #fff;
  border: 1px solid var(--gold);
  background: var(--gold);
}

.header-cta {
  padding: 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 78px);
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 600px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.section,
.consult-section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 78px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section h2,
.consult-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: 0;
}

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

.service-card,
.process-item,
.lead-form,
.notice-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card,
.process-item {
  padding: 22px;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ecd8bb;
  border-radius: 6px;
  color: var(--gold-dark);
  background: #fff8ed;
  font-weight: 900;
}

.service-card h3,
.process-item h3 {
  margin: 16px 0 8px;
  font-size: 20px;
}

.service-card p,
.process-item p,
.consult-copy p {
  color: var(--muted);
}

.service-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #475467;
}

.process-section {
  background: var(--paper);
}

.process-item span {
  color: var(--gold-dark);
  font-weight: 900;
}

.consult-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.consult-copy {
  position: sticky;
  top: 96px;
}

.consult-copy p {
  max-width: 540px;
}

.notice-box {
  max-width: 540px;
  margin-top: 24px;
  padding: 16px;
  color: #475467;
  background: #f9fafb;
}

.lead-form {
  padding: clamp(20px, 4vw, 32px);
  color: var(--ink);
  box-shadow: var(--shadow);
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span:first-child {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.12);
}

.verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

#codeBtn {
  color: var(--gold-dark);
  border: 1px solid #ecd8bb;
  background: #fff8ed;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  color: #475467;
  font-size: 14px;
}

.agreement-link {
  display: inline;
  border: 0;
  padding: 0;
  color: var(--gold-dark);
  background: transparent;
  font: inherit;
  color: var(--gold-dark);
  font-weight: 700;
  cursor: pointer;
}

.agreement-link:hover {
  text-decoration: underline;
}

.agree input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.submit-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  font-size: 17px;
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--green);
  font-weight: 700;
}

.form-message.error {
  color: #b42318;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(18px, 5vw, 78px);
  color: #667085;
  background: #fff;
  border-top: 1px solid var(--line);
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 18px 72px;
}

.legal-page h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.18;
}

.legal-page h2 {
  margin: 30px 0 10px;
  font-size: 22px;
}

.legal-page p,
.legal-page li {
  color: #475467;
}

.legal-page .legal-meta {
  color: #98a2b3;
  font-size: 14px;
}

.legal-page ul {
  padding-left: 22px;
}

body.modal-open {
  overflow: hidden;
}

.agreement-modal[hidden] {
  display: none;
}

.agreement-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.agreement-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.46);
}

.agreement-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(17, 24, 39, 0.22);
}

.agreement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--line);
}

.agreement-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.agreement-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #475467;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.agreement-content {
  overflow: auto;
  padding: 20px 24px;
  outline: none;
}

.agreement-content article + article {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.agreement-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.agreement-content p {
  margin: 10px 0 0;
  color: #475467;
}

.agreement-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.agreement-reject,
.agreement-accept {
  min-width: 112px;
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.agreement-reject {
  color: #344054;
  border: 1px solid #d0d5dd;
  background: #fff;
}

.agreement-accept {
  color: #fff;
  border: 1px solid var(--gold);
  background: var(--gold);
}

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

  .hero,
  .consult-section {
    grid-template-columns: 1fr;
  }

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

  .consult-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    background: #fff;
  }

  .site-header {
    position: static;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-cta,
  .desktop-section,
  .consult-copy,
  .consult-copy .eyebrow,
  .consult-copy p,
  .notice-box,
  .site-footer {
    display: none;
  }

  .hero {
    display: block;
    padding: 26px 16px 18px;
    background: #fff;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.16;
  }

  .hero-lead {
    margin-top: 10px;
    font-size: 15px;
  }

  .consult-section {
    display: block;
    padding: 6px 16px 12px;
    border: 0;
    background: #fff;
  }

  .lead-form {
    padding: 16px;
    border-radius: 8px;
    box-shadow: none;
  }

  .field-grid,
  .verify-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  input,
  select {
    min-height: 46px;
  }

  .agree {
    margin: 14px 0;
    font-size: 13px;
  }

  .agreement-modal {
    align-items: end;
    padding: 0;
  }

  .agreement-panel {
    width: 100%;
    max-height: 86vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .agreement-head {
    padding: 18px 16px 12px;
  }

  .agreement-head h2 {
    font-size: 20px;
  }

  .agreement-content {
    padding: 16px;
  }

  .agreement-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px 18px;
  }

  .agreement-reject,
  .agreement-accept {
    min-width: 0;
    width: 100%;
  }

}
