/* ==========================================================================
   简尹财经 · iOS 风格样式系统  style.css
   设计语言：SF 字体栈 / 连续圆角 / 毛玻璃 / 发丝分隔线 / iOS 缓动
   配色：红 · 白 · 金
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  /* 品牌色 */
  --c-red: #E01F26;
  --c-red-d: #B3151B;
  --c-red-l: #FDF0F0;
  --c-gold: #C9A227;
  --c-gold-l: #E3C77E;
  --c-gold-d: #8C6D1F;
  --c-gold-bg: #FBF7EC;

  /* 功能色（红涨绿跌遵循 A 股惯例） */
  --c-up: #E01F26;
  --c-down: #17A06A;

  /* 中性色（对齐 iOS systemColor 灰阶） */
  --c-label: #1C1C1E;
  --c-label-2: #6E6E73;
  --c-label-3: #A1A1A6;
  --c-sep: rgba(60, 60, 67, .14);
  --c-sep-strong: rgba(60, 60, 67, .24);
  --c-fill: rgba(120, 120, 128, .08);
  --c-fill-2: rgba(120, 120, 128, .14);
  --c-bg: #F2F2F7;
  --c-bg-2: #FFFFFF;
  --c-white: #FFFFFF;

  /* 尺寸 */
  --w-max: 1220px;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* 阴影（iOS 分层阴影） */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 8px rgba(0, 0, 0, .04);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .07);
  --sh-red: 0 4px 14px rgba(224, 31, 38, .24);

  /* 缓动 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@supports (backdrop-filter: saturate(180%) blur(20px)) {
  :root {
    --glass: saturate(180%) blur(20px);
  }
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--c-label);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" on, "lnum" on;
}

a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; outline: none; }

::selection { background: rgba(224, 31, 38, .14); }

/* iOS 风格滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(60, 60, 67, .18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(60, 60, 67, .3); }

.wrap { width: 100%; max-width: var(--w-max); margin: 0 auto; padding: 0 20px; }

/* ---------- 品牌色条 ---------- */
.brandline {
  height: 3px;
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-red) 38%, var(--c-gold) 72%, var(--c-gold-l) 100%);
}

/* ---------- 顶部工具条 ---------- */
.topbar {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: var(--glass, saturate(180%) blur(20px));
  backdrop-filter: var(--glass, saturate(180%) blur(20px));
  color: var(--c-label-2);
  font-size: 12.5px;
  height: 36px;
  display: flex; align-items: center;
  letter-spacing: 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.topbar a:hover { color: var(--c-red); }
.top-links { display: flex; gap: 22px; }
.top-date { letter-spacing: .2px; }

/* ---------- 主导航（毛玻璃吸顶） ---------- */
.header {
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: var(--glass, saturate(180%) blur(20px));
  backdrop-filter: var(--glass, saturate(180%) blur(20px));
  border-bottom: 1px solid var(--c-sep);
  position: sticky; top: 0; z-index: 100;
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 62px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--c-red) 0%, var(--c-red-d) 55%, var(--c-gold-d) 130%);
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: -.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-red);
}
.logo-text b {
  display: block; font-size: 20px; letter-spacing: 1px; color: var(--c-label);
  line-height: 1.15; font-weight: 700;
}
.logo-text span {
  display: block; font-size: 9.5px; color: var(--c-label-3);
  letter-spacing: 2.2px; font-weight: 600;
}

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 0 14px; height: 62px; display: flex; align-items: center;
  font-size: 14.5px; font-weight: 500; color: var(--c-label); position: relative;
  white-space: nowrap; border-radius: var(--r-xs);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 11px;
  width: 16px; height: 3px; border-radius: 2px;
  background: var(--c-red);
  transform: translateX(-50%) scaleX(0);
  transition: transform .32s var(--ease-out);
}
.nav a:hover { color: var(--c-red); background: var(--c-red-l); }
.nav a:hover::after, .nav a.active::after { transform: translateX(-50%) scaleX(1); }
.nav a.active { color: var(--c-red); font-weight: 600; }

.nav-toggle {
  display: none; font-size: 20px; color: var(--c-red);
  width: 38px; height: 38px; border-radius: 10px;
  align-items: center; justify-content: center;
  transition: background .25s var(--ease);
}
.nav-toggle:active { background: var(--c-red-l); }

