/* ====== 城市生活指南 · 杂志感视觉系统 ====== */
/* 设计 token 前缀 city- 避免跟主站冲突 */

/* === 隔离层：阻止主站 aurora 主题污染 === */
.city-app {
  /* 强制覆盖主站 body 的深色背景和字体 */
  background: #faf8f4 !important;
  color: #1a1a1a !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  letter-spacing: 0;
}
/* 所有子元素继承 city 的字体，不被 aurora 覆盖 */
.city-app *,
.city-app *::before,
.city-app *::after {
  font-family: inherit;
  letter-spacing: inherit;
}
/* 链接：去掉浏览器默认下划线，继承颜色（注意：内部文字元素有自己的颜色会被覆盖，所以下面用更具体的选择器恢复） */
.city-app a,
.city-app a:visited,
.city-app a:hover,
.city-app a:active {
  text-decoration: none !important;
  color: inherit;
}
/* 但链接里的 h2/h3 仍要保留自己的颜色（黑底白字等场景） */
.city-app a h1,
.city-app a h2,
.city-app a h3,
.city-app a h4 { color: inherit; }
/* 链接里的 .pinned 是黑底白字容器，整体继承会让子元素色变深，显式指定 */
.city-app a.pinned { color: var(--city-paper); }
.city-app a.pinned h2 { color: var(--city-paper); }
.city-app a.pinned p { color: rgba(255,255,255,.7); }
.city-app a.pinned .pinned-corner { color: rgba(255,255,255,.4); }
/* 标题：去掉浏览器默认粗体加粗，用我们自己的 */
.city-app h1,
.city-app h2,
.city-app h3,
.city-app h4 {
  font-weight: 600;
  margin: 0;
}
/* 列表：去掉浏览器默认缩进 */
.city-app ul,
.city-app ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* 段落：去掉浏览器默认 margin */
.city-app p { margin: 0; }
/* 按钮：基础重置 — 只重置 padding 和 font，避免覆盖业务类其他属性 */
.city-app button {
  font-family: inherit;
  cursor: pointer;
  margin: 0;
}
/* 兜底：业务类被 reset 覆盖的情况下，强制还原关键属性 */
.city-app button.chip {
  background: transparent;
  border: 1px solid var(--city-line);
  color: var(--city-ink-2);
}
.city-app button.ctab {
  background: transparent;
  border: none;
  color: var(--city-ink-3);
}
.city-app button.city-bookmark {
  background: var(--city-paper-warm);
  border: none;
  color: var(--city-ink-2);
}
.city-app button.ask-send {
  background: var(--city-accent);
  border: none;
  color: var(--city-paper);
}
.city-app button.detail-source-btn {
  background: var(--city-ink);
  border: none;
  color: var(--city-paper);
}
.city-app button.detail-ask-btn {
  background: var(--city-accent);
  border: none;
  color: var(--city-paper);
}
.city-app button.doc-tag {
  background: transparent;
  border: 1px solid var(--city-line);
  color: var(--city-ink-2);
}
.city-app button.followup-chip {
  background: var(--city-paper);
  border: 1px solid var(--city-line);
  color: var(--city-accent-deep);
}
/* 输入框：统一重置 */
.city-app input,
.city-app textarea {
  font-family: inherit;
  outline: none;
  border: none;
}
/* SVG：继承颜色 */
.city-app svg { display: block; }

/* === 设计 Token === */
:root {
  --city-lake: #1A5F8B;
  --city-lake-deep: #134866;
  --city-lake-soft: #E8F1F7;
  --city-ink: #1a1a1a;
  --city-ink-2: #4a4a4a;
  --city-ink-3: #8a8a8a;
  --city-ink-4: #b5b5b5;
  --city-line: #e5e2db;
  --city-line-soft: #efedea;
  --city-paper: #faf8f4;
  --city-paper-warm: #f5f2eb;
  --city-serif: "Source Han Serif SC","Noto Serif SC","Songti SC","STSong",serif;
}

.city-app {
  --city-accent: var(--city-lake);
  --city-accent-deep: var(--city-lake-deep);
  --city-accent-soft: var(--city-lake-soft);
  width: 100%;
  max-width: 520px;
  margin: 24px auto;
  height: calc(100vh - 48px);
  background: var(--city-paper);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
}

