:root {
  --bg: #f4f6f8;
  --bg-deep: #e2ebee;
  --panel: rgba(255, 255, 255, 0.92);
  --text: #16222a;
  --muted: #61717b;
  --line: rgba(22, 34, 42, 0.12);
  --brand: #0a7b67;
  --brand-deep: #095645;
  --accent: #d97831;
  --shadow: 0 28px 70px rgba(18, 32, 39, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 0, rgba(10, 123, 103, 0.14), transparent 30%),
    radial-gradient(circle at 88% 0, rgba(217, 120, 49, 0.14), transparent 26%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 58%, var(--bg-deep) 100%);
}

.page {
  width: calc(100vw - 32px);
  max-width: 1480px;
  min-width: 320px;
  margin: 0 auto;
  padding: 16px 0 36px;
  display: grid;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 24px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.tool-tag {
  margin: 0;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 10px;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hero-text,
.tool-card p,
.section-tip,
.empty-state p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-text {
  margin-top: 12px;
  max-width: 44ch;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat-card {
  min-width: 120px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(10, 123, 103, 0.14);
  background: linear-gradient(135deg, rgba(10, 123, 103, 0.1), rgba(217, 120, 49, 0.14));
  display: grid;
  gap: 4px;
}

.stat-card strong {
  font-size: 30px;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filters-panel,
.section-panel {
  padding: 18px 20px 20px;
}

.filters-bar {
  display: grid;
  gap: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.search-box svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(10, 123, 103, 0.18);
}

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

.section-tip {
  font-size: 14px;
  font-weight: 700;
}

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

.tool-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.97);
  min-height: 220px;
}

.live-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.98));
}

.placeholder-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 246, 247, 0.98));
  border-style: dashed;
}

.tool-card[hidden] {
  display: none;
}

.tool-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.tool-top strong {
  color: var(--brand-deep);
  font-size: 13px;
  word-break: break-word;
}

.is-muted {
  color: var(--accent);
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 123, 103, 0.08);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

.placeholder-card .tool-meta span {
  background: rgba(217, 120, 49, 0.1);
  color: #8b572b;
}

.tool-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-width: 108px;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 12px 26px rgba(10, 123, 103, 0.18);
}

.tool-link.is-disabled {
  color: var(--muted);
  background: rgba(22, 34, 42, 0.08);
  box-shadow: none;
  cursor: default;
}

.empty-state {
  margin-top: 16px;
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

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

@media (max-width: 860px) {
  .page {
    width: calc(100vw - 12px);
    padding: 10px 0 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .filters-panel,
  .section-panel {
    padding: 16px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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