:root {
  --ink: #142033;
  --muted: #647184;
  --line: #dfe5ec;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --blue: #1d76d3;
  --teal: #0e8f83;
  --coral: #d86c4a;
  --gold: #b98a38;
  --dark: #0d1724;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(20, 32, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 229, 236, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #314258;
  font-size: 15px;
}

.nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue);
  background: #edf5ff;
}

.header-action,
.button,
.lead-form button,
.upload-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

.header-action,
.button.primary,
.lead-form button,
.upload-form button {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

.button.ghost {
  color: var(--blue);
  background: #edf5ff;
  border-color: #c9def4;
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 30, 0.9) 0%, rgba(7, 17, 30, 0.62) 44%, rgba(7, 17, 30, 0.16) 100%),
    linear-gradient(0deg, rgba(7, 17, 30, 0.82), rgba(7, 17, 30, 0.1) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 40px));
  margin: 0 0 112px clamp(20px, 6vw, 88px);
}

.hero-card {
  position: absolute;
  right: clamp(20px, 6vw, 88px);
  bottom: 112px;
  z-index: 2;
  width: min(330px, 28vw);
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 18, 31, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-card-label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.hero-card div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-card dt,
.hero-card dd {
  margin: 0;
}

.hero-card dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.hero-card dd {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.hero-latest-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-latest-list a {
  display: block;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.hero-latest-list a:hover,
.hero-latest-list a:focus-visible {
  color: #fff;
  background: rgba(29, 118, 211, 0.34);
  outline: none;
}

.hero-card-link {
  display: inline-flex;
  margin-top: 16px;
  color: #fff;
  font-weight: 900;
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: 54px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.title-break {
  display: inline;
}

.hero-copy,
.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.hero-copy span {
  display: block;
}

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

.quick-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 28px;
  color: #eaf3ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 17, 30, 0.72);
  backdrop-filter: blur(16px);
}

.quick-facts a {
  min-height: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  place-items: center;
  padding: 10px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.quick-facts a::after {
  content: ">";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  opacity: 0.78;
  transform: translateX(0);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.quick-facts a:hover,
.quick-facts a:focus-visible {
  color: #fff;
  background: rgba(29, 118, 211, 0.38);
  outline: none;
}

.quick-facts a:hover::after,
.quick-facts a:focus-visible::after {
  background: var(--blue);
  opacity: 1;
  transform: translateX(3px);
}

.quick-facts a:last-child {
  border-right: 0;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

.official-system {
  padding-top: 18px;
}

.official-system .section-heading > p {
  max-width: 520px;
  margin: 0;
}

.official-system-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.official-system-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  color: #314258;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.locations-preview {
  padding-top: 0;
}

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

.location-card,
.location-detail-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

.location-card-image {
  width: calc(100% + 56px);
  height: 210px;
  margin: -28px -28px 24px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.location-detail-card {
  min-height: 360px;
}

.location-card.pending,
.location-detail-card.pending {
  background: linear-gradient(135deg, #ffffff, #f7f9fc);
  border-style: dashed;
}

.location-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.location-actions a,
.location-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  color: var(--blue);
  font-weight: 800;
  border: 1px solid #c9def4;
  border-radius: var(--radius);
  background: #edf5ff;
}

.latest-case-compare {
  padding-top: 0;
}

.case-compare-rail {
  position: relative;
  overflow: hidden;
  padding: 2px 0 18px;
}

.case-compare-track {
  display: flex;
  width: max-content;
  gap: 14px;
  will-change: transform;
}

.case-compare-card {
  flex: 0 0 440px;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

.case-compare-card.featured {
  border-color: #c9def4;
}

.case-compare-image {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 176px;
  padding: 0;
  background: #dbe8f6;
  border: 0;
  cursor: pointer;
}

.case-compare-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.case-compare-image:hover img,
.case-compare-image:focus-visible img {
  filter: brightness(0.88);
  transform: scale(1.03);
}

.case-compare-body {
  padding: 18px 20px 20px;
}

.case-compare-body h3 {
  margin: 4px 0 12px;
  font-size: 21px;
}

.case-compare-body dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.case-compare-body dl div {
  min-width: 0;
  padding: 9px 10px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.case-compare-body dt,
.case-compare-body dd {
  margin: 0;
}

.case-compare-body dt {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.case-compare-body dd {
  overflow: hidden;
  color: #314258;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-compare-body p:not(.tag) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.case-compare-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  background: #edf5ff;
  border: 1px solid #c9def4;
  border-radius: var(--radius);
  cursor: pointer;
}

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

h2 {
  margin-bottom: 18px;
  font-size: 34px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.25;
}

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

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

.official-profile {
  padding-top: 18px;
}

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

.section-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.case-rail-controls {
  display: inline-flex;
  gap: 8px;
}

.case-rail-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  background: #edf5ff;
  border: 1px solid #c9def4;
  border-radius: var(--radius);
  cursor: pointer;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

.profile-grid article {
  min-height: 230px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.profile-grid article:last-child {
  border-right: 0;
}

.profile-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 900;
}

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

.fact-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 18px;
  margin: 0;
}

.fact-list dt {
  color: var(--ink);
  font-weight: 800;
}

.fact-list dd {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.service-card,
.case-card,
.content-panel,
.lead-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

.service-card,
.case-card {
  min-height: 260px;
  padding: 24px;
}

.service-card .icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 24px;
  background: #edf5ff;
  border-radius: 50%;
}

.service-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding: 5px 9px;
  color: #35516f;
  font-size: 12px;
  font-weight: 800;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 42px;
  width: 100%;
  max-width: none;
  padding: 84px clamp(20px, 6vw, 88px);
  color: #fff;
  background: var(--dark);
}

.proof-band.light {
  color: var(--ink);
  background: var(--mist);
}

.proof-band p {
  color: rgba(255, 255, 255, 0.72);
}

.proof-band.light p {
  color: var(--muted);
}

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

.proof-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 80px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.proof-band.light .proof-list div {
  border-color: var(--line);
  background: #fff;
}

.proof-list strong {
  color: var(--gold);
  font-size: 20px;
}

.proof-list span {
  color: inherit;
}

.case-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: calc(100% + 48px);
  height: 150px;
  margin: -24px -24px 22px;
  padding: 0;
  border: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #dbe8f6;
  cursor: default;
}

.case-media.case-lightbox-trigger {
  cursor: zoom-in;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.case-media span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(12, 23, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-media.case-lightbox-trigger:hover img,
.case-media.case-lightbox-trigger:focus-visible img {
  filter: brightness(0.82);
  transform: scale(1.03);
}

.case-media.case-lightbox-trigger:hover span,
.case-media.case-lightbox-trigger:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.case-library-grid .case-media {
  height: 230px;
}

.case-card.detailed {
  display: flex;
  flex-direction: column;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.case-meta span {
  padding: 6px 9px;
  color: #36516e;
  font-size: 12px;
  font-weight: 800;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.case-card-actions,
.case-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 92px));
  gap: 8px;
  margin-top: 14px;
}

.case-card-actions .button {
  min-height: 32px;
  padding: 0 8px;
  color: #36516e;
  font-size: 12px;
  font-weight: 900;
  background: #fff;
  border-color: var(--line);
}

.case-action-panel {
  display: block;
}

.case-action-panel .case-card {
  width: min(420px, 100%);
  min-height: 188px;
}

.case-action-panel .case-card-actions {
  grid-template-columns: minmax(0, 140px);
}

.case-share-bar {
  margin-top: 28px;
}

.case-share-bar.compact {
  margin-top: 18px;
}

.case-detail-hero {
  min-height: 620px;
}

.case-detail-shell {
  align-items: start;
}

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

.case-info-grid div {
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

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

.case-info-grid strong {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.case-info-grid span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.case-detail-panel {
  padding: 28px;
}

.case-step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.case-step-grid span {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 12px;
  color: #314258;
  text-align: center;
  font-weight: 900;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.case-photo-grid button {
  display: block;
  overflow: hidden;
  padding: 0;
  background: #07111f;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.case-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.case-photo-grid button:hover img,
.case-photo-grid button:focus-visible img {
  filter: brightness(0.86);
  transform: scale(1.03);
}

.case-final-cta {
  background: var(--mist);
}

.share-hint {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(8, 16, 28, 0.32);
}

.share-hint[hidden] {
  display: none;
}

.share-hint-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.share-hint-panel strong {
  display: block;
  margin-right: 34px;
  font-size: 18px;
}

.share-hint-panel p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.share-hint-panel input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  color: #36516e;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
}

.share-hint-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 16, 28, 0.82);
}

.case-lightbox[hidden] {
  display: none;
}

.case-lightbox-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  width: min(1120px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.case-lightbox-image-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #07111f;
}

.case-lightbox-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
}

.case-lightbox-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 28px;
}

.case-lightbox-info p {
  color: var(--muted);
}

.case-lightbox-count {
  margin: 0 0 14px;
  color: var(--gold) !important;
  font-size: 13px;
  font-weight: 900;
}

.case-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  background: rgba(10, 20, 34, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.case-lightbox-nav.prev {
  left: 14px;
}

.case-lightbox-nav.next {
  right: 14px;
}

.case-lightbox-nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.case-lightbox-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.case-lightbox-thumbs button {
  overflow: hidden;
  padding: 0;
  background: #eef3f8;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.case-lightbox-thumbs button.active {
  border-color: var(--blue);
}

.case-lightbox-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.case-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  background: rgba(10, 20, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  cursor: pointer;
}

.tone-blue {
  background:
    linear-gradient(135deg, rgba(29, 118, 211, 0.88), rgba(20, 32, 51, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.16) 18px 20px);
}

.tone-green {
  background:
    linear-gradient(135deg, rgba(14, 143, 131, 0.86), rgba(23, 91, 83, 0.9)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255, 255, 255, 0.14) 18px 20px);
}

.tone-coral {
  background:
    linear-gradient(135deg, rgba(216, 108, 74, 0.86), rgba(86, 49, 39, 0.92)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.15) 18px 20px);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.content-hub {
  width: 100%;
  max-width: none;
  padding: 84px clamp(20px, 6vw, 88px);
  background: var(--mist);
}

.content-article {
  background: #fff;
}

.article-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.article-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 30, 0.9) 0%, rgba(7, 17, 30, 0.52) 48%, rgba(7, 17, 30, 0.18) 100%),
    linear-gradient(0deg, rgba(7, 17, 30, 0.76), rgba(7, 17, 30, 0.04) 50%);
}

.article-hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 40px));
  margin: 0 0 72px clamp(20px, 6vw, 88px);
}

