:root {
  --ink: #121714;
  --muted: #5d675f;
  --line: #dfe5df;
  --paper: #ffffff;
  --canvas: #f3f6f3;
  --dark: #0a0f0d;
  --green: #76b900;
  --green-dark: #5b9100;
  --green-pale: #ecf7da;
  --shadow: 0 14px 40px rgba(24, 39, 29, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  color: #f7faf7;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.public-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #dfe7e0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
}

.public-badge span {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(118, 185, 0, 0.16);
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 10%, rgba(118, 185, 0, 0.27), transparent 31%),
    linear-gradient(135deg, #0a0f0d 0%, #101a14 58%, #0a0f0d 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent, black 38%, black);
}

.hero-content {
  position: relative;
  padding-block: 76px 86px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: #cbd5ce;
  font-size: clamp(16px, 2vw, 19px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-meta span {
  padding: 7px 12px;
  color: #dfe7e0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 12px;
}

.hero-meta strong {
  color: #fff;
}

.content-shell {
  padding-block: 34px 76px;
}

.language-nav {
  position: sticky;
  top: 14px;
  z-index: 10;
  width: fit-content;
  display: flex;
  gap: 4px;
  margin: 0 0 36px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(27, 44, 32, 0.08);
  backdrop-filter: blur(12px);
}

.language-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.language-nav a:hover,
.language-nav a:focus-visible {
  color: #fff;
  background: var(--green-dark);
  outline: none;
}

.download-section {
  scroll-margin-top: 90px;
  margin-top: 48px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-kicker {
  margin-bottom: 6px;
}

.section-count {
  color: var(--muted);
  font-size: 13px;
}

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

.file-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(19, 29, 22, 0.02);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.file-card:hover {
  transform: translateY(-2px);
  border-color: #bcd592;
  box-shadow: var(--shadow);
}

.pdf-icon {
  width: 48px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1b251f;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.file-content {
  min-width: 0;
}

.file-type {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.file-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.file-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  background: #477600;
  transform: translateY(-1px);
  outline: 3px solid rgba(118, 185, 0, 0.24);
  outline-offset: 2px;
}

.download-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.download-note {
  display: flex;
  gap: 14px;
  margin-top: 48px;
  padding: 20px 22px;
  background: var(--green-pale);
  border: 1px solid #cfe8a8;
  border-radius: 14px;
}

.note-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green-dark);
  border-radius: 50%;
  font-weight: 800;
  font-family: Georgia, serif;
}

.download-note strong {
  display: block;
  margin-bottom: 2px;
}

.download-note p {
  margin: 0;
  color: #485443;
  font-size: 13px;
}

.site-footer {
  color: #aeb9b1;
  background: var(--dark);
}

.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
  background: var(--dark);
  color: white;
}

.error-page h1 {
  margin: 0 0 8px;
  font-size: clamp(52px, 12vw, 110px);
  color: var(--green);
}

.error-page p {
  color: #c7d0ca;
}

.error-page a {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 62px;
  }

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

  .site-header .public-badge {
    display: none;
  }

  .hero-content {
    padding-block: 46px 54px;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.035em;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 15px;
  }

  .hero-meta {
    margin-top: 22px;
  }

  .file-list {
    grid-template-columns: 1fr;
  }

  .language-nav {
    position: static;
    width: 100%;
    margin-bottom: 30px;
  }

  .language-nav a {
    flex: 1;
    padding-inline: 10px;
    text-align: center;
  }

  .content-shell {
    padding-block: 28px 54px;
  }

  .download-section {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    gap: 9px;
    font-size: 13px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .hero-content {
    padding-block: 36px 42px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
  }

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

  .hero-meta span {
    padding: 6px 11px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .file-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .pdf-icon {
    width: 40px;
    height: 46px;
    border-radius: 8px;
    font-size: 10px;
  }

  .file-card h3 {
    font-size: 15px;
  }

  .file-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 14px;
  }

  .download-button {
    width: 100%;
  }

  .download-note {
    margin-top: 38px;
    padding: 16px;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    justify-content: center;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
