/* ==========================================================================
   荔枝安宁 · 个人站  |  明亮清爽主题
   ========================================================================== */

:root {
  /* —— 底色层 —— */
  --bg:          #f6f7f9;
  --bg-soft:     #eef0f4;
  --panel:       #ffffff;
  --panel-2:     #f8fafc;
  --elevated:    #ffffff;
  --line:        #e3e7ec;
  --line-soft:   #eef1f4;

  /* —— 文字（浅底深字，保证对比度） —— */
  --txt:         #141a20;
  --txt-mid:     #48545f;
  --txt-dim:     #6b7680;
  --txt-faint:   #9aa4ae;

  /* —— 强调色 —— */
  --accent:      #0d9488;   /* 主：品牌青（浅底上加深以保证可读） */
  --accent-deep: #0f766e;
  --accent-soft: #e6f4f2;
  --accent-line: #b8e0db;
  --amber:       #c2410c;
  --amber-soft:  #fff1e7;
  --blue:        #2563eb;
  --blue-soft:   #eaf0fe;
  --green:       #15803d;
  --red:         #dc2626;

  /* —— 字体 —— */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC",
               "Noto Sans CJK SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono",
               Menlo, "Courier New", monospace;
  --font-serif: "Songti SC", "SimSun", Georgia, serif;

  /* —— 尺寸 —— */
  --nav-h:    64px;
  --maxw:     1180px;
  --radius:   14px;
  --radius-s: 8px;

  /* —— 阴影（浅色主题靠阴影建立层次） —— */
  --shadow-s: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-m: 0 4px 14px rgba(16, 24, 40, .07);
  --shadow-l: 0 14px 36px rgba(16, 24, 40, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent-deep); }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.32; margin: 0; letter-spacing: -.015em; }
ul, ol { padding-left: 1.4em; }
code, pre { font-family: var(--font-mono); }
::selection { background: #b8e6e0; color: #06231f; }

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #c9d1d8; border-radius: 6px; border: 3px solid var(--bg-soft); }
::-webkit-scrollbar-thumb:hover { background: #aab4bd; }

/* ============ 背景装饰（浅色点阵 + 柔光） ============ */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(13,148,136,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 5%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 5%, transparent 70%);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 42% at 18% 0%, rgba(13,148,136,.10), transparent 65%),
    radial-gradient(ellipse 55% 40% at 88% 4%, rgba(37,99,235,.07), transparent 62%);
}