/* 顶部 */
.city-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}
.city-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 18px;
  background: var(--city-paper-warm);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.cs-current { color: var(--city-ink); }
.cs-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: var(--city-paper);
  border: 1px solid var(--city-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  overflow: hidden;
  min-width: 120px;
}
.city-switcher.open .cs-dropdown { display: block; }
.cs-option {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--city-ink-2);
  transition: background .15s;
}
.cs-option:hover, .cs-option.active { background: var(--city-accent-soft); color: var(--city-accent-deep); }
.city-bookmark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--city-paper-warm);
  display: flex; align-items: center; justify-content: center;
  color: var(--city-ink-2);
}

/* 滚动区 */
.city-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px;
}
.city-scroll::-webkit-scrollbar { display: none; }

/* 底部 Tab */
.city-tabbar {
  flex-shrink: 0;
  height: 70px;
  background: rgba(250,248,244,.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--city-line-soft);
  display: flex;
  padding: 8px 0 20px;
}
.ctab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--city-ink-3);
  cursor: pointer;
  transition: color .25s;
}
.ctab.active { color: var(--city-accent); }
.ctab svg { width: 24px; height: 24px; }
.ctab span { font-size: 10px; letter-spacing: .5px; }
.ctab.active span { font-weight: 600; }

/* Tab 页面 */
.tab-page { display: none; padding-bottom: 20px; animation: cityFade .35s cubic-bezier(.2,.7,.2,1); }
.tab-page.active { display: block; }
@keyframes cityFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 通用排版 */
.eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--city-ink-3); text-transform: uppercase; font-weight: 500; }
.serif { font-family: var(--city-serif); }
.title { font-family: var(--city-serif); font-size: 30px; line-height: 1.25; font-weight: 600; letter-spacing: -.5px; color: var(--city-ink); }
.list-title { font-family: var(--city-serif); font-size: 18px; font-weight: 600; margin: 28px 0 14px; display: flex; align-items: center; justify-content: space-between; color: var(--city-ink); }
.list-title .hint { font-size: 11px; color: var(--city-ink-3); font-family: -apple-system,sans-serif; font-weight: 400; }

/* ====== 热点页（像素级打磨） ====== */
.hot-header { padding: 8px 0 18px; }
.hot-date { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.hot-day { font-family: var(--city-serif); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -1px; color: var(--city-ink); }
.hot-ym { font-size: 13px; color: var(--city-ink-3); letter-spacing: 1px; }
.hot-weather { font-size: 13px; color: var(--city-ink-2); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.hot-quote { font-family: var(--city-serif); font-size: 17px; line-height: 1.6; color: var(--city-ink-2); margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--city-accent); }

.pinned {
  display: block; /* <a> 默认 inline，背景只覆盖行高 */
  background: var(--city-ink);
  color: var(--city-paper);
  border-radius: 16px;
  padding: 22px 22px 24px;
  margin: 22px 0 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease;
}
.pinned:active { transform: scale(.99); }
.pinned::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(26,95,139,.5) 0%, transparent 70%);
}
.pinned-tag { display: inline-block; font-size: 10px; letter-spacing: 2px; padding: 3px 8px; background: var(--city-accent); color: var(--city-paper); border-radius: 4px; margin-bottom: 12px; }
.pinned-corner {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--city-serif);
  font-size: 11px; letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  z-index: 1;
}
.pinned-corner b { font-size: 16px; color: rgba(255,255,255,.85); font-weight: 600; }
.pinned h2 { font-family: var(--city-serif); font-size: 22px; line-height: 1.4; font-weight: 600; margin-bottom: 10px; position: relative; color: var(--city-paper); }
.pinned p { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; position: relative; }
.pinned .stat { margin-top: 16px; display: flex; gap: 16px; font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .5px; }

