/* m_look_wap_v2 样式：从原型 feed-b-v2.html 移植，去掉原型专用部分（手机壳/标注/比例切换） */

:root {
  --brand: #E5322D; --bg: #F4F3F2; --surface: #fff; --surface-2: #EDEBE9;
  --ink: #1B1A19; --ink-2: #5F5B58; --ink-3: #9C9894; --line: #ECE9E6;
  --orange: #F0711E; --amber: #E39B12; --blue: #2D76E6; --fei: #A61E1A;
  --on-media: #fff; --shadow: 0 1px 6px rgba(26, 24, 22, .05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121212; --surface: #1D1D20; --surface-2: #26262A;
    --ink: #ECEAE8; --ink-2: #ABA6A2; --ink-3: #77726E; --line: #2A2A2D;
    --shadow: 0 1px 6px rgba(0, 0, 0, .4); }
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
.error-tip { padding: 40px 0; text-align: center; color: var(--ink-3); }

/* ===== 头部 ===== */
.hdr { position: sticky; top: 0; z-index: 6; background: var(--surface); }
.hdr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px; }
/* logo：PC 站同款图片（166×40 PNG），按高度 18px 等比缩放 */
.logo { display: block; height: 18px; }
.logo img { display: block; height: 18px; width: auto; }
/* 用户图标：完整 SVG，22px */
.user { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); }
.user svg { width: 22px; height: 22px; }
.tabs { display: flex; gap: 22px; overflow-x: auto; padding: 2px 16px 0; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 40px; font-size: 16px; color: var(--ink-2); position: relative; }
.tab.on { color: var(--ink); font-weight: 700; }
.tab.on::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 6px; height: 3px; border-radius: 2px; background: var(--brand); }

/* ===== 焦点图轮播 ===== */
.hl-carousel { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 12px; padding: 10px 12px 4px; scrollbar-width: none; }
.hl-carousel::-webkit-scrollbar { display: none; }
.headline { position: relative; flex: 0 0 86%; max-width: 86%; aspect-ratio: 472/220; scroll-snap-align: start;
  border-radius: 10px; background: var(--surface-2) center / cover no-repeat; overflow: hidden; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.02) 40%, rgba(0,0,0,.62)); }