/* ============ 布局 ============ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-tight { padding: 44px 0; }

/* ============ 顶部导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--txt); font-weight: 700; letter-spacing: -.01em; font-size: 16px; }
.brand:hover { color: var(--txt); }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  display: block; border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(13,148,136,.22);
}
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  padding: 8px 15px; border-radius: 999px;
  color: var(--txt-mid); font-size: 14.5px; font-weight: 500;
  transition: all .18s var(--ease);
}
.nav-links a:hover { color: var(--txt); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent-deep); background: var(--accent-soft); font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--txt-mid);
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 15px; background: var(--panel); }

.nav-links.open {
  display: flex; flex-direction: column; gap: 2px;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 16px 14px;
  box-shadow: var(--shadow-m);
}
.nav-links.open a { padding: 11px 14px; border-radius: var(--radius-s); }

/* ============ 通用零件 ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }

.sec-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-size: 27px; }
.sec-head p { color: var(--txt-dim); margin: 6px 0 0; font-size: 14.5px; }
.sec-head .spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 19px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--txt); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .18s var(--ease); font-family: inherit;
  box-shadow: var(--shadow-s);
}
.btn:hover { background: var(--panel-2); border-color: #cdd4dc; color: var(--txt); transform: translateY(-1px); box-shadow: var(--shadow-m); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 10px rgba(13,148,136,.25); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; box-shadow: 0 4px 14px rgba(13,148,136,.32); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn svg { width: 15px; height: 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em;
  border: 1px solid var(--line); color: var(--txt-dim); background: var(--panel-2);
}
.badge-live   { color: var(--accent-deep); border-color: var(--accent-line); background: var(--accent-soft); }
.badge-beta   { color: var(--amber);       border-color: #f7d9c4;            background: var(--amber-soft); }
.badge-wip    { color: var(--blue);        border-color: #c7d8fd;            background: var(--blue-soft); }
.badge-plan   { color: var(--txt-dim); }
.badge-hot    { color: var(--red);         border-color: #f8cfcf;            background: #fdf0f0; }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--txt-dim); background: var(--panel-2); border: 1px solid var(--line);
  transition: all .16s var(--ease);
}
a.tag:hover { color: var(--accent-deep); border-color: var(--accent-line); background: var(--accent-soft); }

.mono { font-family: var(--font-mono); }
.dim  { color: var(--txt-dim); }
.mid  { color: var(--txt-mid); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { border-color: #d3dade; transform: translateY(-3px); box-shadow: var(--shadow-l); }

/* ============ Hero ============ */
.hero { padding: 84px 0 52px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
.hero h1 { font-size: 47px; letter-spacing: -.03em; margin-bottom: 18px; color: #0f1519; }
.hero h1 .hl {
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent), #14b8a6);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-lead { color: var(--txt-mid); font-size: 17px; max-width: 52ch; margin: 0 0 30px; line-height: 1.72; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 16px; box-shadow: var(--shadow-s);
}
.stat b { display: block; font-family: var(--font-mono); font-size: 23px; color: var(--accent); line-height: 1.25; }
.stat span { font-size: 12.5px; color: var(--txt-dim); }

/* Hero 右侧：日常随想 + 访客留言（数据来自云服务，读不到时自动降级） */
.hero-side { display: flex; flex-direction: column; gap: 16px; }
.hero-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-l);
}
.hp-head {
  display: flex; align-items: center; gap: 9px; padding: 11px 16px;
  background: linear-gradient(180deg, #fbfcfd, #f4f8fa);
  border-bottom: 1px solid var(--line);
}
.hp-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hp-dot-a { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp-dot-b { background: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.hp-title { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--txt); }
.hp-more { margin-left: auto; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.hp-more:hover { color: var(--accent-deep); }

.hp-body { padding: 4px 0; }
.hp-moment, .hp-msg { padding: 10px 16px; }
.hp-moment + .hp-moment, .hp-msg + .hp-msg { border-top: 1px dashed var(--line-soft); }
.hp-meta {
  display: flex; align-items: center; gap: 8px; margin-bottom: 3px;
  font-family: var(--font-mono); font-size: 11px; color: var(--txt-faint);
}
.hp-meta b { font-size: 12.5px; color: var(--txt); font-family: var(--font-sans, inherit); }
.hp-pic {
  font-family: var(--font-mono); font-size: 10px; line-height: 1;
  padding: 2px 5px; border-radius: 4px;
  color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.hp-text {
  font-size: 13.5px; line-height: 1.62; color: var(--txt-mid); word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-msg { display: flex; gap: 10px; }
.hp-msg-main { min-width: 0; flex: 1; }
.hp-ava {
  width: 27px; height: 27px; flex: none; border-radius: 8px; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.hp-empty { padding: 22px 16px; text-align: center; font-size: 13px; color: var(--txt-faint); }
.hp-empty a { color: var(--accent); font-weight: 600; }

/* ============ 工具卡片 ============ */
.grid-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.tool-card { display: flex; flex-direction: column; overflow: hidden; }
.tool-thumb {
  position: relative; aspect-ratio: 16 / 9; background: var(--panel-2);
  border-bottom: 1px solid var(--line-soft); overflow: hidden; display: block;
}
.tool-thumb svg, .tool-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.tool-thumb .thumb-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.thumb-badges .badge { background: rgba(255,255,255,.92); backdrop-filter: blur(4px); }
.tool-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tool-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-title h3 { font-size: 17.5px; }
.tool-title h3 a { color: var(--txt); }
.tool-title h3 a:hover { color: var(--accent); }
.tool-ver { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-deep); border: 1px solid var(--accent-line);
  background: var(--accent-soft); padding: 1px 8px; border-radius: 6px; font-weight: 600; }
.tool-desc { color: var(--txt-mid); font-size: 14px; margin: 0; flex: 1; }
.tool-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-faint);
  border-top: 1px dashed var(--line); padding-top: 11px; flex-wrap: wrap; }
.tool-meta .k { color: var(--txt-faint); }
.tool-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============ 筛选器 ============ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; align-items: center; }
.filter-btn {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--txt-mid); font-size: 13.5px; cursor: pointer;
  font-family: inherit; transition: all .16s var(--ease); box-shadow: var(--shadow-s);
}
.filter-btn:hover { color: var(--txt); border-color: #cdd4dc; }
.filter-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(13,148,136,.24); }
.filter-btn .mono { opacity: .65; font-size: 11.5px; }

.search-box {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 999px; padding: 6px 15px; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
  box-shadow: var(--shadow-s);
}
.search-box:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(13,148,136,.10); }
.search-box svg { width: 13px; height: 13px; color: var(--txt-faint); flex: none; }
.search-box input {
  background: none; border: 0; outline: none; color: var(--txt);
  font-family: inherit; font-size: 13.5px; width: 170px;
}
.search-box input::placeholder { color: var(--txt-faint); }