.hot-item {
  display: flex; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--city-line-soft);
  cursor: pointer;
  transition: all .15s;
  opacity: 0;
  transform: translateY(4px);
  animation: hotItemIn .35s cubic-bezier(.2,.7,.2,1) forwards;
  text-decoration: none;
  color: inherit;
}
.hot-item:nth-child(1) { animation-delay: .05s; }
.hot-item:nth-child(2) { animation-delay: .1s; }
.hot-item:nth-child(3) { animation-delay: .15s; }
.hot-item:nth-child(4) { animation-delay: .2s; }
.hot-item:nth-child(5) { animation-delay: .25s; }
.hot-item:nth-child(6) { animation-delay: .3s; }
.hot-item:nth-child(7) { animation-delay: .35s; }
@keyframes hotItemIn { to { opacity: 1; transform: translateY(0); } }
.hot-item:last-child { border-bottom: none; }
.hot-item:active { background: var(--city-paper-warm); border-radius: 8px; }
.rank { font-family: var(--city-serif); font-size: 24px; font-weight: 600; color: var(--city-ink-4); width: 28px; flex-shrink: 0; line-height: 1.2; }
.hot-item:nth-child(1) .rank { color: var(--city-accent); }
.hot-item:nth-child(2) .rank { color: var(--city-accent); opacity: .7; }
.hot-item:nth-child(3) .rank { color: var(--city-accent); opacity: .5; }
.hot-body { flex: 1; min-width: 0; }
.hot-title { font-size: 15px; line-height: 1.5; color: var(--city-ink); font-weight: 500; margin-bottom: 6px; }
.hot-meta { font-size: 11px; color: var(--city-ink-3); display: flex; gap: 10px; }
.hot-meta .views::before { content: "·"; margin-right: 6px; color: var(--city-ink-4); }

