@font-face {
  font-family: "SRZT Serif";
  src: url("assets/srzt-serif.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f4ead7;
  --muted: #c3c0b6;
  --gold: #edc88e;
  --gold-dark: #bb925e;
  --canvas: #0a151e;
  --border: #858281;
  --serif: "SRZT Serif", "Noto Serif CJK SC", "Songti SC", SimSun, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 16% 44%, #172932a0, transparent 43%),
    radial-gradient(ellipse at 61% 87%, #14242e, transparent 50%), var(--canvas);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #ffdda4; outline-offset: 4px; }
.shell { width: min(87.25%, 78rem); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .5rem; left: .75rem; z-index: 5; padding: .55rem .9rem; background: var(--gold); color: #17130d; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: linear-gradient(110deg, #070f16, #0b1721); border-bottom: 1px solid #a88b5e8c; }
.header-inner { width: min(90%, 83rem); min-height: clamp(3.35rem, 4.8vw, 4.35rem); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand, .site-nav { display: flex; align-items: center; }
.brand { gap: .8rem; font: 700 clamp(1.18rem, 2.12vw, 1.78rem)/1 var(--serif); letter-spacing: .035em; white-space: nowrap; }
.brand .icon { width: 1.15em; height: 1.15em; color: #f5dfb7; }
.brand span { padding-left: .72rem; border-left: 1px solid var(--gold-dark); }
.site-nav { gap: clamp(.8rem, 3.1vw, 3rem); font: 700 clamp(.92rem, 1.55vw, 1.2rem)/1.25 var(--serif); white-space: nowrap; }
.site-nav a { display: inline-grid; place-items: center; min-height: 2.1rem; }
.site-nav a:hover { color: #ffe1a6; }
.nav-contact { padding: .3rem 1.5rem; border: 1px solid var(--gold); border-radius: .3rem; }
.nav-contact:hover { background: #e9bf8018; }

.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(25.5rem, 38vw, 38rem); overflow: hidden; border-bottom: 1px solid #51626d77; background: #0b1923; }
.hero-art, .hero-art::after { position: absolute; inset: 0; z-index: -1; }
.hero-art img { position: absolute; right: 0; height: 100%; width: 63%; object-fit: cover; object-position: right 53%; }
.hero-art::after { content: ""; z-index: 0; background: linear-gradient(90deg, #081219 0%, #0b1823 28%, #0b1823e8 37%, #0b182365 47%, transparent 60%), linear-gradient(0deg, #08121952, transparent 34%); }
.hero::after { content: ""; position: absolute; top: 1.1rem; right: 1.3rem; width: 1.6rem; height: 1.6rem; border-right: 1px solid #f4d7a7aa; border-top: 1px solid #f4d7a7aa; pointer-events: none; }
.hero-content { padding: 2rem 0 2.5rem clamp(.45rem, 1.1vw, 1.1rem); }
.hero-location { display: flex; align-items: center; gap: 1rem; margin-bottom: .7rem; color: #eee3d3; font-size: clamp(.94rem, 1.45vw, 1.22rem); letter-spacing: .14em; }
.hero-location::after { content: ""; width: 3.4rem; height: 1px; background: linear-gradient(90deg, var(--gold), #c7ac6f35); }
.hero h1 { width: fit-content; color: #f9f0de; font: 700 clamp(3rem, 5.65vw, 5.85rem)/1.17 var(--serif); letter-spacing: .075em; text-shadow: 0 3px 14px #03080dbb; }
.hero h1 span { display: block; }
.hero h1 span + span { color: #f1cb8f; }
.hero-intro { margin-top: .75rem; color: #f3e8d4; font-size: clamp(.95rem, 1.42vw, 1.2rem); letter-spacing: .065em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: clamp(.65rem, 1.6vw, 1.4rem); margin-top: clamp(1.4rem, 2.9vw, 2.5rem); }

.button { display: inline-flex; min-height: 2.85rem; align-items: center; justify-content: center; gap: .6rem; padding: .55rem 1.15rem; border: 1px solid #edcd9d; border-radius: .38rem; font: 700 clamp(.95rem, 1.48vw, 1.18rem)/1.35 var(--serif); white-space: nowrap; transition: background-color 160ms ease, box-shadow 160ms ease; }
.hero-actions .button:first-child { min-width: clamp(9rem, 16.55vw, 13rem); }
.hero-actions .button:last-child { min-width: clamp(7.5rem, 13.8vw, 11rem); }
.button-gold { background: linear-gradient(135deg, #f4d6a3, #d1a76d 95%); color: #1e150c; }
.button-gold:hover { box-shadow: inset 0 0 0 5rem #fff2d51f; }
.button-outline { background: #071018bd; color: #f3d8a4; }
.button-outline:hover { background: #21303c; }

.services, .contact { scroll-margin-top: 1rem; }
.services { padding-top: clamp(1.55rem, 2.8vw, 2.6rem); }
.section-intro { max-width: 58rem; margin: 0 .45rem 1.4rem; color: var(--muted); }
.consultation-faq { margin-top: clamp(2.6rem, 5vw, 4.25rem); }
.faq-list { border: 1px solid #88765f; border-radius: .5rem; background: #10202b; }
.faq-list details + details { border-top: 1px solid #88765f66; }
.faq-list summary { padding: 1rem 1.2rem; cursor: pointer; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.faq-list summary:hover { color: var(--gold); }
.faq-list p { padding: 0 1.2rem 1.2rem; color: var(--muted); }
.section-heading { display: flex; align-items: center; gap: clamp(.65rem, 1.5vw, 1.1rem); margin: 0 0 1.05rem .45rem; font: 700 clamp(1.75rem, 3vw, 2.7rem)/1.35 var(--serif); letter-spacing: .055em; }
.section-heading::before { content: ""; width: .2rem; height: .9em; flex: none; background: linear-gradient(#ffe1ac, #bd925e); }
.section-heading::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, #c49f68d0, #a2a7a754 60%, transparent); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 1.2vw, 1.05rem); }
.service-tile { position: relative; isolation: isolate; display: grid; border: 1px solid #727a80; border-radius: .5rem; background: linear-gradient(135deg, #24333e, #101e29 62%, #182733); transition: border-color 160ms ease, box-shadow 160ms ease; }
.service-tile:hover, .service-tile:focus-within { border-color: var(--gold); box-shadow: 0 0 1.45rem #d8b17c20; }
.service-tile h3 { display: grid; border-radius: inherit; font: 700 clamp(1.05rem, 1.75vw, 1.48rem)/1.35 var(--serif); }
.service-tile a { height: 100%; display: flex; justify-content: center; align-items: center; padding: .75rem; border-radius: inherit; }
.service-tile a:focus-visible { outline-offset: -4px; }
.service-feature { grid-column: 1 / -1; min-height: clamp(7.5rem, 10.9vw, 10rem); border-color: var(--border); background: linear-gradient(135deg, #25323e, #0d1823 70%); }
.service-feature::before, .service-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.service-feature::before { background: var(--tile-art) right center / 67% 100% no-repeat; }
.service-feature::after { background: linear-gradient(90deg, transparent 14%, #101c27 29%, #101c27a8 38%, transparent 62%); }
.service-documents { --tile-art: url("assets/case-documents.webp"); }
.service-evidence { --tile-art: url("assets/case-evidence.webp"); }
.service-feature h3 { font-size: clamp(1.4rem, 2.6vw, 2.25rem); letter-spacing: .055em; color: #f5e4c9; text-shadow: 0 2px 10px #080f16; }
.service-feature a { justify-content: flex-start; padding-inline: clamp(1.2rem, 5.45vw, 5.1rem); }
.service-compact { min-height: clamp(7rem, 11.1vw, 10rem); margin-top: .35rem; text-align: center; }
.service-compact a { flex-direction: column; gap: .45rem; }
.service-icon { width: clamp(2.25rem, 4.25vw, 3.65rem); height: clamp(2.25rem, 4.25vw, 3.65rem); color: #f1c987; stroke-width: 1.75; }
.tile-chevron { display: none; }

.contact { margin-top: clamp(2.6rem, 5vw, 4.25rem); }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 14rem); align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem); padding: clamp(1.15rem, 3.2vw, 2.8rem); border: 1px solid #88765f; border-radius: .5rem; background: linear-gradient(120deg, #1b2a36, #0c1821); }
.contact-label { color: var(--gold); font-size: .94rem; }
.wechat-id { margin: .2rem 0; color: #f8e7c7; font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 650; line-height: 1.35; }
.wechat-card { width: min(100%, 14rem); margin: 0; text-align: center; }
.wechat-qr { display: block; width: 100%; height: auto; border-radius: .4rem; background: #fff; }
.wechat-card figcaption { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.contact-note, #dialog-description { color: var(--muted); }
.contact-actions { margin-top: .8rem; }
.copy-status { margin-top: .55rem; color: #f9d79f; font-size: .9rem; }
.copy-status:empty { position: absolute; }
.site-footer { padding: 1.4rem 0 1.7rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; }
.footer-inner a:hover { color: var(--gold); }
.mobile-contact { display: none; }

dialog { width: min(calc(100% - 2rem), 30rem); max-height: calc(100% - 2rem); padding: 0; border: 1px solid #ab906e; border-radius: .7rem; background: #10202b; color: var(--ink); box-shadow: 0 1.5rem 5rem #0009; }
dialog:not([open]) { display: none; }
dialog::backdrop { background: #03080dc2; }
.dialog-content { position: relative; padding: clamp(1.2rem, 5vw, 2rem); }
.dialog-close { position: absolute; top: .7rem; right: .7rem; }
.dialog-close button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid #8a755b; border-radius: .4rem; background: #192d3c; color: var(--ink); }
.dialog-close button:hover { background: #293e4d; }
.dialog-content h2 { margin: .15rem 2.5rem .75rem 0; font: 700 1.5rem/1.4 var(--serif); }
.dialog-content .wechat-card { margin: 1rem auto; }
.dialog-wechat { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }

@media (max-width: 52rem) {
  .hero-art img { width: 74%; }
  .hero-art::after { background: linear-gradient(90deg, #081219, #0b1823ee 28%, #0b1823a8 49%, #08121918 76%); }
  .service-feature::before { background-size: 75% 100%; }
}

@media (max-width: 40rem) {
  html { scroll-padding-bottom: calc(5.3rem + env(safe-area-inset-bottom)); }
  .shell { width: calc(100% - 2rem); }
  .header-inner { width: calc(100% - 1.7rem); min-height: 3.1rem; gap: .55rem; }
  .brand { gap: .42rem; font-size: clamp(.9rem, 4.65vw, 1.2rem); }
  .brand span { padding-left: .42rem; }
  .site-nav { gap: clamp(.55rem, 3.5vw, 1.2rem); font-size: clamp(.8rem, 3.5vw, .94rem); }
  .site-nav a { min-height: 2.75rem; }
  .nav-contact { padding: 0; border: 0; }

  .hero { align-items: flex-end; min-height: clamp(26rem, 115vw, 32rem); }
  .hero::after { display: none; }
  .hero-art img { width: 100%; height: min(65vw, 18rem); object-position: center top; mask-image: linear-gradient(#000 68%, transparent); }
  .hero-art::after { background: linear-gradient(180deg, transparent 21%, #09151e0d 30%, #09151e46 44%, #0a1721 65%, #0a1721 100%); }
  .hero-content { width: calc(100% - 3.3rem); padding: 0 0 1.2rem; }
  .hero-location { margin-bottom: .28rem; gap: .8rem; font-size: clamp(.87rem, 3.9vw, 1rem); }
  .hero-location::after { width: 2.45rem; }
  .hero h1 { font-size: clamp(2.35rem, 11.45vw, 3.6rem); letter-spacing: .055em; line-height: 1.17; }
  .hero-intro { margin-top: .5rem; font-size: clamp(.87rem, 3.75vw, 1rem); letter-spacing: .035em; }
  .hero-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: .65rem; margin-top: 1.15rem; }
  .hero-actions .button { min-height: 2.65rem; min-width: 0; padding-inline: .3rem; }
  .hero-actions .button:first-child, .hero-actions .button:last-child { min-width: 0; }

  .services { padding-top: .85rem; }
  .section-heading { margin: 0 0 .85rem .5rem; font-size: 1.55rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .service-feature { min-height: 5.75rem; margin-bottom: .25rem; }
  .service-feature::before { background-size: auto 100%; background-position: right center; }
  .service-feature::after { background: linear-gradient(90deg, #12202b 0%, #12202bef 28%, #0d1924a0 48%, transparent 75%); }
  .service-feature h3 { font-size: clamp(1rem, 5.2vw, 1.3rem); letter-spacing: .01em; }
  .service-feature a { padding-inline: 1rem; }
  .service-compact { min-height: 3.85rem; margin: 0; text-align: left; }
  .service-compact a { flex-direction: row; justify-content: flex-start; gap: 1rem; padding: .58rem 1rem; }
  .service-compact h3 { font-size: clamp(1rem, 4.55vw, 1.12rem); }
  .service-icon { width: 1.95rem; height: 1.95rem; }
  .tile-chevron { display: block; margin-left: auto; width: .9rem; height: .9rem; color: #e6d6b9; }

  .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .contact-panel .wechat-card { justify-self: center; }
  .site-footer { padding-bottom: calc(6.4rem + env(safe-area-inset-bottom)); }
  .mobile-contact { position: fixed; z-index: 3; inset: auto 0 0; display: grid; padding: .75rem max(.65rem, env(safe-area-inset-right)) calc(.75rem + env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left)); border-top: 1px solid #9b81658a; background: #081119f4; box-shadow: 0 -.6rem 1.65rem #060e1588; }
  .mobile-contact .button { min-height: clamp(3.15rem, 16.8vw, 3.85rem); padding-inline: .3rem; font-size: clamp(.95rem, 4.95vw, 1.19rem); }
  .mobile-contact .icon { width: 1.6em; height: 1.6em; }
}

@media (max-width: 22rem) {
  .hero-content { width: calc(100% - 2rem); }
  .hero-intro { letter-spacing: 0; text-wrap: balance; }
  .header-inner { width: calc(100% - 1.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
