@charset "UTF-8";

/* ===== 1. Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}
ul, ol {
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
a {
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: var(--orange);
  color: var(--white);
}

/* ===== 2. Variables ===== */
:root {
  --green: #0B3B2E;
  --orange: #FF4B2B;
  --grass: #2E7D5B;
  --white: #F5F7F4;
  --ink: #1A1A1A;
  --beige: #E8DFC9;
  --orange-soft: #FF8A50;
  --green-glass: rgba(11, 59, 46, 0.6);
  --header-bg: rgba(11, 59, 46, 0.82);
  --header-bg-solid: rgba(8, 44, 34, 0.96);
  --border-light: rgba(245, 247, 244, 0.12);
  --font-heading: Rajdhani, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "IBM Plex Mono", "SF Mono", "Cascadia Mono", Consolas, monospace;
  --container: 1200px;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.35s;
  --space-section: clamp(4.5rem, 9vw, 7.5rem);
}

/* ===== 3. Base Typography ===== */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white);
  background-color: var(--green);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}
h3 {
  font-size: 1.25rem;
}
p {
  margin-bottom: 1.1rem;
}
strong {
  font-weight: 700;
}
a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease);
}
a:hover {
  color: var(--orange-soft);
}
blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.8rem;
  border-left: 4px solid var(--orange);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--white);
}
code {
  font-family: var(--font-data);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
#main-content {
  display: block;
  scroll-margin-top: 6rem;
}

/* ===== 4. Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}
.section {
  padding-block: var(--space-section);
}
.section-head {
  max-width: 720px;
  margin-bottom: 2.75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: rgba(245, 247, 244, 0.72);
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-grid > .img-figure {
  order: 2;
}

/* ===== 5. Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(255, 75, 43, 0.28);
}
.btn-primary:hover {
  background: var(--orange-soft);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 75, 43, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 247, 244, 0.4);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ===== 6. Labels & Tags ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.9rem;
}
.section-label::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--orange);
  flex: none;
}
.section-label[data-index]::before {
  content: attr(data-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 22px;
  padding: 0 0.45rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border: 1px solid rgba(245, 247, 244, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--font-data);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.tag-hot {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.data-num {
  font-family: var(--font-data);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ===== 7. Cards & Paper ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}
.card {
  background: linear-gradient(150deg, var(--beige), #EEE6D2);
  border: 1px solid rgba(26, 26, 26, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: 6px 6px 0 rgba(9, 46, 36, 0.14);
  padding: 1.75rem;
  color: var(--ink);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.card > *:last-child {
  margin-bottom: 0;
}
.card h3 {
  color: var(--ink);
  font-size: 1.35rem;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 10px 10px 0 rgba(9, 46, 36, 0.18);
}
.card-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: var(--border-light);
  box-shadow: none;
}
.card-muted h3 {
  color: var(--white);
}
.paper-panel {
  background: linear-gradient(150deg, var(--beige), #F0E8D6);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: var(--radius);
  box-shadow: 10px 10px 0 rgba(9, 46, 36, 0.14);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--ink);
}
.paper-panel h1,
.paper-panel h2,
.paper-panel h3 {
  color: var(--ink);
}

/* ===== 8. Stats ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat {
  border-left: 3px solid var(--orange);
  padding-left: 1.2rem;
  color: var(--white);
}
.stat .data-num {
  display: block;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--orange);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(245, 247, 244, 0.65);
}

/* ===== 9. Breadcrumbs ===== */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-data);
  font-size: 0.82rem;
  color: rgba(245, 247, 244, 0.6);
  margin-bottom: 1.5rem;
}
.crumbs a {
  color: var(--orange);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--orange-soft);
}
.crumb-sep {
  color: rgba(245, 247, 244, 0.3);
}
.crumb-current {
  color: var(--white);
}

/* ===== 10. Data Table ===== */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.data-table th,
.data-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.data-table th {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 247, 244, 0.5);
  font-weight: 500;
}
.data-table td {
  color: var(--white);
  font-size: 0.95rem;
}
.data-table td.num {
  font-family: var(--font-data);
  color: var(--orange);
  font-weight: 600;
}
.data-table tbody tr {
  transition: background var(--duration) var(--ease);
}
.data-table tbody tr:hover {
  background: rgba(255, 75, 43, 0.06);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

/* ===== 11. Image Figure ===== */
.img-figure {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(46, 125, 91, 0.4), rgba(11, 59, 46, 0.9)),
    repeating-linear-gradient(45deg, rgba(245, 247, 244, 0.08) 0 1px, transparent 1px 10px);
  border: 1px solid var(--border-light);
  aspect-ratio: 16 / 10;
}
.img-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.img-figure:hover img {
  transform: scale(1.03);
}
.img-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--green-glass));
  pointer-events: none;
}

