:root {
  --bg: #f6f3ee;
  --ink: #171514;
  --muted: #6b625c;
  --panel: #fffaf3;
  --line: #ded4c8;
  --accent: #9e2f2d;
  --accent-2: #2f6658;
  --deep: #221918;
  --soft: #efe4d7;
  --shadow: 0 22px 55px rgba(64, 45, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(158, 47, 45, 0.06) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(rgba(47, 102, 88, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 0 5vw;
  background: rgba(246, 243, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  min-width: 190px;
}

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

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

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 700;
}

.main-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--accent);
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  list-style: none;
  font-weight: 800;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 5vw;
  right: 5vw;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.mobile-menu nav a {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 8px;
}

.mobile-menu nav a:hover {
  background: var(--soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  align-items: center;
  gap: 6vw;
  min-height: calc(100vh - 70px);
  padding: 7vw 5vw;
  background:
    linear-gradient(120deg, rgba(255, 250, 243, 0.96), rgba(255, 250, 243, 0.72)),
    linear-gradient(180deg, transparent, rgba(47, 102, 88, 0.08));
}

.hero-media {
  order: 2;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(34, 25, 24, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.3;
}

.lead,
.hero-copy p {
  color: var(--muted);
  font-size: 18px;
}

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

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

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

.button.secondary,
.text-link {
  color: var(--accent);
  border: 1px solid rgba(158, 47, 45, 0.28);
  background: rgba(158, 47, 45, 0.06);
}

.section,
.page-main,
.article-main {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 84px 0;
}

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

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

.device-card,
.document-card,
.article-grid article,
.steps article,
.download-list article,
.timeline article,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 243, 0.88);
  box-shadow: 0 12px 32px rgba(64, 45, 34, 0.07);
}

.device-card,
.document-card,
.article-grid article,
.steps article {
  min-height: 220px;
  padding: 24px;
}

.device-card span,
.document-card span,
.article-grid span,
.steps span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.device-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.device-card p,
.document-card p,
.article-grid p,
.steps p,
.download-list p,
.timeline p,
.article-body p,
.text-section p,
.note-box p {
  color: var(--muted);
}

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

.document-card {
  position: relative;
  overflow: hidden;
}

.document-card::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: rgba(158, 47, 45, 0.16);
  content: "PDF";
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.document-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.article-grid h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.node-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.node-list span {
  min-height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 102, 88, 0.22);
  border-radius: 8px;
  background: rgba(47, 102, 88, 0.08);
  color: var(--accent-2);
  font-weight: 900;
}

.process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  min-height: 180px;
  padding: 24px;
  border-radius: 8px;
  background: var(--deep);
  color: #fffaf3;
}

.process li span {
  display: block;
  margin-top: 10px;
  color: #dccbc0;
}

.page-main {
  min-height: calc(100vh - 170px);
}

.narrow {
  width: min(840px, 90vw);
}

.download-list,
.timeline {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.download-list article,
.timeline article,
.note-box {
  padding: 26px;
}

.steps {
  margin-top: 30px;
}

.note-box {
  margin-top: 18px;
}

.timeline time,
.article-info {
  color: var(--accent-2);
  font-weight: 900;
}

.article-main {
  width: min(900px, 90vw);
}

.article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-body {
  font-size: 18px;
}

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

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.article-nav a {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 5vw;
  color: #eee0d2;
  background: var(--deep);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #dccbc0;
}

.error-page {
  display: grid;
  align-content: center;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

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

  .hero-media {
    order: 0;
  }

  .device-grid,
  .article-grid,
  .document-grid,
  .steps,
  .process ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: 42px;
  }

  .device-grid,
  .article-grid,
  .document-grid,
  .steps,
  .process ol,
  .node-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
