:root {
  --bg: #f4eee7;
  --surface: #ffffff;
  --surface-soft: #fbf8f3;
  --text: #1f1a17;
  --muted: #6d6158;
  --border: #ddd3c7;
  --accent: #9b5a64;
  --accent-2: #5d7064;
  --shadow: 0 14px 32px rgba(34, 26, 21, 0.08);
  --radius: 8px;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img[data-full-src] {
  cursor: zoom-in;
}

img[data-full-src]:focus-visible {
  outline: 3px solid rgba(155, 90, 100, 0.45);
  outline-offset: 3px;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.skip-link:focus {
  left: 12px;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 231, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 211, 199, 0.9);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #201b18, var(--accent));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
  object-position: center;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(34, 26, 21, 0.08);
}

.brand-text strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex: 0 0 auto;
}

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

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn-primary:hover {
  background: #0f0d0b;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.72);
}

.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--text);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(18, 15, 13, 0.84) 0%, rgba(18, 15, 13, 0.42) 54%, rgba(18, 15, 13, 0.68) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
  transform: scale(1.01);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 82vh;
  padding: 88px 24px 74px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 62px;
  line-height: 1.03;
  letter-spacing: 0;
}

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

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

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 720px;
}

.meta-card {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.meta-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.meta-card span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.section {
  padding: 72px 24px;
}

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

.section.alt {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

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

.brand-plaque {
  width: min(260px, 34vw);
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.brand-plaque img {
  width: 100%;
  height: auto;
  display: block;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-title {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.15;
}

.section-lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

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

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

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

.grid-2.narrow {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.intent-grid {
  margin-bottom: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card.pad {
  padding: 20px;
}

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

.media-card .card-body {
  padding: 18px 18px 20px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
}

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

.meta-list li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2d9cf;
  background: #f5efe8;
  font-size: 13px;
}

.link-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.link-row svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

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

.quote {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fcfaf7 100%);
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

.quote strong {
  color: var(--accent);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.check-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(155, 90, 100, 0.12);
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
}

.check-list strong {
  display: block;
  margin-bottom: 4px;
}

.check-list span {
  color: var(--muted);
  font-size: 14px;
}

.profile-card {
  padding: 20px;
}

.profile-media {
  margin: -20px -20px 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: #eee3d7;
  aspect-ratio: 4 / 5;
}

.profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #c28c73);
}

.profile-card h3 {
  margin: 0;
  font-size: 20px;
}

.profile-role {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-card p {
  margin: 0 0 14px;
}

.profile-intro {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.75;
}

.profile-card .meta-list {
  margin-top: 14px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.certificate-wall {
  column-count: 3;
  column-gap: 20px;
}

.certificate-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  padding: 12px;
  break-inside: avoid;
}

.certificate-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.certificate-media img {
  width: 100%;
  height: auto;
  display: block;
}

.certificate-card figcaption {
  padding: 12px 4px 4px;
}

.certificate-card figcaption strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.certificate-card figcaption span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.case-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.case-card figcaption {
  padding: 14px 16px 16px;
}

.case-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}

.case-card span {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.case-empty {
  min-height: 220px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  display: grid;
  align-content: center;
  gap: 8px;
}

.case-empty strong {
  color: var(--text);
  font-size: 18px;
}

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

.env-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.env-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s ease;
}

.env-card:hover img {
  transform: scale(1.02);
}

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

.timeline-step {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(93, 112, 100, 0.12);
  color: var(--accent-2);
  font-weight: 700;
}

.timeline-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.timeline-step p {
  margin: 0;
  color: var(--muted);
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 18px;
  box-shadow: var(--shadow);
}

.faq-list details + details {
  margin-top: 12px;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.faq-list details[open] summary svg {
  transform: rotate(180deg);
}

.faq-list p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.contact-card {
  padding: 22px;
}

.contact-card .label {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.contact-card .value {
  margin: 0;
  font-size: 18px;
}

.contact-card .small {
  margin-top: 10px;
  color: var(--muted);
}

.service-hero .hero-inner {
  min-height: 66vh;
}

.service-overview {
  padding-top: 48px;
}

.service-case {
  padding-top: 24px;
}

.service-stack {
  display: grid;
  gap: 20px;
}

.service-prose {
  max-width: 760px;
}

.service-prose h2,
.service-prose h3 {
  margin-top: 0;
}

.service-prose p,
.service-prose li {
  color: var(--muted);
}

.service-prose ul {
  margin: 0;
  padding-left: 18px;
}

.service-panel {
  padding: 22px;
}

.service-panel h3 {
  margin-top: 0;
}

.service-panel .meta-list {
  margin-top: 16px;
}

.site-footer {
  padding: 36px 24px 28px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.44);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.4fr) minmax(150px, 0.55fr);
  align-items: start;
  gap: 32px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 8px 18px;
  justify-content: end;
}

.footer-links span {
  grid-column: 1 / -1;
  color: var(--muted);
}

.footer-links a {
  color: var(--text);
  font-weight: 700;
}

.footer-brand {
  max-width: 340px;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
}

.footer-brand p {
  margin: 8px 0 0;
}

.footer-brand .footer-address {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-contact {
  margin: 0;
  display: grid;
  gap: 8px;
  font-style: normal;
}

.footer-contact div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

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

.footer-contact strong,
.footer-contact a {
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(221, 211, 199, 0.82);
  text-align: center;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-brand img {
  width: 240px;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.eyebrow-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 13px;
}

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

.border-top {
  border-top: 1px solid var(--border);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3ede6;
  border: 1px solid #e2d8cc;
  font-size: 13px;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
}

.stack {
  display: grid;
  gap: 16px;
}

.fine-print {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 52px;
  }

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

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

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

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

  .certificate-wall {
    column-count: 2;
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav[data-open] {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .grid-3,
  .grid-4,
  .grid-2,
  .copy-band,
  .contact-grid,
  .split,
  .case-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-inner {
    min-height: 74vh;
    padding-top: 72px;
  }

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

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

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-inner {
    min-height: 70vh;
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 64px;
  }

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

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-title {
    font-size: 28px;
  }

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

  .brand-plaque {
    width: 100%;
    max-width: 220px;
  }

  .footer-brand img {
    width: 210px;
  }

  .certificate-wall {
    column-count: 1;
  }
}

@media (max-width: 500px) {
  .env-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
