:root {
  --ink: #121721;
  --ink-2: #1d2735;
  --navy: #18273a;
  --red: #8e2630;
  --gold: #b49a63;
  --paper: #f6f1e8;
  --paper-2: #ede6d9;
  --white: #ffffff;
  --muted: #65707f;
  --line: rgba(29, 39, 53, 0.14);
  --shadow: 0 18px 45px rgba(18, 23, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

main {
  flex: 1 0 auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 23, 33, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 23, 33, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

a:hover {
  text-decoration: none;
}

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

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

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(142, 38, 48, 0.2);
}

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

.brand strong {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.2;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 16px;
}

.nav a {
  padding: 11px 16px;
  border-radius: 6px;
}

.nav a:hover,
.nav a.active {
  background: rgba(180, 154, 99, 0.14);
}

.menu-button {
  display: none;
  width: 42px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.header-action {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 16px;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(18, 23, 33, 0.13);
}

.button-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.button-secondary {
  background: var(--paper);
  border-color: rgba(246, 241, 232, 0.48);
  color: var(--red);
}

.button-quiet {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--paper);
}

.hero-band {
  min-height: calc(100vh - 86px);
  padding: clamp(20px, 3vh, 34px) 0;
  display: flex;
  align-items: center;
  color: var(--paper);
  background: linear-gradient(120deg, rgba(18, 23, 33, 0.98) 0%, rgba(24, 39, 58, 0.96) 48%, rgba(62, 43, 42, 0.9) 100%);
  border-bottom: 1px solid rgba(246, 241, 232, 0.1);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.68fr);
  align-items: center;
  gap: 42px;
}

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

h1,
h2 {
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 14px;
  font-size: clamp(38px, 4.2vw, 50px);
  line-height: 1.15;
}

.lead {
  max-width: 780px;
  margin-bottom: 20px;
  color: rgba(246, 241, 232, 0.88);
  font-size: 17px;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: 0;
}

.hero-facts div {
  padding: 12px 14px;
  border: 1px solid rgba(246, 241, 232, 0.16);
  border-radius: 8px;
  background: rgba(246, 241, 232, 0.07);
}

.hero-facts dt {
  color: rgba(246, 241, 232, 0.64);
  font-size: 12px;
}

.hero-facts dd {
  margin: 3px 0 0;
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
}

.portrait-panel {
  position: relative;
  max-width: 445px;
  margin-left: auto;
}

.portrait-card {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(180, 154, 99, 0.28);
  border-radius: 10px;
  background: rgba(246, 241, 232, 0.06);
  box-shadow: var(--shadow);
}

.portrait-frame {
  height: clamp(330px, 48vh, 420px);
  border-radius: 8px;
  overflow: hidden;
  background: #3e3d39;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.portrait-meta {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 8px;
  background: rgba(18, 23, 33, 0.84);
}

.portrait-meta span,
.portrait-meta strong {
  display: block;
}

.portrait-meta span {
  color: var(--gold);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 24px;
  font-weight: 700;
}

.portrait-meta strong {
  margin-top: 4px;
  color: var(--white);
}

.portrait-meta p {
  margin: 7px 0 0;
  color: rgba(246, 241, 232, 0.74);
  font-size: 13px;
}

.position-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.strip-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.1fr 1.16fr;
}

.strip-grid > div {
  min-height: 78px;
  padding: 13px 20px;
  border-left: 1px solid var(--line);
}

.strip-grid > div:last-child {
  border-right: 1px solid var(--line);
}

.strip-label {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.strip-grid strong {
  display: block;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}

.section {
  padding: 62px 0;
}

.section-alt {
  background: var(--paper-2);
}

.section-dark {
  color: var(--paper);
  background:
    linear-gradient(128deg, rgba(18, 23, 33, 0.98), rgba(29, 39, 53, 0.94)),
    linear-gradient(90deg, transparent, rgba(180, 154, 99, 0.16));
}

.section-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.section-heading-wide {
  max-width: none;
  display: grid;
  grid-template-columns: 0.48fr 1fr;
  gap: 26px;
  align-items: end;
}

.section-heading h2,
.split-copy h2,
.contact-band h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.25;
}

.section-dark .section-heading h2,
.section-dark .section-heading p,
.section-dark .split-copy h2,
.section-dark .split-copy p {
  color: var(--paper);
}

.section-heading p:not(.eyebrow),
.split-copy p,
.contact-band p {
  color: var(--muted);
  font-size: 16px;
}

.section-dark .section-heading p:not(.eyebrow),
.section-dark .split-copy p {
  color: rgba(246, 241, 232, 0.78);
}

.grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

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

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

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

.equal-card-grid > .content-card {
  height: 100%;
  min-height: 260px;
}

.intro-grid {
  align-items: center;
}

.card,
.practice-card,
.profile-card,
.case-lens {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(18, 23, 33, 0.04);
}

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

.practice-card > span,
.profile-card > span {
  width: 38px;
  display: grid;
  grid-template-rows: auto 2px;
  row-gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.practice-card > span::after,
.profile-card > span::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: currentColor;
}

.practice-card h3,
.profile-card h3,
.case-lens h3,
.card h3 {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
}

.practice-card p,
.practice-card li,
.profile-card p,
.case-lens span,
.card p,
.card li {
  color: var(--muted);
}

.practice-card ul {
  margin: auto 0 0;
  padding: 18px 0 0 19px;
  border-top: 1px solid var(--line);
}

.practice-card li + li,
.card li + li {
  margin-top: 5px;
}

.accent-red > span {
  color: var(--red);
}

