:root {
  --ink: #10151d;
  --ink-2: #1a2430;
  --blue: #153b63;
  --blue-2: #245e8a;
  --gold: #b99254;
  --paper: #f7f8f8;
  --line: #dfe4e7;
  --muted: #66727f;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(17, 24, 31, 0.14);
  --font-lishu: "STLiti", "华文隶书", "LiSu", "隶书", "SimLi", "FZLiShu-S01", "Noto Serif SC", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled,
.site-header.solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 18px rgba(16, 21, 29, 0.08);
  backdrop-filter: blur(12px);
}

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

.brand > span {
  display: grid;
  width: max-content;
  max-width: calc(100vw - 132px);
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.brand strong {
  display: block;
  font-family: var(--font-lishu);
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
}

.brand small {
  display: block;
  width: 100%;
  color: currentColor;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.7;
  text-align: justify;
  text-align-last: justify;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}

.main-nav a {
  opacity: 0.88;
}

.main-nav a:hover {
  color: var(--gold);
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.scrolled .lang-switch,
.site-header.solid .lang-switch {
  border-color: var(--line);
  background: #f7f8f8;
}

.lang-switch a {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0.82;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.lang-switch a.active {
  color: var(--white);
  background: var(--blue);
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  border-radius: 6px;
  padding: 11px;
}

.site-header.scrolled .nav-toggle,
.site-header.solid .nav-toggle {
  border-color: var(--line);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 720px;
  color: var(--white);
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  transform: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 18, 28, 0.92), rgba(12, 18, 28, 0.68) 45%, rgba(12, 18, 28, 0.32)),
    linear-gradient(180deg, rgba(12, 18, 28, 0.3), rgba(12, 18, 28, 0.75));
}

@media (min-width: 1600px) {
  .hero-bg {
    background-size: 100% auto;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 172px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 1120px;
  margin-bottom: 22px;
  font-family: var(--font-lishu);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero h1 .title-part {
  display: inline-block;
  white-space: nowrap;
}

.hero-lead {
  max-width: 1040px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 78px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--ink);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(860px, 100%);
  margin: 0;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-facts div {
  padding: 22px;
  background: rgba(12, 18, 28, 0.48);
  backdrop-filter: blur(10px);
}

.hero-facts dt {
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.ticker-band {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--ink);
}

.ticker-label {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.ticker-window {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  gap: 42px;
  min-width: max-content;
  white-space: nowrap;
  animation: ticker 90s linear infinite;
}

.ticker-track a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.ticker-window:hover .ticker-track,
.ticker-window:focus-within .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.section-heading {
  max-width: 780px;
  margin-bottom: 40px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  max-width: none;
}

.section-heading h2,
.contact-panel h2,
.subpage-hero h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.intro-grid,
.advantage-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.intro-copy {
  color: #34404c;
  font-size: 17px;
}

.principles {
  display: grid;
  gap: 14px;
}

.principles article,
.practice-card,
.news-card,
.news-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(16, 21, 29, 0.05);
}

.principles article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 22px;
  row-gap: 10px;
  align-items: start;
  padding: 28px 34px;
}

.principles span {
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.principles h3,
.principles p {
  grid-column: 2;
}

.principles h3,
.practice-card h3,
.news-card h3,
.news-list h2 {
  margin-bottom: 0;
  line-height: 1.35;
}

.principles p,
.practice-card p,
.news-card p,
.news-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.practices {
  width: 100%;
  max-width: none;
  padding: 92px clamp(18px, 4vw, 56px);
  background: var(--white);
}

.practices .section-heading,
.practice-grid {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

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

.practice-card {
  min-height: 278px;
  padding: 24px;
  overflow: hidden;
}

.practice-card .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  color: var(--gold);
  border: 1px solid rgba(185, 146, 84, 0.45);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.practice-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.practice-card li {
  position: relative;
  padding-left: 16px;
  color: #475461;
  font-size: 14px;
}

.practice-card li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "/";
}

.advantages {
  width: min(1180px, calc(100% - 36px));
}

.advantage-statement {
  position: sticky;
  top: 110px;
  padding: 34px;
  color: var(--white);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ink), var(--blue));
  box-shadow: var(--shadow);
}

.advantage-statement p {
  margin: 0;
  font-size: 21px;
  line-height: 1.75;
}

.advantage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.advantage-item {
  padding: 24px;
  border-left: 3px solid var(--gold);
  background: var(--white);
}

.advantage-item h3 {
  margin-bottom: 10px;
}

.advantage-item p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 24px;
}

.meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.news-card .text-link {
  margin-top: auto;
}

