/* ══════════════════════════════════════════════════════
   Starlit · pickio 风格
   近黑底 + 衬线大标题 + 毛玻璃卡片 + 等宽小标签
   零依赖：系统字体、无框架、无 CDN、无外部请求
   ══════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #121214;
  --card:      #1a1a1f;
  --fg:        #ededef;
  --fg-dim:    #9a9aa3;
  --muted:     #5c5c66;
  --line:      rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --line-hi:   rgba(255, 255, 255, .16);
  --pink:      #fb7299;
  --blue:      #3080ff;
  --text-body: #c9d1d9;
  --w:         880px;
  --r-pill:    3rem;
  --r-card:    1.5rem;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
                "SimSun", "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
  position: relative;
  overflow-x: hidden;
}

/* 两团极淡的光：左上青、中右紫 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 620px at 12% 2%,  rgba(45, 130, 130, .16), transparent 68%),
    radial-gradient(880px 780px at 72% 46%, rgba(88, 66, 190, .18), transparent 68%),
    radial-gradient(500px 420px at 92% 88%, rgba(40, 60, 140, .10), transparent 70%);
}

body > * { position: relative; z-index: 1; }

.shell {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

/* ─────────────── 药丸导航 ─────────────── */
.pillnav {
  position: sticky;
  top: 20px;
  z-index: 90;
  max-width: var(--w);
  margin: 20px auto 0;
  padding: 10px 10px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: var(--r-pill);
  background: rgba(10, 10, 10, .62);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .9);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px rgba(251, 114, 153, .9);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

.navlinks {
  display: flex;
  gap: 2px;
  font-size: 13px;
}
.navlinks a {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  color: var(--fg-dim);
  text-decoration: none;
  transition: color .18s, background .18s;
  white-space: nowrap;
  letter-spacing: .02em;
}
.navlinks a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.navlinks a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, .08); }

.navicons { display: flex; gap: 4px; flex-shrink: 0; }
.navicons a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s, background .18s;
}
.navicons a:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.navicons svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ─────────────── 首屏 ─────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 56px;
  padding: 124px 0 88px;
  min-height: 60vh;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6.2vw, 72px);
  line-height: 1.26;
  font-weight: 500;
  letter-spacing: .01em;
  color: #fff;
  margin-bottom: 18px;
}

.type-line {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.8;
  color: var(--blue);
  letter-spacing: .04em;
  min-height: 1.8em;
  margin-bottom: 32px;
  opacity: .92;
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -.12em;
  background: var(--blue);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero-social { display: flex; gap: 16px; }
.hero-social a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.hero-social a:hover { color: var(--fg); border-bottom-color: var(--line-hi); }

/* 右侧毛玻璃卡片 */
.hero-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .01) 60%),
    rgba(18, 18, 20, .5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 28px 70px -30px rgba(0, 0, 0, .95);
}
.hero-card span {
  font-family: var(--font-serif);
  font-size: 68px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .04em;
  user-select: none;
}

/* ─────────────── 区块 ─────────────── */
.latest, .section, .listing { padding-bottom: 104px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.sec-head h2 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.more {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s;
}
.more:hover { color: var(--fg); }

/* ─────────────── 文章条目 ─────────────── */
.row {
  display: block;
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  transition: border-color .2s;
}
.row:hover { border-bottom-color: var(--line-hi); }

.row-main { min-width: 0; }
.row-main h3,
.row h3 {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 10px;
  transition: color .18s;
}
.row:hover h3, .row:hover .row-main h3 { color: #fff; }

.row-main p,
.row .excerpt {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.row-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted);
}
.row-foot .sep { opacity: .4; }
.row-foot .readmore {
  margin-left: auto;
  color: var(--fg-dim);
  transition: color .18s, transform .18s;
}
.row:hover .row-foot .readmore { color: var(--blue); transform: translateX(3px); }

/* 兼容旧结构（右侧 meta 竖排） */
.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--muted);
}
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .04em;
  white-space: nowrap;
}

/* ─────────────── 文章页 ─────────────── */
.post { padding: 92px 0 104px; }

.post-head {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 46px;
}
.post-head .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 20px;
}
.post-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: .01em;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .tag {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--fg-dim);
}

.prose {
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--text-body);
}
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  color: #fff;
  margin-top: 2.2em;
  padding-bottom: .3em;
  border-bottom: 1px solid var(--line-soft);
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 19.5px;
  font-weight: 500;
  color: #fff;
  margin-top: 1.9em;
}
.prose a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(48, 128, 255, .3);
  transition: border-color .16s;
}
.prose a:hover { border-bottom-color: var(--blue); }
.prose strong { color: #fff; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
  border-left: 2px solid var(--pink);
  padding: .15em 0 .15em 1.2em;
  color: var(--fg-dim);
}
.prose code {
  font-family: var(--font-mono);
  font-size: .87em;
  padding: .16em .44em;
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  color: #c8d3f5;
}
.prose pre {
  padding: 20px 22px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: #0e0e10;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
}
.prose pre code { padding: 0; background: none; color: #cfd8f0; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.prose th { background: rgba(255, 255, 255, .035); color: #fff; font-weight: 600; }

.post-foot {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
.post-foot a { color: var(--muted); text-decoration: none; transition: color .16s; }
.post-foot a:hover { color: var(--fg); }

/* ─────────────── 列表页 ─────────────── */
.listing { padding-top: 92px; }
.list-head {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.list-head .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.list-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 40px);
  font-weight: 500;
  color: #fff;
  letter-spacing: .01em;
}
.lead { margin-top: 14px; color: var(--fg-dim); font-size: 15px; }

.year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
  padding: 44px 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 32px; }
.chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 13.5px;
  transition: border-color .18s, color .18s, transform .18s;
}
.chip:hover { border-color: var(--line-hi); color: var(--fg); transform: translateY(-1px); }
.chip .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.empty { padding: 44px 0; color: var(--muted); font-size: 14.5px; }

/* ─────────────── 页脚 ─────────────── */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 52px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}
.foot-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.foot .sep { opacity: .4; }
.foot a { color: var(--muted); text-decoration: none; transition: color .16s; }
.foot a:hover { color: var(--fg-dim); }
.beian { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em; }

/* ─────────────── 手机端 ─────────────── */
@media (max-width: 760px) {
  .shell { padding: 0 22px; }

  .pillnav {
    top: 10px;
    margin-top: 10px;
    padding: 8px 8px 8px 16px;
    gap: 8px;
  }
  .logo { font-size: 10.5px; letter-spacing: .12em; }
  .navlinks { font-size: 12px; }
  .navlinks a { padding: 6px 9px; }
  .navicons { display: none; }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 64px 0 56px;
    min-height: 0;
  }
  .hero-title { font-size: 34px; }
  .type-line { font-size: 12.5px; margin-bottom: 24px; }
  .hero-card {
    width: 150px;
    border-radius: 2rem;
  }
  .hero-card span { font-size: 40px; }

  .latest, .section, .listing { padding-bottom: 68px; }
  .row { padding: 24px 0 20px; }
  .row h3, .row-main h3 { font-size: 18.5px; }
  .row-main p, .row .excerpt { -webkit-line-clamp: 2; }

  .post { padding: 52px 0 68px; }
  .post-head { padding-bottom: 24px; margin-bottom: 32px; }
  .prose { font-size: 16px; line-height: 1.9; }
  .prose h2 { font-size: 20px; }
  .prose pre { padding: 15px 16px; font-size: 12.8px; }

  .listing { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .caret { display: none; }
}