/* ============ 博客：杂志卡片排版 ============ */
/* 头条大卡 */
.feature-post {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow-m); margin-bottom: 22px;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.feature-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.feature-post .fp-cover { position: relative; min-height: 270px; overflow: hidden; }
.feature-post .fp-cover .pc-inner { position: absolute; inset: 0; }
.feature-post .fp-body { padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.fp-label {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 3px 11px; border-radius: 999px;
}
.feature-post h2 { font-size: 29px; line-height: 1.34; letter-spacing: -.02em; }
.feature-post h2 a { color: var(--txt); }
.feature-post h2 a:hover { color: var(--accent); }
.fp-sum { color: var(--txt-mid); font-size: 15px; margin: 0; }
.fp-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--txt-faint); }

/* 卡片网格 */
.grid-post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); border-color: #d3dade; }
.post-cover { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.pc-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 20px 22px; color: #fff;
}
.pc-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; background: rgba(255,255,255,.22); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.34); padding: 3px 11px; border-radius: 999px;
}
.pc-mark {
  align-self: flex-end;
  font-family: var(--font-mono); font-size: 46px; font-weight: 700; line-height: 1;
  opacity: .30; letter-spacing: -.04em;
}
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-card-body h3 { font-size: 17px; line-height: 1.42; }
.post-card-body h3 a { color: var(--txt); }
.post-card-body h3 a:hover { color: var(--accent); }
.post-card-body p { margin: 0; color: var(--txt-dim); font-size: 13.8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-faint);
  border-top: 1px dashed var(--line); padding-top: 11px; margin-top: 2px;
}
.pc-foot .dot { color: var(--line); }

.year-sep {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  color: var(--txt-faint); margin: 6px 0 -4px;
}
.year-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 旧列表样式（保留兜底） */
.grid-posts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow-s); }
.post-row {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 20px; align-items: center;
  background: var(--panel); padding: 20px 24px; transition: background .16s var(--ease);
  border-bottom: 1px solid var(--line-soft);
}
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: var(--panel-2); }
.post-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--txt-faint); }
.post-row h3 { font-size: 16.5px; margin-bottom: 4px; }
.post-row h3 a { color: var(--txt); }
.post-row h3 a:hover { color: var(--accent); }
.post-row p { margin: 0; color: var(--txt-dim); font-size: 13.8px; }
.post-side { text-align: right; }

/* ============ 工具详情页 ============ */
.detail-head { padding: 44px 0 0; }
.crumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--txt-faint); margin-bottom: 18px; }
.crumb a { color: var(--txt-dim); }
.crumb a:hover { color: var(--accent); }
.detail-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-title h1 { font-size: 35px; letter-spacing: -.025em; }
.detail-sub { color: var(--txt-mid); font-size: 16.5px; margin: 14px 0 0; max-width: 70ch; }

.shot-main {
  margin: 32px 0; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel); box-shadow: var(--shadow-m);
}
.shot-main svg, .shot-main img { width: 100%; display: block; }

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-s);
}
.panel h4 { font-size: 12px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--txt-faint); margin-bottom: 14px; font-weight: 700; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0;
  border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .sk { color: var(--txt-faint); font-family: var(--font-mono); font-size: 12px; flex: none; }
.spec-list .sv { color: var(--txt); text-align: right; }

.side-stack { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }

.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--txt-mid); }
.feat-list li::before { content: "▸"; color: var(--accent); flex: none; font-size: 13px; line-height: 1.75; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 22px; border-left: 2px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent-line);
}
.timeline li:first-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(13,148,136,.15); }
.tl-ver { font-family: var(--font-mono); font-size: 13px; color: var(--accent-deep); font-weight: 700; }
.tl-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-faint); margin-left: 8px; }
.tl-note { color: var(--txt-mid); font-size: 13.8px; margin: 4px 0 0; }

