/* jbqcj 小站 · 公共样式（首页 / 关于 共用） */

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1b2533;
  --ink-2: #55657a;
  --ink-3: #8a97a8;
  --line: #e3e7ec;
  --line-2: #eef1f5;
  --brand: #2563eb;
  --brand-soft: #eff4ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

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

a { color: inherit; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 880px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 24px; height: 24px; display: block; }
.logo b { font-size: 15px; font-weight: 650; letter-spacing: .3px; }
.logo b em { color: var(--ink-3); font-style: normal; font-weight: 400; margin-left: 7px; font-size: 12.5px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: 13.5px;
  padding: 6px 11px; border-radius: 7px; transition: background .15s, color .15s;
}
.nav a:hover { background: #f1f4f8; color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 600; background: #f1f4f8; }
.nav .enter {
  margin-left: 8px; color: var(--brand); border: 1px solid #d6e2fb;
  background: var(--brand-soft); font-weight: 500;
}
.nav .enter:hover { background: #e3edff; color: var(--brand); }

/* ---------- 版面 ---------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 46px 24px 72px; }

h1 {
  font-size: 32px; line-height: 1.35; margin: 0 0 16px;
  font-weight: 700; letter-spacing: -.5px;
}
.lead { color: var(--ink-2); font-size: 15.5px; margin: 0 0 6px; max-width: 660px; }

h2 {
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  letter-spacing: 1.4px; text-transform: uppercase;
  margin: 46px 0 15px;
  display: flex; align-items: center; gap: 10px;
}
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 网址导航 ---------- */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.links .group {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 15px 18px 12px;
}
.links .group h3 {
  margin: 0 0 9px; font-size: 13px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 7px;
}
.links .group h3::before {
  content: ""; width: 3px; height: 12px; border-radius: 2px; background: #c7d2e2;
}
.links ul { list-style: none; margin: 0; padding: 0; }
.links li { margin: 0; }
.links a {
  display: flex; align-items: baseline; gap: 8px;
  text-decoration: none; color: var(--ink-2); font-size: 13.5px;
  padding: 5px 0; border-radius: 5px; transition: color .15s;
}
.links a:hover { color: var(--brand); }
.links a i {
  font-style: normal; color: var(--ink-3); font-size: 11.5px;
  margin-left: auto; letter-spacing: .2px; white-space: nowrap;
}

/* ---------- 小工具 ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tools button {
  appearance: none; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; font: inherit; color: var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.tools button:hover { border-color: #c3cfe0; background: #fdfefe; }
.tools button strong { display: block; font-size: 13.5px; font-weight: 600; }
.tools button small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }

/* ---------- 折腾记录 ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px;
  width: 1px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 18px 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -20px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #cbd5e1; box-shadow: 0 0 0 3px var(--bg);
}
.timeline li:first-child::before { background: var(--brand); }
.timeline time { color: var(--ink-3); font-size: 12px; letter-spacing: .6px; }
.timeline p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.timeline p b { color: var(--ink); font-weight: 600; }

/* ---------- 声明 ---------- */
.note {
  margin-top: 44px; padding: 17px 20px;
  background: #fbfcfd; border: 1px solid var(--line);
  border-left: 3px solid #cbd5e1; border-radius: 6px;
  color: var(--ink-2); font-size: 13.5px;
}
.note p { margin: 0 0 5px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
footer {
  max-width: 880px; margin: 0 auto; padding: 22px 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--ink-3); font-size: 12.5px;
}
footer .fl { display: flex; gap: 16px; flex-wrap: wrap; }
footer a {
  color: var(--ink-3); text-decoration: none;
  border-bottom: 1px dotted #c3ccd8; padding-bottom: 1px;
}
footer a:hover { color: var(--ink-2); }

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 12px);
  background: #1f2937; color: #fff; font-size: 13.5px;
  padding: 10px 18px; border-radius: 9px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100vw - 48px); text-align: center; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 关于页 ---------- */
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 22px; }

.prose p { color: var(--ink-2); margin: 0 0 13px; max-width: 660px; }

.kv { list-style: none; margin: 24px 0 0; padding: 0; max-width: 520px; }
.kv li {
  display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.kv li span:first-child { color: var(--ink-3); width: 56px; flex-shrink: 0; }

/* 关于页的链接清单：比首页更全，三列 */
.favlinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 28px; }
.favlinks h3 {
  margin: 0 0 7px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-3); letter-spacing: .4px;
}
.favlinks ul { list-style: none; margin: 0; padding: 0; }
.favlinks a {
  display: block; text-decoration: none; color: var(--ink-2); font-size: 13.5px;
  padding: 4px 0; transition: color .15s;
}
.favlinks a:hover { color: var(--brand); }

@media (max-width: 720px) {
  .wrap { padding: 34px 20px 56px; }
  h1 { font-size: 25px; }
  .links { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr 1fr; }
  .favlinks { grid-template-columns: 1fr 1fr; gap: 22px; }
  .topbar-inner { height: 56px; padding: 0 18px; gap: 12px; }
  .logo b em { display: none; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  footer { padding: 20px 20px 34px; }
}

@media (max-width: 460px) {
  .favlinks { grid-template-columns: 1fr; }
}
