/* =========================================================
   EXPLORING · 录入页 / 记录页 共用样式（延续首页杂志质感）
   ========================================================= */
:root {
  --bg: #FAFAF7; --paper: #F0F0EC; --paper-cn: #E6E6E0; --border: #D4D4CC;
  --line: #E3E3DD; --label: #C6C6BE; --ink: #191917; --gray: #A3A39B;
  --mark: var(--ink); --mark-hover: #D6482B; --accent: #D6482B; --border-cn: var(--ink);
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;              /* 页面整体不滚动，内容在页框内部滚动 */
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* 页框内部的滚动区：内容永远不会越过边框 */
.scroller {
  position: fixed;
  inset: 19px;
  overflow-y: auto;
  z-index: 6;
}
/* 原生滚动条隐藏；滚动时由 theme.js 在右侧淡入一根细指示线，停止约 1 秒后淡出 */
.scroller { scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
/* 指示线与右侧页框线重合：右缘对齐框线右缘（right:18px），宽 2px、颜色同框线——
   滚动时看起来就是框线上加粗的一小段 */
.scroll-ind {
  position: fixed;
  right: 18px;
  width: 2px;
  background: var(--line);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 14;
}
.scroll-ind.show { opacity: 1; }
.serif { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; }
.display { font-family: "Playfair Display", "Didot", serif; }

.frame {
  position: fixed; inset: 18px;
  border: 1px solid var(--line);
  pointer-events: none; z-index: 12;
}
/* 左侧竖排书脊导航（与首页一致） */
.spine {
  position: fixed;
  left: 45px;                 /* 与首页左栏（18~72px）中线一致 */
  transform: translateX(-50%);
  top: 56px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.spine a {
  writing-mode: vertical-rl;
  font-size: 13px;
  letter-spacing: 0.45em;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  transition: color .2s ease;
}
.spine a:hover { color: var(--accent); }
.spine a.current {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 17px;
  font-weight: 900;
  color: var(--accent);
}
.spine i {
  width: 1px;
  height: 15px;
  background: var(--line);
}
/* 内容铺满左栏（导航）与右栏（刊头）之间的中间区域：
   scroller 从页框内侧(19px)算起，左内边距 = 72(左栏) + 38(留白) - 19，
   右内边距 = 196(右栏起点，与首页地图区一致) + 22(留白) - 19 */
.page {
  position: relative; z-index: 6;
  margin: 0;
  padding: 52px 199px 80px 91px;
}

/* ---- 右侧竖排大刊头（与首页一致；字号由 theme.js 按视口高度计算） ---- */
.masthead {
  position: fixed;
  right: 64px;
  top: 34px;
  z-index: 10;
  user-select: none;
  pointer-events: none;
}
.masthead .title {
  font-family: "Playfair Display", "Didot", serif;
  writing-mode: vertical-rl;
  font-size: 11vh;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.10em;
  line-height: 0.95;
  margin-bottom: -0.1em;
  opacity: 0;               /* 字体与字号定稿前不显示，避免"先小后大"的跳动 */
}
.masthead.ready .title {
  opacity: 1;
  transition: opacity .5s ease;
}
.masthead .title em { font-style: italic; color: var(--accent); }

/* ---- 标题 ---- */
.h1 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 26px; font-weight: 900; letter-spacing: 6px; margin: 0 0 6px;
}
.kicker { font-size: 9px; letter-spacing: 3px; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.sub { font-size: 11px; letter-spacing: 1.5px; color: var(--gray); margin: 0 0 32px; line-height: 1.8; }

/* ---- 表单 ---- */
.field { padding: 18px 0; border-top: 1px solid var(--line); }
.field:last-of-type { border-bottom: 1px solid var(--line); }
.field label.title {
  display: block; font-size: 10px; letter-spacing: 3px; color: var(--gray); font-weight: 700; margin-bottom: 10px;
}
.field label.title b { color: var(--accent); font-weight: 700; margin-left: 4px; }
.field .hint { font-size: 10.5px; color: var(--gray); margin-top: 8px; letter-spacing: 0.5px; line-height: 1.7; }
input[type=text], input[type=month], input[type=date], textarea, select {
  width: 100%;
  font: inherit; font-size: 15px; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--ink);
  padding: 8px 0; border-radius: 0; outline: none;
  -webkit-appearance: none; appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--label); }
textarea { resize: vertical; min-height: 64px; line-height: 1.7; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } .row2 > .field + .field { border-top: none; padding-top: 0; } }

/* 多选圆片（交通方式） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 11px; letter-spacing: 1.5px; color: var(--gray);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; user-select: none; transition: all .15s ease; background: var(--bg);
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.active { color: var(--bg); background: var(--ink); border-color: var(--ink); }

/* 标签式多值输入（城市/地点） */
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-bottom: 1px solid var(--ink); padding-bottom: 8px; min-height: 40px; }
.tags .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 10px 5px 12px; border: 1px solid var(--ink); background: var(--bg);
}
.tags .tag i { font-style: normal; font-size: 12px; color: var(--gray); cursor: pointer; }
.tags .tag i:hover { color: var(--accent); }
.tags input { flex: 1; min-width: 120px; border: none; padding: 6px 0; font-size: 15px; }

