:root {
  --bg: #f7f4ee;
  --card: #fffdf9;
  --ink: #1b1a17;
  --muted: #8b8375;
  --line: #e9e2d6;
  --accent: #0f766e;
  --accent-soft: #e6f2ef;
  --shadow: 0 10px 26px rgba(60, 50, 30, 0.07);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(820px 460px at 8% -8%, #fdf0d8 0%, transparent 60%),
    radial-gradient(720px 420px at 100% 4%, #e2f2ee 0%, transparent 58%),
    var(--bg);
}
.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px calc(40px + env(safe-area-inset-bottom));
}
.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 26px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 18px; font-weight: 800; letter-spacing: 0.3px;
  text-decoration: none; color: inherit;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #12857b, #0f766e);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.3);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-tag {
  flex: 0 0 auto; font-size: 11.5px; color: var(--muted);
  background: rgba(255, 253, 249, 0.85); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}

/* ---------- 主视觉 ---------- */
.hero { margin-bottom: 18px; }
.hero-kicker {
  margin-bottom: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: 2px; color: #b9892f;
}
.hero h1 {
  font-size: clamp(25px, 7.4vw, 32px);
  line-height: 1.32; font-weight: 800; letter-spacing: -0.6px;
}
.hero-sub {
  margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.7;
}

/* ---------- 关注引导 ---------- */
.follow-card {
  display: flex; align-items: center; gap: 10px;
  margin: 16px 0 4px; padding: 12px 13px;
  border-radius: 14px; background: #fff5f7; border: 1px solid #ffe1e7;
}
.follow-badge {
  flex: 0 0 auto; padding: 4px 8px; border-radius: 7px;
  background: #ff2442; color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.3px;
}
.follow-card p { font-size: 12px; color: #8c4a55; line-height: 1.6; }

/* ---------- 分类与测试卡片 ---------- */
.test-section { margin-top: 24px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 0 2px 10px;
}
.section-head h2 { font-size: 15px; font-weight: 800; letter-spacing: 0.3px; }
.section-head span { font-size: 11px; color: var(--muted); }

.test-grid { display: flex; flex-direction: column; gap: 12px; }
.test-card {
  display: flex; align-items: center; gap: 13px;
  padding: 15px; border-radius: var(--radius);
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.test-card:active { transform: scale(0.985); box-shadow: 0 5px 16px rgba(23, 26, 43, 0.1); }
.card-cover {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 15px;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft);
}
.card-cover svg { width: 26px; height: 26px; }
.card-body { flex: 1; min-width: 0; }
.card-top { display: flex; align-items: center; gap: 8px; }
.card-title { font-size: 16px; font-weight: 800; line-height: 1.4; }
.card-badge {
  flex: 0 0 auto; font-size: 9.5px; font-weight: 700;
  color: #c2410c; background: #fff1e8;
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.card-desc {
  margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card-meta span {
  font-size: 10px; color: var(--accent); background: #eef6f4;
  padding: 3px 8px; border-radius: 999px;
}
.card-arrow { flex: 0 0 auto; color: #c3c6db; font-size: 18px; }

.teaser {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 15px; border-radius: var(--radius);
  border: 1px dashed #d9dcec; background: rgba(255, 255, 255, 0.55);
}
.teaser-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px; font-weight: 300;
  color: var(--accent); background: #eef6f4;
}
.teaser b { font-size: 13.5px; }
.teaser p { margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.empty { padding: 32px 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- 页脚 ---------- */
.site-foot { margin-top: 34px; text-align: center; }
.disclaimer {
  display: flex; align-items: flex-start; justify-content: center; gap: 6px;
  font-size: 10.5px; color: #a0a4b8; line-height: 1.7; text-align: left;
}
.disclaimer svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 2px; }
.copyright { margin-top: 10px; font-size: 10.5px; color: #bcc0d2; }
.social {
  margin-top: 5px; font-size: 11.5px; font-weight: 800;
  color: #ff2442; letter-spacing: 0.3px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 99;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(23, 26, 43, 0.9); color: #fff;
  font-size: 12px; white-space: nowrap;
}

@media (min-width: 480px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero h1 { font-size: 32px; }
  .card-title { font-size: 16.5px; }
}
