:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5f6b64;
  --line: #dfe5df;
  --paper: #fbfcf8;
  --soft: #eef4ee;
  --white: #ffffff;
  --green: #1f5a43;
  --green-deep: #14392d;
  --gold: #b48a43;
  --danger: #7b2f2f;
  --shadow: 0 18px 48px rgba(20, 57, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 229, 223, 0.86);
  background: rgba(251, 252, 248, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 8px 0;
}

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

.nav-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 9px 16px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  line-height: 1.25;
}

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

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("hero-law-office.png") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 252, 248, 0.96) 0%, rgba(251, 252, 248, 0.86) 37%, rgba(251, 252, 248, 0.36) 70%, rgba(251, 252, 248, 0.12) 100%);
}

.hero-inner,
.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 660px;
  padding: 80px 0;
}

.eyebrow {
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
}

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

h1 {
  margin-top: 16px;
  font-size: clamp(40px, 7vw, 72px);
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
}

h3 {
  font-size: 21px;
}

p {
  margin: 0;
}

.lead {
  margin-top: 20px;
  color: #39443d;
  font-size: 20px;
  max-width: 620px;
}

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

.quick-facts {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
}

.fact {
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.fact strong {
  display: block;
  color: var(--green-deep);
}

section {
  padding: 72px 0;
}

.band {
  background: var(--soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading p {
  max-width: 520px;
  color: var(--muted);
}

.service-grid,
.article-grid,
.steps,
.two-column,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.two-column,
.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(20, 57, 45, 0.04);
}

.card:hover {
  border-color: rgba(31, 90, 67, 0.34);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--green-deep);
}

.card p,
.article-meta,
.muted {
  color: var(--muted);
}

.card p {
  margin-top: 10px;
}

.tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid #d7ded8;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--green);
  font-size: 13px;
  background: #f8fbf7;
}

.step {
  border-top: 3px solid var(--green);
  padding-top: 14px;
}

.step-number {
  color: var(--gold);
  font-weight: 700;
}

.page-title {
  padding: 58px 0;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-title .section-inner {
  max-width: 920px;
}

.page-title p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
}

.content {
  max-width: 880px;
  margin: 0 auto;
}

.content h2 {
  margin-top: 38px;
  font-size: 28px;
}

.content h3 {
  margin-top: 28px;
}

.content p,
.content li {
  color: #344039;
}

.content p {
  margin-top: 14px;
}

.content ul,
.content ol {
  margin: 14px 0 0;
  padding-left: 24px;
}

.notice {
  border-left: 4px solid var(--gold);
  padding: 18px 20px;
  background: #fffaf0;
  color: #4d422f;
}

.warning {
  border-left-color: var(--danger);
  background: #fff6f5;
}

.site-footer {
  padding: 42px 0;
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.78);
}

.contact-lines {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 620px;
  }

  .hero::before {
    background-position: center right;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(251, 252, 248, 0.98) 0%, rgba(251, 252, 248, 0.92) 55%, rgba(251, 252, 248, 0.5) 100%);
  }

  .quick-facts,
  .service-grid,
  .article-grid,
  .steps,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-copy {
    padding: 54px 0;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions .button,
  .hero-actions .nav-cta {
    width: 100%;
  }

  section {
    padding: 54px 0;
  }

  .card {
    padding: 18px;
  }
}