.article-hero h1 {
  max-width: 840px;
  margin: 0;
  color: #fff;
  font-size: 52px;
  line-height: 1.12;
}

.article-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.article-meta span {
  padding: 7px 10px;
  color: #eaf3ff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.article-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 46px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.article-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

.article-toc strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.article-toc a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--blue);
  outline: none;
}

.article-body {
  display: grid;
  gap: 74px;
}

.article-body section {
  min-width: 0;
}

.article-body h2 {
  max-width: 760px;
  font-size: 34px;
}

.article-body > section > p {
  max-width: 820px;
  font-size: 17px;
}

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

.article-figure img,
.article-image-pair img,
.inspection-grid img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.article-figure figcaption,
.article-image-pair figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.article-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.inspection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.inspection-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

.inspection-grid img {
  height: 270px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
}

.inspection-grid h3,
.inspection-grid p {
  margin-right: 20px;
  margin-left: 20px;
}

.inspection-grid h3 {
  margin-top: 18px;
}

.inspection-grid p {
  margin-bottom: 22px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hub-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.hub-feature,
.hub-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

.hub-feature {
  min-height: 300px;
  padding: 30px;
}

.hub-feature h3 {
  font-size: 28px;
}

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

.hub-list a {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
}

.hub-list span {
  grid-row: span 2;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-list strong {
  color: var(--ink);
  font-size: 18px;
}

.hub-list em {
  color: var(--muted);
  font-style: normal;
}

.faq-list,
.faq.compact {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

summary {
  min-height: 58px;
  padding: 16px 18px;
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 480px);
  gap: 46px;
  align-items: start;
}

.contact-facts {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-facts span,
.contact-facts a {
  padding: 12px 14px;
  color: #314258;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #314258;
  font-weight: 800;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
}

.lead-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.82);
  background: #0a111c;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
}

.page {
  padding-top: 0;
}

.page-hero {
  padding: 96px clamp(20px, 6vw, 88px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 23, 36, 0.95), rgba(29, 118, 211, 0.58)),
    url("assets/weilan-hero.png") center / cover;
}

