:root {
  --red: #8d1a26;
  --red-dark: #64111a;
  --ink: #202124;
  --muted: #646464;
  --line: #ded8d1;
  --paper: #ffffff;
  --warm: #f6f3ed;
  --green: #2f5f54;
  --gold: #a97933;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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;
  min-height: 68px;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--red);
  font-size: 18px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

nav a:hover {
  color: var(--red);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 38px;
  align-items: stretch;
  min-height: calc(100vh - 68px);
  padding: 80px 7vw 54px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.94)),
    url("assets/longan-law-firm-honors.jpg") center 18% / cover no-repeat;
}

.hero-copy {
  align-self: center;
  max-width: 780px;
  padding: 36px 0;
}

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

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

h1 {
  margin-bottom: 12px;
  color: var(--red-dark);
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
  font-weight: 700;
}

.hero-body {
  max-width: 700px;
  margin-bottom: 30px;
  color: #4c4c4c;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--red);
  font-weight: 700;
}

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

.button.secondary {
  color: var(--red);
  background: rgba(255, 255, 255, 0.72);
}

.hero-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(141, 26, 38, 0.24);
  padding: 28px;
}

.hero-panel dl {
  margin: 0;
}

.hero-panel div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:first-child {
  padding-top: 0;
}

.hero-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  margin-bottom: 6px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
}

dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.section {
  padding: 68px 7vw;
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 0;
  color: var(--red-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: 21px;
  line-height: 1.35;
}

.prose {
  max-width: 920px;
}

.prose p {
  margin-bottom: 14px;
  color: #3c3c3c;
  font-size: 17px;
  text-indent: 2em;
}

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

.service-grid article {
  min-height: 210px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.service-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.article-list {
  display: grid;
  gap: 14px;
  max-width: 960px;
}

.article-row {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.article-row:last-child {
  border-bottom: 1px solid var(--line);
}

.article-row strong {
  color: var(--red-dark);
  font-size: 24px;
}

.article-row span:last-child {
  color: var(--muted);
}

.article-meta {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.firm-section figure {
  max-width: 720px;
  margin: 0;
}

.firm-section img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
}

summary {
  cursor: pointer;
  color: var(--red-dark);
  font-size: 18px;
  font-weight: 700;
}

details p {
  margin: 12px 0 0;
  color: #4b4b4b;
  text-indent: 2em;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.contact-box {
  padding: 24px;
  color: #fff;
  background: var(--red-dark);
}

.contact-box p {
  margin-bottom: 18px;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

footer {
  padding: 28px 7vw;
  color: #fff;
  background: #2b2b2b;
  font-size: 14px;
}

footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 24px;
  }

  nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .hero-copy {
    padding: 0;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .brand-text {
    font-size: 18px;
  }

  nav {
    font-size: 14px;
  }

  .hero,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .hero-lead {
    font-size: 25px;
  }

  .hero-body {
    font-size: 16px;
  }

  .hero-panel {
    padding: 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: auto;
  }

  .article-row strong {
    font-size: 21px;
  }

  .button {
    width: 100%;
  }
}

