/* 若有所思 · 暖棕书卷版式
   墨色 #20201e / 暖棕 #986451 / 近黑 #242420 / 卡其 #f4f3ef / 边框 #deded8 / 淡字 #757570
   标题：宋体体系（Songti SC / Noto Serif）  英文数字：Playfair Display */

:root {
  --paper: #FBFAF8;
  --ink: #20201e;
  --accent: #986451;        /* 暖棕主强调 */
  --accent-soft: #a77d66;
  --accent-text: #956954;
  --deep: #242420;          /* 近黑 */
  --rule: #deded8;          /* 边框线 */
  --rule-soft: #e0e0d8;
  --muted: #757570;         /* 淡字 */
  --muted-2: #85857c;
  --shade: #f4f3ef;         /* 卡其底 */
  --shade-2: #eeece7;
  --tag-bg: #f1f0eb;
  --tag-fg: #88877e;

  --serif: 'Songti SC', 'Noto Serif SC', 'Source Han Serif CN', 'STSong', SimSun, serif;
  --sans: 'PingFang SC', 'Helvetica Neue', 'Noto Sans SC', Arial, sans-serif;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --gutter: 120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  letter-spacing: .01em;
}

p { margin: 0; }

.serif { font-family: var(--serif); }

.micro {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- 版面容器 ---------- */

.shell { width: 100%; max-width: 1440px; margin: 0 auto; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }

.site { max-width: 1160px; margin: 0 auto; }

.in { padding-left: 5%; padding-right: 5%; }

.section { padding: 64px 0; }

.rule { height: 1px; background: var(--rule); }

/* ---------- 顶部导航（原型风） ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  border-bottom: 1px solid var(--rule);
}

.brand { display: flex; align-items: baseline; gap: 14px; }

.brand strong {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 3px;
  font-weight: 400;
  white-space: nowrap;
}

.brand .micro { font-size: 10px; letter-spacing: 1.6px; color: var(--muted); }

.nav { display: flex; gap: 28px; font-size: 12px; }

.nav a { padding: 10px 0; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: var(--ink); }

/* ---------- 眉标 / 栏目标头 ---------- */

.kicker {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 2.2px;
  color: var(--accent);
  text-transform: uppercase;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 40px;
}

.heading > div { display: flex; flex-direction: column; gap: 10px; }

.heading .micro { display: block; }

.heading h2 { font-family: var(--serif); font-size: 34px; line-height: 1.3; }

.heading > p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  text-align: right;
  max-width: 220px;
}

/* ---------- 首屏 intro ---------- */

.intro {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding-top: 44px;
  padding-bottom: 32px;
  align-items: flex-end;
}

.intro h1 { font-family: var(--serif); font-size: 38px; letter-spacing: 2px; line-height: 1.4; margin: 8px 0; }

.intro p { color: var(--muted); font-size: 12px; }

.intro .sign { font-size: 11px; color: var(--muted); white-space: nowrap; padding-bottom: 10px; }

/* ---------- 本期精选 opening ---------- */

.opening {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 38px;
  padding-bottom: 52px;
  align-items: start;
}

.feature-view {
  aspect-ratio: 4 / 3;
  background: var(--shade);
  overflow: hidden;
}

.feature-view img { width: 100%; height: 100%; object-fit: cover; }

.feature-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 14px; }

.feature-meta h2 { font-family: var(--serif); font-size: 26px; line-height: 1.3; }

.pager { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }

.pager button {
  border: 1px solid var(--rule);
  background: #fff;
  width: 36px; height: 36px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}

.pager button:hover { border-color: var(--accent); color: var(--accent); }

.today { display: flex; flex-direction: column; gap: 14px; }

.today .eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.today .thought { font-family: var(--serif); font-size: 22px; line-height: 1.9; margin: 6px 0; color: var(--ink); }

.today .date { font-size: 11px; color: var(--accent); letter-spacing: .7px; }

.textlink {
  font-size: 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .2s, border-color .2s;
}

.textlink:hover { color: var(--accent); border-color: var(--accent); }

.recent {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  margin-top: 4px;
}

/* ---------- 通用链接 ---------- */

.link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .2s, border-color .2s;
}

.link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 占位块 ---------- */

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shade);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .5px;
  text-align: center;
  padding: 12px;
  min-height: 120px;
}

