* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #172414;
  --muted: #52674a;
  --soft: #8aa654;
  --line: #dce9c9;
  --grid: rgba(151, 184, 83, 0.16);
  --paper: #f8fbf2;
  --white: #ffffff;
  --accent: #7fae25;
  --accent-hover: #68941d;
  --leaf: #9bc53d;
  --seed: #8b6418;
  --shadow: 0 14px 34px rgba(89, 125, 29, 0.11);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(187, 218, 107, 0.28), transparent 34%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  padding: 0 22px;
  background: #ffffff;
  border-bottom: 1px solid #e3edcf;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 2px 0;
  background: #fff;
}

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

.site-nav {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: #38542f;
  white-space: nowrap;
}

.site-nav a,
.support-link {
  transition: color 0.18s ease;
}

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

.site-nav span {
  margin-left: 4px;
  color: #88a64d;
  font-size: 12px;
}

.support-link {
  justify-self: end;
  font-size: 14px;
  color: var(--seed);
  font-weight: 600;
}

.page {
  min-height: 100vh;
  padding: 52px 20px 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  width: min(100%, 1040px);
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-copy {
  margin-top: 44px;
}

.hero h1 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.12;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 22px;
}

.hero h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf), #d7e977);
}

.hero p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 42px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 158px;
  height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(110, 150, 34, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 14px 30px rgba(110, 150, 34, 0.24);
}

.worksheet-types {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.type-card {
  position: relative;
  min-height: 80px;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 52px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.type-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #b7d77a;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.type-card:hover {
  transform: translateY(-3px);
  border-color: #b7d77a;
  background: #fff;
  box-shadow: var(--shadow);
}

.type-card:hover::before {
  opacity: 1;
}

.type-card-wide {
  grid-column: span 4;
}

.type-title {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  color: #20321a;
  margin-bottom: 9px;
}

.type-desc {
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.type-arrow {
  position: absolute;
  right: 18px;
  top: 19px;
  color: #aac777;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.type-card:hover .type-arrow {
  transform: translateX(3px);
  color: var(--accent-hover);
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 18px;
    gap: 24px;
  }

  .site-nav {
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    min-height: 430px;
  }

  .type-card,
  .type-card-wide {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 16px;
  }

  .brand {
    height: 40px;
  }

  .brand img {
    height: 36px;
  }

  .site-nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 0 4px;
  }

  .support-link {
    font-size: 13px;
  }

  .page {
    padding-top: 94px;
    padding-bottom: 36px;
  }

  .hero {
    min-height: 340px;
  }

  .hero-copy {
    margin-top: 0;
  }

  .hero h1 {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .worksheet-types {
    gap: 10px;
  }

  .type-card,
  .type-card-wide {
    grid-column: 1 / -1;
    min-height: 74px;
    border-radius: 10px;
  }
}
