/* ===== 插画风格主题 (theme-illust.css) =====
   气质参考:精装摄影画册 + Monocle Travel Guide + 绘本式图文排版
   核心原则:照片绝对主角,文字优雅配角,极度留白,装饰元素退到几乎不存在
   在 style.css 之后加载,同选择器优先覆盖 */

/* ── 页面背景 ── */
body[data-theme="illust"] {
  background: #FAFAFA;
}

/* ── 行程标题 ── */
body[data-theme="illust"] .trip-header h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 6px;
  color: #1a1a1a;
  /* 覆盖 style.css 里可能有的 text-decoration / border */
  text-decoration: none;
}

/* 副标题:斜体 + 极细上下线 */
body[data-theme="illust"] .trip-header p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: #888;
  margin-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  padding: 10px 0;
}

/* ── 数据横幅 ── */
body[data-theme="illust"] .stat-v {
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;   /* 覆盖默认主色,数据是辅助信息不强调 */
}

body[data-theme="illust"] .stat-u {
  color: #aaa;
  font-weight: 400;
}

body[data-theme="illust"] .stat-label {
  font-size: 11px;
  color: #aaa;
}

/* ── 天标签 ── */
body[data-theme="illust"] .day-label {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: var(--primary);
  background: none;
  padding: 0 0 4px;
  border-radius: 0;
  border-bottom: 1px solid rgba(46, 122, 94, .2);
}

body[data-theme="illust"] .day-meta {
  font-size: 12px;
  color: #bbb;
  letter-spacing: 0.5px;
}

body[data-theme="illust"] .day-summary {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: #888;
  line-height: 1.9;
  margin: 12px 0 40px;
}

/* ── 停留点卡片:无背景,无边框,靠底部虚线分隔 ── */
body[data-theme="illust"] .entry {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 0 48px;
  margin: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, .06);
  /* 覆盖手帐主题可能残留的 rotate */
  transform: translateY(18px);
}
body[data-theme="illust"] .entry.in {
  transform: none;
}
/* 覆盖手帐主题奇偶旋转 */
body[data-theme="illust"] .entry:nth-child(odd),
body[data-theme="illust"] .entry:nth-child(even) {
  transform: translateY(18px);
}
body[data-theme="illust"] .entry.in:nth-child(odd),
body[data-theme="illust"] .entry.in:nth-child(even) {
  transform: none;
}

/* ── 地名标签:极简小标签,非胶带感 ── */
body[data-theme="illust"] .washi {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #555;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  padding: 3px 10px;
  /* 彻底清除胶带相关样式 */
  -webkit-mask-image: none;
  mask-image: none;
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  /* 微调位置:距顶部留点空间 */
  top: -12px;
  left: 0;
  opacity: 1;
}

/* ── 时间戳邮戳:极度克制 ── */
body[data-theme="illust"] .stamp {
  font-size: 11px;
  color: #aaa;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 4px;
  transform: none;
  padding: 2px 8px;
  /* 覆盖手帐圆形邮戳 */
  width: auto;
  height: auto;
  display: inline-block;   /* 不是 flex */
  line-height: inherit;
  white-space: nowrap;
  word-break: normal;
  opacity: 1;
}

/* ── 照片区:2 列网格 ── */
body[data-theme="illust"] .polaroids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 16px;
  justify-content: initial;   /* 覆盖 flex center */
}

/* polaroid 卡片:照片更突出,无旋转 */
body[data-theme="illust"] .polaroid {
  padding: 6px 6px 16px;
  transform: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  border-radius: 2px;
  width: auto;   /* 覆盖 calc(100% - 20px) / 3 */
}

/* 覆盖 style.css 里 --r 旋转变量的奇偶应用 */
body[data-theme="illust"] .polaroid:nth-child(odd),
body[data-theme="illust"] .polaroid:nth-child(even) {
  transform: none;
}

body[data-theme="illust"] .polaroid:hover {
  transform: scale(1.02);
  z-index: 2;
}

/* 照片比例:竖图为主 */
body[data-theme="illust"] .polaroid img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-height: none;   /* 覆盖 illust 在 style.css 里的 max-height:240px */
}

/* ── 游记正文 ── */
body[data-theme="illust"] .entry-text {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
  margin-top: 8px;
}

/* ── 步行间隔 ── */
body[data-theme="illust"] .walk-gap {
  font-size: 11px;
  color: #ccc;
  letter-spacing: 4px;
  margin: 8px 0;
  font-family: var(--sans);
}

/* ── 收尾语 ── */
body[data-theme="illust"] .closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: #888;
  text-align: center;
  padding: 56px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  /* 覆盖 dashed */
  border-top-style: solid;
  margin: 0;
}

/* ── 地图字幕 ── */
body[data-theme="illust"] .map-caption {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: #333;
  /* 覆盖手帐风旋转 */
  transform: translateY(-4px);
  /* show 状态 */
}
body[data-theme="illust"] .map-caption.show {
  transform: none;
}
/* 去掉胶带装饰 */
body[data-theme="illust"] .map-caption::before {
  display: none;
}

/* ── 地图停留点标记 ── */
body[data-theme="illust"] .map-dot {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 11px;
}

/* ── 移动端响应式 ── */
@media (max-width: 600px) {
  body[data-theme="illust"] .trip-header h1 {
    font-size: 22px;
    letter-spacing: 4px;
  }

  /* 窄屏照片两列太窄,改为单列 */
  body[data-theme="illust"] .polaroids {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body[data-theme="illust"] .polaroid {
    width: 100%;
  }

  /* 竖图在单列下不必强制 3/4,保持原图感 */
  body[data-theme="illust"] .polaroid img {
    aspect-ratio: 4 / 3;
  }
}
