:root {
  color-scheme: light;
  --ink: #16201d;
  --muted: #5c6863;
  --line: #d9e0dc;
  --paper: #fbfcfb;
  --panel: #ffffff;
  --deep: #173e36;
  --accent: #b64e36;
  --gold: #b8873b;
  --soft: #eef3f0;
  --steel: #66737a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

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

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

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 210px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #35423d;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  gap: 34px;
  align-items: center;
  min-height: 590px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
  margin: 0;
}

.hero-copy {
  color: #394641;
  font-size: 18px;
  max-width: 760px;
  margin: 22px 0 0;
}

.breadcrumb {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.breadcrumb a {
  color: var(--deep);
  font-weight: 700;
}

.page-hero {
  min-height: 340px;
  padding: 58px 0 22px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero > p:last-child {
  color: #394641;
  font-size: 18px;
  max-width: 850px;
  margin: 22px 0 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.wide-photo {
  margin-top: 18px;
}

.wide-photo img {
  width: 100%;
  display: block;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(25, 43, 37, 0.12);
}

.content-main,
.content-side,
.faq-list article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content-main {
  padding: 28px;
}

.content-main h2,
.content-side h2,
.faq-list h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.content-main h2:not(:first-child) {
  margin-top: 32px;
}

.content-side {
  padding: 24px;
  position: sticky;
  top: 96px;
}

.content-side .button {
  margin-top: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15px;
}

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

.data-table th {
  background: var(--soft);
  color: var(--deep);
}

.check-list,
.number-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #35423d;
}

.check-list li,
.number-list li {
  margin: 8px 0;
}

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

.faq-list article {
  padding: 22px;
}

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

.article-page {
  width: min(900px, calc(100% - 32px));
  margin: 54px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
}

.article-page h1 {
  font-size: clamp(32px, 4vw, 54px);
  max-width: 820px;
}

.article-page h2 {
  margin: 34px 0 12px;
  font-size: 26px;
  line-height: 1.24;
}

.article-page p {
  color: #35423d;
}

.ai-summary {
  background: var(--soft);
  border-left: 4px solid var(--deep);
  margin: 26px 0 0;
  padding: 18px;
}

.ai-summary strong {
  color: var(--deep);
}

.ai-summary p {
  margin: 8px 0 0;
}

.mini-faq {
  display: grid;
  gap: 10px;
}

.mini-faq h3 {
  margin: 10px 0 0;
  font-size: 19px;
}

.mini-faq p {
  margin: 0;
  color: var(--muted);
}

.article-next {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 24px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--deep);
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  background: var(--deep);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--deep);
}

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

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  display: block;
}

.hero-photo-frame {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(25, 43, 37, 0.16);
  background: var(--soft);
}

.hero-photo-frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.hero-photo-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.hero-photo-grid img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f5f7f6;
  padding: 10px;
}

.hero-photo-grid figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 10px;
}

.caption {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 0;
}

.proof-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-item {
  background: #fff;
  padding: 22px;
}

.proof-item strong {
  display: block;
  font-size: 24px;
  color: var(--deep);
}

.proof-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

section {
  width: min(1180px, calc(100% - 32px));
  margin: 84px auto 0;
}

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

.section-head h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
  margin: 0;
  letter-spacing: 0;
}

.section-head p {
  color: var(--muted);
  max-width: 520px;
  margin: 0;
}

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

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

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

.tile,
.panel,
.article-link {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tile {
  padding: 20px;
  min-height: 168px;
}

.tile-photo,
.panel-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #f4f6f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 8px;
}

.panel-photo {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  padding: 0;
}

.tile .tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

.tile h3,
.panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.tile p,
.panel p,
.article-link p {
  color: var(--muted);
  margin: 0;
}

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

.process-visual {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
}

.process-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f4f6f5;
}

.process-visual h3 {
  margin: 0 0 10px;
  font-size: 26px;
}

.process-visual p {
  margin: 0;
  color: var(--muted);
}

.step {
  background: var(--soft);
  border-left: 4px solid var(--deep);
  padding: 18px;
  min-height: 132px;
}

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

.feature-band {
  background: #17211e;
  color: #fff;
  padding: 54px 0;
  margin-top: 88px;
}

.feature-band > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-band h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 0 0 24px;
  line-height: 1.16;
}

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

.feature-band .panel {
  background: #22312d;
  border-color: #344842;
  padding: 22px;
}

.feature-band .panel p {
  color: #c8d2ce;
}

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

.article-link {
  padding: 18px 20px;
}

.article-link strong {
  display: block;
  margin-bottom: 6px;
}

.library-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 54px auto 0;
  padding: 46px 0 16px;
}

.library-hero h1 {
  max-width: 900px;
}

.library-hero p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.library-tools {
  margin-top: 26px;
  display: grid;
  gap: 8px;
  max-width: 620px;
}

.library-tools label {
  color: var(--deep);
  font-weight: 700;
}

.library-tools input {
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.library-tools input:focus {
  outline: 2px solid rgba(23, 62, 54, 0.18);
  border-color: var(--deep);
}

.category-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.category-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.category-button.active,
.category-button:hover {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

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

.directory-card {
  display: block;
  min-height: 166px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 18px;
}

.directory-card span {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.directory-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.34;
}

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

.directory-card:hover {
  border-color: var(--deep);
  box-shadow: 0 14px 34px rgba(25, 43, 37, 0.1);
  transform: translateY(-1px);
}

.notice {
  background: #fff7ef;
  border: 1px solid #ead3be;
  border-radius: 8px;
  padding: 18px 20px;
  color: #6c4932;
}

.contact {
  background: var(--deep);
  color: #fff;
  border-radius: 8px;
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.contact p {
  margin: 8px 0 0;
  color: #d6e2dd;
}

.question-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 28px;
  padding: 32px;
}

.question-intro h2 {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.15;
  margin: 0;
}

.question-intro p:not(.eyebrow) {
  color: var(--muted);
  margin: 16px 0 0;
}

.question-form {
  display: grid;
  gap: 14px;
}

.question-form label {
  display: grid;
  gap: 8px;
  color: var(--deep);
  font-weight: 700;
}

.question-form input,
.question-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  background: #fbfcfb;
}

.question-form textarea {
  resize: vertical;
}

.question-form input:focus,
.question-form textarea:focus {
  outline: 2px solid rgba(23, 62, 54, 0.18);
  border-color: var(--deep);
}

footer {
  margin-top: 76px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .proof-strip,
  .grid.products,
  .process,
  .process-visual,
  .feature-band .grid,
  .articles,
  .grid.two,
  .article-directory,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .contact,
  .question-box {
    display: block;
  }

  .section-head p,
  .contact .actions,
  .question-form {
    margin-top: 14px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .content-side {
    position: static;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  .article-page {
    padding: 22px;
  }
}
