/* App 品牌页（/）。和 /image、/orders.html 共用同一套暗色 editorial + 酸绿信号色
   token（见 image.css 的 :root），这里只补它没有的组件：顶栏导航、作品流卡片、
   创作面板的选项 chip、时间线、toast。
   2026-09-23 前这页自成一套「生成日记」视觉（Georgia 斜体衬线 + 模糊渐变色块），
   和 /image 的「冲印店柜台」调子不一致，按明确指示往 /image 这边统一。 */

/* ── 顶栏导航：.bar 本身来自 image.css，这里只加中间的 nav 和右侧 CTA ── */
.bar-nav { display: flex; gap: var(--s-6); margin-left: var(--s-8); }
.bar-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-weight: 600; text-decoration: none; }
.bar-nav a:hover { color: var(--ink); }
.bar-nav a.is-active { color: var(--acid); }
.bar-cta { margin-left: auto; min-height: 44px; padding: 0 var(--s-4); font-size: var(--t-sm); }

/* Hero 正文：固定 max-width 压不住孤字——换个视口宽度末行又只剩「案。」。
   text-wrap: pretty 就是干这个的，浏览器自己避免过短的末行；不支持的浏览器
   退回普通断行，不影响可读性。 */
.hero .lede { max-width: 32em; text-wrap: pretty; }

/* ── 作品流：扁平卡片，缩略图不用渐变色块，只留 film-code 标签 ── */
.feed-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: var(--s-6); padding: clamp(var(--s-12), 6vw, var(--s-16)) 0; }
.film-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-1); overflow: hidden; }
/* 三张卡列宽不等（1.2fr / .8fr / .8fr），所以缩略图按固定高度而不是固定比例——
   比例一致会让宽列的图高出一截，整行缩略图底边参差，看着像没对齐而不是刻意。 */
.film-thumb { position: relative; height: clamp(200px, 21vw, 300px); background: var(--surface-2); overflow: hidden; }
.film-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.film-card:hover .film-thumb img { transform: scale(1.055); }
.film-code {
  position: absolute; top: var(--s-3); left: var(--s-3);
  padding: 3px 7px; border-radius: 4px;
  background: oklch(11.5% 0.016 274 / 0.7);
  color: var(--acid);
  font-family: var(--display); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.08em;
}
.film-body { display: grid; gap: var(--s-3); padding: var(--s-6); }
.film-meta { display: flex; align-items: center; gap: var(--s-3); }
.film-avatar {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: var(--t-xs);
}
.film-meta b { display: block; font-size: var(--t-sm); font-weight: 700; }
.film-meta small { color: var(--muted); font-size: var(--t-xs); }
.film-status {
  margin-left: auto; padding: 3px 9px; border-radius: 20px;
  background: oklch(94% 0.205 118 / 0.12); color: var(--acid);
  font-size: var(--t-xs); font-weight: 700;
}
.film-card h2 { font-family: var(--display); font-size: var(--t-lg); font-weight: 900; letter-spacing: -0.02em; }
.film-card h3 { font-family: var(--display); font-size: var(--t-base); font-weight: 800; letter-spacing: -0.02em; }
.film-desc { color: var(--muted); font-size: var(--t-sm); line-height: 1.7; }
.film-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.film-tags span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: var(--t-xs); }
.film-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
/* 文字按钮也要够得着：44px 最小触控高度（WCAG 2.2 目标尺寸），
   用 inline-flex 撑高命中区，视觉上仍然是一行文字链接。 */
.film-actions button {
  display: inline-flex; align-items: center; min-height: 44px;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--ink); font: 700 var(--t-sm)/1 var(--body);
}
.film-actions button:last-child { color: var(--acid); }
.film-stats { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--t-xs); }

/* ── 章节标题行：数字+标题走 .band-head，这里只补右侧链接按钮 ── */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-bottom: var(--s-8); }
.section-heading .band-head { margin-bottom: 0; }
.section-heading > button {
  display: inline-flex; align-items: center; min-height: 44px;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--acid); font: 700 var(--t-sm)/1 var(--body);
}

/* ── 创作面板里的生成方式 chip：轻量 toggle，不是 .btn ── */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.chip {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--s-2) var(--s-4); border: 1px solid var(--line); border-radius: 22px;
  background: transparent; color: var(--muted);
  font: 600 var(--t-sm)/1 var(--body); cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip.selected { border-color: var(--acid); color: var(--acid); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }

/* ── 作品库时间线：日期列宽仿 .truths，加一列尾部按钮 ── */
.timeline { display: grid; gap: 0; margin-top: var(--s-8); padding: 0; list-style: none; }
.timeline li {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0; border-top: 1px solid var(--line-soft);
  font-size: var(--t-sm);
}
.timeline li:last-child { border-bottom: 1px solid var(--line-soft); }
.timeline-date { color: var(--acid); font-family: var(--display); font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.06em; }
.timeline b { font-weight: 700; }
.timeline p { margin-top: 2px; color: var(--muted); font-size: var(--t-xs); }
.timeline button {
  display: inline-flex; align-items: center; min-height: 44px;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--acid); font: 700 var(--t-sm)/1 var(--body);
}
.timeline button.muted { color: var(--muted); }

/* ── Toast：扁平酸绿描边卡片，不是发光玻璃 ── */
#toast {
  position: fixed; top: max(16px, env(safe-area-inset-top)); left: 50%; z-index: 20;
  width: min(440px, calc(100% - 32px));
  padding: var(--s-4) var(--s-6);
  border: 1px solid var(--acid-dim); border-radius: 12px;
  background: var(--surface-1); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: var(--t-sm); line-height: 1.6;
  opacity: 0; transform: translate(-50%, -8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .feed-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bar-nav { display: none; }
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: var(--s-1); }
  .timeline button { justify-self: start; }
}
