:root {
  color-scheme: light;
  --canvas: #f5f7f8;
  --surface: #ffffff;
  --surface-muted: #eef2f3;
  --ink: #182025;
  --ink-muted: #657078;
  --line: #dce2e5;
  --brand: #176b57;
  --brand-strong: #0e5544;
  --status: #16815f;
  --shadow: 0 10px 28px rgba(24, 32, 37, 0.06);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a { color: inherit; }

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner,
main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 7px;
  background: var(--brand);
  border-radius: 6px;
}

.brand-mark span { display: block; background: white; border-radius: 1px; }
.brand-mark span:nth-child(1) { height: 6px; }
.brand-mark span:nth-child(2) { height: 12px; }
.brand-mark span:nth-child(3) { height: 9px; }

.header-label {
  color: var(--ink-muted);
  font-size: 13px;
}

main { min-height: calc(100vh - 148px); }

.intro {
  padding: 70px 0 48px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.intro h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

.intro > p:last-child {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--ink-muted);
}

.tools-section { padding: 40px 0 64px; }

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

.section-heading h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.section-heading p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

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

.tool-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tool-card:hover {
  border-color: #b9c6c9;
  box-shadow: 0 14px 32px rgba(24, 32, 37, 0.09);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  background: #e3f1ed;
  border: 1px solid #c9e1da;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 750;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--status);
  font-size: 13px;
  font-weight: 650;
}

.status::before {
  width: 7px;
  height: 7px;
  content: "";
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 129, 95, 0.11);
}

.tool-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  line-height: 1.35;
}

.description {
  margin: 0 0 17px;
  color: #3e494f;
}

.scenario {
  margin: 0 0 24px;
  color: var(--ink-muted);
  font-size: 14px;
}

.scenario strong {
  color: #48545a;
  font-weight: 650;
}

.enter-link {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 15px;
  color: white;
  background: var(--brand);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: background 160ms ease;
}

.enter-link:hover { background: var(--brand-strong); }
.enter-link:focus-visible { outline: 3px solid rgba(23, 107, 87, 0.25); outline-offset: 3px; }
.enter-link span { font-size: 17px; line-height: 1; }

.loading-state,
.error-state,
.empty-state {
  grid-column: 1 / -1;
  padding: 46px 24px;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.error-state { color: #9a332d; }

footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

footer p { margin: 0; }

@media (max-width: 760px) {
  .header-inner,
  main,
  footer { width: min(100% - 32px, 1120px); }
  .intro { padding: 48px 0 36px; }
  .intro h1 { font-size: 29px; }
  .tools-section { padding: 32px 0 48px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; padding: 22px; }
}

@media (max-width: 420px) {
  .header-label { display: none; }
  .header-inner { height: 62px; }
  .intro { padding-top: 40px; }
  .card-top { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .enter-link { transition: none; }
}
