:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --background: #f4f6f1;
  --surface: #ffffff;
  --ink: #172018;
  --muted: #5f695f;
  --line: #d9dfd6;
  --green: #285c3c;
  --green-light: #e4eee5;
  --yellow: #f1c75b;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--background);
}

.site-header {
  min-height: 82px;
  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(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 760;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 15px;
  font-weight: 800;
}

.header-label, footer { color: var(--muted); font-size: 13px; }
.site-header .header-label {
  margin-left: auto;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  line-height: 28px;
}
.site-header .i18n-switcher { margin-left: 18px; }

main { flex: 1; }

.intro {
  padding: clamp(58px, 10vw, 120px) 0 clamp(70px, 11vw, 132px);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 1.06;
  font-weight: 780;
  letter-spacing: 0;
}

h1 span { color: var(--green); }

.summary {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.tools { padding: clamp(48px, 7vw, 82px) 0 90px; }

.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading .eyebrow { margin-bottom: 8px; }
h2 { margin: 0; font-size: 30px; }
.tool-count { color: var(--muted); font-size: 13px; }

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

.tool-card {
  min-height: 320px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 14px 32px rgb(23 32 24 / 9%);
}

.tool-card:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.card-top { display: flex; align-items: center; justify-content: space-between; }

.tool-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  font-size: 24px;
  font-weight: 700;
}

.image-icon { background: #f5ead0; color: #76550f; }

.tool-status {
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf3e9;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.card-copy { margin: 38px 0 32px; }
.tool-category { margin: 0 0 9px; color: var(--green); font-size: 12px; font-weight: 750; }
h3 { margin: 0 0 13px; font-size: 25px; }
.card-copy > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.card-action { margin-top: auto; display: flex; justify-content: space-between; color: var(--green); font-size: 14px; font-weight: 750; }

footer {
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.footer-actions { display:flex; align-items:center; gap:18px; }
.footer-actions button { border:0; border-bottom:1px solid currentColor; padding:2px 0; background:transparent; color:var(--green); font:inherit; font-weight:700; cursor:pointer; }
.footer-actions a { padding:2px 0; color:var(--muted); font:inherit; font-weight:700; text-decoration:none; }
.footer-actions a:hover { color:var(--green); text-decoration:underline; }
dialog { width:min(92vw,560px); padding:0; border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); box-shadow:0 24px 80px rgb(23 32 24 / 24%); }
dialog::backdrop { background:rgb(23 32 24 / 45%); }
#feedback-form { padding:28px; }
.dialog-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:22px; }
.dialog-head .eyebrow { margin-bottom:6px; }
.dialog-head h2 { font-size:27px; }
.dialog-close { border:0; padding:0 4px; background:transparent; color:var(--muted); font-size:30px; line-height:1; cursor:pointer; }
#feedback-form label { display:block; margin:17px 0 8px; font-size:14px; font-weight:700; }
#feedback-form label span { color:var(--muted); font-size:12px; font-weight:400; }
#feedback-form select, #feedback-form textarea, #feedback-form input { width:100%; border:1px solid var(--line); border-radius:6px; background:white; color:var(--ink); font:inherit; }
#feedback-form select, #feedback-form input { min-height:48px; padding:10px 12px; }
#feedback-form textarea { padding:12px; resize:vertical; line-height:1.55; }
.honeypot { position:absolute; left:-10000px; width:1px !important; height:1px; opacity:0; }
.form-status { min-height:21px; margin:12px 0 7px; color:var(--muted); font-size:13px; }
.form-status.error { color:#962f27; }
.submit-button { width:100%; min-height:52px; padding:0 18px; display:flex; align-items:center; justify-content:space-between; border:0; border-radius:6px; background:var(--green); color:white; font:inherit; font-weight:700; cursor:pointer; }
.submit-button:disabled { opacity:.6; cursor:wait; }

@media (max-width: 840px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header { min-height: 70px; }
  .site-header .header-label { display: none; }
  .site-header .i18n-switcher { margin-left: auto; }
  .intro { padding-top: 54px; }
  .summary { font-size: 15px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 286px; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-actions { align-items:flex-start; flex-wrap:wrap; }
  #feedback-form { padding:22px; }
}