.hot-weekend { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--city-line); }
.weekend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.weekend-card { display: block; background: var(--city-paper-warm); border-radius: 12px; padding: 14px; cursor: pointer; transition: transform .2s; text-decoration: none; color: inherit; }
.weekend-card:active { transform: scale(.97); }
.wc-day { font-size: 10px; color: var(--city-accent); letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }
.weekend-card h3 { font-family: var(--city-serif); font-size: 14px; line-height: 1.4; font-weight: 600; margin-bottom: 6px; color: var(--city-ink); }
.wc-meta { font-size: 11px; color: var(--city-ink-3); }
.wc-tag { display: inline-block; margin-top: 8px; font-size: 10px; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.wc-tag.free { background: var(--city-accent-soft); color: var(--city-accent-deep); }

/* ====== 问页 ====== */
.ask-hero { padding: 16px 0 24px; text-align: center; }
.ask-hero h1 { font-family: var(--city-serif); font-size: 26px; line-height: 1.4; font-weight: 600; margin-bottom: 8px; color: var(--city-ink); }
.ask-hero p { font-size: 13px; color: var(--city-ink-3); }
.ask-input-wrap { position: relative; margin: 18px 0 22px; }
.ask-input {
  width: 100%; height: 52px;
  background: var(--city-paper-warm);
  border-radius: 26px;
  padding: 0 52px 0 22px;
  font-size: 15px; color: var(--city-ink);
  border: 1px solid transparent;
  transition: all .2s;
}
.ask-input::placeholder { color: var(--city-ink-3); }
.ask-input:focus { background: var(--city-paper); border-color: var(--city-accent); }
.ask-send {
  position: absolute; right: 6px; top: 6px;
  width: 40px; height: 40px;
  background: var(--city-accent); color: var(--city-paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.ask-send:active { transform: scale(.92); }
.ask-send svg { width: 18px; height: 18px; }

.chips-title { font-size: 11px; color: var(--city-ink-3); letter-spacing: 1.5px; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  text-align: center;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--city-line);
  border-radius: 20px;
  font-size: 13px;
  color: var(--city-ink-2);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.chip:hover, .chip:active { background: var(--city-accent-soft); border-color: var(--city-accent); color: var(--city-accent-deep); }

.chat { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--city-line); }
.chat-msg { margin-bottom: 18px; animation: cityFade .3s ease; }
.chat-q { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.chat-q .bubble {
  max-width: 80%;
  background: var(--city-accent); color: var(--city-paper);
  padding: 10px 16px; border-radius: 18px 18px 4px 18px;
  font-size: 14px; line-height: 1.5;
}
.chat-a { display: flex; gap: 10px; }
.chat-a .avatar {
  flex-shrink: 0; width: 28px; height: 28px;
  background: var(--city-ink); color: var(--city-paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--city-serif); font-size: 13px; font-weight: 600;
}
.chat-a .answer { flex: 1; min-width: 0; }
.answer-card { background: var(--city-paper-warm); border-radius: 14px; padding: 16px; }
.answer-conclusion { font-family: var(--city-serif); font-size: 15px; line-height: 1.6; color: var(--city-ink); font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--city-line); margin-bottom: 12px; }
.answer-steps { list-style: none; counter-reset: step; }
.answer-steps li { counter-increment: step; position: relative; padding: 6px 0 6px 28px; font-size: 13px; line-height: 1.6; color: var(--city-ink-2); }
.answer-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 6px;
  width: 20px; height: 20px;
  background: var(--city-paper); border: 1px solid var(--city-accent); color: var(--city-accent);
  border-radius: 50%; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.answer-source { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--city-line); font-size: 11px; color: var(--city-ink-3); display: flex; align-items: center; gap: 6px; }
.answer-source .dot { width: 4px; height: 4px; background: #4ade80; border-radius: 50%; }
.followup { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.followup-chip { font-size: 12px; padding: 6px 10px; background: var(--city-paper); border: 1px solid var(--city-line); border-radius: 12px; color: var(--city-accent-deep); cursor: pointer; }

/* ====== 指南页 ====== */
.guide-intro { padding: 12px 0 22px; }
.guide-intro .eyebrow { margin-bottom: 6px; }
.guide-intro h1 { margin-bottom: 8px; }
.guide-intro p { font-size: 13px; color: var(--city-ink-2); line-height: 1.7; }
.timeline { position: relative; padding-left: 24px; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--city-line); }
.stage { position: relative; margin-bottom: 8px; }
.stage::before {
  content: ""; position: absolute; left: -24px; top: 18px;
  width: 15px; height: 15px;
  background: var(--city-paper); border: 2px solid var(--city-ink-4);
  border-radius: 50%; z-index: 1;
}
.stage.active::before { background: var(--city-accent); border-color: var(--city-accent); box-shadow: 0 0 0 4px var(--city-accent-soft); }
.stage-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 0; cursor: pointer; }
.stage-num { font-family: var(--city-serif); font-size: 12px; color: var(--city-ink-3); letter-spacing: 1px; }
.stage-name { font-family: var(--city-serif); font-size: 18px; font-weight: 600; color: var(--city-ink); }
.stage-header .chev { color: var(--city-ink-3); transition: transform .25s; }
.stage.open .chev { transform: rotate(180deg); }
.stage-tasks { display: none; padding: 0 12px 14px 0; }
.stage.open .stage-tasks { display: block; }
.task { padding: 12px 0; border-top: 1px solid var(--city-line-soft); display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.task-check { flex-shrink: 0; width: 18px; height: 18px; border: 1.5px solid var(--city-ink-4); border-radius: 50%; margin-top: 2px; }
.task:hover .task-check { border-color: var(--city-accent); }
.task-body { flex: 1; }
.task-title { font-size: 14px; color: var(--city-ink); line-height: 1.5; font-weight: 500; }
.task-desc { font-size: 12px; color: var(--city-ink-3); margin-top: 2px; line-height: 1.5; }

/* ====== 文件页 ====== */
.doc-search { margin: 12px 0 20px; position: relative; }
.doc-search input { width: 100%; height: 44px; background: var(--city-paper-warm); border-radius: 22px; padding: 0 18px 0 42px; font-size: 14px; }
.doc-search input::placeholder { color: var(--city-ink-3); }
.doc-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--city-ink-3); }
.doc-tag-bar { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 0; }
.doc-tag-bar::-webkit-scrollbar { display: none; }
.doc-tag { flex-shrink: 0; font-size: 12px; padding: 6px 12px; border-radius: 14px; background: transparent; color: var(--city-ink-2); border: 1px solid var(--city-line); cursor: pointer; }
.doc-tag.active { background: var(--city-ink); color: var(--city-paper); border-color: var(--city-ink); }
.doc-item {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--city-line-soft);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.doc-item:last-child { border-bottom: none; }
.doc-title { font-family: var(--city-serif); font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--city-ink); margin-bottom: 8px; }
.doc-human { background: var(--city-accent-soft); border-left: 3px solid var(--city-accent); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 12px 0; }
.doc-human-label { font-size: 10px; color: var(--city-accent); letter-spacing: 1.5px; font-weight: 600; margin-bottom: 4px; }
.doc-human-text { font-size: 13px; line-height: 1.6; color: var(--city-ink); }
.doc-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--city-ink-3); margin-top: 10px; }
.doc-foot-link { color: var(--city-accent); font-weight: 500; }