.accent-gold > span {
  color: var(--gold);
}

.accent-ink > span {
  color: var(--ink-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.75fr);
  align-items: start;
  gap: 34px;
}

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

.proof-grid div {
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(246, 241, 232, 0.15);
  border-radius: 8px;
  background: rgba(246, 241, 232, 0.06);
}

.proof-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 20px;
}

.proof-grid span {
  color: rgba(246, 241, 232, 0.76);
  font-size: 13px;
}

.case-lens {
  padding: 24px;
  background: var(--paper);
}

.case-lens ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lens;
}

.case-lens li {
  position: relative;
  padding: 0 0 18px 46px;
  counter-increment: lens;
}

.case-lens li::before {
  content: counter(lens);
  position: absolute;
  left: 0;
  top: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--red);
  font-weight: 800;
}

.case-lens li + li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.case-lens li + li::before {
  top: 20px;
}

.case-lens strong,
.case-lens span {
  display: block;
}

.case-lens strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 17px;
}

.profile-card {
  min-height: 220px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-card > span {
  margin-bottom: 24px;
  color: var(--gold);
}

.page-hero {
  padding: 58px 0 40px;
  color: var(--paper);
  background: linear-gradient(120deg, rgba(18, 23, 33, 0.98), rgba(24, 39, 58, 0.94));
}

.page-hero .breadcrumb {
  margin-bottom: 14px;
  color: rgba(246, 241, 232, 0.64);
  font-size: 13px;
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 50px);
}

.page-hero p {
  max-width: 860px;
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.82);
  font-size: 17px;
}

.error-main {
  background: linear-gradient(120deg, rgba(18, 23, 33, 0.98), rgba(24, 39, 58, 0.94));
}

.error-main .page-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
}

.content-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.legal-text .content-card + .content-card {
  margin-top: 18px;
}

.content-card h2,
.content-card h3 {
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.content-card ul,
.content-card ol {
  margin: 12px 0 0 20px;
  color: var(--muted);
}

.content-card > :last-child {
  margin-bottom: 0;
}

.contact-band {
  padding: 50px 0;
  color: var(--paper);
  background: var(--red);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(380px, 0.74fr);
  align-items: stretch;
  gap: 28px;
}

.contact-band .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.contact-band h2,
.contact-band p {
  color: var(--white);
}

.contact-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 18px;
}

.contact-actions .button-primary {
  background: var(--ink);
  border-color: var(--ink);
}

.contact-panel {
  padding: 16px;
  border: 1px solid rgba(246, 241, 232, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.qr-block {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 15px;
  padding: 14px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.qr-block img {
  width: 112px;
  height: 112px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.qr-block strong,
.qr-block span {
  display: block;
}

.qr-block strong {
  color: var(--red);
  font-size: 19px;
}

.qr-block span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.contact-details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.contact-details b {
  display: inline-block;
  width: 72px;
  color: rgba(255, 255, 255, 0.58);
}

.contact-details a,
.site-footer a {
  color: var(--paper);
  border-bottom: 1px solid rgba(246, 241, 232, 0.35);
}

.site-footer {
  flex-shrink: 0;
  padding: 32px 0 24px;
  background: var(--ink);
  color: rgba(246, 241, 232, 0.68);
  border-top: 4px solid var(--red);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-identity strong {
  display: block;
  color: var(--paper);
  font-size: 16px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  min-width: 260px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
  color: rgba(246, 241, 232, 0.58);
  font-size: 13px;
}

.footer-bottom span {
  color: var(--gold);
  font-family: "Noto Serif SC", serif;
}

.legal-text p,
.legal-text li {
  color: var(--muted);
}

.note {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(180, 154, 99, 0.82);
  border-radius: 8px;
  background: rgba(180, 154, 99, 0.09);
  color: var(--muted);
}

.note b,
.note span {
  display: block;
}

.note b {
  margin-bottom: 4px;
  color: var(--ink);
}

@media (max-width: 1020px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .brand {
    min-width: auto;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    background: rgba(18, 23, 33, 0.04);
  }

  .header-action {
    order: 3;
  }

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

  .portrait-panel {
    max-width: 520px;
    margin: 0;
  }

  .grid-3,
  .grid-4,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-wide {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 30px, 1180px);
  }

  .hero-band {
    min-height: auto;
    padding: 32px 0;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .hero-facts,
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .strip-grid > div,
  .strip-grid > div:last-child {
    border-right: 1px solid var(--line);
  }

  .portrait-frame {
    height: 360px;
  }

  .section {
    padding: 48px 0;
  }

  .section-heading h2,
  .split-copy h2,
  .contact-band h2 {
    font-size: 28px;
  }

  .contact-actions {
    justify-content: stretch;
  }

  .contact-actions .button {
    flex: 1 1 100%;
  }

  .qr-block {
    grid-template-columns: 92px 1fr;
  }

  .qr-block > div {
    min-width: 0;
  }

  .qr-block img {
    width: 92px;
    height: 92px;
  }

  .contact-details p,
  .contact-details a,
  .footer-identity p,
  .footer-bottom span {
    overflow-wrap: anywhere;
  }

  .contact-details b {
    display: block;
    width: auto;
    margin-bottom: 2px;
  }

  .footer-main {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    min-width: 0;
    margin-top: 14px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    gap: 9px;
    max-width: calc(100% - 56px);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

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

  .brand small {
    font-size: 11px;
  }

  .menu-button {
    width: 40px;
    height: 38px;
  }

  .header-action {
    min-height: 38px;
    padding: 8px 16px;
  }
}
