/* X-scraper创客 —— 站点样式
   纯静态，无外部依赖，方便备案与部署 */

:root {
  --ink: #16202a;
  --ink-soft: #4a5a68;
  --line: #e3e8ee;
  --bg: #f7f9fb;
  --card: #ffffff;
  --brand: #0f766e;
  --brand-dark: #0b5c56;
  --accent: #4f46e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .04), 0 10px 30px rgba(16, 32, 48, .06);
  --container: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 251, .88);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: .2px;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 15px;
}

.nav-links a:hover { background: #eef2f6; color: var(--ink); }

.nav-links a.active {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow);
  font-weight: 600;
}

/* ---------- 通用区块 ---------- */
main { padding: 40px 0 64px; }

section + section { margin-top: 56px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 10px;
}

h1 { font-size: 34px; line-height: 1.35; margin: 0 0 14px; }
h2 { font-size: 23px; margin: 0 0 14px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 14px; }

.lead { font-size: 17px; color: var(--ink-soft); max-width: 64ch; }

.muted { color: var(--ink-soft); font-size: 14px; }

.section-head { margin-bottom: 22px; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: #e8f3f1;
  color: var(--brand);
  font-size: 19px;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--ink-soft);
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(900px 340px at 88% -12%, rgba(79, 70, 229, .14), transparent 62%),
    radial-gradient(700px 300px at 4% 108%, rgba(15, 118, 110, .14), transparent 60%),
    #fff;
  padding: 52px 40px;
  box-shadow: var(--shadow);
}

.hero h1 { font-size: 40px; max-width: 22ch; }

.hero .lead { font-size: 18px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: #cfd8e0; transform: translateY(-1px); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.hero-stats strong { display: block; font-size: 22px; }
.hero-stats span { font-size: 13px; color: var(--ink-soft); }

/* ---------- 文章列表 ---------- */
.post {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.post-meta .dot { color: #c3ccd5; }

.post h3 { margin-bottom: 8px; }

/* ---------- 关于页信息表 ---------- */
.info-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.info-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--ink-soft); margin: 0; }
.info-list dd { margin: 0; }

.notice {
  border-left: 3px solid var(--brand);
  background: #f0f7f6;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 15px;
  color: #2b3a45;
}

.notice p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #101a22;
  color: #b9c6d1;
  padding: 40px 0 32px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.site-footer p { margin-bottom: 12px; }
.site-footer a { color: #b9c6d1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: #8fa0ad;
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .grid.cols-2,
  .grid.cols-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 30px; }
  h1 { font-size: 28px; }
  .info-list > div { grid-template-columns: 1fr; gap: 2px; }
}
