:root {
  --ink: #17202b;
  --muted: #626d7c;
  --line: #dfe4ec;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --burgundy: #9b2034;
  --burgundy-dark: #751827;
  --gold: #b98a2f;
  --green: #176b5c;
  --navy: #101722;
  --shadow: 0 20px 50px rgba(20, 32, 46, 0.14);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 108px;
  padding: 8px clamp(20px, 4vw, 62px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 222, 231, 0.85);
  box-shadow: 0 8px 30px rgba(20, 32, 46, 0.05);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 44px;
  height: 38px;
  object-fit: contain;
}

.brand .brand-logo-full {
  width: 170px;
  height: auto;
  object-fit: contain;
}

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

.brand strong {
  font-size: 19px;
  line-height: 1.25;
}

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

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: #334155;
  font-size: 15px;
}

.site-nav a {
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--burgundy);
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(155, 32, 52, 0.22);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: url("assets/law-firm-network.jpg") center 42% / cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 112px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 28, 0.94), rgba(12, 18, 28, 0.78) 44%, rgba(12, 18, 28, 0.48) 100%),
    linear-gradient(0deg, rgba(12, 18, 28, 0.52), rgba(12, 18, 28, 0.06) 34%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.08;
  font-weight: 800;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  max-width: 880px;
  margin-top: 28px;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.hero-contact a {
  color: #fff;
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.1;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.floating-cta a,
.floating-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-action {
  color: #fff;
  background: var(--burgundy);
  box-shadow: 0 12px 30px rgba(138, 31, 45, 0.3);
}

.primary-action:hover,
.header-phone:hover,
.floating-cta button:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
}

.secondary-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.58);
}

.secondary-action.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

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

.section h2,
.contact-section h2 {
  margin: 0 0 18px;
  font-size: clamp(29px, 4vw, 45px);
  line-height: 1.22;
  max-width: 900px;
}

.section p,
.contact-section p {
  margin: 0 0 16px;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.intro-band {
  background: #fff;
}

.fact-list {
  display: grid;
  gap: 12px;
}

.fact-list div {
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid rgba(155, 32, 52, 0.22);
  border-radius: 8px;
}

.fact-list span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.fact-list strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.info-card,
.article-card {
  min-height: 100%;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(20, 32, 46, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-card:hover,
.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(155, 32, 52, 0.2);
  box-shadow: 0 18px 40px rgba(20, 32, 46, 0.1);
}

.info-card h3,
.article-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.info-card p,
.article-card p {
  margin: 0;
}

.card-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--burgundy);
  font-weight: 900;
}

.muted-section {
  background:
    linear-gradient(180deg, #f7f9fc 0%, #f2f5f8 100%);
}

.notice-line {
  margin-top: 22px;
  padding: 16px 18px;
  color: #374151;
  background: #fffaf0;
  border: 1px solid #ead9a9;
  border-radius: 8px;
}

.process-section {
  background: #fff;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  counter-increment: process;
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.process-list span {
  color: var(--muted);
}

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

.portrait-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: 0 12px 26px rgba(20, 32, 46, 0.08);
}

.single-portrait {
  grid-template-columns: minmax(240px, 360px);
  justify-content: end;
}

.single-portrait img {
  aspect-ratio: 4 / 5;
  width: min(360px, 100%);
}

.lawyer-details {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.lawyer-details div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.lawyer-details dt {
  color: var(--muted);
  font-weight: 700;
}

.lawyer-details dd {
  margin: 0;
  font-weight: 800;
}

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

.text-link {
  color: var(--burgundy);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.article-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.article-card a:hover {
  color: var(--burgundy);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
}

.contact-section {
  padding: clamp(62px, 9vw, 108px) 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 23, 34, 0.98), rgba(16, 23, 34, 0.94)),
    url("assets/law-firm-network.jpg") center / cover;
}

.contact-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
}

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

.qr-panel figure,
.modal-qr-grid figure {
  margin: 0;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.qr-panel img,
.modal-qr-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.qr-panel figcaption,
.modal-qr-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px) 92px;
  color: #c9d1dc;
  background: #121821;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 80px 0 #121821;
}

.site-footer p {
  margin: 4px 0 0;
  color: #aeb8c4;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: flex;
  gap: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.floating-cta a {
  color: var(--burgundy);
  background: #fff;
  border: 1px solid var(--line);
}

.floating-cta button {
  color: #fff;
  background: var(--burgundy);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 24, 0.68);
}

.modal-dialog {
  position: relative;
  width: min(650px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: clamp(24px, 4vw, 34px);
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-dialog h2 {
  margin: 0 36px 10px 0;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.25;
  word-break: keep-all;
}

.modal-dialog p {
  margin: 0 0 18px;
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.full-width {
  width: 100%;
  margin-top: 16px;
}

.phone-number {
  white-space: nowrap;
}

.article-page {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
}

.article-page h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
}

.article-page h2 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
}

.article-page p,
.article-intro {
  color: var(--muted);
}

.article-page time {
  display: block;
  margin-bottom: 26px;
  color: var(--green);
  font-weight: 800;
}

.article-title {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.18;
}

.article-cta {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 18px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(20, 32, 46, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .header-phone {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

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

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

@media (max-width: 720px) {
  .site-header {
    min-height: 92px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 34px;
  }

  .brand .brand-logo-full {
    width: 128px;
    height: auto;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    display: none;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: 68vh;
    background-position: center top;
  }

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

  .hero-contact {
    padding-left: 14px;
  }

  .hero-contact a {
    font-size: 30px;
  }

  .cards-3,
  .cards-4,
  .cards-6,
  .process-list,
  .qr-panel,
  .modal-qr-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .single-portrait {
    grid-template-columns: minmax(0, 1fr);
    justify-content: start;
  }

  .section-heading-row {
    display: block;
  }

  .floating-cta {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 8px;
  }

  .floating-cta a,
  .floating-cta button {
    flex: 1;
    padding: 0 10px;
  }
}

@media (max-width: 420px) {
  .portrait-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .modal-dialog h2 {
    margin-right: 42px;
  }
}
