:root {
  --theme: #2563eb;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1f2329;
  --sub: #8a9099;
  --line: #eef0f3;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); }

/* 顶部 */
.hd {
  position: sticky; top: 0; z-index: 10;
  background: var(--theme);
  color: #fff;
  padding: calc(env(safe-area-inset-top) + 22px) 18px 18px;
}
.hd-title { font-size: 19px; font-weight: 700; }
.hd-sub { margin-top: 4px; font-size: 13px; opacity: .85; }
.detail-hd { display: flex; align-items: center; gap: 8px; padding-top: calc(env(safe-area-inset-top) + 14px); }
.detail-hd .hd-title { font-size: 16px; font-weight: 600; flex: 1; text-align: center; margin-right: 40px; }
.back { color: #fff; text-decoration: none; font-size: 15px; flex: 0 0 auto; }

/* 首页列表 */
.list { padding: 12px; }
.card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 14px;
  padding: 12px; margin-bottom: 10px;
  text-decoration: none; color: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card:active { transform: scale(.99); }
.card.no-cover { border-left: 3px solid var(--theme); padding-left: 14px; }
.card-cover {
  flex: 0 0 76px; width: 76px; height: 76px; border-radius: 10px;
  background: #e9edf2 center/cover no-repeat;
}
.card-body { flex: 1; min-width: 0; }
.card-title { font-size: 16px; font-weight: 600; }
.card-sum { margin-top: 3px; font-size: 13px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-arrow { flex: 0 0 auto; color: #c8ccd2; font-size: 20px; }

/* 详情 */
.detail { padding: 16px 16px calc(env(safe-area-inset-bottom) + 28px); }
.detail-sum {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
  background: color-mix(in srgb, var(--theme) 8%, #fff);
  color: #4a5159; font-size: 14px;
}
.blk-text { margin: 12px 0; }
.blk { margin: 14px 0; }
.blk img { width: 100%; border-radius: 12px; display: block; background: #e9edf2; }
.blk figcaption { margin-top: 6px; text-align: center; font-size: 12px; color: var(--sub); }

.ft { text-align: center; color: #b6bcc4; font-size: 12px; padding: 18px 0 calc(env(safe-area-inset-bottom) + 18px); }
.empty { text-align: center; color: var(--sub); padding: 60px 20px; }

/* 图片灯箱 */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.88);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox.hidden { display: none; }
.lightbox .lb-img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.lightbox .lb-close {
  position: absolute; top: 16px; right: 20px;
  width: 40px; height: 40px; line-height: 38px; text-align: center;
  font-size: 30px; color: #fff; cursor: pointer;
  border-radius: 50%; background: rgba(255,255,255,.15);
}
.lightbox .lb-close:active { background: rgba(255,255,255,.3); }