.page-hero.soft {
  color: var(--ink);
  background: linear-gradient(135deg, #f4f7fb, #e5f4f2);
}

.page-hero.coral {
  background: linear-gradient(135deg, #0d1724, #8c4735);
}

.page-hero.soft p {
  color: var(--muted);
}

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

.content-panel {
  padding: 28px;
}

.upload-page {
  background: #f6f8fb;
}

.upload-hero {
  display: grid;
  gap: 14px;
}

.upload-hero .path-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  color: #314258;
  font-size: 14px;
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.upload-form {
  display: grid;
  gap: 18px;
}

.section-heading.compact {
  margin-bottom: 4px;
}

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

.upload-form label {
  display: grid;
  gap: 7px;
  color: #314258;
  font-weight: 800;
}

.upload-form input,
.upload-form select,
.upload-form textarea,
.upload-output {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  background: #fff;
}

.upload-form textarea,
.upload-output {
  resize: vertical;
}

.upload-drop {
  padding: 18px;
  border: 1px dashed #b8c7d9;
  border-radius: var(--radius);
  background: var(--mist);
}

.upload-drop span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.upload-drop em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-side {
  display: grid;
  gap: 18px;
}

.upload-output-panel {
  position: sticky;
  top: 104px;
}

.upload-output {
  min-height: 360px;
  color: #314258;
  line-height: 1.6;
}

.article-teaser-card {
  overflow: hidden;
}

.article-teaser-card > img {
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  min-height: 280px;
  margin: -28px;
  object-fit: cover;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  content: "✓";
  font-weight: 900;
}

.check-list.columns {
  columns: 2;
  column-gap: 36px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.steps span {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  color: #314258;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  font-weight: 800;
}

.case-card.detailed h2 {
  font-size: 22px;
}

.store-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.store-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 31, 0.9), rgba(8, 18, 31, 0.42) 58%, rgba(8, 18, 31, 0.18)),
    linear-gradient(0deg, rgba(8, 18, 31, 0.72), rgba(8, 18, 31, 0.1) 55%);
}

