:root {
  color-scheme: light;
  --page: #f4f2ec;
  --surface: #ffffff;
  --surface-soft: #ece9df;
  --text: #20231f;
  --muted: #666a63;
  --line: #dedbd2;
  --green: #1b6b4b;
  --green-dark: #14543a;
  --green-soft: #e5f1ea;
  --orange: #c86a2f;
  --orange-soft: #f7e9dd;
  --shadow: 0 14px 36px rgba(39, 44, 37, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  width: min(1120px, calc(100% - 48px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  border-radius: 10px;
  background: var(--green);
}

.brand-mark span {
  display: block;
  border-radius: 2px;
  background: #fff;
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.online-dot {
  width: 8px;
  height: 8px;
  border: 2px solid #cde4d6;
  border-radius: 50%;
  background: var(--green);
  box-sizing: content-box;
}

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

.hero {
  max-width: 760px;
  padding: 82px 0 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.tool-card {
  min-height: 300px;
  padding: 28px;
  display: flex;
  gap: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(30, 34, 29, 0.02);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #c7c4bb;
  box-shadow: var(--shadow);
}

.tool-card:focus-visible {
  outline: 3px solid rgba(27, 107, 75, 0.28);
  outline-offset: 4px;
}

.tool-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
}

.tool-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trends-icon {
  color: var(--green);
  background: var(--green-soft);
}

.weblink-icon {
  color: var(--orange);
  background: var(--orange-soft);
}

.tool-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool-topline {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-kind {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.direct-badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tool-title {
  margin-top: 23px;
  font-size: 25px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.tool-description {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

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

.tool-domain {
  min-width: 0;
  overflow: hidden;
  color: #777b74;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-action {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 750;
}

.open-action span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 180ms ease;
}

.tool-card:hover .open-action span {
  transform: translateX(4px);
}

.tool-card-weblink .open-action {
  color: #9b4f21;
}

.direct-tip {
  margin: 26px 0 0;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.tip-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.direct-tip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.direct-tip strong {
  color: var(--text);
}

footer {
  width: min(1120px, calc(100% - 48px));
  margin: 72px auto 0;
  padding: 26px 0 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: #7b7f77;
  font-size: 12px;
}

.error-page {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
}

.error-card {
  width: min(620px, 100%);
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
}

.error-code {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.18em;
}

.error-card h1 {
  font-size: clamp(34px, 7vw, 52px);
}

.error-card p:not(.error-code) {
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.75;
}

.home-link {
  min-height: 46px;
  margin-top: 28px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: var(--green);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.home-link:hover {
  background: var(--green-dark);
}

.home-link:focus-visible {
  outline: 3px solid rgba(27, 107, 75, 0.28);
  outline-offset: 4px;
}

.footer-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a8aaa4;
}

@media (max-width: 840px) {
  .tools {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 265px;
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    height: 68px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 9px;
  }

  .hero {
    padding: 56px 0 30px;
  }

  h1 {
    font-size: 38px;
    letter-spacing: -0.045em;
  }

  .hero-copy {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.7;
  }

  .tools {
    gap: 14px;
  }

  .tool-card {
    min-height: 0;
    padding: 22px;
    flex-direction: column;
    gap: 18px;
    border-radius: 18px;
  }

  .tool-icon {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 15px;
  }

  .tool-icon svg {
    width: 29px;
    height: 29px;
  }

  .tool-title {
    margin-top: 18px;
    font-size: 22px;
  }

  .tool-footer {
    margin-top: 25px;
    padding-top: 0;
  }

  .direct-tip {
    margin-top: 18px;
  }

  footer {
    margin-top: 50px;
    padding-bottom: 28px;
    flex-wrap: wrap;
  }

  .error-page {
    min-height: calc(100vh - 68px);
  }

  .error-card {
    padding: 38px 24px;
    border-radius: 18px;
  }
}

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