/* ============================================================
   饭迹 FANJI — 个人网站样式表
   编辑感 / 暖纸白 + 墨 + 砖红 / 细线分隔
   ============================================================ */

:root {
  --bg: #f6f2ea;
  --ink: #1b1712;
  --ink-2: #6c6357;
  --ink-3: #9c9285;
  --line: #dcd3c4;
  --accent: #a4432c;
  --paper: #fbf8f2;
  --sand: #efe9de;
  --map: #e4dccb;
  --dark: #1b1712;

  --serif: "Noto Serif SC", "Songti SC", Songti, "Source Han Serif SC", SimSun, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: Inter, "SF Mono", ui-monospace, "Roboto Mono", monospace;

  --gutter: clamp(20px, 8.34vw, 120px);
  --max: 1440px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: #e6d3c9; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 说明：凡是 class 里同时带 .wrap 的区块，纵向留白一律用 padding-block，
   否则 padding 简写会把 .wrap 的左右留白清零，整块内容会贴到屏幕左边。 */

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.line { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .line { background: #3a332b; }

/* ---------------- 顶部导航 ---------------- */

.site { position: relative; z-index: 20; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: 88px;
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.links { display: flex; align-items: center; gap: 38px; }

.links a {
  font-size: 14px;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.links a:hover { color: var(--ink); }
.links a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right > a.plain { font-size: 14px; color: var(--ink-2); }
.nav-right > a.plain:hover { color: var(--ink); }

.mini-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.mini-btn:hover { background: #2c2620; }

/* ---------------- 通用排版 ---------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0;
  text-transform: uppercase;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.display {
  font-family: var(--serif);
  font-size: clamp(38px, 4.1vw, 56px);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.lede { font-size: 16px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.small { font-size: 13px; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: #8f3a26; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #2c2620; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); padding: 15px 31px; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-sm { padding: 11px 22px; font-size: 13px; }

.link-arrow {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.link-arrow:hover { border-color: var(--ink); }

/* ---------------- 首页 Hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: 1fr 512px;
  gap: 64px;
  align-items: center;
  padding-block: 68px 80px;
}

.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-copy .display { max-width: 620px; }
.hero-copy .lede { max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-stats {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin: 0;
}

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  height: 624px;
  object-fit: cover;
  background: #e7e0d3;
}

/* ---------------- 区块头 ---------------- */

.section { padding-top: 88px; }
.section.first { padding-top: 0; }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 34px 0 34px;
}
.sec-head .group { display: flex; flex-direction: column; gap: 10px; }
.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.sec-more { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sec-more:hover { color: var(--ink); }

/* ---------------- 首页：通知 ---------------- */

.notice-list { display: flex; flex-direction: column; }

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 24px 0;
}
.notice .body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.notice .t { font-size: 17px; font-weight: 500; }
.notice .s { font-size: 13px; color: var(--ink-3); }
.notice .aside { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.notice .date { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 2px;
  white-space: nowrap;
}
.tag-solid { background: var(--accent); color: var(--paper); font-weight: 500; }
.tag-line { border: 1px solid var(--line); color: var(--ink-2); }

/* ---------------- 卡片 ---------------- */

.card { display: block; }
.card .thumb {
  display: block;
  overflow: hidden;
  background: #e7e0d3;
}
.card .thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .thumb img { transform: scale(1.03); }
.card .cap { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.card .cap .t {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.4;
}
.card .cap .m { font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; }
.card .cap .n { font-size: 14px; color: var(--ink-3); line-height: 1.7; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 392px;
  gap: 28px;
  align-items: start;
}
.feature-side { display: flex; flex-direction: column; gap: 28px; }
.feature-side .card .cap .t { font-size: 18px; }
.feature-side .card .cap .m { font-size: 12px; }
/* 缩略图不再锁死高度，按原比例展开（原来 184 / 396 会裁切） */

/* 摄影条 */
.strip {
  display: grid;
  grid-template-columns: 396px 1fr 300px;
  gap: 24px;
  align-items: start;
}
.strip figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.strip img { width: 100%; object-fit: cover; background: #e7e0d3; }
.strip .h1 { height: 526px; }
.strip .h2 { height: 372px; }
.strip .h3 { height: 438px; }
.strip figcaption {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* 海报行 */
.poster-row {
  display: grid;
  grid-template-columns: 400px 1fr 340px;
  gap: 24px;
  align-items: start;
}
.poster-row figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.poster-row .poster-card .art { aspect-ratio: auto; height: 500px; }
.poster-row img { height: 500px; width: 100%; object-fit: cover; background: #e7e0d3; }
.poster-row figcaption { font-family: var(--serif); font-size: 15px; line-height: 1.6; }

/* ---------------- 页头（列表页） ---------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  padding-block: 54px 0;
}
.page-head .group { display: flex; flex-direction: column; gap: 14px; }
.page-head .sort { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.page-head .sort button { font-size: 13px; color: var(--ink-3); }
.page-head .sort button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 34px 0 0;
}
.filters button {
  font-size: 14px;
  color: var(--ink-3);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

/* ---------------- 地图块 ---------------- */

.map {
  position: relative;
  height: auto;
  min-height: 360px;
  margin-top: 26px;
  padding: 24px;
  background-color: var(--map);
  background-image:
    linear-gradient(rgba(140, 131, 119, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 131, 119, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(140, 131, 119, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 131, 119, 0.05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 30px 30px, 30px 30px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.map-top, .map-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.map-top { align-items: flex-start; }
.map-badge {
  background: var(--paper);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(27, 23, 18, 0.08);
}
.map-hint { font-size: 11px; color: #8c8377; }

.markers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px;
}
.marker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #3a332b;
  background: rgba(251, 248, 242, 0.9);
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(27, 23, 18, 0.1);
  white-space: nowrap;
}
.marker i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.map-note { font-size: 11px; color: #8c8377; }
.map-btn {
  display: inline-flex;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  border-radius: 2px;
}
.map-btn:hover { background: #2c2620; }

.map-canvas {
  flex: 1 1 auto;
  min-height: 260px;
  height: 320px;
  margin: 14px 0;
  border-radius: 2px;
  overflow: hidden;
  background: #e7e1d6;
  box-shadow: inset 0 0 0 1px rgba(27, 23, 18, 0.06);
}
.map-fallback {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  margin: 14px 0;
  padding: 0 24px;
  font-size: 13px;
  color: #8c8377;
}

/* ---------------- 记录列表 ---------------- */

.rows { display: flex; flex-direction: column; }

.row-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 26px 0;
  transition: opacity 0.2s ease;
}
.row-item .thumb {
  width: 248px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e7e0d3;
}
/* 不裁切：高度交给图片自己的比例决定 */
.row-item .thumb img { width: 100%; height: auto; display: block; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.row-item:hover .thumb img { transform: scale(1.04); }
.row-item .body { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.row-item .t { font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.row-item .m { font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }
.row-item .n { font-size: 13px; color: var(--ink-3); }
.row-item .date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* ---------------- 详情页 ---------------- */

.crumbs {
  padding: 18px 0 0;
  font-size: 12px;
  color: var(--ink-3);
}
.crumbs a:hover { color: var(--ink); }

.detail-head { padding-block: 20px 0; display: flex; flex-direction: column; gap: 18px; }
.detail-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; color: var(--ink-2); }
.detail-meta .score { color: var(--accent); font-weight: 500; }

.detail-figure { padding-block: 26px 0; display: flex; justify-content: center; }
/* 主图完整显示：不裁切、不改比例。只加高度上限，避免竖拍照片撑成两三屏高 */
.detail-figure img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  height: auto;
  display: block;
  background: #e7e0d3;
}

.detail-cols {
  display: grid;
  grid-template-columns: 1fr 396px;
  gap: 56px;
  align-items: start;
  padding-block: 48px 0;
}
.prose { display: flex; flex-direction: column; gap: 20px; }
.prose h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.prose p { margin: 0; font-size: 15px; line-height: 2; color: #3a332b; }
.prose blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  color: var(--accent);
}

.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.info-row dt { font-size: 12px; color: var(--ink-3); margin: 0; }
.info-row dd { margin: 0; font-size: 13px; font-weight: 500; text-align: right; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 44px 0 0; align-items: start; }
.gallery img { width: 100%; height: auto; display: block; background: #e7e0d3; }

/* ---------------- 摄影瀑布流 ---------------- */

.masonry { columns: 3; column-gap: 20px; padding-top: 44px; }
.masonry figure {
  margin: 0 0 20px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
.masonry img { width: 100%; background: #e7e0d3; cursor: zoom-in; }
.masonry figcaption {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding-top: 10px;
}

/* ---------------- 通知时间线 ---------------- */

.pin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: var(--ink);
  color: var(--bg);
  padding: 34px 36px;
  border-radius: 2px;
  margin-top: 44px;
}
.pin .body { display: flex; flex-direction: column; gap: 14px; }
.pin .k { font-size: 11px; letter-spacing: 0.2em; color: #c08a76; font-weight: 500; }
.pin .t { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; }
.pin .s { font-size: 14px; line-height: 1.85; color: #b4aa9c; max-width: 620px; }

.timeline { padding: 64px 0 72px; }
.tl-month {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 0 16px;
}
.tl-month span { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; white-space: nowrap; }
.tl-month .line { flex: 1; }

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 22px 0;
}
.tl-item .d { font-family: var(--mono); font-size: 13px; color: var(--ink-3); width: 60px; flex-shrink: 0; }
.tl-item .body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tl-item .t { font-size: 18px; font-weight: 500; line-height: 1.5; }
.tl-item .s { font-size: 13px; color: var(--ink-3); }
.tl-item .tag { font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); flex-shrink: 0; padding-top: 4px; }
.tl-item.accent .tag { color: var(--accent); }

/* ---------------- 海报页 ---------------- */

.poster-group { padding-top: 44px; }
.poster-group + .poster-group { padding-top: 56px; }
.year-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.year-head span { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.16em; }
.year-head .line { flex: 1; }

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.poster-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; }

.poster-card { display: flex; flex-direction: column; gap: 12px; }
.poster-card .art {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e7e0d3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
}
.poster-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-card .art .k { font-size: 11px; letter-spacing: 0.3em; }
.poster-card .art .big {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.28;
  letter-spacing: 0.1em;
  white-space: pre-line;
  position: relative;
  z-index: 1;
}
.poster-card .art .f { font-size: 12px; letter-spacing: 0.04em; }
.poster-card .art.dark { background: var(--ink); color: var(--bg); }
.poster-card .art.dark .k, .poster-card .art.dark .f { color: #a8907c; }
.poster-card .art.accent { background: var(--accent); color: var(--paper); }
.poster-card .art.accent .k, .poster-card .art.accent .f { color: #f0d9d2; }
.poster-card .art.light { background: #ede6d8; color: var(--ink); }
.poster-card .art.light .k, .poster-card .art.light .f { color: #8c8377; }
.poster-card .caption { font-family: var(--serif); font-size: 15px; line-height: 1.6; }

/* ---------------- 页脚 ---------------- */

.footer { background: var(--ink); color: var(--bg); padding: 72px 0 44px; margin-top: 96px; }
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
}
.footer .brand-lg { font-family: var(--serif); font-size: 30px; letter-spacing: 0.04em; }
.footer .tagline { font-size: 14px; color: #8c8377; margin: 14px 0 0; }
.footer nav { display: flex; gap: 42px; flex-wrap: wrap; }
.footer nav a { font-size: 13px; color: #c9c0b4; }
.footer nav a:hover { color: var(--bg); }
.footer .line { background: #3a332b; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 24px;
  font-size: 12px;
  color: #7a7166;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ---------------- 灯箱 ---------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 13, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 5vh 6vw;
}
.lightbox[open], .lightbox.on { display: flex; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; }
.lightbox .cap {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  text-align: center;
  font-size: 12px;
  color: #b4aa9c;
  letter-spacing: 0.08em;
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  color: #e6dcd0;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.1); }
.lb-prev { left: 2vw; }
.lb-next { right: 2vw; }
.lb-close { position: absolute; top: 18px; right: 22px; color: #e6dcd0; font-size: 13px; letter-spacing: 0.1em; }

/* ---------------- 后台：口令锁 ---------------- */

.gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.gate-back { font-size: 13px; color: var(--ink-3); letter-spacing: 0.02em; }
.gate-back:hover { color: var(--ink); }

.gate-body {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 96px;
  align-items: center;
  padding-block: 0 40px;
  min-height: calc(100vh - 88px);
}
.gate-copy { display: flex; flex-direction: column; gap: 22px; }
.gate-copy .display { white-space: pre-line; }

.gate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gate-card label { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.gate-card input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdc3b3;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}
.gate-card input:focus { border-color: var(--ink); }
.gate-card input::placeholder { letter-spacing: 0.02em; font-family: var(--sans); font-size: 14px; color: #b9ae9d; }
.gate-card input::placeholder { letter-spacing: 0.2em; color: #c3b9a9; }
.gate-err { font-size: 12px; color: var(--accent); min-height: 18px; }
.gate-card .btn { width: 100%; height: 52px; padding: 0; }
.gate-hint { font-size: 11px; line-height: 1.8; color: var(--ink-3); margin: 0; }
.gate-demo {
  font-size: 11px;
  color: var(--ink-3);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin: 2px 0 0;
}

.shake { animation: shake 0.35s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ---------------- 后台：工作台 ---------------- */

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.admin-top .left { display: flex; align-items: center; gap: 12px; }
.admin-top .crumb { font-size: 12px; color: var(--ink-3); }
.admin-top .right { display: flex; align-items: center; gap: 22px; }
.admin-top .state { font-size: 11px; color: var(--accent); letter-spacing: 0.04em; }
.admin-top .quit { font-size: 13px; color: var(--ink-2); }
.admin-top .quit:hover { color: var(--ink); }

.tabs { display: flex; gap: 36px; padding: 14px 0; }
.tabs button {
  font-size: 14px;
  color: var(--ink-3);
  padding: 0 0 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }

.admin-main {
  display: grid;
  grid-template-columns: 1fr 476px;
  gap: 44px;
  align-items: start;
  padding: 32px 0 36px;
}
.admin-left { display: flex; flex-direction: column; gap: 18px; }

.drop {
  height: 210px;
  border: 1px dashed #c6bcab;
  background: var(--sand);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.drop:hover, .drop.over { background: #e9e1d2; border-color: var(--ink); }
.drop .t { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.drop .s { font-size: 12px; color: var(--ink-3); }

.queue-head { font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }
.queue { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.q-item { display: flex; flex-direction: column; gap: 9px; cursor: pointer; }
.q-item .pic { height: 140px; overflow: hidden; background: #e7e0d3; position: relative; }
/* 上传队列是等宽小格，高度锁死会更整齐，所以这里用 contain ——
   整张图都在格子里，只是两侧留底色，不裁切任何像素 */
.q-item .pic img { width: 100%; height: 100%; object-fit: contain; }
.q-item .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.q-item .name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.q-item .name .no {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-2);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0;
}
.q-item.cover .name .no { background: var(--ink); color: var(--bg); }
.q-item .ops { flex: 0 0 auto; display: flex; gap: 4px; }
.q-item .op {
  width: 21px;
  height: 21px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.q-item .op:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.q-item .op.del:hover { background: var(--accent); border-color: var(--accent); }
.q-item .op:disabled { opacity: 0.28; cursor: default; }
.q-item .op:disabled:hover { background: transparent; border-color: var(--line); color: var(--ink-2); }
.q-item .state { font-size: 11px; color: var(--ink-2); }
.q-item .state.err { color: var(--accent); }
.q-item.offline .state { color: var(--accent); }
.q-item.offline .progress { display: none; }
.q-item.cover .pic { outline: 1px solid var(--ink); outline-offset: -1px; }
.q-item.cover .pic::after {
  content: "封面";
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 7px;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.progress { height: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }

.recent { display: flex; flex-direction: column; }
.recent .hd { padding: 14px 0 10px; font-size: 12px; font-weight: 500; color: var(--ink-2); letter-spacing: 0.08em; }
.recent .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
}
.recent .item .l { display: flex; align-items: center; gap: 20px; }
.recent .item .d { font-family: var(--mono); font-size: 11px; color: var(--ink-3); width: 48px; }
.recent .item .t { font-size: 13px; }
.recent .item .s { font-size: 11px; color: var(--ink-2); }
.recent .item .s.draft { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-title { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 12px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field textarea { height: 96px; padding: 12px 14px; line-height: 1.75; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: #b9ae9d; }
.field select { cursor: pointer; }

/* 评分 / 人均两栏 */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { min-width: 0; }

/* 地点搜索已选提示 */
.place-picked {
  margin-top: 2px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 2px;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-2);
}
.place-picked b { display: block; color: var(--ink); font-weight: 600; }
.place-picked span { display: block; color: #8a8175; margin-top: 2px; }
.place-picked[hidden] { display: none; }

.hint-inline { font-size: 11px; font-weight: 400; color: #a2988a; margin-left: 6px; }

/* 标签多选 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* 高德输入提示下拉：尽量贴近站内风格；限高后可滚动，一次看全所有候选 */
.amap-lib-autocomplete, .amap-sug-result {
  font-family: var(--sans) !important;
  border: 1px solid var(--line) !important;
  border-radius: 2px !important;
  box-shadow: 0 8px 24px rgba(27, 23, 18, 0.12) !important;
  max-height: 360px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
.amap-lib-autocomplete .autocomplete-suggestion-item,
.amap-sug-result .autocomplete-suggestion-item {
  padding: 10px 14px !important;
  line-height: 1.5 !important;
}
.amap-lib-autocomplete .autocomplete-suggestion-item:hover,
.amap-sug-result .autocomplete-suggestion-item:hover {
  background: #f1ece2 !important;
}

.admin-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 18px;
}
.admin-bottom .hint { font-size: 11px; color: var(--ink-3); }
.admin-bottom .acts { display: flex; gap: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.hidden { display: none !important; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr 420px; gap: 44px; }
  .hero-figure img { height: 520px; }
  .feature-grid { grid-template-columns: 1fr 330px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .h3 { grid-column: 1 / -1; height: 380px; }
  .poster-row { grid-template-columns: 1fr 1fr; }
  .poster-row > :last-child { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 960px) {
  .nav { height: 72px; gap: 20px; }
  .links { gap: 22px; }
  .hero, .gate-body, .admin-main, .detail-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding-block: 44px 56px; }
  .hero-figure img { height: 420px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-side { flex-direction: row; }
  .feature-side .card { flex: 1; }
  .strip { grid-template-columns: 1fr; }
  .strip .h1, .strip .h2, .strip .h3 { height: 320px; }
  .poster-row { grid-template-columns: 1fr; }
  .poster-row img { height: 360px; }
  .masonry { columns: 2; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .poster-grid.two { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .footer-top { flex-direction: column; gap: 32px; }
  .pin { flex-direction: column; align-items: flex-start; gap: 26px; }
  .map-canvas { height: 240px; }
  .markers { padding: 0; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
  .queue { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  /* 窄屏：导航折成两行，链接换到品牌下方横排，避免没有入口 */
  .nav { flex-wrap: wrap; height: auto; padding-block: 14px; row-gap: 6px; }
  .brand { order: 1; }
  .nav-right { order: 2; margin-left: auto; }
  .links {
    order: 3;
    flex-basis: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .links a { font-size: 13px; white-space: nowrap; }
  .nav-right > a.plain { display: none; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .page-head .sort { text-align: left; flex-direction: row; gap: 18px; }
  .notice { flex-direction: column; align-items: flex-start; gap: 14px; }
  .row-item { flex-direction: column; align-items: flex-start; gap: 16px; }
  /* 窄屏也按原比例，不锁高度 */
  .row-item .thumb { width: 100%; }
  .row-item .date { align-self: flex-end; }
  .masonry { columns: 1; }
  .poster-grid, .poster-grid.two { grid-template-columns: 1fr; }
  .detail-figure img { max-height: 62vh; }
  .gallery { grid-template-columns: 1fr; }
  .queue { grid-template-columns: 1fr; }
  .admin-bottom { flex-direction: column; align-items: stretch; gap: 14px; }
  .admin-bottom .acts { justify-content: flex-end; }
  .manage-list li { flex-wrap: wrap; }
  .manage-list .ma { margin-left: auto; }
  .field-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gate-body { padding-block: 56px 72px; }
}

/* ---------------- 后台：已有记录管理（编辑 / 删除） ---------------- */

.manage {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid #DCD3C4;
}
.manage-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.manage-head h3 {
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  margin: 0;
  color: #1B1712;
}
.manage-head .muted {
  font-size: 12px;
  color: #8A8175;
  letter-spacing: 0.05em;
}
.manage-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.manage-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid #DCD3C4;
}
.manage-list li:first-child {
  border-top: 1px solid #DCD3C4;
}
.manage-list li.empty {
  display: block;
  text-align: center;
  color: #8A8175;
  font-size: 13px;
  padding: 28px 4px;
  border: none;
}
.manage-list .mi {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.manage-list .mi b {
  font-weight: 600;
  font-size: 15px;
  color: #1B1712;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.manage-list .mi i {
  font-style: normal;
  font-size: 12px;
  color: #8A8175;
  letter-spacing: 0.03em;
}
.manage-list .ma {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.mini {
  appearance: none;
  border: 1px solid #DCD3C4;
  background: transparent;
  color: #4A443B;
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.mini:hover {
  border-color: #A4432C;
  color: #A4432C;
}
.mini.del:hover {
  border-color: #A4432C;
  background: #A4432C;
  color: #F6F2EA;
}
.mini:disabled {
  opacity: .5;
  cursor: default;
}
.manage-list .ro {
  font-size: 12px;
  color: #a2988a;
  letter-spacing: 0.04em;
  padding: 6px 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