/* 照片 */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.ph {
  position: relative; aspect-ratio: 1; background: var(--paper-cn); overflow: hidden;
  border: 1px solid var(--line);
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph .ph-cover {
  position: absolute; left: 6px; top: 6px;
  font-size: 8.5px; letter-spacing: 2px; font-weight: 700;
  color: var(--bg); background: var(--accent); padding: 3px 7px;
}
.ph .ph-actions {
  position: absolute; right: 0; bottom: 0; left: 0;
  display: flex; justify-content: space-between;
  padding: 6px 8px; background: linear-gradient(transparent, rgba(25,25,23,0.65));
  opacity: 0; transition: opacity .15s ease;
}
.ph:hover .ph-actions { opacity: 1; }
@media (hover: none) { .ph .ph-actions { opacity: 1; } }
.ph .ph-actions span { font-size: 10px; letter-spacing: 1px; color: #FFF; cursor: pointer; }
.ph.uploading::after {
  content: "压缩中…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 2px; color: var(--gray); background: var(--paper-cn);
}
.ph-add {
  aspect-ratio: 1; border: 1px dashed var(--border); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; cursor: pointer; color: var(--gray);
  font-size: 10px; letter-spacing: 2px; transition: all .15s ease;
}
.ph-add:hover { color: var(--ink); border-color: var(--ink); }
.ph-add b { font-size: 24px; font-weight: 300; line-height: 1; }

/* ---- 按钮 ---- */
.actions { display: flex; gap: 12px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.btn {
  font: inherit; font-size: 11px; letter-spacing: 3px; font-weight: 700;
  padding: 12px 26px; cursor: pointer; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); transition: all .15s ease;
  text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.danger { background: transparent; color: var(--gray); border-color: var(--line); }
.btn.danger:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.msg { font-size: 11px; letter-spacing: 1px; color: var(--gray); }
.msg.err { color: var(--accent); }

/* ---- 记录卡片（与首页悬停卡片同款） ---- */
.mem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 20px;
}
.mem-card {
  background: var(--bg);
  border: 1px solid var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mem-card .cover {
  height: 118px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--ink);
}
.mem-card .inner { padding: 18px 20px 14px; flex: 1; display: flex; flex-direction: column; }
.mem-card .kicker { margin-bottom: 8px; }
.mem-card .m-name {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: 4px; line-height: 1.1;
  padding-bottom: 11px; border-bottom: 1px solid var(--ink); margin-bottom: 11px;
}
.mem-card .m-date {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 14px; letter-spacing: 2.5px; color: var(--gray); font-weight: 700;
}
/* 时间：颜色同省份名（墨色），字体同 MEMORY 眉题（无衬线） */
.mem-card .m-date .d {
  color: var(--ink);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.mem-card .m-date .ty0 { color: var(--t0); }
.mem-card .m-date .ty1 { color: var(--t1); }
.mem-card .m-date .ty2 { color: var(--t2); }
.mem-card .m-date .ty3 { color: var(--t3); }
.mem-card .m-places {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 14px; font-weight: 700; color: var(--ink); margin: 5px 0 3px; letter-spacing: 0.5px; line-height: 1.6;
}
.mem-card .m-extra {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;   /* 只统一字体，字号颜色保持辅文样式 */
  font-size: 10.5px; color: var(--gray); letter-spacing: 0.5px; line-height: 1.7;
}
.mem-card .m-extra em { font-style: italic; }
.mem-card .m-ops {
  display: flex; justify-content: flex-end; gap: 16px;
  margin-top: auto; padding-top: 12px;
}
.mem-card .m-ops a, .mem-card .m-ops span {
  font-size: 10px; letter-spacing: 2px; color: var(--gray); cursor: pointer; text-decoration: none;
}
.mem-card .m-ops a:hover { color: var(--ink); }
.mem-card .m-ops span:hover { color: var(--accent); }

/* ---- 新增页：左右两栏，一屏放下全部字段 ---- */
.page.wide { padding-top: 44px; padding-bottom: 48px; }
.page.wide .sub { margin-bottom: 18px; }
.page.wide .field { padding: 12px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px; align-items: start; }
.form-grid .col > .field:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.empty {
  padding: 60px 0; text-align: center; color: var(--gray);
  font-size: 12px; letter-spacing: 2px; line-height: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.empty .big { font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: 6px; }

.f-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2px; font-weight: 700; color: var(--ink);
  border: 1px solid var(--ink); padding: 7px 12px; margin-bottom: 18px;
}
.f-chip a { color: var(--gray); text-decoration: none; font-weight: 400; }
.f-chip a:hover { color: var(--accent); }

.summary { display: flex; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.summary .s { display: flex; align-items: baseline; gap: 8px; }
.summary .n { font-family: "Playfair Display", "Didot", serif; font-size: 24px; font-weight: 900; }
.summary .l { font-size: 9px; letter-spacing: 3px; color: var(--gray); font-weight: 600; }
.summary .s.accent .n { color: var(--accent); }

.backup { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--ink); }
.backup .kicker { color: var(--gray); }
.backup p { font-size: 11.5px; line-height: 1.9; color: var(--gray); margin: 0 0 14px; }
