:root {
  --ink: #17201c;
  --text: #2c3531;
  --muted: #64706a;
  --line: #dfe6e1;
  --paper: #ffffff;
  --soft: #f5f8fc;
  --soft-2: #eef5ff;
  --brand: #3f80c9;
  --brand-dark: #3f80c9;
  --accent: #d96f22;
  --accent-soft: #fff2e8;
  --focus: #3f80c9;
  --shadow: 0 16px 40px rgba(23, 32, 28, 0.1);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.container.narrow {
  --container: 860px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.logo img {
  width: 146px;
  height: auto;
  max-height: 44px;
  border-radius: 8px;
  object-fit: contain;
}

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

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--brand);
}

.nav-cta,
.btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.nav-cta,
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(63, 128, 201, 0.24);
}

.nav-cta:hover,
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.btn-light {
  background: #fff;
  color: var(--brand-dark);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  padding: 72px 0 40px;
  background: var(--soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 46px;
  align-items: center;
}

.hero-copy h1,
.admin-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.08;
}

.hero-copy p,
.admin-hero p {
  margin: 22px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 14px;
}

.hero-actions,
.panel-actions,
.cta-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-visual figcaption {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  background: #fff;
}

.section {
  padding: 72px 0;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head h2,
.entry-panel h2,
.observation h2,
.cta-band h2,
.contact-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
}

.section-head p,
.entry-panel p,
.observation p,
.cta-band p,
.contact-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.entry-panel {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demand-entry {
  border-top: 5px solid var(--brand);
}

.pilot-entry {
  border-top: 5px solid var(--accent);
}

.scene-grid,
.article-grid,
.value-grid,
.feedback-grid,
.check-grid,
.factor-grid {
  display: grid;
  gap: 18px;
}

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

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

.scene-card,
.article-card,
.value-card,
.mini-card,
.stacked-cards article,
.factor-grid article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.scene-card {
  overflow: hidden;
  min-height: 260px;
}

.scene-card a {
  display: grid;
  height: 100%;
  grid-template-rows: 96px 1fr;
}

.scene-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.scene-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 32, 28, 0.08), rgba(23, 32, 28, 0.45));
}

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

.scene-media span {
  position: relative;
  z-index: 1;
  padding: 4px 10px;
  background: rgba(23, 32, 28, 0.42);
  border-radius: 6px;
}

.scene-body,
.article-card,
.value-card,
.mini-card,
.stacked-cards article,
.factor-grid article {
  padding: 20px;
}

.linked-card {
  padding: 0;
}

.linked-card a {
  display: block;
  height: 100%;
  padding: 20px;
}

.scene-body h3,
.article-card h3,
.value-card h3,
.mini-card h3,
.stacked-cards h3,
.factor-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.3;
}

.scene-body p,
.article-card p,
.value-card p,
.mini-card p,
.stacked-cards p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feedback-card {
  position: relative;
  display: grid;
  min-height: 300px;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.feedback-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.feedback-head span,
.feedback-head strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 13px;
  line-height: 1.4;
}

.feedback-head span {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.feedback-head strong {
  background: var(--accent-soft);
  color: var(--accent);
}

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

.feedback-meta div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--soft);
}

.feedback-meta dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.feedback-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.feedback-quote {
  border-left: 3px solid var(--brand);
  padding-left: 14px;
}

.feedback-quote span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.feedback-quote p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.7;
}

.card-kicker {
  margin: 0 0 8px !important;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--brand-dark);
  font-weight: 800;
}

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

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

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

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

.observation {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
  align-items: start;
}

.stacked-cards {
  display: grid;
  gap: 14px;
}

.quality-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(63, 128, 201, 0.14);
}

.process {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process li {
  counter-increment: process;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.process li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 14px;
}

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

.factor-grid article {
  min-height: 120px;
}

.factor-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 900;
}

.article-layout {
  background: #fff;
}

.article-container {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
}

.article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.article-toc a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.article-toc a:hover {
  background: #fff;
  color: var(--brand-dark);
}

.article-content {
  max-width: 840px;
}

.article-content section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
}

.article-content p {
  margin: 0;
  color: var(--text);
  font-size: 17px;
}

.article-content.compact-copy p + p {
  margin-top: 16px;
}

.inline-cta {
  padding: 26px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  background: var(--soft);
}

.inline-cta div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.faq-section {
  background: #fff;
}

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

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