/* ============ Markdown 正文 ============ */
.prose { font-size: 16px; line-height: 1.86; color: #26313a; max-width: 74ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 24px; margin: 46px 0 16px; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: #0f1519; letter-spacing: -.02em; }
.prose h3 { font-size: 19px; margin: 34px 0 12px; color: #0f1519; }
.prose h4 { font-size: 16.5px; margin: 26px 0 10px; color: var(--txt-mid); }
.prose p  { margin: 0 0 19px; }
.prose ul, .prose ol { margin: 0 0 19px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: #0f1519; font-weight: 700; }
.prose blockquote {
  margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--txt-mid);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.prose img { border-radius: var(--radius-s); border: 1px solid var(--line); margin: 24px 0; }
.prose :not(pre) > code {
  background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 1.5px 6px;
  border-radius: 5px; font-size: .87em; color: var(--accent-deep); font-weight: 500;
}
.prose pre {
  background: #0f1720; border: 1px solid #1e2a36; border-radius: var(--radius-s);
  padding: 17px 19px; overflow-x: auto; margin: 0 0 22px; line-height: 1.72; font-size: 13.4px;
  color: #d7e2ec; box-shadow: var(--shadow-s);
}
.prose pre code { color: inherit; background: none; border: 0; padding: 0; font-weight: 400; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--panel-2); color: var(--txt); font-weight: 700; }
.prose tbody tr:nth-child(even) { background: #fafbfc; }
.prose tbody tr:hover { background: var(--accent-soft); }

/* 代码块：浅色主题保留深色代码块，增强可读性 */
.code-wrap { position: relative; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  padding: 4px 11px; border-radius: 6px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.10); color: #cbd8e4;
  font-family: var(--font-mono); font-size: 11px; cursor: pointer; opacity: 0;
  transition: opacity .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
  backdrop-filter: blur(4px);
}
.code-wrap:hover .copy-btn { opacity: 1; }
.copy-btn:hover { color: #fff; background: rgba(255,255,255,.2); }
.copy-btn.done { color: #86efac; border-color: rgba(134,239,172,.4); opacity: 1; }

/* ============ 目录 TOC ============ */
.toc-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.toc-list a { display: block; padding: 6px 0 6px 13px; border-left: 2px solid var(--line);
  color: var(--txt-dim); line-height: 1.55; }
.toc-list a:hover { color: var(--accent); border-left-color: var(--accent-line); }
.toc-list a.on { color: var(--accent-deep); border-left-color: var(--accent); font-weight: 600; }
.toc-list .toc-h3 { padding-left: 27px; font-size: 13px; }

/* ============ 文章详情头部（杂志感） ============ */
.post-hero { padding: 44px 0 0; }
.post-hero-inner { max-width: 76ch; }
.post-hero h1 { font-size: 40px; letter-spacing: -.03em; line-height: 1.28; margin: 0 0 16px; }
.post-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--txt-faint);
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
}
.post-meta .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; font-family: var(--font-sans); }
.post-hero-band { height: 5px; width: 64px; background: var(--accent); border-radius: 3px; margin-bottom: 22px; }

/* ============ 页脚 ============ */
.footer { border-top: 1px solid var(--line); margin-top: 76px; padding: 44px 0 32px; background: var(--panel); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--txt-faint); margin: 0 0 14px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14px; }
.footer ul a { color: var(--txt-mid); }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--txt-faint); }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 60px 20px; color: var(--txt-dim); }
.empty .big { font-family: var(--font-mono); font-size: 42px; color: var(--line); margin-bottom: 12px; font-weight: 700; }

