:root {
  --ink: #17202a;
  --muted: #5d6877;
  --line: #dfe3e8;
  --paper: #ffffff;
  --soft: #f8f9fa;
  --deep: #1a5276;
  --accent: #2980b9;
  --accent-2: #1a5276;
  --shadow: 0 18px 45px rgba(26, 82, 118, .12);
  --danger: #c0392b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(223, 227, 232, .8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--deep);
  white-space: nowrap;
}

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

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

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
  content: "";
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 23, 36, .82), rgba(10, 23, 36, .44) 55%, rgba(10, 23, 36, .12));
}

.hero-content {
  position: relative;
  width: min(920px, 100%);
  padding: clamp(42px, 8vw, 92px) clamp(20px, 6vw, 88px);
  color: #fff;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  margin: 18px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, .88);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #85c1e9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  transition: background .2s ease;
}

.btn-primary:hover {
  background: #1f618d;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .1);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stats-band div {
  padding: 28px clamp(18px, 3vw, 42px);
  background: #fff;
}

.stats-band strong {
  display: block;
  color: var(--deep);
  font-size: 28px;
}

.stats-band span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.section.muted,
.muted {
  width: 100%;
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

h2 {
  margin: 0 0 18px;
  color: var(--deep);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  color: var(--deep);
  font-size: 20px;
}

p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent-2);
  font-weight: 800;
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.image-grid img,
.feature-image,
.gallery img,
.map-section img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-grid img:first-child {
  grid-row: span 2;
  height: 100%;
}

.image-grid img:not(:first-child) {
  aspect-ratio: 4 / 3;
}

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

.section-head h2 {
  margin-bottom: 0;
}

.service-grid,
.practice-list,
.article-grid,
.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.practice-list article,
.article-grid article,
.lawyer-grid article,
.news-list article,
.featured-news,
.contact-panel,
.contact-form,
.values article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card,
.practice-list article,
.article-grid article,
.news-list article,
.featured-news,
.contact-panel,
.contact-form,
.values article {
  padding: 26px;
}

.service-card span,
.article-grid span,
.news-list time {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

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

.team-strip article {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.team-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.team-strip h3,
.team-strip p {
  margin-right: 18px;
  margin-left: 18px;
}

.team-strip h3 {
  margin-top: 16px;
}

.team-strip p {
  margin-bottom: 18px;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(42px, 6vw, 70px) max(20px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: linear-gradient(120deg, var(--deep), #2980b9);
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.page-hero {
  min-height: 360px;
  display: grid;
  align-content: end;
  padding: 110px clamp(20px, 6vw, 88px) 58px;
  color: #fff;
  background: linear-gradient(90deg, rgba(16, 40, 63, .86), rgba(16, 40, 63, .5)), url("../images/about.jpg") center/cover;
}

.about-hero {
  background-image: linear-gradient(90deg, rgba(16, 40, 63, .86), rgba(16, 40, 63, .5)), url("../images/about/about4.jpg");
}

.services-hero {
  background-image: linear-gradient(90deg, rgba(16, 40, 63, .86), rgba(16, 40, 63, .5)), url("../images/about/about2.jpg");
}

.team-hero {
  background-image: linear-gradient(90deg, rgba(16, 40, 63, .86), rgba(16, 40, 63, .5)), url("../images/about/about1.jpg");
}

.cases-hero {
  background-image: linear-gradient(90deg, rgba(16, 40, 63, .86), rgba(16, 40, 63, .5)), url("../images/about/about5.jpg");
}

.news-hero,
.contact-hero {
  background-image: linear-gradient(90deg, rgba(16, 40, 63, .86), rgba(16, 40, 63, .5)), url("../images/ho.jpg");
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

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

.gallery {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 14px;
}

.gallery img {
  height: 260px;
}

.gallery img:first-child {
  grid-row: span 2;
  height: 534px;
}

.practice-list article ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.lawyer-grid article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lawyer-grid article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.lawyer-grid img {
  width: 92px;
  height: 118px;
  border-radius: 8px;
  object-fit: cover;
}

.lawyer-grid h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.lawyer-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.article-grid article h2,
.news-list h2 {
  font-size: 22px;
}

.news-layout,
.contact-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.featured-news {
  position: sticky;
  top: 98px;
  background: var(--deep);
}

.featured-news h2,
.featured-news p {
  color: #fff;
}

.news-list {
  display: grid;
  gap: 16px;
}

.contact-panel dl {
  margin: 20px 0;
}

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

.contact-panel dt {
  color: var(--muted);
  font-size: 14px;
}

.contact-panel dd {
  margin: 0;
  color: var(--deep);
  font-weight: 800;
}

.qr {
  width: 136px;
  border-radius: 8px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.map-section {
  padding-top: 0;
}

.map-section img {
  max-height: 560px;
  object-fit: cover;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 44px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, .78);
  background: #0c1d2d;
}

.site-footer h2 {
  color: #fff;
  font-size: 24px;
}

.site-footer p {
  margin: 4px 0;
  color: rgba(255, 255, 255, .76);
}

.site-footer div:last-child {
  display: grid;
  gap: 8px;
  align-content: start;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 14px;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  border: none;
  background: none;
  color: var(--deep);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .25s ease;
  content: "";
}

.faq-item.is-open .faq-question::after {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
}

.faq-answer > div {
  padding: 0 22px 18px;
  color: var(--muted);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item::before {
  position: absolute;
  top: 6px;
  left: -26px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: #fff;
  content: "";
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 14px;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.timeline-item p {
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: rgba(255,255,255,.4);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Service nav sidebar */
.service-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  height: fit-content;
}

.service-nav a {
  padding: 12px 16px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}

.service-nav a:hover,
.service-nav a.is-active {
  background: var(--soft);
  color: var(--deep);
}

.service-detail h3 {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.service-detail h3:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Lawyer card large */
.lawyer-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lawyer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.lawyer-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.lawyer-card .info {
  padding: 18px;
}

.lawyer-card .name {
  margin: 0 0 4px;
  color: var(--deep);
  font-size: 18px;
  font-weight: 800;
}

.lawyer-card .title {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.lawyer-card .desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tag */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
}

/* Toast */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  z-index: 40;
  padding: 14px 28px;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  font-weight: 700;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

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

  .site-nav {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

  .stats-band,
  .service-grid,
  .practice-list,
  .article-grid,
  .lawyer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .team-strip,
  .values {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-news {
    position: static;
  }

  .service-nav {
    position: static;
    display: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 66px;
    padding: 8px 14px;
  }

  .brand span {
    max-width: 12em;
    white-space: normal;
    line-height: 1.25;
  }

  .site-nav {
    top: 66px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 23, 36, .45), rgba(10, 23, 36, .86));
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero-actions,
  .cta-band,
  .section-head,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-band,
  .service-grid,
  .practice-list,
  .article-grid,
  .lawyer-grid,
  .team-strip,
  .values,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img,
  .gallery img:first-child {
    height: auto;
    aspect-ratio: 4 / 3;
  }

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

  .image-grid img:first-child {
    grid-row: auto;
  }

  .lawyer-grid article {
    grid-template-columns: 82px 1fr;
  }

  .lawyer-grid img {
    width: 82px;
    height: 106px;
  }

  .section {
    width: min(100% - 28px, 1180px);
  }
}
