:root {
  color-scheme: light;
  --page: #eef2f6;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --ink: #172033;
  --muted: #5f6b7c;
  --subtle: #8a96a8;
  --line: #dce3ec;
  --line-strong: #c7d1df;
  --navy: #102a43;
  --navy-2: #183b56;
  --blue: #1f5f99;
  --gold: #b8873a;
  --gold-dark: #8a6429;
  --red: #8c2f25;
  --shadow: 0 22px 55px rgba(19, 38, 68, 0.12);
  --shadow-soft: 0 10px 24px rgba(19, 38, 68, 0.08);
  --radius: 8px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(16, 42, 67, 0.08), rgba(238, 242, 246, 0) 320px),
    radial-gradient(circle at 18% 0%, rgba(184, 135, 58, 0.1), transparent 310px),
    var(--page);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #eef2f6;
}

::-webkit-scrollbar-thumb {
  background: #aab7c6;
  border-radius: 999px;
}

.site-header,
.legacy-home,
.site-footer,
.page-shell,
.contact-page,
.article-shell {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(199, 209, 223, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.utility-bar {
  display: flex;
  justify-content: flex-end;
  min-height: 30px;
  padding: 8px 22px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-bar a {
  text-decoration: none;
}

.header-band {
  min-height: 126px;
  padding: 30px 34px 24px;
  background:
    linear-gradient(105deg, rgba(16, 42, 67, 0.98), rgba(24, 59, 86, 0.92) 54%, rgba(184, 135, 58, 0.72)),
    url("/legacy-assets/diy-pics/20101020/1287553832.jpg") center / cover no-repeat;
}

.brand {
  display: inline-grid;
  gap: 3px;
  color: #ffffff;
  text-decoration: none;
}

.brand span {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  color: #f2d18c;
  font: 700 12px/1.2 Georgia, serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 14px 14px;
  background: #ffffff;
  border-top: 4px solid var(--gold);
}

.site-header nav a {
  position: relative;
  flex: 1 1 auto;
  min-width: 92px;
  padding: 11px 12px;
  color: #334155;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: #ffffff;
  background: var(--navy);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.legacy-home {
  margin-top: 18px;
  overflow: hidden;
  background: var(--paper);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legacy-board {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.98)),
    url("/legacy-assets/diy-pics/20100602/1275441962.jpg") top center / 100% auto no-repeat;
}

.side-column,
.main-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.main-column {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
}

.legacy-panel {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(19, 38, 68, 0.05);
}

.legacy-panel h2 {
  margin: 0;
  padding: 15px 18px 13px;
  color: var(--navy);
  background: linear-gradient(90deg, rgba(31, 95, 153, 0.12), rgba(184, 135, 58, 0.08), transparent);
  border-bottom: 1px solid var(--line);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.category-list {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  color: #263548;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-list a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 135, 58, 0.12);
}

.category-list a:hover {
  color: var(--blue);
  background: #f4f7fb;
  transform: translateX(2px);
}

.contact-card p {
  margin: 0;
  padding: 0 16px;
  color: #39465a;
  font-size: 14px;
  line-height: 2;
}

.contact-card p:first-of-type {
  padding-top: 14px;
}

.contact-card p:last-child {
  padding-bottom: 15px;
}

.about-strip {
  min-height: 244px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    url("/legacy-assets/index-pics/20100313/201003131268446918772.jpg") right 18px center / 260px auto no-repeat;
}

.about-content {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.about-content img,
.team-strip img,
.contact-page img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
}

.about-content img {
  height: 142px;
  box-shadow: 0 12px 28px rgba(19, 38, 68, 0.1);
}

.about-content p {
  margin: 0;
  color: #2a3547;
  font-size: 16px;
  line-height: 2;
}

.more-link {
  position: absolute;
  right: 14px;
  top: 12px;
  color: var(--gold-dark);
  text-decoration: none;
  font: 700 12px/1 Georgia, serif;
  cursor: pointer;
  transition: color 0.2s ease;
}

.more-link:hover {
  color: var(--blue);
}

.team-strip a {
  display: block;
  margin: 14px;
  overflow: hidden;
  border-radius: 6px;
}

.team-strip img {
  height: 188px;
  transition: transform 0.45s ease;
}

.team-strip a:hover img {
  transform: scale(1.04);
}

.news-columns {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-panel {
  min-height: 286px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-panel:hover {
  transform: translateY(-2px);
  border-color: #c6d4e4;
  box-shadow: var(--shadow-soft);
}

.news-panel ul {
  margin: 0;
  padding: 12px 16px 16px;
  list-style: none;
}

.news-panel li {
  border-bottom: 1px solid #edf1f6;
}

.news-panel li:last-child {
  border-bottom: 0;
}

.news-panel li a {
  display: block;
  overflow: hidden;
  padding: 9px 0 9px 14px;
  color: #334155;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.35;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-panel li a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 9px 3px -13px;
  background: var(--gold);
}

.news-panel li a:hover {
  color: var(--red);
  transform: translateX(3px);
}

.client-strip {
  grid-column: 1 / -1;
}

.logo-strip {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 82px;
  padding: 16px 0;
  background: linear-gradient(#ffffff, #f7f9fc);
  border-top: 1px solid var(--line);
  user-select: none;
}

.logo-marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
  min-width: 100%;
  padding-inline: 8px;
  animation: marquee-scroll 34s linear infinite;
}

.logo-strip:hover .logo-marquee-content {
  animation-play-state: paused;
}

.logo-marquee-content a {
  flex: 0 0 168px;
  display: block;
  height: 56px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(19, 38, 68, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.logo-marquee-content a:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}

.logo-marquee-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

@keyframes marquee-scroll {
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

.page-shell,
.contact-page,
.article-shell {
  margin-top: 18px;
  padding: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-shell h1,
.contact-page h1,
.article-shell h1 {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lead,
.prose,
.image-led p {
  color: #2f3b4f;
  font-size: 16px;
  line-height: 2;
}

.prose {
  max-width: 860px;
}

.prose p {
  margin: 0 0 16px;
}

.name-grid,
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.practice-item,
.name-grid span,
.article-card {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.lawyer-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(19, 38, 68, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lawyer-card:hover {
  transform: translateY(-3px);
  border-color: #c6d4e4;
  box-shadow: var(--shadow-soft);
}

.lawyer-photo-wrap {
  min-height: 190px;
  overflow: hidden;
  background: #f8fafc;
  border-right: 1px solid var(--line);
}

.lawyer-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.lawyer-card:hover .lawyer-photo-wrap img {
  transform: scale(1.04);
}

.lawyer-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.lawyer-info h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.25;
}

.lawyer-info h2 small {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  color: var(--gold-dark);
  border: 1px solid rgba(184, 135, 58, 0.35);
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.lawyer-cert,
.lawyer-specialty,
.no-bio {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}

.contact-page img {
  min-height: 300px;
}

.contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--navy);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  color: #2f3b4f;
}

.article-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-filter-nav a {
  min-width: 90px;
  padding: 9px 14px;
  color: #2f3b4f;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.article-filter-nav a.active,
.article-filter-nav a:hover {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

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

.article-list .article-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 20px 22px;
  box-shadow: 0 5px 16px rgba(19, 38, 68, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-list .article-card:hover {
  transform: translateY(-2px);
  border-color: #c6d4e4;
  box-shadow: var(--shadow-soft);
}

.article-card p {
  margin: 0;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
}

.article-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
}

.article-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

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

.article-card span {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.article-list .article-card p {
  grid-row: 1 / span 2;
  align-self: start;
  width: fit-content;
  max-width: 96px;
  padding: 5px 8px;
  color: var(--navy);
  background: #eef4fb;
  border-left: 3px solid var(--gold);
}

.success-gallery {
  margin-top: 20px;
}

.gallery-intro {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.gallery-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 7px 20px rgba(19, 38, 68, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  border-color: #c6d4e4;
  box-shadow: var(--shadow-soft);
}

.gallery-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 142px;
  padding: 24px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.gallery-img-wrap img {
  max-height: 116px;
  object-fit: contain;
}

.gallery-card h3 {
  margin: 0;
  padding: 14px 12px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.article-detail {
  max-width: 860px;
  margin: 20px auto 0;
}

.article-detail time {
  color: var(--subtle);
  font: 13px/1.4 Georgia, serif;
}

.article-body {
  margin-top: 26px;
  color: #202a3b;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 17px;
  line-height: 2.05;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.text-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.site-footer {
  margin-top: 18px;
  margin-bottom: 24px;
  padding: 24px 28px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.96), rgba(24, 59, 86, 0.92)),
    url("/legacy-assets/diy-pics/20101020/1287563793.jpg") center / cover no-repeat;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 14px;
}

.site-footer nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-footer nav a:hover {
  color: #f2d18c;
}

.site-footer p {
  margin: 0;
  font: 13px/1.8 Verdana, Arial, sans-serif;
}

.site-footer > div:last-child {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.site-footer > div:last-child a {
  color: inherit;
  text-decoration: none;
}

.reveal-up {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

.reveal-up.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.75s ease;
  will-change: opacity;
}

.reveal-fade.active {
  opacity: 1;
}

.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .site-header,
  .legacy-home,
  .site-footer,
  .page-shell,
  .contact-page,
  .article-shell {
    width: min(100% - 24px, 720px);
  }

  .site-header {
    position: relative;
    margin-top: 12px;
  }

  .header-band {
    padding: 18px;
  }

  .site-header nav {
    padding: 0 8px 8px;
  }

  .site-header nav a {
    flex: 1 1 25%;
    min-width: 86px;
    font-size: 14px;
  }

  .legacy-board,
  .main-column,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .legacy-board,
  .page-shell,
  .contact-page,
  .article-shell {
    padding: 22px;
  }

  .news-columns,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-content img {
    width: 190px;
  }

  .article-list .article-card {
    grid-template-columns: 1fr;
  }

  .article-list .article-card p {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-header,
  .legacy-home,
  .site-footer,
  .page-shell,
  .contact-page,
  .article-shell {
    width: 100%;
    border-radius: 0;
  }

  .site-header {
    margin-top: 0;
    border-inline: 0;
  }

  .utility-bar {
    padding-inline: 14px;
  }

  .brand span {
    font-size: 27px;
  }

  .site-header nav a {
    flex-basis: 50%;
  }

  .legacy-board,
  .page-shell,
  .contact-page,
  .article-shell {
    padding: 16px;
  }

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

  .lawyer-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .lawyer-photo-wrap {
    min-height: 158px;
  }

  .gallery-img-wrap {
    min-height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up,
  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
  }

  .logo-marquee-content {
    animation: none !important;
    flex-wrap: wrap;
  }

  .logo-strip {
    overflow-x: auto;
  }
}
