/* 站点全局样式(参考 TinyWow:浅灰底、白卡、柔和投影、深色胶囊按钮、Poppins) */
:root {
  --bg: #f6f6f6;
  --card: #ffffff;
  --border: #e9e9ea;
  --text: #181d20;
  --text2: #707375;
  --accent: #1a8fe3;
  --accent-soft: #eaf4fc;
  --dark-btn: #181d20;
  --shadow: 3px 10px 40px rgba(24, 29, 32, 0.05);
  --shadow-hover: 6px 16px 48px rgba(24, 29, 32, 0.1);
  --radius: 16px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101314;
    --card: #1a1e20;
    --border: #2a2f32;
    --text: #eceff1;
    --text2: #9aa0a3;
    --accent: #4aa8ec;
    --accent-soft: #1b2c3c;
    --dark-btn: #eceff1;
    --shadow: 3px 10px 40px rgba(0, 0, 0, 0.25);
    --shadow-hover: 6px 16px 48px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 页头 + 导航 ---------- */
.header-wrap {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 22px;
}
.site-nav {
  flex: 1; display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 13.5px; font-weight: 500; color: var(--text2);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: color .12s, background .12s;
}
.site-nav a:hover { text-decoration: none; color: var(--text); background: var(--card); }
.site-nav a.active { color: var(--text); background: var(--card); box-shadow: var(--shadow); }
.brand {
  font-weight: 700; font-size: 17px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  display: inline-block;
}
.lang-switch {
  font-size: 13px; color: var(--text2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 14px; background: var(--card);
  transition: border-color .15s;
}
.lang-switch:hover { text-decoration: none; border-color: var(--accent); color: var(--text); }

.site-main { max-width: 1080px; margin: 0 auto; padding: 12px 20px 48px; }

.site-footer {
  max-width: 1080px; margin: 0 auto; padding: 28px 20px 44px;
  font-size: 12.5px; color: var(--text2); line-height: 1.8;
  border-top: 1px solid var(--border);
}

/* ---------- 首页分类区块 ---------- */
.cat-section { margin-top: 34px; scroll-margin-top: 76px; }
.cat-section .section-title { display: flex; align-items: center; gap: 10px; }
.cat-section .count {
  font-size: 12px; font-weight: 500; color: var(--text2);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 10px;
}

/* ---------- 首页 hero(TinyWow 式居中大标题) ---------- */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5vw, 44px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.15;
}
.hero h1 .hl { color: var(--accent); }
.hero p {
  color: var(--text2); font-size: 15.5px; margin: 14px auto 0;
  max-width: 560px; line-height: 1.6;
}

/* ---------- 工具卡片(TinyWow 式白卡 + 柔和投影 + 彩色图标 chip) ---------- */
.section-title {
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  margin: 8px 0 16px;
}
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  color: var(--text); box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.tool-card:hover {
  text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--shadow-hover); border-color: transparent;
}
.tool-card .chip {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
}
.chip-blue   { background: #e0eef9; }
.chip-violet { background: #dee5f1; }
.chip-peach  { background: #f2e0d8; }
.chip-pink   { background: #f6defa; }
.chip-green  { background: #def3e4; }
@media (prefers-color-scheme: dark) {
  .chip-blue   { background: #1d3245; }
  .chip-violet { background: #252c40; }
  .chip-peach  { background: #3a2d26; }
  .chip-pink   { background: #3a2438; }
  .chip-green  { background: #1f3527; }
}
.tool-card .name { font-size: 15px; font-weight: 600; }
.tool-card .desc {
  font-size: 13px; color: var(--text2); margin-top: 5px;
  line-height: 1.55; font-weight: 400;
}

/* ---------- 底部悬浮广告位 ---------- */
#pf-adbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(24, 29, 32, 0.08);
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 6px 44px 6px 12px;
}
.pf-adbar-inner {
  max-width: 728px; width: 100%; text-align: center;
  font-size: 13px; color: var(--text2);
  display: flex; align-items: center; justify-content: center; min-height: 50px;
}
.pf-adbar-placeholder {
  border: 1px dashed var(--border); border-radius: 8px;
  padding: 10px 28px; letter-spacing: .02em;
}
.pf-adbar-frame {
  border: 0; display: block; margin: 0 auto;
  max-width: 100%;
}
@media (max-width: 540px) {
  /* 468 宽 banner 在手机上等比缩小 */
  .pf-adbar-frame { transform: scale(0.68); transform-origin: center; margin: -8px auto; }
}
.pf-adbar-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg); color: var(--text2);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.pf-adbar-close:hover { color: var(--text); border-color: var(--text2); }
@media (max-width: 768px) {
  #pf-adbar { min-height: 56px; }
}

/* ---------- 工具页 SEO 区块 ---------- */
.tool-intro { margin: 8px 0 20px; text-align: center; }
.tool-intro h1 {
  font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; letter-spacing: -0.02em;
}
.tool-intro p {
  color: var(--text2); font-size: 14.5px; margin: 10px auto 0;
  max-width: 640px; line-height: 1.65;
}
.faq { margin: 36px auto 0; max-width: 720px; }
.faq h2 { font-size: 18px; font-weight: 600; margin-bottom: 14px; text-align: center; }
.faq details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.faq summary { font-size: 14px; font-weight: 500; cursor: pointer; }
.faq details p { font-size: 13px; color: var(--text2); margin-top: 8px; line-height: 1.65; }
.related { margin-top: 30px; font-size: 13px; color: var(--text2); text-align: center; }