/* ====== 详情页（hot / doc / task 共用） ====== */
.city-detail-page {
  --city-accent: var(--city-lake);
  --city-accent-deep: var(--city-lake-deep);
  --city-accent-soft: var(--city-lake-soft);
  width: 100%;
  max-width: 520px;
  margin: 90px auto 40px;
  padding: 28px 24px 36px;
  background: #faf8f4 !important;
  color: #1a1a1a !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  letter-spacing: 0;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.03);
}
/* 详情页子元素继承字体 */
.city-detail-page *,
.city-detail-page *::before,
.city-detail-page *::after {
  font-family: inherit;
  letter-spacing: inherit;
}
/* 详情页链接：无下划线 */
.city-detail-page a,
.city-detail-page a:visited,
.city-detail-page a:hover,
.city-detail-page a:active {
  text-decoration: none !important;
  color: inherit;
}
.city-detail-page a h1,
.city-detail-page a h2,
.city-detail-page a h3 { color: inherit; }
/* 详情页里的「查看原文」按钮是黑底白字 */
.city-detail-page a.detail-source-btn { color: var(--city-paper); }
.city-detail-page h1,
.city-detail-page h2,
.city-detail-page h3,
.city-detail-page h4 { font-weight: 600; margin: 0; }
.city-detail-page ul,
.city-detail-page ol { list-style: none; margin: 0; padding: 0; }
.city-detail-page p { margin: 0; }
.city-detail-page button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
.city-detail-page svg { display: block; }
/* 正文内的链接用湖蓝 + 无下划线（覆盖之前有 border-bottom 的写法） */
.city-detail-page .detail-content a { color: var(--city-accent); border-bottom: none; }
.city-detail-page .sep { color: var(--city-ink-4); }

/* 返回按钮 */
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--city-ink-2);
  background: transparent;
  padding: 6px 12px 6px 6px;
  border-radius: 18px;
  text-decoration: none;
  transition: all .2s;
  margin-bottom: 22px;
}
.detail-back:hover { background: var(--city-paper-warm); color: var(--city-accent-deep); }
.detail-back svg { width: 16px; height: 16px; }

/* 顶部 tag 行 */
.detail-tag-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-tag {
  font-size: 11px; letter-spacing: 1.5px;
  padding: 4px 10px;
  background: var(--city-accent-soft); color: var(--city-accent-deep);
  border-radius: 4px; font-weight: 600;
}
.detail-tag-solid { background: var(--city-ink); color: var(--city-paper); }
.detail-tag-soft { background: transparent; color: var(--city-ink-2); border: 1px solid var(--city-line); letter-spacing: .5px; }
.detail-tag-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.detail-stage-name { font-family: var(--city-serif); font-size: 13px; color: var(--city-ink-3); }

/* 标题 */
.detail-title {
  font-family: var(--city-serif);
  font-size: 26px; line-height: 1.35;
  font-weight: 600; letter-spacing: -.3px;
  color: var(--city-ink);
  margin-bottom: 14px;
}
.detail-desc { font-size: 14px; line-height: 1.7; color: var(--city-ink-2); margin: -4px 0 24px; }

/* meta 行 */
.detail-meta {
  font-size: 12px; color: var(--city-ink-3);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--city-line);
}
.detail-meta .views { color: var(--city-accent); font-weight: 500; }