.store-hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 40px));
  margin: 0 0 72px clamp(20px, 6vw, 88px);
}

.store-hero h1 {
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.store-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.store-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
}

.store-stats div {
  min-height: 142px;
  padding: 26px;
  color: #fff;
  background: var(--dark);
}

.store-stats strong,
.store-stats span {
  display: block;
}

.store-stats strong {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1.1;
}

.store-stats span {
  color: rgba(255, 255, 255, 0.78);
}

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

.store-media-card,
.store-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 32, 51, 0.07);
}

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

.store-media-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.store-media-card strong {
  color: var(--ink);
  line-height: 1.25;
}

.store-media-card span,
.store-gallery figcaption {
  color: var(--muted);
  font-size: 14px;
}

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

.store-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.store-gallery figcaption {
  padding: 16px;
}

.legal .content-panel {
  max-width: 860px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .quick-facts,
  .profile-grid,
  .card-grid.four,
  .card-grid.three,
  .intro-grid,
  .proof-band,
  .contact-section,
  .page-grid,
  .location-grid,
  .location-page-grid,
  .store-stats,
  .store-media-grid,
  .store-gallery,
  .hub-layout,
  .upload-layout,
  .ai-summary {
    grid-template-columns: 1fr;
  }

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

  .article-toc {
    position: static;
  }

  .upload-output-panel {
    position: static;
  }

  .article-image-pair,
  .inspection-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .official-system-grid {
    gap: 8px;
  }

  .official-system-grid span {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
  }

  .profile-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .profile-grid article:last-child {
    border-bottom: 0;
  }

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

  .case-lightbox-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .case-lightbox-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(240px, 42vh, 360px);
  }

  .case-lightbox-image-wrap img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
  }

  .case-lightbox-info {
    justify-content: flex-start;
    padding: 22px;
  }

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

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

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