/* ============ 工具类 ============ */
.row   { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col   { display: flex; flex-direction: column; gap: 12px; }
.gap-s { gap: 8px; } .gap-m { gap: 18px; } .gap-l { gap: 28px; }
.mt-0{margin-top:0}.mt-s{margin-top:12px}.mt-m{margin-top:24px}.mt-l{margin-top:40px}
.mb-0{margin-bottom:0}.mb-s{margin-bottom:12px}.mb-m{margin-bottom:24px}
.center{text-align:center}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ 留言区 / 日常随想 ============ */
.gb-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.list-head h4 { font-size: 12px; font-family: var(--font-mono); letter-spacing: .12em;
  text-transform: uppercase; color: var(--txt-faint); margin: 0; }
.list-head h4 span { color: var(--accent-deep); }

/* —— 表单 —— */
.composer { position: sticky; top: calc(var(--nav-h) + 20px); }
.field { margin: 0 0 14px; }
.field label { display: block; font-size: 13px; color: var(--txt-mid); margin-bottom: 6px; font-weight: 600; }
.field-hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-faint); margin-top: 6px; }
.input, .field input[type="text"], .field input[type="password"],
.field textarea, .field select {
  width: 100%; padding: 10px 13px; font-size: 14.5px; font-family: inherit;
  color: var(--txt); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  outline: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus, .field input:focus, .field textarea:focus {
  border-color: var(--accent-line); background: #fff;
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.7; }
.field input[type="file"] { padding: 8px 10px; font-size: 13px; background: var(--panel-2); }
.form-msg { margin-top: 12px; font-size: 13.5px; padding: 9px 12px; border-radius: var(--radius-s); }
.form-msg.err { color: #991b1b; background: #fef2f2; border: 1px solid #f8d4d4; }
.form-msg.ok  { color: var(--accent-deep); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.cloud-status { margin-bottom: 14px; font-size: 13.5px; padding: 10px 13px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--panel-2); color: var(--txt-dim); }
.cloud-status.err { color: #991b1b; background: #fef2f2; border-color: #f8d4d4; }
.cloud-status.loading { color: var(--txt-dim); }
.img-preview { position: relative; margin: 0 0 14px; }
.img-preview img { border-radius: var(--radius-s); border: 1px solid var(--line); max-height: 220px; object-fit: cover; }
.img-preview .img-clear { position: absolute; right: 8px; bottom: 8px; font-size: 12px; padding: 4px 10px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(20,26,32,.62);
  color: #fff; cursor: pointer; }
.empty-block { padding: 46px 20px; text-align: center; color: var(--txt-faint); font-size: 14px;
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--panel-2); }

/* —— 留言列表 —— */
.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg-item { display: flex; gap: 13px; padding: 15px 16px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s);
  transition: border-color .18s var(--ease), transform .18s var(--ease); }
.msg-item:hover { border-color: #d3dade; transform: translateY(-2px); }
.msg-avatar { width: 38px; height: 38px; flex: none; border-radius: 11px; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.msg-main { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 3px; }
.msg-name { font-weight: 700; font-size: 14.5px; color: var(--txt); }
.msg-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-faint); }
.msg-del { margin-left: auto; font-size: 11.5px; color: var(--txt-faint); background: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; cursor: pointer;
  transition: all .18s var(--ease); }
.msg-del:hover { color: #b91c1c; border-color: #f3c9c9; background: #fef2f2; }
.msg-text { font-size: 14.5px; color: var(--txt-mid); line-height: 1.72; word-break: break-word; }

/* —— 随想时间线 —— */
.moment-list { position: relative; padding-left: 22px; }
.moment-list::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--accent-line), var(--line)); border-radius: 2px; }
.moment { position: relative; margin-bottom: 22px; }
.mm-line { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.mm-dot { position: absolute; left: -22px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.mm-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--txt-faint); }
.mm-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 17px; box-shadow: var(--shadow-s); transition: border-color .18s var(--ease); }
.mm-card:hover { border-color: #d3dade; }
.mm-text { font-size: 15px; color: #26313a; line-height: 1.78; word-break: break-word; }
.mm-img { margin-top: 12px; border-radius: var(--radius-s); border: 1px solid var(--line); max-height: 460px; object-fit: cover; }

/* ============ 页脚公众号二维码 ============ */
.footer-qr { display: flex; flex-direction: column; gap: 8px; }
.footer-qr img { width: 118px; height: 118px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); padding: 4px; object-fit: contain; }
.footer-qr span { font-size: 12.5px; color: var(--txt-faint); }

/* ============ 响应式 ============ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 37px; }
  .detail-grid { grid-template-columns: 1fr; }
  .side-stack { position: static; }
  .feature-post { grid-template-columns: 1fr; }
  .feature-post .fp-cover { min-height: 200px; }
  .feature-post .fp-body { padding: 28px; }
  .feature-post h2 { font-size: 25px; }
  .gb-grid { grid-template-columns: 1fr; gap: 24px; }
  .composer { position: static; }
}
@media (max-width: 768px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 0 18px; gap: 12px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 52px 0; }
  .hero { padding: 54px 0 34px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 15.5px; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid-tools, .grid-post-cards { grid-template-columns: 1fr; }
  .post-row { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .post-side { text-align: left; }
  .detail-title h1 { font-size: 27px; }
  .post-hero h1 { font-size: 28px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .prose { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
