/* pixelbear.cc 门户共享样式（首页 / 工具导航页 / 404） */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }
a { color: var(--primary); text-decoration: none; }

/* 顶部导航 */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.nav-logo img { width: 28px; height: 28px; }
.nav-logo small { font-weight: 400; color: var(--muted); font-size: 12px; }
.nav-links { display: flex; gap: 20px; font-size: 14px; }
.nav-links a { color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.hero .lead { max-width: 560px; margin: 0 auto 24px; font-size: 16px; opacity: .9; }
.hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
}
.hero-cta:hover { background: #eff6ff; }

/* 区块 */
.section { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 32px; }
.section-head .eyebrow { font-size: 13px; color: var(--primary); letter-spacing: .08em; font-weight: 600; }
.section-head h2 { font-size: 26px; margin: 6px 0 8px; }
.section-head p { color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* 工具卡片 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.tool-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37,99,235,.12);
}
.tool-card .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--primary);
  background: #eff6ff;
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.tool-card .tag.soon { color: var(--muted); background: #f1f5f9; }
.tool-card h3 { font-size: 18px; margin-bottom: 6px; }
.tool-card p { font-size: 14px; color: var(--muted); }
.tool-card .meta { margin-top: 12px; font-size: 13px; color: var(--primary); font-weight: 600; }
.tool-card.soon { border-style: dashed; box-shadow: none; }
.tool-card.soon:hover { transform: none; border-color: var(--border); box-shadow: none; }

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 26px; }
  .nav-inner { height: auto; min-height: 56px; flex-wrap: wrap; padding: 6px 16px; row-gap: 4px; }
  .nav-links { gap: 12px; font-size: 13px; }
  .nav-logo small { display: none; }
}
