:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --surface: #fffdf6;
  --surface-strong: #ffffff;
  --ink: #1d241c;
  --muted: #687063;
  --line: #d8d1bd;
  --grass: #3f7d35;
  --grass-dark: #245a2c;
  --clay: #a65733;
  --stone: #52616b;
  --gold: #d69a2d;
  --shadow: 0 18px 40px rgba(37, 45, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(63, 125, 53, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(63, 125, 53, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

.home-shell {
  min-height: 100vh;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  background: rgba(255, 253, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.home-nav {
  display: flex;
  gap: 8px;
}

.home-nav a {
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 800;
}

.home-nav a:hover {
  background: #e5efdb;
  color: var(--grass-dark);
}

.home-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px;
}

.home-hero {
  min-height: min(560px, calc(100vh - 88px));
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 32px;
}

.home-hero h1 {
  max-width: 760px;
}

.home-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.home-hero-panel {
  display: grid;
  gap: 8px;
  padding: 26px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-hero-panel strong {
  font-size: 2.6rem;
  line-height: 1;
}

.home-hero-panel span {
  font-weight: 900;
}

.home-hero-panel small {
  color: var(--muted);
}

.home-section {
  margin-bottom: 28px;
}

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

.plugin-card {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

a.plugin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.plugin-card p {
  color: var(--muted);
}

.plugin-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 3px solid #22351f;
  background: linear-gradient(135deg, var(--grass), #74aa46 52%, var(--gold) 53%);
  color: #fff;
  font-weight: 900;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.18);
}

.muted-card {
  opacity: 0.78;
}

.site-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: rgba(255, 253, 246, 0.92);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px solid #22351f;
  background: linear-gradient(135deg, var(--grass), #74aa46 52%, var(--clay) 53%);
  color: #fff;
  font-weight: 900;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.18);
}

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

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-list a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 700;
}

.nav-list a:hover,
.nav-list a.active {
  background: #e5efdb;
  color: var(--grass-dark);
}

.server-card {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding: 14px;
  background: #eef5e5;
  border: 1px solid #cbdfbb;
  border-radius: 8px;
}

.server-card strong,
.server-card span {
  display: block;
}

.server-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: #39a34a;
  box-shadow: 0 0 0 5px rgba(57, 163, 74, 0.15);
  flex: 0 0 auto;
}

main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px;
}

.section-block {
  margin-bottom: 28px;
  padding: 32px;
  background: rgba(255, 253, 246, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.hero {
  min-height: min(660px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  max-width: 720px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--grass-dark);
  border-radius: 7px;
  font-weight: 900;
}

.button.primary {
  background: var(--grass);
  color: #fff;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18);
}

.button.ghost {
  background: #fff;
  color: var(--grass-dark);
}

.hero-art {
  position: relative;
  min-height: 420px;
  border: 4px solid #22351f;
  background: #1b241b;
  box-shadow: 14px 14px 0 #c6b996;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  image-rendering: pixelated;
}

.stats-grid,
.permission-grid,
.api-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stats-grid article,
.permission-grid article,
.api-grid article,
.timeline article,
.code-card,
.release-list article {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid article {
  padding: 22px;
}

.stats-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
}

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

.timeline article {
  padding: 20px;
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: #e5efdb;
  color: var(--grass-dark);
  border: 1px solid #c4d8b4;
  border-radius: 6px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.code-stack {
  display: grid;
  gap: 12px;
}

.code-card {
  padding: 16px;
}

.code-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

code,
pre {
  font-family: "Cascadia Code", Consolas, monospace;
}

.code-card code {
  display: block;
  padding: 12px;
  overflow-x: auto;
  background: #1f2a1d;
  color: #dff3c2;
  border-radius: 6px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--stone);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--grass);
  color: var(--grass-dark);
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #ece5d3;
  border-radius: 8px;
}

.tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  background: #fff;
  color: var(--grass-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #f1ead8;
  color: #40503d;
  font-size: 0.86rem;
}

td code,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  background: #edf5e5;
  border: 1px solid #cbdcbd;
  border-radius: 6px;
  color: var(--grass-dark);
  font-size: 0.88rem;
  white-space: nowrap;
}

.empty-state {
  margin: 16px 0 0;
  padding: 14px;
  color: var(--muted);
  background: #fff8df;
  border: 1px solid #ead89c;
  border-radius: 8px;
}

.permission-grid,
.api-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

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

.job-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) 1fr;
  gap: 18px;
  padding: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-meta {
  display: grid;
  align-content: start;
  gap: 10px;
}

.job-meta strong {
  font-size: 1.25rem;
}

.job-meta span {
  color: var(--muted);
}

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

.skill-item {
  padding: 14px;
  background: #f7f4ea;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skill-item strong {
  display: block;
  margin-bottom: 6px;
}

.skill-item p {
  margin-bottom: 8px;
  color: var(--muted);
}

.skill-item small {
  color: var(--clay);
  font-weight: 800;
}

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

.config-file-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.config-file-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.config-file-head code {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 8px;
  padding: 4px 8px;
  overflow-wrap: anywhere;
  background: #edf5e5;
  border: 1px solid #cbdcbd;
  border-radius: 6px;
  color: var(--grass-dark);
}

.config-file-card p {
  color: var(--muted);
}

.key-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.key-list span {
  padding: 4px 8px;
  background: #f1ead8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #40503d;
  font-size: 0.86rem;
  font-weight: 800;
}

.config-file-card pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  background: #1f2a1d;
  color: #dff3c2;
  border-radius: 8px;
}

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

.requirement-card {
  padding: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.requirement-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.requirement-title span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 8px;
  background: #edf5e5;
  border: 1px solid #cbdcbd;
  border-radius: 6px;
  color: var(--grass-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.requirement-title h3 {
  margin: 0;
}

.requirement-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.requirement-card dl div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.requirement-card dt {
  color: #40503d;
  font-weight: 900;
}

.requirement-card dd {
  margin: 0;
  color: var(--muted);
}

.requirement-card dd a {
  color: var(--grass-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.permission-grid article,
.api-grid article {
  padding: 20px;
}

.config-panel {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  background: #1f2a1d;
  color: #dff3c2;
  border-radius: 8px;
  border: 1px solid #31442d;
}

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

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.release-list {
  display: grid;
  gap: 12px;
}

.release-list article {
  padding: 18px;
}

.release-list time {
  color: var(--clay);
  font-weight: 900;
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 14px;
  background: #1f2a1d;
  color: #fff;
  border-radius: 7px;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 0 24px;
  }

  .plugin-grid {
    grid-template-columns: 1fr;
  }

  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

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

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

  .job-card,
  .skill-list,
  .config-file-grid,
  .requirement-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .home-main {
    padding: 18px;
  }

  main,
  .sidebar {
    padding: 18px;
  }

  .section-block {
    padding: 22px;
  }

  .nav-list,
  .timeline,
  .stats-grid,
  .permission-grid,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .row-heading {
    display: block;
  }

  .tabs {
    margin-top: 14px;
    width: 100%;
  }

  .tab {
    flex: 1;
  }

  h1 {
    font-size: 3.4rem;
  }

  .hero-art,
  .hero-art img {
    min-height: 300px;
  }

  .requirement-card dl div {
    grid-template-columns: 1fr;
  }
}