.text-link {
  color: var(--blue-2);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 92px;
}

.contact-panel,
.contact-form {
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-panel {
  padding: 42px;
}

.contact-intro {
  color: var(--muted);
}

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

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

.contact-list dd {
  margin: 4px 0 0;
  color: #303b46;
}

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

label span {
  display: block;
  margin-bottom: 7px;
  color: #384451;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfd;
  font: inherit;
}

textarea {
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  overflow-y: auto;
  resize: none;
}

.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 10px;
  align-items: stretch;
}

.captcha-refresh {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f8f8;
  cursor: pointer;
}

.captcha-refresh img {
  display: block;
  width: 148px;
  height: 48px;
  border-radius: 6px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 36px clamp(18px, 4vw, 56px) 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
  background: var(--ink);
}

.footer-inscription {
  width: min(520px, 74vw);
  height: auto;
  margin-bottom: 4px;
  opacity: 0.78;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.footer-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.site-footer strong {
  color: var(--white);
  font-family: var(--font-lishu);
  font-size: 21px;
  line-height: 1.3;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 13px;
}

.subpage {
  padding-top: 78px;
}

.subpage-hero {
  padding: 82px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--blue));
}

.subpage-hero h1 {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.subpage-hero .eyebrow {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

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

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.news-filters button {
  min-height: 38px;
  padding: 8px 16px;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.news-filters button.active {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.news-list article {
  padding: 28px;
}

.news-empty {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.news-list .content {
  margin-top: 18px;
  color: #35424d;
  white-space: pre-wrap;
}

.article-detail {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 92px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue-2);
  font-weight: 800;
}

.article-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: 0;
}

.article-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.article-body {
  padding-top: 36px;
  color: #2f3b47;
  font-size: 18px;
  line-height: 2;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body h2 {
  margin: 42px 0 18px;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0;
}

.article-image {
  margin: 28px 0;
}

.article-image img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.article-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.article-image.compact {
  margin: 24px auto 10px;
  text-align: center;
}

.article-image.compact img {
  width: min(62%, 329px);
}

.article-source {
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.article-source a {
  color: var(--blue-2);
  font-weight: 800;
}

.article-note {
  margin: 42px 0 0;
  padding: 18px 20px;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  background: var(--white);
}

.article-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-nav {
  display: grid;
  gap: 8px;
  text-align: right;
}

.article-nav a {
  color: var(--blue-2);
  font-weight: 800;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 48px;
  padding: 42px clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 18, 28, 0.92), rgba(12, 18, 28, 0.72)),
    url("/assets/site/hero-shenyang-law.png") center top / cover no-repeat;
}

.not-found-brand {
  color: var(--white);
}

.not-found-panel {
  width: min(720px, 100%);
}

.not-found-panel h1 {
  margin-bottom: 18px;
  font-family: var(--font-lishu);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.12;
  letter-spacing: 0;
}

.not-found-panel p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

@media (max-width: 920px) {
  .site-header {
    height: 68px;
  }

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

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.open,
  .main-nav.visible {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .lang-switch {
    justify-content: center;
    margin-top: 8px;
  }

  .lang-switch a {
    flex: 1;
  }

  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-top: 122px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 5.2vw, 44px);
    line-height: 1.18;
  }

  .hero-lead {
    font-size: 18px;
    white-space: normal;
  }

  .hero-facts,
  .intro-grid,
  .advantage-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .section-heading.split p:not(.eyebrow) {
    margin-top: 14px;
  }

  .practice-grid,
  .news-grid,
  .advantage-list {
    grid-template-columns: 1fr;
  }

  .principles article {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 24px;
  }

  .principles article > * {
    min-width: 0;
  }

  .advantage-statement {
    position: static;
  }

  .article-footer {
    display: grid;
  }

  .article-nav {
    text-align: left;
  }
}

@media (min-width: 761px) and (max-width: 920px) {
  .site-header {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    color: inherit;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
  }

  .hero-content {
    width: min(100% - 36px, 760px);
  }

  .hero-lead {
    max-width: 640px;
  }

}

@media (max-width: 560px) {
  .captcha-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-facts div,
  .contact-panel,
  .contact-form {
    padding: 22px;
  }

  .ticker-band {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

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

  .principles span,
  .principles h3,
  .principles p {
    grid-column: 1;
  }

  .principles span {
    grid-row: auto;
  }

  .site-footer {
    gap: 12px;
    padding-top: 30px;
  }

  .footer-inscription {
    width: min(420px, 86vw);
  }

  .footer-legal {
    display: grid;
    gap: 4px;
  }
}