@media (max-width: 620px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    min-height: auto;
    width: 100vw;
    max-width: 100vw;
    padding: 8px 16px 6px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

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

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

  .nav {
    grid-column: 1 / -1;
    max-width: 100%;
    gap: 0;
    font-size: 13px;
  }

  .nav a {
    padding: 5px 8px;
  }

  .header-action {
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    gap: 14px;
    min-height: 480px;
    padding: 34px 16px 14px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .hero h1,
  .hero-copy {
    max-width: 100%;
  }

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

  .store-hero {
    min-height: 560px;
  }

  .store-hero-content {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin: 0 16px 58px;
  }

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

  .article-hero {
    min-height: 520px;
  }

  .article-hero-content {
    width: calc(100vw - 32px);
    margin: 0 16px 46px;
  }

  .article-hero h1 {
    font-size: 34px;
  }

  .article-hero p {
    font-size: 16px;
  }

  .article-shell {
    width: calc(100% - 32px);
    padding: 58px 0;
  }

  .article-body {
    gap: 54px;
  }

  .article-body h2 {
    font-size: 28px;
  }

  .inspection-grid img {
    height: auto;
  }

  .store-hero p {
    font-size: 16px;
  }

  .title-break {
    display: block;
  }

  .hero-copy,
  .page-hero p {
    font-size: 15px;
  }

  .hero-copy {
    margin-top: 14px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 16px;
  }

  .hero-actions .button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 14px;
  }

  .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .quick-facts a {
    min-height: 44px;
    gap: 6px;
    padding: 8px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .quick-facts a:first-child {
    grid-column: 1 / -1;
    border-top: 0;
    border-right: 0;
  }

  .quick-facts a:nth-child(3),
  .quick-facts a:nth-child(5) {
    border-right: 0;
  }

  .quick-facts a:nth-child(2),
  .quick-facts a:nth-child(4) {
    border-right: 1px solid rgba(255, 255, 255, 0.16);
  }

  .quick-facts a::after {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .section {
    width: calc(100% - 32px);
    padding: 44px 0;
  }

  .latest-case-compare {
    width: 100%;
    padding-right: 0;
    padding-left: 16px;
  }

  .latest-case-compare .section-heading {
    width: calc(100% - 16px);
    padding-right: 16px;
  }

  .case-compare-rail {
    padding-right: 16px;
  }

  .case-compare-track {
    gap: 10px;
    animation-duration: 28s;
  }

  .case-compare-card {
    flex-basis: min(300px, 82vw);
  }

  .case-compare-image {
    height: 150px;
  }

  .proof-band {
    padding: 44px 16px;
  }

  .content-hub {
    padding: 44px 16px;
  }

  .case-lightbox {
    padding: 12px;
    overflow-y: auto;
    place-items: start center;
  }

  .case-lightbox-panel {
    max-height: none;
    margin: 10px 0;
  }

  .case-lightbox-image-wrap {
    height: min(44vh, 330px);
    min-height: 230px;
  }

  .case-lightbox-image-wrap img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }

  .case-lightbox-info {
    padding: 18px;
  }

  .case-lightbox-thumbs {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .case-lightbox-thumbs button {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    scroll-snap-align: start;
  }

  .case-lightbox-thumbs img {
    height: 100%;
    aspect-ratio: auto;
  }

  .case-share-bar .button {
    width: 100%;
  }

  .case-card-actions {
    grid-template-columns: repeat(2, minmax(0, 74px));
  }

  .case-card-actions .button {
    width: auto;
    min-height: 30px;
    padding: 0 7px;
    font-size: 12px;
  }

  .case-info-grid,
  .case-step-grid,
  .case-photo-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 28px;
  }

  .section-heading {
    display: block;
  }

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

  .site-footer {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .check-list.columns {
    columns: 1;
  }

  .fact-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hub-list a {
    grid-template-columns: 1fr;
  }

  .hub-list span {
    grid-row: auto;
  }

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

  .upload-actions {
    display: grid;
  }

  .upload-output {
    min-height: 280px;
  }
}
