/* quuer.site 全站样式
 * 2026-11-02 重建：占位页 -> 个人技术笔记站
 * 纯静态、无外部字体/脚本/CDN 依赖，响应式，PC 与移动端共用。
 */

:root {
  --bg: #fbfbfa;
  --panel: #ffffff;
  --ink: #1a1d23;
  --ink-2: #4b5361;
  --ink-3: #8b93a1;
  --line: #e6e8ec;
  --line-soft: #f0f1f4;
  --accent: #2f6fed;
  --code-bg: #f4f5f7;
  --maxw: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 页头 ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 250, .9);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -.01em;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
  font-size: 14.5px;
}
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--accent); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- 主体 ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 72px;
}

/* ---------- 首页 ---------- */
.hero { margin-bottom: 40px; }

.hero h1 {
  font-size: 30px;
  font-weight: 680;
  letter-spacing: -.02em;
  line-height: 1.3;
}

.hero .lede {
  margin-top: 14px;
  font-size: 16px;
  color: var(--ink-2);
}

.note-box {
  margin: 32px 0 0;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.8;
}
.note-box strong { color: var(--ink); font-weight: 600; }

.section-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 48px 0 4px;
}

/* ---------- 文章列表 ---------- */
.post-list { list-style: none; }

.post-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}
.post-list li:last-child { border-bottom: none; }

.post-list .meta {
  font-size: 13px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.post-list h2 {
  font-size: 18px;
  font-weight: 620;
  line-height: 1.5;
  letter-spacing: -.01em;
}
.post-list h2 a { color: var(--ink); }
.post-list h2 a:hover { color: var(--accent); text-decoration: none; }

.post-list p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ---------- 文章正文 ---------- */
.article-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.article-head h1 {
  font-size: 28px;
  font-weight: 680;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.article-head .meta {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.article h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.01em;
  margin: 38px 0 12px;
}

.article h3 {
  font-size: 16.5px;
  font-weight: 640;
  margin: 26px 0 10px;
}

.article p { margin: 12px 0; }
.article ul, .article ol { margin: 12px 0 12px 22px; }
.article li { margin: 6px 0; }

.article code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: .875em;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

.article pre {
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.65;
}

.article pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  white-space: pre;
}

.article blockquote {
  margin: 18px 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}

.article table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  font-size: 14.5px;
}
.article th, .article td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.article th {
  font-weight: 620;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-block;
  margin-top: 48px;
  font-size: 14.5px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.9;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px 34px;
}

.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--ink-2); }

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }

  .header-inner { padding: 15px 20px; gap: 12px; }
  .nav { gap: 16px; font-size: 14px; }

  main { padding: 34px 20px 56px; }

  .hero h1 { font-size: 24px; }
  .hero .lede { font-size: 15px; }

  .note-box { padding: 16px 17px; font-size: 14px; }

  .section-title { margin-top: 38px; }

  .post-list li { padding: 17px 0; }
  .post-list h2 { font-size: 16.5px; }
  .post-list p { font-size: 14px; }

  .article-head h1 { font-size: 22px; }
  .article h2 { font-size: 18px; margin-top: 32px; }
  .article pre { padding: 13px 14px; border-radius: 7px; }
  .article pre code { font-size: 12.5px; }
  .article table { font-size: 13.5px; }
  .article th, .article td { padding: 8px 9px; }

  .footer-inner { padding: 22px 20px 30px; }
}
