/* ============================================================
   工具集首页样式
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --ink: #1A2233;
  --muted: #5B6472;
  --bg: #F7F8FA;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 248, 250, .85);
  border-bottom: 1px solid rgba(26, 34, 51, .07);
}
.topbar-inner {
  max-width: 860px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: #fff; display: grid; place-items: center;
  font-size: 15px; box-shadow: 0 3px 10px rgba(79, 70, 229, .35);
}
.brand small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 2px; }
.topbar a.toc {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 6px 14px; border-radius: 999px; transition: .18s;
}
.topbar a.toc:hover { color: var(--ink); background: rgba(26, 34, 51, .06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, #059669 0%, #0891B2 45%, #4F46E5 100%);
  color: #fff;
  padding: 72px 24px 64px;
  text-align: center;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .45; pointer-events: none;
}
.hero::before { width: 340px; height: 340px; background: #FDE68A; top: -140px; left: -90px; }
.hero::after  { width: 300px; height: 300px; background: #F472B6; bottom: -150px; right: -70px; }
.hero-badge {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; margin-bottom: 20px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #6EE7B7;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, .7); }
  50% { box-shadow: 0 0 0 7px rgba(110, 231, 183, 0); }
}
.hero h1 {
  position: relative; font-size: clamp(30px, 5vw, 44px);
  font-weight: 800; letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}
.hero p.sub {
  position: relative; margin: 14px auto 0; max-width: 560px;
  font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .88);
}
.hero-stats {
  position: relative; margin-top: 30px;
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.hero-stat {
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px; padding: 12px 22px; min-width: 108px;
}
.hero-stat b { display: block; font-size: 24px; font-weight: 800; }
.hero-stat span { font-size: 12px; color: rgba(255, 255, 255, .78); }

/* ---------- 工具清单(彩色大条目) ---------- */
.main { max-width: 860px; margin: 0 auto; padding: 56px 24px 72px; }
.list-head { margin-bottom: 26px; }
.list-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.list-head p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.tool-list { display: flex; flex-direction: column; gap: 16px; }

.tool-row {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px;
  border-radius: 20px;
  text-decoration: none; color: #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 26px -10px var(--glow, rgba(0,0,0,.25));
  transform: translateY(14px); opacity: 0;
  animation: rise .55s cubic-bezier(.2,.7,.3,1) forwards;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.tool-row:hover {
  transform: translateY(-3px) scale(1.008);
  box-shadow: 0 16px 34px -10px var(--glow, rgba(0,0,0,.3));
  filter: saturate(1.12) brightness(1.04);
}
@keyframes rise { to { transform: translateY(0); opacity: 1; } }

/* 彩色气泡纹理 */
.tool-row::before, .tool-row::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(34px); opacity: .5; pointer-events: none;
}
.tool-row::before { width: 170px; height: 170px; top: -80px; right: 12%; background: rgba(255,255,255,.35); }
.tool-row::after  { width: 130px; height: 130px; bottom: -70px; left: 24%; background: rgba(255,255,255,.22); }

.tool-ico {
  flex: none; width: 54px; height: 54px; border-radius: 16px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center;
  font-size: 26px; position: relative;
  backdrop-filter: blur(6px);
}
.tool-info { flex: 1; min-width: 0; position: relative; }
.tool-info h3 {
  font-size: 19px; font-weight: 800; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tool-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  background: rgba(255, 255, 255, .24); border: 1px solid rgba(255, 255, 255, .32);
  padding: 2px 10px; border-radius: 999px;
}
.tool-info p {
  margin-top: 5px; font-size: 14px; line-height: 1.6;
  color: rgba(255, 255, 255, .86);
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.tool-arrow {
  flex: none; font-size: 24px; font-weight: 300;
  transition: transform .22s ease; position: relative;
  color: rgba(255, 255, 255, .9);
}
.tool-row:hover .tool-arrow { transform: translateX(5px); }

/* ---------- 关于 ---------- */
.about { margin-top: 64px; text-align: center; }
.about h2 { font-size: 20px; font-weight: 800; }
.principles {
  margin-top: 18px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: 999px;
}
.pill.g { background: #D1FAE5; color: #065F46; }
.pill.i { background: #E0E7FF; color: #3730A3; }
.pill.o { background: #FEF3C7; color: #92400E; }
.about p.note { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.8; }

footer {
  border-top: 1px solid rgba(26, 34, 51, .07);
  padding: 26px 24px; text-align: center;
  color: var(--muted); font-size: 13px;
}

@media (max-width: 560px) {
  .tool-row { padding: 18px 18px; gap: 14px; border-radius: 17px; }
  .tool-ico { width: 46px; height: 46px; font-size: 22px; border-radius: 13px; }
  .tool-info h3 { font-size: 16px; }
  .tool-info p { font-size: 13px; }
  .hero { padding: 54px 20px 48px; }
  .hero-stat { padding: 10px 16px; min-width: 92px; }
}
