/* ============================================================
   ENGup · 英语手记 —— 视觉续接「纸上档案」
   复用 /style.css 的色板、字体、颗粒、显影动效与基础组件；
   本文件只追加：分类筛选、手记卡片、正文排版、编辑器、媒体
   ============================================================ */

/* ---------- 分类筛选 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 46px; }
.chip-f {
  background: #FCFAF4; color: var(--dim);
  border: 1px solid var(--line); border-radius: 0;
  padding: 7px 15px; cursor: pointer;
  font: 12px var(--mono); letter-spacing: .12em;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.chip-f:hover { border-color: var(--accent); color: var(--accent); }
.chip-f.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip-f .n { opacity: .65; margin-left: 6px; font-size: 10px; }

/* ---------- 手记目录（卡片网格，节奏同相册） ---------- */
.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 64px 56px;
}
.post-grid > *:nth-child(even) { margin-top: 44px; }
.post-item { display: block; }
.post-item .thumb { aspect-ratio: 16 / 10; }
.post-item:hover .no { color: var(--ink); }
.post-item:hover b { color: var(--accent); }
.post-item .thumb .noimg .aa {
  font-family: var(--serif); font-weight: 700; font-size: 40px;
  color: var(--faint); letter-spacing: .05em;
}
.post-item:hover .thumb .aa { color: var(--accent); }
.post-excerpt {
  color: var(--dim); font-size: 13px; line-height: 1.75;
  margin: 10px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-item .entry .cnt { white-space: normal; text-align: right; }
.seal {
  display: inline-block;
  font: 10px var(--mono); letter-spacing: .16em;
  border: 1px solid var(--line); color: var(--faint);
  padding: 1px 7px; margin-right: 8px;
}
.seal.pub { color: var(--accent); border-color: var(--accent); }
.seal.draft { border-style: dashed; }

/* ---------- 手记正文 ---------- */
.post-head { margin: 30px 0 14px; }
.post-head h1 {
  font-family: var(--serif); font-weight: 700; font-size: 30px;
  letter-spacing: .03em; margin: 0; line-height: 1.35;
}
.post-head .ops { margin-top: 14px; display: flex; gap: 8px; }
.post-meta {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--dim); margin: 0 0 34px;
}
.post-meta .dot { color: var(--faint); margin: 0 8px; }
.draft-banner {
  border: 1px dashed var(--accent); color: var(--accent);
  background: rgba(180, 72, 60, .04);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  padding: 10px 16px; margin: 0 0 30px;
}
.prose {
  font-size: 15.5px; line-height: 1.95;
  max-width: 720px; word-wrap: break-word;
}
.prose p { margin: 0 0 1.15em; }
.prose p:first-child::first-letter {
  font-family: var(--serif); font-weight: 700; font-size: 1.5em;
  color: var(--accent); padding-right: 2px;
}

/* ---------- 媒体：图片沿用 .masonry/.shot；音频条 ---------- */
.media-section { margin-top: 44px; max-width: 900px; }
.media-section .section-title { margin-bottom: 16px; }
.audio-row {
  display: flex; align-items: center; gap: 14px;
  background: #FCFAF4; border: 1px solid var(--line);
  padding: 10px 16px; margin-bottom: 10px;
}
.audio-row .au-mark {
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  color: var(--accent); flex-shrink: 0;
}
.audio-row .au-name {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 180px; flex-shrink: 0;
}
.audio-row audio { flex: 1; min-width: 0; height: 36px; }
.audio-row .x {
  width: 24px; height: 24px; flex-shrink: 0;
  background: #FCFAF4; border: 1px solid var(--line); color: var(--dim);
  font: 12px var(--mono); line-height: 1; cursor: pointer;
}
.audio-row .x:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- 灯箱图片（ENG 灯箱沿用 lb-* 按钮与说明样式） ---------- */
#eng-lb-img {
  max-width: 88vw; max-height: 76vh;
  box-shadow: 0 18px 70px rgba(32, 28, 21, .3);
}

/* ---------- 编辑器 ---------- */
.efield-label {
  display: block; margin: 22px 0 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--dim);
}
textarea, select {
  display: block; width: 100%;
  background: #FCFAF4; color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  font: 14px/1.5 var(--sans); padding: 12px 14px;
}
textarea { min-height: 300px; line-height: 1.85; resize: vertical; font-size: 14.5px; }
textarea:focus, select:focus { border-color: var(--accent); outline: none; }
select { cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%),
    linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 36px;
}
.erow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.erow > div { flex: 1; min-width: 180px; }
.editor-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.btn.ghost {
  background: none; border: 1px solid var(--line); color: var(--ink);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: none; }
.btn.danger { background: none; border: 1px solid var(--line); color: var(--dim); }
.btn.danger:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.word-count {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--faint); margin-top: 7px; text-align: right;
}

/* 管理区帖子行：标题 + 印章 + 操作 */
.arow .ttl-wrap { min-width: 0; }
.arow .ttl { font-family: var(--serif); font-weight: 700; font-size: 15.5px; letter-spacing: .03em; }
.arow .ttl.draft-t { color: var(--dim); }
.admin-stats {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em;
  color: var(--dim); margin: 0 0 30px;
}
.admin-stats b { color: var(--accent); font-weight: 400; }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; gap: 48px; }
  .post-grid > *:nth-child(even) { margin-top: 0; }
  .post-head h1 { font-size: 24px; }
  .audio-row { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .audio-row .au-name { max-width: 100%; }
  .audio-row audio { flex-basis: 100%; order: 3; }
}
