:root {
  /* 前台定稿方向：色板 B + 门面方案 1。首屏图可后台替换。 */
  --paper: #f4f5f7;
  --paper-2: #eceef1;
  --ink: #161616;
  --ink-soft: #5c5f66;
  --pine: #245c4b;
  --pine-dark: #1a4538;
  --line: rgba(22, 22, 22, 0.10);
  --card: #ffffff;
  --header: linear-gradient(90deg, #eaf7e4 0%, #d8f0ec 50%, #d3eaf4 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--pine); }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  border-bottom: 1px solid rgba(36, 92, 75, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
.brand {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.08em;
  font-size: 15px;
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a { color: var(--ink-soft); font-size: 15px; }
.nav a.active, .nav a:hover { color: var(--pine); }
.header-cta {
  display: inline-flex;
  padding: 8px 16px;
  background: var(--pine);
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
}
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 6px 10px;
  font: inherit;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 56px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 12%, rgba(211, 234, 244, 0.85), transparent 48%),
    linear-gradient(90deg, #e6f5e2 0%, #d5efe9 48%, #cfe8f3 100%);
}
.hero-inner.has-art {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 650;
  line-height: 1.35;
  margin: 0 0 28px;
  max-width: 16em;
  color: var(--ink);
}
.hero-body p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  max-width: 42em;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn { border-radius: 8px; }
.hero .btn-ghost:hover { background: rgba(36, 92, 75, 0.06); }
.hero-art img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 15px;
}
.btn-solid { background: var(--pine); color: #fff !important; }
.btn-ghost { border: 1px solid var(--pine); color: var(--pine) !important; }

.section { padding: 56px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 { margin: 0; font-size: 24px; font-weight: 650; }
.section-head p { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.tools-block { margin-bottom: 48px; }
.tools-block .section-head { margin-bottom: 16px; }
.muted { color: var(--ink-soft); }

.product-feature {
  position: relative;
  overflow: hidden;
  padding: 36px 40px;
  background: var(--card);
  border: 1px solid var(--line);
}
.product-feature::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 55%;
  height: 160%;
  background: radial-gradient(ellipse at center, rgba(22, 22, 22, 0.05), transparent 70%);
  pointer-events: none;
}
.kicker { color: var(--pine); font-size: 13px; letter-spacing: 0.12em; margin: 0 0 8px; }
.product-feature h2 { position: relative; margin: 0 0 12px; font-size: 28px; }
.product-feature .muted,
.product-feature .kicker,
.product-feature p { position: relative; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
}
.card:hover { border-color: var(--pine); color: inherit; }
.card-cover {
  height: 140px;
  background:
    radial-gradient(circle at 70% 30%, rgba(22, 22, 22, 0.05), transparent 52%),
    #e5e7eb;
  background-size: cover;
  background-position: center;
}
.card-body { padding: 16px 18px 20px; }
.card-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  color: inherit;
  box-shadow: 0 4px 16px rgba(22, 22, 22, 0.04);
}
.tool-card:hover { border-color: var(--pine); color: inherit; box-shadow: 0 8px 24px rgba(22, 22, 22, 0.08); }
.tool-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--paper-2);
}
.tool-icon.letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pine);
  color: #fff;
  font-weight: 650;
  font-size: 16px;
}
.tool-card h3 { margin: 0; font-size: 17px; font-weight: 650; }
.tool-card p { margin: 0; color: var(--ink-soft); font-size: 14px; flex: 1; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tags span {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 999px;
}
.tool-go {
  margin-top: 8px;
  color: var(--pine);
  font-size: 13px;
  font-weight: 650;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.tools-head .filters { justify-content: center; }
.chip {
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  background: #fff;
}
.chip.on { background: var(--pine); color: #fff; }
.chip.on:hover { color: #fff; }
.search-wrap {
  position: relative;
  max-width: 640px;
  margin-top: 22px;
}
.search-wrap::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235c5f66' stroke-width='2' viewBox='0 0 24 24'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3-3'/></svg>") center / 16px no-repeat;
}
.search {
  width: 100%;
  padding: 14px 20px 14px 46px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.06);
  font: inherit;
  outline: none;
}
.search:focus {
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(36, 92, 75, 0.12);
}

.page-title { padding: 48px 0 8px; }
.page-title h1 { margin: 0; font-size: 32px; }
.tools-head { text-align: center; padding-bottom: 12px; }
.tools-head .search-wrap { margin-left: auto; margin-right: auto; }

.prose { max-width: 40em; }
.prose p { color: var(--ink-soft); }
.empty { padding: 40px 0; color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  margin-top: 32px;
}
.site-footer > .wrap {
  width: min(1200px, calc(100% - 48px));
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  padding-bottom: 40px;
  align-items: flex-start;
}
.footer-brand { flex: 1.8 1 240px; }
.footer-col { flex: 1 1 130px; max-width: 220px; }
.footer-grid h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.footer-grid a, .footer-grid p {
  color: var(--ink-soft);
  font-size: 14px;
  display: block;
  margin: 0 0 10px;
  line-height: 1.6;
}
.footer-grid a:hover { color: var(--pine); }
.footer-brand p {
  font-size: 13px;
  color: #8a8d93;
  line-height: 1.85;
  margin: 0 0 8px;
}
.footer-meta { margin: 0 0 16px; }
.footer-k {
  display: block;
  font-size: 12px;
  color: #8a8d93;
  margin: 0 0 4px;
}
.footer-v {
  color: var(--pine) !important;
  font-size: 14px;
  margin: 0 0 4px !important;
  word-break: break-all;
}
.footer-hint {
  display: block;
  font-size: 12px;
  color: #8a8d93;
  line-height: 1.5;
}
.footer-qr-col {
  flex: 0 0 232px;
  margin-left: auto;
  text-align: center;
}
.footer-qr {
  width: 216px;
  height: 216px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
}
.footer-qr-caption {
  margin: 10px 0 0;
  font-size: 12px;
  color: #8a8d93;
  line-height: 1.5;
  max-width: 216px;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  flex-wrap: wrap;
  align-items: center;
}
.beian { display: inline-flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.beian-item { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.beian-item a { color: inherit; }
.beian-icon { height: 16px; width: auto; display: block; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav, .header-cta { display: none; }
  .header-inner.open .nav, .header-inner.open .header-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .header-inner { flex-wrap: wrap; padding: 8px 0; }
  .cards, .tool-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-brand, .footer-col { max-width: none; flex: 1 1 auto; }
  .footer-qr-col { margin-left: 0; text-align: left; }
  .hero { padding: 48px 0 40px; }
  .hero-inner.has-art { grid-template-columns: 1fr; }
}
