:root {
  --ink: #18201f;
  --muted: #697271;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dce2dd;
  --line-strong: #bcc7c0;
  --green: #2e8f68;
  --green-deep: #12614a;
  --blue: #2f68b8;
  --amber: #b97116;
  --rose: #b8534b;
  --violet: #725ea7;
  --shadow-1: 0 1px 2px rgba(24, 32, 31, 0.08);
  --shadow-2: 0 18px 50px rgba(24, 32, 31, 0.11);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1180px;
  font-family: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(251, 250, 246, 0.92) 38rem),
    repeating-linear-gradient(90deg, rgba(24, 32, 31, 0.025), rgba(24, 32, 31, 0.025) 1px, transparent 1px, transparent 72px),
    var(--paper);
}

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

img {
  display: block;
  max-width: 100%;
}

code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(46, 143, 104, 0.1);
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 250, 246, 0.82);
  border-bottom: 1px solid rgba(188, 199, 192, 0.45);
}

.nav-shell {
  width: min(100% - 32px, var(--max));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 -8px 14px rgba(255, 255, 255, 0.13);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.hero-section {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: min(820px, calc(100svh - 124px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 7vw, 80px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  font-weight: 750;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 11vw, 7.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  max-width: 8.6em;
}

.hero-lede {
  margin: 28px 0 0;
  max-width: 640px;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.85;
  color: #3d4745;
}

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

.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 720;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-action {
  color: #fff;
  background: var(--green-deep);
  border: 1px solid var(--green-deep);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-strong);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 560px;
  margin: 38px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow-1);
}

.signal-strip div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.signal-strip dt {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
}

.signal-strip dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-panel {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 16%, rgba(47, 104, 184, 0.12), transparent 30%),
    radial-gradient(circle at 22% 86%, rgba(185, 113, 22, 0.12), transparent 31%),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-2);
  padding: clamp(16px, 3vw, 26px);
  display: flex;
  flex-direction: column;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.hero-stack {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 72px;
  gap: 12px;
  align-content: center;
  padding-top: 24px;
}

.hero-app {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(188, 199, 192, 0.72);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.hero-app:nth-child(1) {
  grid-column: span 3;
  grid-row: span 3;
}

.hero-app:nth-child(2) {
  grid-column: span 3;
  grid-row: span 2;
}

.hero-app:nth-child(3),
.hero-app:nth-child(4) {
  grid-column: span 2;
  grid-row: span 2;
}

.hero-app:nth-child(5),
.hero-app:nth-child(6),
.hero-app:nth-child(7) {
  grid-column: span 2;
}

.hero-app img {
  width: min(52%, 92px);
  max-height: calc(100% - 30px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(24, 32, 31, 0.16));
}

.hero-app span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  right: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.method-band {
  border-block: 1px solid var(--line);
  background: rgba(24, 32, 31, 0.035);
}

.method-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
}

.method-inner p {
  margin: 0;
  color: #4e5856;
  line-height: 1.8;
}

.section-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: clamp(62px, 8vw, 94px) 0;
}

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

.section-heading h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2rem, 4.8vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.leader-card {
  min-height: 240px;
  background: rgba(255, 255, 255, 0.82);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.leader-card:hover {
  background: #fff;
}

.leader-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.leader-head img,
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}

.leader-domain {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.leader-card h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.12;
}

.leader-card p {
  margin: 18px 0 0;
  line-height: 1.72;
  color: #3f4947;
}

.usage-line {
  margin-top: 20px;
}

.usage-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 7px;
}

.usage-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(24, 32, 31, 0.09);
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.tools-section {
  background: #eef3ef;
  border-block: 1px solid var(--line);
}

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

.search-box {
  width: min(100%, 320px);
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.search-box input:focus {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(46, 143, 104, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #45504e;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--green-deep);
  background: var(--green-deep);
}

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

.tool-card {
  min-height: 310px;
  background: var(--surface);
  border: 1px solid rgba(188, 199, 192, 0.78);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-card:hover {
  border-color: rgba(18, 97, 74, 0.45);
  box-shadow: 0 12px 34px rgba(24, 32, 31, 0.1);
}

.tool-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.app-icon {
  flex: 0 0 auto;
  background: #f3f5f2;
}

.tool-title {
  min-width: 0;
}

.tool-title h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.tool-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.tool-copy {
  margin: 0;
  color: #3d4745;
  line-height: 1.72;
}

.recommendation {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f6f7f2;
  color: #404a48;
  line-height: 1.62;
  border: 1px solid rgba(188, 199, 192, 0.55);
}

.tool-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.rank-pill,
.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.rank-pill {
  color: var(--green-deep);
  background: rgba(46, 143, 104, 0.12);
}

.category-pill {
  color: #4f5654;
  background: rgba(24, 32, 31, 0.07);
}

.starter-section {
  background:
    linear-gradient(90deg, rgba(47, 104, 184, 0.08), transparent 46%),
    var(--paper);
}

.starter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.starter-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: starter;
  display: grid;
  gap: 12px;
}

.starter-list li {
  counter-increment: starter;
  position: relative;
  padding: 18px 18px 18px 64px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  line-height: 1.72;
  color: #3e4846;
}

.starter-list li::before {
  content: counter(starter);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero-section,
  .starter-layout {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-panel {
    min-height: 420px;
  }

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

@media (max-width: 720px) {
  .nav-shell {
    min-height: 58px;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    width: min(100% - 24px, var(--max));
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5.3rem);
  }

  .hero-actions,
  .tools-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 360px;
  }

  .hero-stack {
    grid-auto-rows: 60px;
    gap: 8px;
  }

  .panel-topline {
    font-size: 0.68rem;
  }

  .leader-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .leader-card {
    min-height: 210px;
  }

  .section-shell,
  .method-inner,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .tool-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