/* ---------- 搜索条 ---------- */
.searchbar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-sep);
  padding: 11px 0;
}
.searchbar .wrap { display: flex; align-items: center; gap: 20px; }
.hot-tags { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13px; min-width: 0; }
.hot-tags .lbl { color: var(--c-label-3); font-weight: 600; flex-shrink: 0; }
.hot-tags a {
  color: var(--c-label-2); padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--c-fill); font-size: 12.5px;
  transition: all .25s var(--ease);
}
.hot-tags a:hover { background: var(--c-red-l); color: var(--c-red); }

.search-box { margin-left: auto; display: flex; position: relative; flex-shrink: 0; }
.search-box input {
  width: 246px; height: 36px; padding: 0 40px 0 15px;
  border: none; border-radius: var(--r-pill);
  background: var(--c-fill); font-size: 13.5px; color: var(--c-label);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.search-box input::placeholder { color: var(--c-label-3); }
.search-box input:focus { background: var(--c-white); box-shadow: 0 0 0 2px rgba(224, 31, 38, .28); }
.search-box button {
  position: absolute; right: 4px; top: 4px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--c-red); color: #fff; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-red);
  transition: transform .2s var(--ease);
}
.search-box button:active { transform: scale(.9); }

/* ---------- 行情条 ---------- */
.ticker {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-sep);
  overflow: hidden; font-size: 13px;
}
.ticker .wrap { display: flex; align-items: center; height: 46px; gap: 18px; }
.ticker-label {
  font-weight: 700; color: var(--c-red); flex-shrink: 0;
  border-right: 1px solid var(--c-sep); padding-right: 16px; letter-spacing: .5px;
  display: flex; align-items: center; gap: 6px;
}
.ticker-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-red); box-shadow: 0 0 0 3px rgba(224, 31, 38, .16);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.ticker-track { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.ticker-track::-webkit-scrollbar { display: none; }
.tk-item { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.tk-item .name { color: var(--c-label-2); font-weight: 500; }
.tk-item .px { font-weight: 600; font-variant-numeric: tabular-nums; }
.tk-item .chg { font-size: 12px; font-variant-numeric: tabular-nums; }
.up { color: var(--c-up); }
.down { color: var(--c-down); }

/* ---------- 主体布局 ---------- */
.main { padding: 16px 0 44px; }
.layout { display: grid; grid-template-columns: 1fr 324px; gap: 20px; align-items: start; }

/* ---------- 卡片（iOS 分组容器） ---------- */
.card {
  background: var(--c-bg-2);
  border: 1px solid var(--c-sep);
  border-radius: var(--r-lg);
  margin-bottom: 18px;
  box-shadow: var(--sh-1);
  overflow: hidden;
}
.card-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--c-sep);
}
.card-hd h2 {
  font-size: 18px; font-weight: 700; letter-spacing: -.3px; color: var(--c-label);
  display: flex; align-items: center; gap: 9px; line-height: 1.2;
}
/* 标题前的金色标记 */
.card-hd h2::before {
  content: ''; width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, var(--c-red), var(--c-gold));
}
.card-hd .more {
  margin-left: auto; font-size: 12.5px; color: var(--c-label-3); font-weight: 500;
  display: flex; align-items: center; gap: 2px;
}
.card-hd .more:hover { color: var(--c-red); }
.card-hd .tabs {
  margin-left: auto; display: flex; gap: 2px;
  background: var(--c-fill); padding: 3px; border-radius: var(--r-pill);
}
.card-hd .tabs a {
  font-size: 12.5px; padding: 4px 13px; border-radius: var(--r-pill);
  color: var(--c-label-2); font-weight: 500; white-space: nowrap;
  transition: all .28s var(--ease);
}
.card-hd .tabs a:hover { color: var(--c-red); }
.card-hd .tabs a.on {
  background: var(--c-white); color: var(--c-red); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.card-bd { padding: 4px 20px 18px; }

/* ---------- 头条 ---------- */
.headline { display: grid; grid-template-columns: 1.12fr 1fr; }
.hl-main { padding: 20px; border-right: 1px solid var(--c-sep); }
.hl-main .pic {
  height: 206px; border-radius: var(--r-md); overflow: hidden; margin-bottom: 15px;
  background: linear-gradient(135deg, var(--c-red), var(--c-gold));
  position: relative;
}
.hl-main .pic::after {
  content: '聚焦'; position: absolute; left: 14px; bottom: 14px;
  /* 仅作用于头条图，广告位不受影响 */
  background: rgba(255, 255, 255, .95); color: var(--c-red);
  font-size: 11.5px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--r-pill); letter-spacing: 1.5px;
  box-shadow: var(--sh-1);
}
.hl-main h1 { font-size: 24px; line-height: 1.38; font-weight: 700; letter-spacing: -.5px; }
.hl-main h1:hover { color: var(--c-red); }
.hl-main p {
  margin-top: 10px; color: var(--c-label-2); font-size: 14px; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hl-side { padding: 10px 20px 16px; }
.hl-side li {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--c-sep);
  align-items: flex-start;
}
.hl-side li:last-child { border-bottom: none; }
.hl-side .idx {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px;
  border-radius: 7px;
  background: var(--c-fill-2); color: var(--c-label-2);
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hl-side li:nth-child(1) .idx { background: var(--c-red); color: #fff; box-shadow: var(--sh-red); }
.hl-side li:nth-child(2) .idx { background: var(--c-gold); color: #fff; }
.hl-side li:nth-child(3) .idx { background: linear-gradient(135deg, #E3C77E, #C9A227); color: #fff; }
.hl-side .t { font-size: 14px; line-height: 1.6; font-weight: 500; }
.hl-side .t:hover { color: var(--c-red); }

/* ---------- 资讯流 ---------- */
.feed { display: block; }
.news-item {
  display: grid; grid-template-columns: 1fr 168px; gap: 18px;
  padding: 18px 0; border-bottom: 1px solid var(--c-sep);
}
.news-item:first-child { padding-top: 12px; }
.news-item:last-child { border-bottom: none; }
.news-item .pic {
  height: 114px; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(135deg, var(--c-red), var(--c-gold));
  position: relative;
}
.news-item h3 { font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: -.3px; }
.news-item h3:hover { color: var(--c-red); }
.news-item .desc {
  margin-top: 7px; color: var(--c-label-2); font-size: 13.5px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta {
  margin-top: 11px; display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--c-label-3);
}
.meta .avatar {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, var(--c-red), var(--c-gold));
  color: #fff; font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.meta .src { color: var(--c-label); font-weight: 600; }
.meta .tag {
  color: var(--c-red); background: var(--c-red-l);
  padding: 1px 8px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; line-height: 18px;
}
.meta time { margin-left: auto; font-variant-numeric: tabular-nums; }

.nd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* ---------- 7×24 快讯时间轴 ----------
   设计要点：
   1. 整块限高，超出部分渐隐收起，由「查看更多」进入完整页
   2. 时间标签与首行文字顶部对齐（align-items: flex-start）
   3. 每条最多 2 行，超出省略，保证行高一致、视觉整齐
*/
.newsflash { padding: 2px 20px 18px; }

/* 时间轴左侧竖线 */
.flash-item {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0 10px 2px;
  border-bottom: 1px solid var(--c-sep);
}
.flash-item:last-child { border-bottom: none; }

/* 时间徽章：固定宽度，与内容首行顶部对齐 */
.flash-item time {
  flex: 0 0 auto;
  min-width: 46px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-red); font-weight: 700; font-size: 12px;
  font-variant-numeric: tabular-nums; letter-spacing: .2px;
  background: var(--c-red-l); border-radius: var(--r-xs);
  margin-top: 1px;
}

/* 正文：最多 2 行后省略，保证每条高度可控 */
.flash-item .fx {
  flex: 1; min-width: 0;
  font-size: 13.5px; line-height: 1.75; color: var(--c-label);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s var(--ease);
}
.flash-item:hover .fx { color: var(--c-red); }

/* 外层滚动区：限高 + 底部渐隐 */
.flash-wrap { position: relative; }
.flash-scroll {
  max-height: 336px;            /*约 7 条，超出收起 */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}
.flash-more {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 14px; padding: 10px 0;
  font-size: 13px; font-weight: 600; color: var(--c-red);
  background: var(--c-red-l); border-radius: var(--r-sm);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.flash-more:hover { background: #FBE3E4; transform: translateY(-1px); }
.flash-more::after { content: '›'; font-size: 15px; line-height: 1; }

/* 空态 */
.flash-empty {
  padding: 26px 0; text-align: center;
  color: var(--c-label-3); font-size: 13px;
}

/* ---------- 排行榜 ---------- */
.rank { padding: 4px 20px 16px; counter-reset: rk; }
.rank li {
  display: flex; align-items: center; gap: 11px; padding: 11px 0;
  border-bottom: 1px solid var(--c-sep);
}
.rank li:last-child { border-bottom: none; }
.rank .no {
  width: 20px; height: 20px; flex-shrink: 0; font-size: 11px; font-weight: 700;
  color: var(--c-label-2); background: var(--c-fill-2); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.rank li:nth-child(1) .no { background: var(--c-red); color: #fff; box-shadow: var(--sh-red); }
.rank li:nth-child(2) .no { background: var(--c-gold); color: #fff; }
.rank li:nth-child(3) .no { background: var(--c-gold-l); color: #fff; }
.rank .tt {
  flex: 1; font-size: 13.5px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-weight: 500;
}
.rank .tt:hover { color: var(--c-red); }
.rank .heat { color: var(--c-label-3); font-size: 11.5px; flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---------- 标签云 ---------- */
.tagcloud { padding: 14px 20px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
  font-size: 12.5px; padding: 5px 13px; border-radius: var(--r-pill);
  background: var(--c-fill); color: var(--c-label-2);
  font-weight: 500; transition: all .25s var(--ease);
}
.tagcloud a:hover { background: var(--c-red); color: #fff; transform: translateY(-1px); }

/* ---------- 焦点图（侧栏） ---------- */
.focus-ad {
  background: linear-gradient(145deg, var(--c-red) 0%, var(--c-red-d) 55%, var(--c-gold-d) 120%);
  border-radius: var(--r-lg); color: #fff; padding: 22px;
  position: relative; overflow: hidden; margin-bottom: 18px;
  box-shadow: var(--sh-red);
}
.focus-ad::before {
  content: ''; position: absolute; right: -30px; bottom: -30px;
  width: 118px; height: 118px; border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.focus-ad::after {
  content: ''; position: absolute; right: 34px; top: -22px;
  width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .07);
}
.focus-ad .k { font-size: 10.5px; letter-spacing: 2.6px; opacity: .82; font-weight: 600; }
.focus-ad h4 { font-size: 19px; margin: 8px 0; letter-spacing: .5px; font-weight: 700; }
.focus-ad p { font-size: 12.5px; line-height: 1.8; opacity: .93; }
.focus-ad .btn {
  display: inline-block; margin-top: 14px; background: #fff; color: var(--c-red);
  font-size: 12.5px; font-weight: 700; padding: 7px 18px; border-radius: var(--r-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
  transition: transform .25s var(--ease);
}
.focus-ad .btn:hover { transform: translateY(-1px); }

/* ---------- 面包屑 ---------- */
.crumb {
  font-size: 12.5px; color: var(--c-label-3); padding: 6px 0 14px;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.crumb a { color: var(--c-label-2); font-weight: 500; }
.crumb a:hover { color: var(--c-red); }
.crumb .sep { color: var(--c-label-3); }

/* ---------- 频道页头（红金渐变） ---------- */
.chan-hero {
  background: linear-gradient(130deg, var(--c-red) 0%, var(--c-red-d) 52%, var(--c-gold-d) 118%);
  border-radius: var(--r-xl); color: #fff; padding: 28px 30px;
  margin-bottom: 18px; position: relative; overflow: hidden;
  box-shadow: var(--sh-red);
}
.chan-hero::before {
  content: ''; position: absolute; right: -40px; bottom: -46px;
  width: 168px; height: 168px; border-radius: 50%; background: rgba(255, 255, 255, .09);
}
.chan-hero::after {
  content: ''; position: absolute; right: 84px; top: -36px;
  width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.chan-hero h2 { font-size: 25px; letter-spacing: 2px; font-weight: 700; }
.chan-hero p {
  margin-top: 9px; font-size: 13.5px; opacity: .93; max-width: 720px; line-height: 1.8;
}
/* 内容计数：改为玻璃质感胶囊徽章，避免大数字孤立占位 */
.chan-hero .stat {
  margin-left: auto; flex-shrink: 0;
  display: flex; align-items: baseline; gap: 5px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 7px 15px; border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chan-hero .stat b {
  font-size: 17px; font-weight: 700; letter-spacing: -.3px;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}
.chan-hero .inner { display: flex; align-items: center; gap: 24px; position: relative; }
.chan-hero .stat span { display: inline; font-size: 11.5px; opacity: .88; font-weight: 500; }

/* 数据表（iOS 分组列表） */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  background: var(--c-fill); color: var(--c-label-2); font-weight: 600; text-align: left;
  padding: 11px 14px; border-bottom: 1px solid var(--c-sep); white-space: nowrap;
}
.tbl th:first-child { border-top-left-radius: var(--r-sm); }
.tbl th:last-child { border-top-right-radius: var(--r-sm); }
.tbl td {
  padding: 12px 14px; border-bottom: 1px solid var(--c-sep);
  font-variant-numeric: tabular-nums;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .2s var(--ease); }
.tbl tbody tr:hover { background: var(--c-red-l); }
.tbl .num { text-align: right; }

/* ---------- 财经号 ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 20px 22px; }
.media-card {
  border: 1px solid var(--c-sep); border-radius: var(--r-md); padding: 16px;
  display: flex; gap: 13px; background: var(--c-white);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease);
}
.media-card:hover {
  border-color: rgba(224, 31, 38, .3);
  box-shadow: var(--sh-2); transform: translateY(-3px);
}
.media-ava {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; color: #fff;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-1);
}
.media-card h4 { font-size: 15.5px; font-weight: 600; letter-spacing: -.2px; }
.media-card .tp {
  font-size: 11px; color: var(--c-gold-d); background: var(--c-gold-bg);
  padding: 1px 7px; border-radius: var(--r-pill); display: inline-block; font-weight: 600;
}
.media-card p {
  font-size: 12.5px; color: var(--c-label-2); margin: 7px 0; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media-card .ft { font-size: 11.5px; color: var(--c-label-3); display: flex; gap: 12px; }

/* ---------- 文章详情 ---------- */
.article {
  background: var(--c-bg-2); border: 1px solid var(--c-sep);
  border-radius: var(--r-lg); padding: 34px 44px 46px; box-shadow: var(--sh-1);
}
.article h1 { font-size: 29px; line-height: 1.4; font-weight: 700; letter-spacing: -.6px; }
.article .lead {
  margin: 18px 0; padding: 15px 19px;
  background: var(--c-gold-bg); border-radius: var(--r-md);
  border-left: 3px solid var(--c-gold);
  color: var(--c-label-2); font-size: 14.5px; line-height: 1.85;
}
.article .ameta {
  display: flex; align-items: center; gap: 12px; padding: 15px 0;
  border-top: 1px solid var(--c-sep); border-bottom: 1px solid var(--c-sep);
  font-size: 12.5px; color: var(--c-label-3);
}
.article .body { margin-top: 26px; font-size: 15.5px; line-height: 2; color: #2b3138; }
.article .body p { margin-bottom: 20px; }
.article .body h3 {
  font-size: 18.5px; margin: 32px 0 14px; font-weight: 700;
  padding-left: 13px; border-left: 4px solid var(--c-red);
  border-radius: 2px; line-height: 1.3; letter-spacing: -.3px;
}
.article .body figure { margin: 24px 0; }
.article .body .cap { font-size: 12.5px; color: var(--c-label-3); text-align: center; margin-top: 10px; }
.article .tags {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--c-sep);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 12.5px; color: var(--c-label-3);
}
.article .tags a {
  background: var(--c-fill); padding: 4px 13px; border-radius: var(--r-pill);
  color: var(--c-label-2); font-weight: 500; transition: all .25s var(--ease);
}
.article .tags a:hover { background: var(--c-red); color: #fff; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 8px; padding: 22px 0 6px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; padding: 0 13px;
  border: 1px solid var(--c-sep); border-radius: 10px;
  background: var(--c-white); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--c-label-2); font-weight: 500;
  transition: all .25s var(--ease);
}
.pager a:hover { border-color: var(--c-red); color: var(--c-red); }
.pager .on {
  background: var(--c-red); border-color: var(--c-red); color: #fff;
  font-weight: 700; box-shadow: var(--sh-red);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--c-white);
  border-top: 1px solid var(--c-sep);
  color: var(--c-label-2);
}
.footer-links {
  padding: 26px 0; border-bottom: 1px solid var(--c-sep);
  display: flex; gap: 54px; flex-wrap: wrap; font-size: 13px;
}
.footer-links .fg { color: var(--c-label); font-weight: 600; margin-bottom: 10px; font-size: 13.5px; }
.footer-links .fg::before {
  content: ''; display: inline-block; width: 3px; height: 12px;
  background: linear-gradient(180deg, var(--c-red), var(--c-gold));
  border-radius: 2px; margin-right: 7px; vertical-align: -1px;
}
.footer-links .col { display: flex; flex-direction: column; gap: 8px; }
.footer-links .col a { color: var(--c-label-2); font-size: 12.5px; }
.footer-links .col a:hover { color: var(--c-red); }
.footer-info { padding: 22px 0 30px; font-size: 12.5px; color: var(--c-label-3); line-height: 2; }
.footer-info .fl { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.footer-info .fl .mk {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(145deg, var(--c-red), var(--c-gold));
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.footer-info .fl b { color: var(--c-label); font-size: 15px; letter-spacing: .5px; font-weight: 700; }
.footer-info .fl span { color: var(--c-label-3); font-size: 12.5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1120px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  .media-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .wrap { padding: 0 16px; }
  .nav {
    position: fixed; left: 0; right: 0; top: 99px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: var(--glass, blur(20px));
    backdrop-filter: var(--glass, blur(20px));
    flex-direction: column; border-top: 1px solid var(--c-sep);
    box-shadow: var(--sh-2);
    max-height: 0; overflow: hidden; margin-left: 0;
    transition: max-height .38s var(--ease-out);
  }
  .nav.open { max-height: 460px; }
  .nav a {
    height: 48px; padding: 0 20px; font-size: 15px;
    border-bottom: 1px solid var(--c-sep); border-radius: 0;
  }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .search-box input { width: 150px; }
  .headline { grid-template-columns: 1fr; }
  .hl-main { border-right: none; border-bottom: 1px solid var(--c-sep); }
  .news-item { grid-template-columns: 1fr; }
  .news-item .pic { height: 176px; order: -1; }
  .nd-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .article { padding: 26px 20px 32px; }
  .article h1 { font-size: 22px; letter-spacing: -.3px; }
  .article .body { font-size: 15px; }
  .top-links { display: none; }
  .chan-hero { padding: 20px; border-radius: var(--r-lg); }
  .chan-hero h2 { font-size: 20px; }
  .chan-hero p { font-size: 13px; }
  .chan-hero .inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .chan-hero .stat { margin-left: 0; align-self: flex-start; padding: 5px 13px; }
  .chan-hero .stat b { font-size: 15px; }
  .footer-links { gap: 32px; }
}

@media (max-width: 560px) {
  .side { grid-template-columns: 1fr; }
  .logo-text span { display: none; }
  .hot-tags a:nth-child(n+4) { display: none; }
  .card-bd, .card-hd { padding-left: 16px; padding-right: 16px; }
  .hl-main { padding: 16px; }
  .hl-side { padding: 8px 16px 14px; }
  .chan-hero { border-radius: var(--r-lg); }
  .article { border-radius: var(--r-md); }
}

/* ---------- 广告 Banner ---------- */
.ad-banner {
  display: block; position: relative;
  margin: 0 0 18px;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-fill);
  border: 1px solid var(--c-sep);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ad-banner:hover { transform: translateY(-2px); box-shadow: var(--sh-red); }
/* 图片按原始宽高比自适应，不裁剪、不留白 */
.ad-banner img {
  display: block; width: 100%;
  height: auto;                 /* 保持原图比例 */
  min-height: 120px;            /* 加载中的占位高度，避免塌陷成0 */
  background: var(--c-fill);   /* 加载中显示浅灰，不闪白 */
}
/* 图片加载完成后去掉占位背景 */
.ad-banner img.loaded { background: none; }
/* 移动端适当收紧间距，避免广告占满屏 */
@media (max-width: 720px) {
  .ad-banner { margin-bottom: 12px; border-radius: var(--r-md); }
}
/* 图片加载失败时的兜底：渐变 + 文案 */
.ad-fallback {
  display: flex; align-items: center; justify-content: center;
  min-height: 96px; padding: 18px;
  background: linear-gradient(135deg, var(--c-red) 0%, var(--c-gold) 100%);
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 1px;
}
/* 右上角广告标识 */
.ad-mark {
  position: absolute; top: 8px; right: 10px;
  background: rgba(0,0,0,.28); color: #fff;
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  letter-spacing: .5px; pointer-events: none;
}
/* 侧栏广告：纵向 */
.ad-side { margin-bottom: 16px; }
.ad-side img { max-height: 260px; }

/* ---------- 文章配图：真实图片替代纯色块 ---------- */
.news-item .pic,
.pic-img {
  background-size: cover;
  background-position: center;
  position: relative;
}
/* 图片加载失败时保留渐变底色，不留白块 */
.news-item .pic::after,
.hl-main .pic::after {
  content: ''; position: absolute; inset: 0;
  background: inherit; opacity: .001;
}