.live { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; background: var(--brand); color: var(--on-media); font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 4px; }
.live.stamp { max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hl-count { position: absolute; top: 10px; right: 10px; font-size: 11px; color: var(--on-media); background: rgba(0,0,0,.4); border-radius: 8px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.headline h2 { position: absolute; left: 12px; right: 12px; bottom: 30px; color: var(--on-media); font-size: 17px; line-height: 1.35; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.track { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--on-media); opacity: .88; }

/* ===== 热门话题跑马灯 ===== */
.hotlist { position: relative; background: var(--surface); border-radius: 12px; padding: 12px 12px 6px; margin: 6px 12px; box-shadow: var(--shadow); }
.hl-head { display: flex; align-items: baseline; justify-content: space-between; }
.hl-title { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; }
.hl-title small { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.hl-view { --row: 38px; position: relative; height: calc(var(--row) * 2); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%); }
.hl-track { will-change: transform; }
.hl-item { display: flex; align-items: center; gap: 7px; width: 100%; height: var(--row); text-align: left; }
.hl-bar { flex: none; width: 4px; height: 16px; border-radius: 2.5px; background: var(--ink-3); opacity: .38; }
.hl-item[data-tier="1"] .hl-bar { background: var(--brand); opacity: 1; }
.hl-item[data-tier="2"] .hl-bar { background: var(--orange); opacity: 1; }
.hl-item[data-tier="3"] .hl-bar { background: var(--amber); opacity: 1; }
.hl-text { min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; flex: 1; }
.hl-text > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tag { flex: none; font-size: 10px; line-height: 16px; padding: 0 4px; border-radius: 3px; color: var(--on-media); font-weight: 600; }
.t-爆 { background: var(--brand); } .t-热 { background: var(--orange); } .t-新 { background: var(--blue); } .t-沸 { background: var(--fei); }
.heat { font-weight: 500; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ===== 新时代置顶 ===== */
.top-card { display: grid; background: var(--surface); border-radius: 12px; padding: 6px 12px; margin: 10px 12px 6px; box-shadow: var(--shadow); }
.top-row { display: flex; align-items: center; gap: 8px; height: 36px; }
.top-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.top-t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; }

/* ===== 子标签 ===== */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 30px; padding: 0 14px; border-radius: 15px; background: var(--surface); color: var(--ink-2); font-size: 13px; box-shadow: var(--shadow); }
.chip.on { background: var(--ink); color: var(--surface); }

/* ===== 瀑布流 ===== */
.feed { padding: 8px 12px 24px; }
.grid { display: flex; gap: 8px; align-items: flex-start; }
.col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); display: block; }
.cover { position: relative; background: var(--surface-2) center / cover no-repeat; }
.badge { position: absolute; font-size: 11px; color: var(--on-media); background: rgba(0,0,0,.5); border-radius: 4px; padding: 1px 6px; }
.badge.br { right: 8px; bottom: 8px; }
.badge.tl { left: 8px; top: 8px; }
.badge.pin { background: rgba(160,40,30,.82); }
.card-body { padding: 8px 10px 10px; }
.card-title { font-size: 15px; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; color: var(--ink-3); }
.ava { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; font-size: 11px; color: var(--ink-2); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.src { max-width: 40%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.when { flex: none; }
.reads { flex: none; }

/* ===== 文字卡（四色色块，对齐原型设计） ===== */
:root {
  --tc-red: #FBE4DF; --tc-blue: #E1EBF9; --tc-green: #E0F0E5; --tc-yellow: #FAEFD3;
  --tc-ink: #1B1A19;
}
@media (prefers-color-scheme: dark) {
  :root { --tc-red: #3A2422; --tc-blue: #1E2A3D; --tc-green: #1C3125; --tc-yellow: #3A321B; --tc-ink: #ECEAE8; }
}
.textcover { aspect-ratio: 3/4; box-sizing: border-box; padding: 16px 14px 12px;
  display: flex; flex-direction: column; gap: 10px; color: var(--tc-ink); }
.tc-red { background: var(--tc-red); }
.tc-blue { background: var(--tc-blue); }
.tc-green { background: var(--tc-green); }
.tc-yellow { background: var(--tc-yellow); }
.textcover .big { flex: 1; margin: 0; font-size: 21px; line-height: 1.38; font-weight: 800; letter-spacing: .3px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tc-foot { font-size: 11px; opacity: .6; }

/* ===== 下拉刷新提示 ===== */
.pull-tip { position: fixed; top: 0; left: 0; right: 0; height: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); font-size: 13px; z-index: 9;
  transition: height .15s; background: var(--bg); }
/* ===== 底部提示条 ===== */
.tail-tip { grid-column: 1 / -1; padding: 16px 0 4px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ===== 卡片 ⋯ 反馈按钮 ===== */
.more { flex: none; margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-3); }
.more svg { width: 14px; height: 14px; }
/* ===== dislike 反馈面板 ===== */
.report-wrap { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .5);
  display: flex; align-items: flex-end; opacity: 0; animation: fadeIn .18s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.report-body { width: 100%; background: var(--surface); border-radius: 14px 14px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  animation: slideUp .22s cubic-bezier(.32, .02, .24, 1) forwards; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.report-content h3 { font-size: 15px; font-weight: 600; text-align: center; margin-bottom: 14px; }
.report-num { font-style: normal; color: var(--brand); padding: 0 2px; }
.report-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.report-item { height: 36px; display: grid; place-items: center; border-radius: 18px;
  background: var(--surface-2); color: var(--ink-2); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.report-item.active { background: rgba(229, 50, 45, .1); color: var(--brand); font-weight: 600; }
.report-submit { width: 100%; height: 44px; margin-top: 16px; border-radius: 22px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600; }