.faq-list summary {
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

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

.final-cta {
  padding-top: 0;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  border-radius: var(--radius);
  padding: 34px;
  color: #fff;
  background: var(--ink);
}

.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band p {
  opacity: 0.78;
}

.site-footer {
  background: #10233c;
  color: rgba(255, 255, 255, 0.74);
  padding: 52px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-logo img {
  width: 168px;
  max-height: 48px;
  border-radius: 8px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.site-footer p {
  margin: 10px 0 0;
}

.email-line {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}

.site-footer a:not(.logo) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a.email-line,
.footer-bottom a {
  display: inline-flex;
  margin: 0;
}

.footer-qr {
  width: 112px;
  height: 112px;
  margin-top: 14px;
  border-radius: 8px;
  background: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.56);
  font-size: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 26, 23, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.form-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--line);
}

.form-tab {
  min-height: 54px;
  border: 0;
  background: var(--soft);
  color: var(--muted);
  font-weight: 800;
}

.form-tab.is-active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: inset 0 -3px 0 var(--brand);
}

.lead-form {
  padding: 30px;
}

.qr-modal-body {
  padding: 30px;
}

.qr-panel {
  text-align: center;
}

.qr-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}

.qr-panel p {
  max-width: 520px;
  margin: 10px auto 20px;
  color: var(--muted);
}

.wechat-qr {
  width: min(76vw, 280px);
  height: auto;
  margin: 8px auto 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.qr-note {
  margin-bottom: 0 !important;
  color: var(--brand-dark) !important;
  font-weight: 800;
}

.lead-form h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
}

.lead-form p {
  margin: 8px 0 20px;
  color: var(--muted);
}

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

.lead-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
  font-weight: 500;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus,
.menu-button:focus,
.btn:focus,
.nav-cta:focus,
.form-tab:focus,
.modal-close:focus {
  outline: 3px solid rgba(31, 138, 112, 0.24);
  border-color: var(--focus);
}

.form-message {
  min-height: 24px;
  color: var(--accent) !important;
  font-weight: 800;
}

.form-message.success {
  color: var(--brand-dark) !important;
}

.form-submit {
  width: 100%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  width: min(calc(100% - 40px), 520px);
  transform: translateX(-50%);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.toast[hidden] {
  display: none;
}

.mobile-sticky-cta {
  display: none;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--soft);
}

.contact-panel a {
  color: var(--brand-dark);
  font-weight: 700;
}

.admin-hero {
  padding: 72px 0 44px;
}

.admin-grid {
  display: grid;
  gap: 24px;
}

.admin-panel {
  padding: 22px;
  overflow: hidden;
}

.admin-panel h2 {
  margin: 0 0 16px;
  color: var(--ink);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--soft);
}

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

td pre {
  margin: 0;
  max-width: 560px;
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .scene-grid,
  .scene-grid.compact,
  .value-grid,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .hero-visual img {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-shell {
    min-height: 64px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-cta {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
  }

  .site-nav .nav-cta {
    margin-top: 8px;
    justify-content: center;
  }

  .hero {
    padding: 46px 0 30px;
  }

  .hero-copy h1,
  .admin-hero h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .admin-hero p {
    font-size: 17px;
  }

  .section {
    padding: 52px 0;
  }

  .section-head h2,
  .entry-panel h2,
  .observation h2,
  .cta-band h2,
  .contact-panel h2 {
    font-size: 28px;
  }

  .two-entry,
  .article-grid,
  .check-grid,
  .factor-grid,
  .split,
  .observation,
  .footer-grid,
  .article-container,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel,
  .cta-band {
    display: grid;
  }

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

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 72px;
  }

  .logo img {
    width: 128px;
    max-height: 38px;
  }

  .hero-copy h1,
  .admin-hero h1 {
    font-size: 32px;
  }

  .hero-actions,
  .panel-actions,
  .cta-actions,
  .contact-actions,
  .inline-cta div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn,
  .nav-cta {
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .scene-grid,
  .scene-grid.compact,
  .value-grid,
  .feedback-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .entry-panel,
  .cta-band,
  .contact-panel {
    padding: 24px;
  }

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

  .lead-form {
    padding: 22px;
  }

  .form-tabs {
    grid-template-columns: 1fr;
  }

  .article-toc {
    display: none;
  }

  .article-content h2 {
    font-size: 24px;
  }

  .footer-grid {
    gap: 24px;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 45;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(63, 128, 201, 0.3);
  }
}