/* ---------- 01 随笔：封面故事 + 文章行 ---------- */

.cover-story {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 40px;
  background: var(--shade);
  padding: 30px;
  margin-bottom: 12px;
  align-items: start;
}

.cover-photo { display: block; overflow: hidden; }

.cover-photo img { width: 100%; height: auto; display: block; }

.story-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; font-size: 11px; letter-spacing: 1.1px; color: var(--muted); }

.story-meta span:first-child { color: var(--accent); }

.cover-copy h3 { font-family: var(--serif); font-size: 24px; line-height: 1.4; margin: 14px 0 10px; }

.cover-copy h3 a { color: var(--deep); text-decoration: none; }
.cover-copy h3 a:hover { color: var(--accent); }

.cover-excerpt { font-size: 15px; color: var(--muted-2); line-height: 1.9; }

/* 「阅读全文 →」链接：紧跟摘要之后，下沉到文字列底部，与左侧图片底边对齐 */
.cover-more {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.cover-more:hover { color: var(--deep); border-bottom-color: var(--deep); }

.essay-list { margin-top: 8px; }

.essay-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: start;
}

.essay-photo { display: block; }

.essay-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.essay-copy { min-height: 190px; display: flex; flex-direction: column; }

.essay-copy h3 { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin: 8px 0; }

.essay-copy h3 a { color: var(--deep); text-decoration: none; }
.essay-copy h3 a:hover { color: var(--accent); }

.essay-excerpt { font-size: 14px; line-height: 1.85; color: var(--muted-2); }

.essay-bottom {
  margin-top: auto;
  padding-top: 14px;
}

.tags { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 12px; }

.tags span { background: var(--tag-bg); color: var(--tag-fg); font-size: 10px; padding: 2px 7px; }

/* ---------- 02 作品：筛选 + 网格 ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 5px 19px; margin-bottom: 28px; }

.filters button {
  border: 1px solid var(--rule);
  background: #fff;
  font-size: 12px;
  padding: 8px 16px;
  cursor: pointer;
  color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}

.filters button[aria-pressed="true"] { background: var(--deep); color: #fff; border-color: var(--deep); }

.works { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 14px; }

.work.is-first { grid-column: 1 / -1; }

.work .visual { height: 180px; background: var(--shade); overflow: hidden; }

.work.is-first .visual { height: 300px; }

.work .visual img { width: 100%; height: 100%; object-fit: cover; }

.work .visual.video-cover { aspect-ratio: 9 / 16; height: auto; max-height: 420px; margin: 0 auto; }
.work[data-type="sticker"] .visual { aspect-ratio: 1; height: auto; background: #fff; }
.work[data-type="sticker"] .visual img { object-fit: contain; }

.work h3 { font-family: var(--serif); font-size: 20px; line-height: 1.4; margin: 14px 0 6px; }

.work .meta { font-size: 11px; letter-spacing: .7px; color: var(--muted); }

.work details summary { font-size: 12px; color: var(--accent); cursor: pointer; padding: 8px 0; list-style: none; }

.work details summary::-webkit-details-marker { display: none; }

.work details p { font-size: 13px; color: var(--muted-2); line-height: 1.9; margin-top: 8px; }

.work[hidden] { display: none; }

/* ---------- 03 碎念 ---------- */

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.note { background: var(--shade); padding: 23px; display: flex; flex-direction: column; gap: 8px; }

.note .topic { font-size: 10px; letter-spacing: 1px; color: var(--accent); }

.note h3 { font-family: var(--serif); font-size: 21px; line-height: 1.4; }

.note p { font-size: 13px; line-height: 1.9; color: var(--muted-2); }

.note footer { font-size: 11px; color: var(--muted); padding-top: 14px; margin-top: auto; }

.note[hidden] { display: none; }

