:root {
  --bg: #f6faf6;
  --panel: #ffffff;
  --text: #1e2a22;
  --muted: #6a786f;
  --line: #dbe8dd;
  --soft: #edf6ef;
  --accent: #6c8d71;
  --accent-strong: #4d6a53;
  --shadow: 0 16px 40px rgba(47, 73, 55, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, #f8fff8 0, #f6faf6 36%, #f2f7f3 100%);
  color: var(--text);
  min-height: 100vh;
}

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

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 12;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.site-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f2f8f3);
  box-shadow: 0 10px 24px rgba(47, 73, 55, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.site-brand-copy {
  display: grid;
  gap: 4px;
}

.site-brand-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #17211b;
}

.site-brand-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.site-nav-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: #314136;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(47, 73, 55, 0.06);
}

.site-menu a:hover,
.site-menu a.is-active {
  color: var(--accent-strong);
  border-color: #c7dbc9;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(47, 73, 55, 0.08);
}

.lang-switch-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  background: var(--soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.lang-switch-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 10px 14px;
}

.lang-btn.active {
  background: var(--accent-strong);
  color: #fff;
}

.hero {
  padding: 40px 28px 28px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(127, 165, 134, 0.18), rgba(127, 165, 134, 0.02));
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 18px 0 0;
  max-width: 860px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.7;
}

.atlas-meta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.atlas-meta-item {
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdfb);
}

.atlas-meta-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.atlas-meta-value {
  margin-top: 6px;
  color: #132036;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.atlas-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.atlas-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
}

.atlas-ad-card {
  grid-column: 1 / -1;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(127, 165, 134, 0.14), rgba(127, 165, 134, 0) 40%),
    linear-gradient(180deg, #ffffff, #f7fbf8);
}

.atlas-ad-inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 18px;
}

.atlas-ad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.atlas-ad-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.atlas-ad-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.atlas-ad-slot {
  min-height: 180px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.atlas-ad-slot > div[id^="container-"] {
  min-height: 180px;
}

.atlas-card-media {
  min-height: 100%;
  padding: 22px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(127, 165, 134, 0.14), rgba(127, 165, 134, 0) 42%),
    linear-gradient(180deg, #fcfffc, #f5faf5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.atlas-card-media img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.atlas-card-media-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.atlas-card-content {
  padding: 22px;
}

.atlas-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.atlas-card-code {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.atlas-card-title {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.atlas-card-tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
  white-space: nowrap;
}

.atlas-card-intro {
  color: #314136;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.atlas-card-desc {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
  white-space: pre-wrap;
}

.atlas-card-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 12px 30px rgba(77, 106, 83, 0.18);
}

.btn-secondary {
  background: #fff;
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

.footer-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 960px) {
  .atlas-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    top: 8px;
    padding: 12px 14px;
  }

  .site-nav-controls {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 28px 18px 20px;
  }

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

  .atlas-card {
    grid-template-columns: 1fr;
  }

  .atlas-card-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .atlas-ad-card {
    padding: 16px;
  }

  .atlas-ad-inner {
    padding: 16px;
  }

  .atlas-ad-slot,
  .atlas-ad-slot > div[id^="container-"] {
    min-height: 140px;
  }
}

@media (max-width: 600px) {
  .shell {
    padding: 14px 12px 42px;
  }

  .site-menu,
  .atlas-meta,
  .atlas-card-actions {
    width: 100%;
  }

  .site-menu a,
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

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

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

  .atlas-card-title {
    font-size: 28px;
  }

  .atlas-card-intro {
    font-size: 18px;
  }
}