/* ===== 12. Skip Link ===== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.8rem 1.6rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(255, 75, 43, 0.4);
  transition: top var(--duration) var(--ease);
}
.skip-link:focus-visible {
  top: 1rem;
  outline-color: var(--white);
}

/* ===== 13. Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: clamp(0.6rem, 2vw, 1.1rem);
  pointer-events: none;
}
.nav-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: calc(var(--container) + 2rem);
  margin-inline: auto;
  padding: 0.45rem 0.6rem 0.45rem 0.9rem;
  background: var(--header-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.site-header.is-scrolled .nav-capsule {
  background: var(--header-bg-solid);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
}
.brand-mark .mk-frame {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.2;
}
.brand-mark .mk-pitch {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
}
.brand-mark .mk-core {
  fill: var(--orange);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  line-height: 1;
  color: var(--orange);
  margin-top: 0.12rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.site-header.is-scrolled .brand-tag {
  opacity: 1;
  transform: none;
}
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-link {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 244, 0.88);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.nav-link:hover {
  color: var(--orange-soft);
  background: rgba(255, 75, 43, 0.12);
}
.nav-link[aria-current="page"] {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 4px 16px rgba(255, 75, 43, 0.45);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(245, 247, 244, 0.28);
  border-radius: 50%;
  background: transparent;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.nav-toggle:hover {
  background: rgba(255, 75, 43, 0.14);
  border-color: var(--orange);
}
.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== 14. Footer ===== */
.site-footer {
  position: relative;
  background-color: var(--green);
  background-image:
    radial-gradient(ellipse at 18% 130%, rgba(232, 223, 201, 0.09) 0%, transparent 42%),
    radial-gradient(ellipse at 82% 140%, rgba(245, 247, 244, 0.06) 0%, transparent 38%),
    repeating-linear-gradient(105deg, rgba(232, 223, 201, 0.035) 0 1px, transparent 1px 12px);
  color: var(--white);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(85deg, transparent 20%, rgba(232, 223, 201, 0.05) 45%, transparent 68%),
    linear-gradient(100deg, transparent 55%, rgba(232, 223, 201, 0.04) 78%, transparent 92%);
  pointer-events: none;
}
.riv-divider {
  position: relative;
  z-index: 1;
  height: clamp(24px, 3.5vw, 46px);
  background: var(--white);
  line-height: 0;
  overflow: hidden;
}
.riv-line {
  display: block;
  width: 100%;
  height: 100%;
}
.riv-green {
  fill: var(--green);
}
.riv-yellow {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-dasharray: 7 5;
  opacity: 0.85;
}
.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.footer-col > *:last-child {
  margin-bottom: 0;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 1.1rem;
}
.footer-logo:hover {
  color: var(--orange-soft);
}
.footer-desc {
  max-width: 32rem;
  font-size: 0.95rem;
  color: rgba(245, 247, 244, 0.68);
  line-height: 1.85;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.3rem;
}
.footer-title::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: var(--orange);
  margin-top: 0.55rem;
}
.footer-menu,
.footer-meta {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.footer-menu a {
  display: inline-block;
  color: rgba(245, 247, 244, 0.72);
  text-decoration: none;
  transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.footer-menu a:hover {
  color: var(--orange);
  transform: translateX(4px);
}
.footer-meta {
  color: rgba(245, 247, 244, 0.8);
  font-size: 0.94rem;
}
.meta-label {
  display: inline-block;
  min-width: 2.4em;
  margin-right: 0.45rem;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
}
.footer-note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(245, 247, 244, 0.5);
  line-height: 1.6;
  border-left: 2px solid rgba(255, 75, 43, 0.55);
  padding-left: 0.85rem;
}
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(245, 247, 244, 0.1);
  padding-block: 1.4rem;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem 1.6rem;
  font-size: 0.82rem;
  color: rgba(245, 247, 244, 0.56);
}
.footer-copy {
  margin: 0;
}
.footer-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
}
.footer-more a {
  color: rgba(245, 247, 244, 0.72);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
.footer-more a:hover {
  color: var(--orange);
}

/* ===== 15. Scroll Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== 16. Responsive ===== */
@media (max-width: 940px) {
  .nav-capsule {
    flex-wrap: wrap;
    border-radius: 1.4rem;
    padding: 0.4rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    flex: 0 0 100%;
    display: none;
    padding: 0.6rem 0.5rem 0.4rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.55rem;
  }
  .site-nav[data-open] {
    display: block;
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
  }
  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-align: left;
  }
  .brand {
    padding: 0.2rem 0.2rem 0.2rem 0.4rem;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-tag {
    opacity: 1;
    transform: none;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .split-grid > .img-figure {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-more {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: auto;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .footer-copy {
    font-size: 0.78rem;
  }
}

/* ===== 17. Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-header,
  .brand-tag,
  .nav-capsule {
    transition: none;
  }
}