.notes-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.notes-action .plain {
  border: 1px solid var(--rule);
  background: #fff;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}

.notes-action .plain:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 关于 + 页脚 ---------- */

.about {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  padding: 72px 0 36px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
}

.about strong { font-family: var(--serif); font-size: 24px; letter-spacing: 2px; }

.about p { font-size: 14px; line-height: 1.9; color: var(--muted-2); }

.socials { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.socials-label { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.social-link { font-size: 13px; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.social-link:hover { color: var(--accent); border-color: var(--accent); }

.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.bottom a { color: var(--muted); transition: color .2s; }
.bottom a:hover { color: var(--accent); }

/* ---------- 旧栏目页保留类（配色统一） ---------- */

.lead { display: flex; align-items: center; gap: 48px; }

.lead-media { width: 560px; height: 380px; flex: none; overflow: hidden; background: var(--shade); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }

.lead-body { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.tag { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; color: var(--accent); }

.lead-title { font-family: var(--serif); font-size: 30px; line-height: 1.47; }

.lead-desc { font-size: 14px; line-height: 1.86; color: var(--muted-2); }

.section-title { font-family: var(--serif); font-size: 44px; line-height: 1.2; }

.section-note { font-size: 14px; line-height: 1.7; color: var(--muted); text-align: right; white-space: pre-line; width: 340px; flex: none; }

.index-list { margin-top: 56px; }

.index-row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity .2s;
}

.index-row:hover { opacity: .6; }

.index-date { font-family: var(--display); font-size: 14px; color: var(--muted); width: 90px; flex: none; }

.index-main { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.index-title { font-family: var(--serif); font-size: 20px; line-height: 1.4; }

.index-desc { font-size: 13px; color: var(--muted); }

.index-side { display: flex; align-items: center; gap: 20px; flex: none; }

.index-cat { font-size: 12px; color: var(--muted); }

.index-arrow { font-family: var(--display); font-size: 16px; }

.more-row { display: flex; justify-content: flex-end; gap: 28px; padding-top: 32px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head .kicker { display: block; margin-bottom: 14px; }

.meta-sep { width: 4px; height: 4px; border-radius: 2px; background: var(--rule); align-self: center; }

.gallery-grid { display: flex; gap: 24px; align-items: flex-start; }

.gallery-col { width: 384px; flex: none; display: flex; flex-direction: column; gap: 24px; }

.gallery-col.is-offset { padding-top: 56px; }

.video-body { display: flex; align-items: flex-start; gap: 56px; }

.player {
  position: relative;
  width: 380px;
  height: 676px;
  flex: none;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* iframe 绝对铺满容器，避免竖屏抖音播放器在框内偏左留黑边 */
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 自托管视频文件：原生 <video> 铺满框，等比显示不裁切（CSP 不限制同源/ https 媒体） */
.player video.videofile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  outline: none;
}

/* 横屏视频（B 站 / 横屏抖音）用 16:9 宽框，左右并排，避免上下黑边 */
.player.landscape { width: 640px; height: 360px; }

/* 竖屏视频：上下堆叠，说明在播放器下方，避免与矮文字栏并排造成的头重脚轻。
   整块在内容区水平居中，避免宽屏下靠左站、右侧留一大片空白。 */
.video-body.is-portrait {
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 380px;
  margin-inline: auto;
}
.video-body.is-portrait .player {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
}
.video-body.is-portrait .video-copy {
  max-width: 100%;
  gap: 14px;
}

.player-badge { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: .5px; }

.play-circle { width: 72px; height: 72px; border-radius: 36px; background: var(--paper); }

/* 抖音用官方 iframe 嵌入（open.douyin.com/player），下方链接兜底；不再用海报卡 */
.video-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 38%, #322a24 0%, #14110e 72%);
  border-radius: 4px;
  text-decoration: none;
  transition: filter .2s ease;
}
.video-poster:hover { filter: brightness(1.14); }
.play-btn {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(244, 243, 239, .92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #242420;
  margin-left: 4px;
}
.poster-tag {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.6px;
  color: rgba(244, 243, 239, .72);
}

.video-copy { flex: 1; max-width: 420px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.video-title { font-family: var(--serif); font-size: 30px; line-height: 1.47; }

.video-desc { font-size: 14px; line-height: 1.86; color: var(--muted-2); white-space: pre-line; overflow-wrap: anywhere; }

.platform-row { display: flex; align-items: center; gap: 16px; font-size: 13px; }

.platform-main { font-weight: 500; color: var(--accent); }
.platform-sub { color: var(--muted); font-weight: 400; }
.platform-dot { width: 4px; height: 4px; border-radius: 2px; background: #C9C4BA; }

/* ---------- 文章详情 ---------- */

.article { max-width: 680px; margin: 0 auto; padding: 96px 0 120px; }

.article-title { font-family: var(--serif); font-size: 40px; line-height: 1.4; margin: 18px 0 24px; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.article-cover { margin: 40px 0; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-body { font-family: var(--serif); font-size: 17px; line-height: 2; color: var(--ink); }

.article-figure { margin: 34px 0; }

.article-figure img { width: 100%; height: auto; display: block; background: var(--shade); }

.article-figure figcaption {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.article-body p { margin-bottom: 24px; white-space: pre-wrap; }
.article-sub { font-family: var(--serif); font-size: 21px; line-height: 1.6; margin: 40px 0 14px; color: var(--ink); }
.article-quote { margin: 28px 0; padding: 6px 0 6px 22px; border-left: 2px solid var(--accent); font-size: 18px; line-height: 2.1; color: var(--ink); }

/* ---------- 通用状态 ---------- */

.empty {
  padding: 48px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--rule);
}

/* ---------- 响应式 ---------- */

@media (max-width: 1200px) {
  :root { --gutter: 64px; }
  .opening { gap: 28px; }
  .cover-story { gap: 28px; }
  .lead-media { width: 440px; height: 320px; }
  .gallery-col { width: 32%; }
  .player { width: 360px; height: 640px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section { padding: 48px 0; }
  .header { min-height: 72px; flex-wrap: wrap; gap: 2px; padding-top: 16px; padding-bottom: 12px; }
  .brand strong { font-size: 23px; }
  .nav { gap: 22px; width: 100%; font-size: 11px; }
  .intro { padding-top: 24px; padding-bottom: 22px; }
  .intro h1 { font-size: 27px; letter-spacing: 1px; }
  .intro .sign { display: none; }
  .intro p { font-size: 11px; }
  .opening { grid-template-columns: 1fr; gap: 27px; padding-bottom: 30px; }
  .feature-view { aspect-ratio: 1.45; }
  .feature-meta h2 { font-size: 22px; }
  .today .thought { font-size: 20px; line-height: 1.75; margin: 17px 0; }
  .heading { gap: 12px; align-items: flex-start; margin-bottom: 28px; }
  .heading h2 { font-size: 27px; }
  .heading > p { max-width: 160px; font-size: 11px; text-align: right; padding-top: 15px; }
  .cover-story { grid-template-columns: 1fr; padding: 18px; gap: 23px; }
  .cover-photo img { height: auto; }
  .cover-copy h3 { font-size: 27px; margin-top: 12px; }
  .cover-copy blockquote { font-size: 18px; margin: 18px 0; }
  .essay-row { grid-template-columns: 85px minmax(0, 1fr); gap: 15px; padding: 23px 0; }
  .essay-copy { min-height: 0; }
  .essay-copy h3 { font-size: 20px; margin: 8px 0; }
  .essay-excerpt { font-size: 12px; }
  .essay-bottom { display: block; padding-top: 7px; }
  .tags { padding-top: 0; }
  .lead { flex-direction: column; align-items: stretch; gap: 28px; }
  .lead-media { width: 100%; height: 240px; }
  .lead-title { font-size: 24px; }
  .gallery-grid { gap: 12px; }
  .gallery-col { width: 33.33%; gap: 12px; }
  .gallery-col.is-offset { padding-top: 28px; }
  .video-body { flex-direction: column; align-items: stretch; gap: 32px; }
  .video-body.is-portrait { max-width: 100%; align-items: stretch; }
  .player { width: 100%; height: auto; aspect-ratio: 9 / 16; }
  .player.landscape { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .video-title { font-size: 24px; }
  .section-title { font-size: 32px; }
  .section-note { text-align: left; width: 100%; }
  .works { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .work.is-first { grid-column: 1 / -1; }
  .work .visual { height: 145px; }
  .work.is-first .visual { height: 240px; }
  .work h3 { font-size: 18px; }
  .notes { grid-template-columns: 1fr; gap: 15px; }
  .note { padding: 23px; }
  .about { align-items: flex-start; flex-direction: column; gap: 14px; }
  .bottom { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .works { grid-template-columns: 1fr; gap: 18px; }
  .work .visual { height: 200px; }
  .work.is-first .visual { height: 240px; }
  .intro h1 { font-size: 24px; }
}
