/* 迹录 · 游记详情页「纸感阅读」皮肤 v2 —— 2026-10-23 design
   只覆写表现层：不改 DOM 结构、不动函数、不碰 .day-card 折叠逻辑。
   手机（<900）只换底色与正文色，保留原移动排版。 */

html body{
  --bg:#FBFAF7; --surface:#F4F1EA; --surface-2:#F4F1EA;
  --text:#33313A; --text-muted:#6E6A78; --text-dim:#8A8494;
  --border:rgba(28,27,33,.12); --border-hover:rgba(28,27,33,.24);
  --accent:#8B4326; --accent-light:#9E4F2E;
  --jl-text:#33313A; --jl-text-secondary:#6E6A78; --jl-border:#E3DED2; --jl-border-strong:#CFC8B8;
  --jl-surface:#FBFAF7; --jl-surface-alt:#F4F1EA; --jl-primary:#9E4F2E;
  background:#FBFAF7; color:#33313A;
}

@media (min-width:900px){
  /* 统一栏宽 760，返回条与正文左缘对齐；--skoff 由 skin.js 跟随右侧目录的整组偏移 */
  html body .back-link{
    display:block; max-width:760px;
    margin:0 auto 0 var(--skleft, calc(50% - 380px)); padding:18px 0 0;
    color:#8A8494; border-bottom:0; font-size:12.5px; letter-spacing:.04em;
  }
  html body .back-link:hover{ color:#1C1B21; }
  html body .float-avatar{
    width:34px; height:34px; background:#FBFAF7; color:#8B4326;
    border:1px solid rgba(28,27,33,.16); box-shadow:none; font-size:13px;
  }

  /* ── 封面：图在上，标题落到纸面 ──────────────────────────── */
  html body .cover-section{
    aspect-ratio:auto; background:#FBFAF7; overflow:visible; margin:14px 0 0;
  }
  html body .cover-section img{
    width:100%; height:clamp(300px,44vh,430px); object-fit:cover; border-radius:0;
  }
  html body .cover-overlay{
    position:static; inset:auto; display:block; padding:36px 0 0;
    background:none; max-width:760px; margin:0 auto 0 var(--skleft, calc(50% - 380px));
  }
  html body .cover-overlay h1{
    font-family:var(--serif,"Songti SC","Noto Serif CJK SC","Source Han Serif SC",serif);
    font-weight:400; font-size:40px; line-height:1.32; letter-spacing:.01em;
    color:#1C1B21; text-shadow:none; margin:0;
  }
  html body .cover-meta{
    margin-top:14px; display:flex; flex-wrap:wrap; align-items:center;
    font-size:12.5px; letter-spacing:.08em; color:#6E6A78;}
  html body .cover-tag{
    background:none; border:0; padding:0; border-radius:0;
    color:#6E6A78; font-size:12.5px; letter-spacing:.08em; line-height:1.9;
  }
  html body .cover-meta > * + *::before{
    content:"·"; margin:0 10px; color:#C6C1CD;
  }

  /* ── 作者条 / 数据行 ─────────────────────────────────────── */
  html body .jlau-wrap{ max-width:760px; margin:22px auto 0 var(--skleft, calc(50% - 380px)); padding:0; }
  html body .jlau-strip{
    border:0; border-bottom:1px solid rgba(28,27,33,.12);
    border-radius:0; background:none; padding:0 0 14px;
  }
  html body .jlau-strip:hover{ background:none; }
  html body .jlau-strip .nm{ color:#1C1B21; font-size:14px; letter-spacing:.02em; }
  html body .jlau-strip .sub{ color:#9A95A3; font-size:12px; }
  html body .jlau-ava{ width:30px; height:30px; border-radius:50%; }

  

  /* 四项数据压成一行：数字小、标签跟在后，整体退到背景 */html body .stats-bar{
    max-width:760px; margin:0 auto 0 var(--skleft, calc(50% - 380px)); background:none; border:0;
    display:flex; flex-wrap:wrap; align-items:baseline;
    padding:12px 0; border-bottom:1px solid rgba(28,27,33,.12);}
  html body .stat-item{
    display:flex; align-items:baseline; text-align:left; gap:5px;
    padding:0; border:0;}
html:not(.fg-ok) body .stat-item > .stat-num + .stat-label { margin-left:5px }   /* 原 gap 5px；必须压过 html body .stat-label{margin:0} 的特异性 */
  html body .stat-item + .stat-item::before{
    content:"·"; margin:0 11px; color:#C6C1CD; font-size:12px;
  }
  html body .stat-num{
    font-family:inherit; font-size:13px; font-weight:500; color:#33313A;
    line-height:1.7; letter-spacing:.02em;
  }
  html body .stat-label{ font-size:12px; letter-spacing:.04em; color:#9A95A3; margin:0; }

  html body .transport-bar{
    max-width:760px; margin:0 auto 0 var(--skleft, calc(50% - 380px)); background:none;
    border-bottom:1px solid rgba(28,27,33,.12); padding:11px 0;
    font-size:12.5px; color:#6E6A78;
  }

  /* 地图 / 时间线 / 费用 / 收藏 / 评论收到 760 并居中 */
  html body .jl-map-wrap, html body .jlt-wrap,
  html body .jl-exp-wrap, html body .like-section,
  html body .comments-section, html body .days-container{
    max-width:760px; padding-left:0; padding-right:0;
    margin-left:var(--skleft, calc(50% - 380px)); margin-right:auto;
  }
  html body .like-section{ padding-left:0 !important; padding-right:0 !important; }
  html body .comments-section{ width:auto; }
  html body .journey-desc{
    max-width:760px; margin:20px auto 0 var(--skleft, calc(50% - 380px)); padding:0;
    font-size:12.5px; line-height:1.95; color:#8A8494;
  }
  html body .jl-map-wrap{ padding-top:24px; }

  /* ── 章节 ─────────────────────────────────────────────── */
  html body .days-container{ padding-top:32px; }
  html body .day-card{
    border:0; border-radius:0; background:none; box-shadow:none;
    margin:0; padding:0; border-top:1px solid rgba(28,27,33,.12);
  }
  html body .day-card:hover{ border-color:rgba(28,27,33,.12); }
  html body .day-card:first-child{ border-top:0; }
  html body .day-header{ padding:30px 0 16px; cursor:default; }
  html body .day-num,
  html body .day-num.is-sec{
    background:none; color:#9E4F2E;
    font-family:"Liberation Serif",Georgia,serif;
    font-size:14px; letter-spacing:.08em; font-variant-numeric:tabular-nums;
    min-width:34px; width:auto; padding:11px 12px 0 0; margin:0; border-radius:0;
    align-self:flex-start;
  }
  html body .day-title-text{
    font-family:var(--serif,"Songti SC","Noto Serif CJK SC","Source Han Serif SC",serif);
    font-weight:400; font-size:25px; line-height:1.45; color:#1C1B21;
    margin:0 0 5px; letter-spacing:.01em;
  }
  html body .day-date-text{
    font-size:11px; letter-spacing:.16em; color:#9A95A3;
  }
  html body .day-chevron{ display:none; }
  html body .day-body{ padding:0; }

  /* ── 正文 ─────────────────────────────────────────────── */
  html body .day-story .story-p{
    font-size:17px; line-height:2.05; color:#33313A; max-width:700px;  /* 同 journey.html：移动档 [1.95,2.10] */
    margin:0 0 1.3em; text-indent:2em; letter-spacing:.01em; text-align:justify;
  }
  html body .day-story .story-p:empty{ display:none; }
  html body .day-story .story-fig{ margin:34px 0; border-radius:0; }
  html body .day-story .story-fig + .story-fig{ margin-top:20px; }
  html body .day-story .story-fig img{
    border-radius:0; background:#F4F1EA; max-height:76vh; object-fit:contain;
  }
  html body .day-story .story-fig.is-portrait{ max-width:400px; margin-left:auto; margin-right:auto; }
  html body .day-story .story-fig figcaption{
    font-size:12.5px; color:#8A8494; text-align:center; padding-top:8px; letter-spacing:.02em;
  }

  html body .like-section{
    border-top:1px solid rgba(28,27,33,.12); margin-top:40px; padding:24px 0;
  }
  html body .comments-section{
    border-top:1px solid rgba(28,27,33,.12); padding:24px 0 40px;
  }

  /* ── 右侧竖排目录：玻璃底 → 纸卡 ─────────────────────────── */
  html body.jp-toc-on .jp-toc{
    top:96px; width:250px; padding:6px 10px 6px 16px;
    background:rgba(251,250,247,.94);
    -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
    border:0; border-left:1px solid rgba(28,27,33,.14); border-radius:0;
    box-shadow:none;
  }
  html body .jp-toc-t i{ display:none; }
  html body .jp-toc-h{ color:#7C7568; font-size:11px; letter-spacing:.16em; padding:0 8px 10px; }
  html body .jp-toc-i{ border-radius:0; color:#4A463F; min-height:38px; padding:8px 8px; border-left:2px solid transparent; margin-left:-2px; }
  html body .jp-toc-i:hover{ background:#F4F1EA; }
  html body .jp-toc-i[aria-current="location"]{ background:#F0E8D8; color:#3F392F; border-left-color:#9A8053; }
  html body .jp-toc-n{ color:#8B8478; font-family:"Liberation Serif",Georgia,serif; font-weight:400; }
  html body .jp-toc-i[aria-current="location"] .jp-toc-n{ color:#8B7355; }
  html body .jp-toc-t{ font-size:12.5px; line-height:18px; font-weight:400; color:inherit; }
  html body .jp-toc-t i{ color:#B4AFA0; }
  html body .jp-toc-i[aria-current="location"] .jp-toc-t i{ color:#8B7355; }
}

/* ── 互动按钮：fav-btn 在页面里根本没有样式，先补成纸面药丸 ──── */
/* 原 gap:10px + flex-wrap：列间距 10（子项 margin），换行行间距由 journey.html ≤640 那条 row-gap 翻译而来 */
html body .like-section{ flex-wrap:wrap; }
/* 同上：换行容器用右间距，避免行首缩进 */
html body .like-section > *{ margin-right:10px; }
html body .like-section > *:last-child{ margin-right:0; }
html body .like-btn{
  display:inline-flex; align-items:center; height:38px; padding:0 16px;
  border-radius:100px; border:1px solid rgba(28,27,33,.16); background:transparent;
  color:#33313A; font-size:13px; font-weight:500; font-family:inherit; cursor:pointer;
  transition:border-color .15s, color .15s, background .15s; gap:6px}
html:not(.fg-ok) body .like-btn > * + * { margin-left:6px }   /* 原 gap 6px；Chrome 83 flex 无 gap */
html:not(.fg-ok) body .like-btn > #likeIcon { margin-right:6px }   /* 裸文本「点赞」选不到；现代内核走 gap:6px */
html body .like-btn:hover{ border-color:#9E4F2E; color:#8B4326; background:transparent; }
html body .like-btn.liked{ border-color:#D8577E; color:#C33F66; background:transparent; }
html body .fav-btn{
  display:inline-flex; align-items:center; height:38px; padding:0 16px;
  border-radius:100px; border:1px solid rgba(28,27,33,.16); background:transparent;
  color:#33313A; font-size:13px; font-weight:500; font-family:inherit; cursor:pointer;
  transition:border-color .15s, color .15s, background .15s; gap:6px}
html:not(.fg-ok) body .fav-btn > * + * { margin-left:6px }   /* 原 gap 6px；Chrome 83 flex 无 gap */
html body .fav-btn:hover{ border-color:#9E4F2E; color:#8B4326; }
html body .fav-btn[aria-pressed="true"]{ border-color:#9E4F2E; color:#8B4326; background:#F9EBDD; }
html:not(.fg-ok) body .share-btn > span:first-child { margin-right:6px }   /* 裸文本选不到；现代内核走 gap:6px */
html body .share-btn{
  height:34px; padding:0 14px; border-radius:100px; margin-left:0;
  border:1px solid rgba(28,27,33,.16); background:transparent; color:#33313A;
  font-size:12.5px; font-weight:400;
}
html body .share-btn:hover{ border-color:#9E4F2E; color:#8B4326; background:transparent; }
html body .like-count, html body .jl-fav-count{ font-size:12.5px; color:#8A8494; }
html body .like-section > .share-btn:last-child{ margin-left:auto; }
@media (max-width:560px){
  /* 原 gap:8px 10px → 行 8 / 列 10；padding-bottom 4→6 补偿末行多出的 8px（14 == 6+8） */
  html body .like-section{ padding-bottom:3px; }   /* 分享键 38→44 后，末行补偿也跟着各减 3（原 6） */
  html body .like-section > *{ margin-bottom:8px; }
  html body .like-btn, html body .fav-btn{ height:36px; padding:0 13px; font-size:12.5px; }
}

/* 封面在视口里时先收起右侧目录，避免目录压在照片上 */
html body.jp-toc-on .jp-toc{ transition:opacity .22s ease; }
html body.sk-cover.jp-toc-on .jp-toc{ opacity:0; pointer-events:none; }
html body .jlau-ava{ background:#EEE7DA; color:#6B655C; }
/* 阅读进度线：桌面无吸顶条时它单独悬在 42px 处像孤线，挪到视口顶端 */
@media (min-width:900px){
  html body .jl-bar{ top:0; height:2px; background:#9E4F2E; opacity:.5; }
  html body.jp-toc-on .jl-bar{ opacity:.5; }
}
/* 图册型（day 模式）：单列大图 → 三栏瀑布，缺图块同步缩小并换成纸面占位 */
@media (min-width:900px){
  html body .photos-grid{ column-count:3; column-gap:8px; margin-top:24px; }
  html body .photo-cell{ margin-bottom:8px; break-inside:avoid; }
  html body .photo-item img{ border-radius:0; }
  html body .photo-missing{
    aspect-ratio:4/3; background:#F4F1EA; border:1px dashed rgba(28,27,33,.16);
    border-radius:0; color:#9A95A3;
  }
  html body .photo-missing .pm-text{ font-size:12px; color:#9A95A3; }
}
@media (min-width:900px) and (max-width:1120px){
  html body .photos-grid{ column-count:2; }
}