/* 正文 */
.detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--city-ink-2);
}
.detail-content p { margin: 0 0 16px; }
.detail-content h2 { font-family: var(--city-serif); font-size: 19px; font-weight: 600; color: var(--city-ink); margin: 28px 0 12px; }
.detail-content h3 { font-family: var(--city-serif); font-size: 16px; font-weight: 600; color: var(--city-ink); margin: 22px 0 10px; }
.detail-content ul, .detail-content ol { padding-left: 20px; margin: 0 0 16px; }
.detail-content li { margin-bottom: 6px; }
.detail-content blockquote { border-left: 3px solid var(--city-accent); padding: 6px 14px; margin: 16px 0; color: var(--city-ink-2); background: var(--city-paper-warm); border-radius: 0 8px 8px 0; }
.detail-content a { color: var(--city-accent); border-bottom: 1px solid var(--city-accent-soft); }
.detail-content code { background: var(--city-paper-warm); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.detail-content img { max-width: 100%; border-radius: 8px; margin: 12px 0; }

/* 人话版卡片（详情页） */
.detail-human { margin: 6px 0 24px; padding: 14px 16px; }
.doc-human-title {
  font-family: var(--city-serif);
  font-size: 15px; font-weight: 600;
  color: var(--city-accent-deep);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* 关键信息卡片 */
.keypoints-card {
  margin: 24px 0;
  background: var(--city-paper-warm);
  border-radius: 14px;
  padding: 18px 18px 4px;
  border: 1px solid var(--city-line-soft);
}
.keypoints-head {
  font-family: var(--city-serif);
  font-size: 14px; font-weight: 600;
  color: var(--city-ink);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.keypoints-list { padding-bottom: 14px; }
.kp-item {
  display: flex; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--city-line);
  font-size: 13px; line-height: 1.6;
}
.kp-item:last-child { border-bottom: none; }
.kp-key { flex-shrink: 0; color: var(--city-ink-3); min-width: 72px; }
.kp-val { color: var(--city-ink); flex: 1; word-break: break-word; }

/* 底部操作 */
.detail-foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--city-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-source-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  background: var(--city-ink); color: var(--city-paper);
  border-radius: 24px;
  font-size: 13px; font-weight: 500;
  transition: transform .2s;
  text-decoration: none;
}
.detail-source-btn:active { transform: scale(.97); }
.detail-source-btn svg { width: 14px; height: 14px; }

/* 答案卡片（任务详情页，复用 ask 页样式） */
.detail-answer { margin: 8px 0 20px; }
.detail-answer .answer-card { padding: 18px; }
.detail-answer .answer-source .as-link { margin-left: auto; color: var(--city-accent); text-decoration: none; }

/* 空答案 */
.detail-empty-answer { text-align: center; padding: 28px 18px; }
.detail-empty-title { font-family: var(--city-serif); font-size: 14px; color: var(--city-ink-2); }
.detail-empty-sub { font-size: 12px; color: var(--city-ink-3); margin-top: 6px; margin-bottom: 16px; }
.detail-ask-btn { background: var(--city-accent); display: inline-flex; }

/* 相关追问 */
.detail-followups { margin-top: 24px; }
.detail-followups-title { font-size: 11px; color: var(--city-ink-3); letter-spacing: 1.5px; margin-bottom: 12px; }
.followups-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-followups .followup-chip { display: inline-block; text-decoration: none; }
.detail-followups .followup-chip:hover { background: var(--city-accent-soft); border-color: var(--city-accent); }

/* 相关文件 */
.detail-related { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--city-line); }
.detail-related-title {
  font-family: var(--city-serif);
  font-size: 16px; font-weight: 600;
  color: var(--city-ink);
  margin-bottom: 14px;
}
.related-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--city-line-soft);
  text-decoration: none;
  transition: padding-left .2s;
  color: inherit;
}
.related-item:last-child { border-bottom: none; }
.related-item:hover { padding-left: 6px; }
.related-human { font-size: 11px; color: var(--city-accent); letter-spacing: 1px; margin-bottom: 4px; font-weight: 600; }
.related-title { font-family: var(--city-serif); font-size: 14px; font-weight: 500; color: var(--city-ink); line-height: 1.5; }
