:root {
  color-scheme: light;
  --ink: #16211f;
  --muted: #5b6865;
  --line: #d9e1dc;
  --paper: #fbfcf8;
  --soft: #edf4ef;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --warm: #f4b942;
  --rose: #c95f6a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(26, 43, 37, 0.12);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

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

img,
video {
  max-width: 100%;
  height: auto;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 248, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
}

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

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

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--accent-strong);
  background: var(--soft);
}

.site-nav .nav-action {
  color: var(--white);
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px) clamp(36px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), rgba(244, 185, 66, 0.12) 42%, rgba(201, 95, 106, 0.08)),
    var(--paper);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.25;
}

.hero-lead {
  max-width: 760px;
  color: #31403c;
  font-size: clamp(17px, 1.6vw, 22px);
}

.hero-actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

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

.hero-facts div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 225, 220, 0.8);
  border-radius: 8px;
}

.hero-facts dt {
  color: var(--accent-strong);
  font-weight: 900;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-panel {
  width: 100%;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
}

.panel-top strong {
  color: var(--accent-strong);
  font-size: 36px;
}

.schedule-card {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-card.active,
.lesson-card.active {
  border-color: rgba(15, 118, 110, 0.3);
  background: var(--soft);
}

.schedule-card span,
.schedule-card small,
.lesson-card span,
.lesson-card small,
.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.schedule-card strong,
.lesson-card strong {
  display: block;
  margin: 4px 0;
}

.lesson-card {
  display: block;
  padding: 14px;
  margin-bottom: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lesson-card:hover {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f7faf5;
}

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

.metric-grid div {
  padding: 14px;
  background: #f7faf5;
  border-radius: 8px;
}

.metric-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.content-page {
  min-height: 70vh;
}

.page-hero {
  padding: clamp(52px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(34px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(244, 185, 66, 0.12), rgba(201, 95, 106, 0.07)),
    var(--paper);
}

.page-hero h1 {
  max-width: 920px;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 66px);
}

.page-hero p:last-child {
  max-width: 860px;
  color: #31403c;
  font-size: clamp(17px, 1.5vw, 21px);
}

.section.muted {
  background: var(--soft);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 30px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 17px;
}

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

.photo-card {
  overflow: hidden;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.photo-card figcaption {
  padding: 11px 12px 13px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.source-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

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

.feature-grid article,
.scene-list article,
.faq-list details {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--rose);
  font-weight: 900;
}

.feature-grid p,
.scene-list p,
.faq-list p,
.contact-copy p {
  color: var(--muted);
}

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

.prose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(34px, 5vw, 68px) clamp(20px, 5vw, 72px);
}

.prose-grid article,
.timeline article,
.prose {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prose-grid ul {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.prose-grid p,
.timeline p,
.prose p {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(34px, 5vw, 68px) clamp(20px, 5vw, 72px);
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
}

.prose.narrow {
  max-width: 920px;
  margin: clamp(34px, 5vw, 68px) auto;
}

.article-page .page-hero h1 {
  font-size: 3.25rem;
  line-height: 1.3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.article-page .prose.article-body {
  max-width: 800px;
  margin: 40px auto;
  font-size: 1.125rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.article-page .article-body h2 {
  margin: 2em 0 0.75em;
  font-size: 1.375rem;
  line-height: 1.5;
  font-weight: 700;
  text-wrap: pretty;
}

.article-page .article-body h3 {
  margin: 1.75em 0 0.65em;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.article-page .article-body p {
  margin: 0 0 1.25em;
  color: #31403c;
  text-wrap: pretty;
}

.article-page .article-body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.article-page .article-meta-grid h2 {
  margin-bottom: 10px;
  font-size: 1.125rem;
  line-height: 1.5;
}

.article-page .compact-cta h2 {
  font-size: 1.5rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .article-page .page-hero h1 {
    font-size: 2.5rem;
  }

  .article-page .prose.article-body {
    margin: 28px 16px;
    font-size: 1.0625rem;
    line-height: 1.85;
  }

  .article-page .article-body h2 {
    font-size: 1.25rem;
  }

  .article-page .article-body h3 {
    font-size: 1.125rem;
  }

  .article-page .article-meta-grid h2 {
    font-size: 1.0625rem;
  }

  .article-page .compact-cta h2 {
    font-size: 1.25rem;
  }
}

.article-body ul,
.article-meta-grid ul {
  padding-left: 20px;
  color: var(--muted);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 880px;
  margin-top: 18px;
}

.article-tags span {
  padding: 5px 9px;
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

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

.article-meta-grid article {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 34px;
}

.compact-cta h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
}

.geo-section {
  background: #17231f;
  color: var(--white);
}

.geo-section .eyebrow {
  color: #73d7c8;
}

.geo-section .section-heading p:last-child {
  color: #d7e5de;
}

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

.query-grid div {
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

.faq-list summary {
  font-weight: 900;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: #f7faf5;
}

.contact-section.single {
  display: block;
  padding: clamp(34px, 5vw, 68px) clamp(20px, 5vw, 72px);
}

.contact-section.single .lead-form {
  max-width: 920px;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lead-form label,
.lead-form .wide {
  display: grid;
  gap: 6px;
}

.lead-form .wide {
  grid-column: 1 / -1;
}

.lead-form span {
  color: #2f3d39;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 4px 0 0;
  color: #cbd8d2;
}

.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.6;
}

.site-footer a {
  color: #dbe9e3;
}

.site-footer .footer-police {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.site-footer .footer-police img {
  width: 18px;
  height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .contact-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-grid,
  .scene-list,
  .query-grid,
  .photo-grid,
  .prose-grid,
  .timeline,
  .article-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
    padding: 10px 16px;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    white-space: nowrap;
  }

  .hero-facts,
  .feature-grid,
  .scene-list,
  .query-grid,
  .photo-grid,
  .prose-grid,
  .timeline,
  .article-meta-grid,
  .metric-grid,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 34px 16px 30px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.08;
  }

  h2 {
    font-size: 26px;
  }

  .hero-actions .button,
  .compact-cta .button {
    width: 100%;
  }

  .hero-panel,
  .lead-form {
    padding: 16px;
    box-shadow: none;
  }

  .section,
  .page-hero,
  .contact-section.single {
    padding-left: 16px;
    padding-right: 16px;
  }

  .prose-grid,
  .timeline {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feature-grid article,
  .scene-list article,
  .faq-list details,
  .prose-grid article,
  .timeline article,
  .prose,
  .article-meta-grid article {
    padding: 18px;
  }
}
