@charset "utf-8";
/* ==========================================================================
   视点网 shidiannet.com — 宽屏改版样式表
   配色沿袭原站：主色 #17a2b8（青蓝）/ 强调色 #d32f2f（红）/ 中性灰阶
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 品牌主色（原站 bg-info） */
  --brand: #17a2b8;
  --brand-600: #1493a7;
  --brand-700: #128293;
  --brand-800: #117a8b;
  --brand-900: #0d5f6c;
  --brand-50: #e8f6f8;
  --brand-25: #f3fafb;

  /* 强调色（原站 hover/重点红） */
  --accent: #d32f2f;
  --accent-700: #b71c1c;
  --accent-50: #fdecec;

  /* 中性色 */
  --ink: #333;
  --ink-2: #444;
  --muted: #666;
  --muted-2: #999;
  --muted-3: #969696;
  --line: #eee;
  --line-2: #e5e5e5;
  --line-3: #ccc;
  --soft: #f5f5f5;
  --soft-2: #fafafa;
  --white: #fff;
  --dark: #222;

  /* 尺寸 */
  --wrap: 1560px;        /* 宽屏主容器 */
  --wrap-wide: 1760px;   /* 超大屏容器 */
  --read: 820px;         /* 正文可读宽度 */
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 62px;

  /* 阴影 */
  --sh-1: 0 1px 3px rgba(17, 26, 32, .06);
  --sh-2: 0 6px 18px rgba(17, 26, 32, .08);
  --sh-3: 0 14px 40px rgba(13, 95, 108, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "-apple-system, BlinkMacSystemFont, "PingFang SC",
               "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC",
               sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--brand); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; color: var(--ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- 3. 布局容器（宽屏自适应） ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 40px);
}
.wrap-wide { max-width: var(--wrap-wide); }
.section { padding-block: clamp(30px, 1.6vw, 56px); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 4. 站点头部 + 导航 ---------- */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-800));
  display: grid; place-items: center;
  color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -1px;
  box-shadow: var(--sh-2);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; justify-content: center; gap: 2px; }
.brand-slogan { font-size: 16px; font-weight: 700; color: var(--brand-700); letter-spacing: .5px; }
.today { font-size: 12.5px; color: var(--muted-2); font-weight: 500; letter-spacing: .3px; }
.brand-logo { height: 46px; width: auto; display: block; flex: 0 0 auto; }

.mast-search { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.search-box {
  position: relative; width: min(420px, 100%);
}
.search-box input {
  width: 100%; height: 42px; padding: 0 46px 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--soft); font-size: 14px; color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-box input:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px var(--brand-50);
}
.search-box button {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 14px;
  transition: background .2s;
}
.search-box button:hover { background: var(--brand-800); }

/* 主导航 */
.mainnav {
  position: sticky; top: 0; z-index: 90;
  background: linear-gradient(90deg, var(--brand-800) 0%, var(--brand) 55%, var(--brand-600) 100%);
  box-shadow: 0 2px 12px rgba(13, 95, 108, .18);
  transition: box-shadow .25s var(--ease);
}
.mainnav.is-pinned { box-shadow: 0 6px 22px rgba(13, 60, 70, .26); }
.nav-inner { display: flex; align-items: stretch; gap: 16px; min-height: var(--nav-h); }
/* 白色 logo：仅在主导航置顶（页面下拉滚动）时出现于导航最前面 */
.nav-logo { display: none; align-items: center; flex: 0 0 auto; }
.mainnav.is-pinned .nav-logo { display: flex; }
.nav-logo img { height: 34px; width: auto; display: block; }
/* 汉堡按钮：仅手机版显示，桌面版隐藏 */
.nav-toggle { display: none; }

/* 主导航：频道等分占满整条，文字居中，悬停/选中高亮 */
.navlist { display: flex; align-items: stretch; flex: 1 1 auto; }
.navlist > li { display: flex; flex: 1 1 0; }
.navlist > li > a {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 0 clamp(6px, .7vw, 14px); min-height: var(--nav-h);
  color: rgba(255, 255, 255, .88); font-size: 16px; font-weight: 500;
  position: relative; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.navlist > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 10px;
  width: 54%; height: 3px; border-radius: 3px; background: #fff;
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform .25s var(--ease);
}
.navlist > li > a:hover { color: #fff; background: rgba(255, 255, 255, .10); }
.navlist > li > a.is-active { color: #fff; background: rgba(255, 255, 255, .14); }
.navlist > li > a:hover::after, .navlist > li > a.is-active::after { transform: translateX(-50%) scaleX(1); }

/* 窄屏：频道不强行等分，改为可横向滑动，避免拥挤 */
@media (max-width: 900px) {
  .nav-inner { gap: 10px; }
  .navlist { overflow-x: auto; scrollbar-width: none; }
  .navlist::-webkit-scrollbar { display: none; }
  .navlist > li { flex: 0 0 auto; min-width: 66px; }
  .navlist > li > a { padding: 0 12px; }
}

/* ---------- 6. 快讯跑马灯 ---------- */
.flash {
  background: #fff; border-bottom: 1px solid var(--line);
}
.flash .wrap { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.flash-tag {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .5px;
}
.flash-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.flash-view { flex: 1 1 auto; overflow: hidden; position: relative; height: 24px; }
.flash-track { display: flex; flex-direction: column; animation: rollup 18s linear infinite; }
.flash-track li { height: 24px; line-height: 24px; font-size: 15px; }
.flash-track li a { color: var(--ink-2); }
.flash-track li a:hover { color: var(--accent); }
.flash-view:hover .flash-track { animation-play-state: paused; }
@keyframes rollup {
  0% { transform: translateY(0); }
  22% { transform: translateY(0); }
  25% { transform: translateY(-24px); }
  47% { transform: translateY(-24px); }
  50% { transform: translateY(-48px); }
  72% { transform: translateY(-48px); }
  75% { transform: translateY(-72px); }
  97% { transform: translateY(-72px); }
  100% { transform: translateY(-96px); }
}

/* ---------- 7. Hero 不对称区 ---------- */
.hero { background: var(--soft); padding-top: clamp(0.5rem, 1.6vw, 1.0rem); padding-bottom: clamp(0.5rem, 1.6vw, 1.0rem);}
.hero-grid {
  display: grid; gap: clamp(16px, 1.6vw, 26px);
  grid-template-columns: minmax(0, 1.72fr) minmax(320px, .95fr);
  align-items: stretch;
}
.hero-grid > * { min-width: 0; }
@media (max-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* 焦点图
   注意：.focus 是 .hero-grid 的 grid item，默认的 align-items:stretch 会覆盖
   aspect-ratio，把高度撑成右栏头条榜的高度，导致图片被裁成窄高比例（即"变形"）。
   必须用 align-self:start 锁死 16:9，让高度只由宽度决定。 */
.focus {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 9; background: var(--brand-900);
  box-shadow: var(--sh-2);
  align-self: start;
}
.focus-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .7s var(--ease);
}
.focus-slide.is-on { opacity: 1; }
.focus-slide img { width: 100%; height: 100%; object-fit: cover; }
.focus-cap {
  position: absolute; inset: auto 0 0 0; padding: clamp(40px, 8%, 78px) clamp(20px, 4%, 46px) clamp(18px, 3%, 30px);
  background: linear-gradient(to top, rgba(8, 32, 38, .92) 8%, rgba(8, 32, 38, .55) 48%, transparent 100%);
  color: #fff;
}
.focus-kicker {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px;
  margin-bottom: 12px; letter-spacing: 1px;
}
.focus-cap h2 { font-size: clamp(20px, 2.1vw, 32px); color: #fff; margin-bottom: 8px; }
.focus-cap h2 a { color: #fff; }
.focus-cap h2 a:hover { color: #ffd9d9; }
.focus-meta { font-size: 13px; color: rgba(255, 255, 255, .75); }
.focus-dots {
  position: absolute; right: 20px; bottom: 22px; display: flex; gap: 7px; z-index: 3;
}
.focus-dots button {
  width: 26px; height: 4px; border: 0; padding: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .4); transition: background .25s, width .25s;
}
.focus-dots button.is-on { background: var(--accent); width: 40px; }

/* 头条榜 */
.headline-panel {
  background: #fff; border-radius: var(--radius); padding: 20px 20px 12px;
  box-shadow: var(--sh-1); display: flex; flex-direction: column;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--line);
}
.panel-title {
  font-size: 19px; font-weight: 800; color: var(--brand-800);
  display: flex; align-items: center; gap: 8px;
}
.panel-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(var(--accent), var(--brand));
}
.panel-more { font-size: 13px; color: var(--muted-2); }
.panel-more:hover { color: var(--accent); }

.rank-list li { border-bottom: 1px dashed var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-item {
  display: flex; gap: 12px; padding: 6px 0; align-items: flex-start;
}
.rank-num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
  background: var(--soft); color: var(--muted-2);
  font-family: Georgia, "Times New Roman", serif;
}
.rank-list li:nth-child(1) .rank-num,
.rank-list li:nth-child(2) .rank-num,
.rank-list li:nth-child(3) .rank-num {
  background: var(--accent); color: #fff;
}
.rank-body { min-width: 0; }
.rank-body h3 {
  font-size: 15.5px; font-weight: 500; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-body .rmeta { font-size: 12px; color: var(--muted-2); margin-top: 4px; }

/* ---------- 8. 频道卡片 ---------- */
.channels {
  display: grid; gap: clamp(10px, 1vw, 16px);
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
@media (max-width: 1280px) { .channels { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) { .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chan-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 18px 14px; text-align: center; color: #fff;
  background: linear-gradient(140deg, var(--brand-700), var(--brand));
  box-shadow: var(--sh-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.chan-card::after {
  content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px;
  border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.chan-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); color: #fff; }
.chan-ico { font-size: 22px; line-height: 1; margin-bottom: 8px; opacity: .95; }
.chan-name { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.chan-sub { font-size: 11px; opacity: .78; margin-top: 3px; }
.chan-card:nth-child(3n+2) { background: linear-gradient(140deg, var(--brand), var(--brand-600)); }
.chan-card:nth-child(3n) { background: linear-gradient(140deg, #1b7f8f, var(--brand-800)); }

/* ---------- 9. 主体两栏 ---------- */
.layout {
  display: grid; gap: clamp(18px, 2vw, 34px);
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--sh-1);
  overflow: hidden;
}

/* 频道内容块 */
.block { margin-bottom: clamp(20px, 2.4vw, 34px); }
.block-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.block-title {
  font-size: clamp(19px, 1.6vw, 24px); font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.block-title .bar {
  width: 5px; height: 22px; border-radius: 3px;
  background: var(--brand);
}
.block-title .en {
  font-size: 12px; font-weight: 500; color: var(--muted-3);
  letter-spacing: 1.5px; text-transform: uppercase; align-self: flex-end;
}
.block-nav { display: flex; gap: 14px; font-size: 13px; color: var(--muted-2); flex-wrap: wrap; }
.block-nav a:hover { color: var(--accent); }

/* 块内：1 大图 + 列表 */
.block-grid {
  display: grid; gap: clamp(16px, 1.8vw, 28px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
@media (max-width: 900px) { .block-grid { grid-template-columns: 1fr; } }
.lead-article { display: block; }
.lead-thumb {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 10; background: var(--soft);
}
.lead-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lead-article:hover .lead-thumb img { transform: scale(1.06); }
.lead-thumb .badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
}
.lead-article h3 {
  font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; margin: 14px 0 8px;
  line-height: 1.45;
}
.lead-article:hover h3 { color: var(--brand-800); }
.lead-article .dek { color: var(--muted); font-size: 14.5px; line-height: 1.75; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta-line { font-size: 12.5px; color: var(--muted-2); display: flex; gap: 12px; flex-wrap: wrap; }

.mini-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-list li:first-child { padding-top: 0; }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-item { display: flex; gap: 14px; align-items: flex-start; }
.mini-thumb {
  flex: 0 0 auto; width: 138px; aspect-ratio: 16 / 10; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--soft);
  align-self: flex-start;   /* 防止 flex stretch 覆盖 aspect-ratio */
}
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.mini-item:hover .mini-thumb img { transform: scale(1.08); }
.mini-body { min-width: 0; }
.mini-body h4 {
  font-size: 16px; font-weight: 500; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mini-item:hover h4 { color: var(--brand-800); }
@media (max-width: 520px) { .mini-thumb { width: 104px; } }

/* 三栏卡片组 */
.card-grid-3 {
  display: grid; gap: clamp(12px, 1.4vw, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid-3 { grid-template-columns: 1fr; } }
.post-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sh-1); transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.07); }
.post-card .body { padding: 14px 16px 16px; flex: 1 1 auto; display: flex; flex-direction: column; }
.post-card h3 {
  font-size: 16.5px; font-weight: 600; line-height: 1.8; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .dek {
  font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .meta-line { margin-top: auto; }

/* ---------- 10. 侧栏 ---------- */
.side { position: sticky; top: calc(var(--nav-h) + 14px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.side > * { min-width: 0; }
@media (max-width: 1100px) { .side { position: static; } }
.side-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--sh-1);
  padding: 16px 18px;
}
.side-card .panel-head { padding-bottom: 10px; margin-bottom: 4px; }
.tabs { display: flex; gap: 6px; }
.tabs button {
  border: 0; background: var(--soft); color: var(--muted);
  font-size: 13px; padding: 5px 12px; border-radius: 999px; transition: all .2s;
}
.tabs button.is-on { background: var(--brand); color: #fff; }
.tab-pane { display: none; }
.tab-pane.is-on { display: block; }

.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
  font-size: 13px; color: var(--muted); background: var(--soft);
  padding: 5px 12px; border-radius: 999px; transition: all .2s;
}
.tagcloud a:hover { background: var(--brand); color: #fff; }

.follow { display: flex; gap: 12px; align-items: center; }
.follow-qr {
  width: 88px; height: 88px; border-radius: var(--radius-sm); flex: 0 0 auto;
  background: var(--brand-50); display: grid; place-items: center;
  color: var(--brand-800); font-size: 12px; text-align: center; padding: 6px;
  border: 1px dashed var(--brand);
}
.follow-txt { font-size: 13px; color: var(--muted); line-height: 1.7; }
.follow-txt strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 2px; }

/* ---------- 11. 图集横滚 ---------- */
.gallery-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--line-3); border-radius: 3px; }
.gal-card { scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; }
.gal-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.gal-card:hover img { transform: scale(1.06); }
.gal-cap {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px;
  background: linear-gradient(to top, rgba(8, 32, 38, .9), transparent);
  color: #fff; font-size: 15px; font-weight: 400; line-height: 1.5;
}

/* ---------- 12. 频道页（列表页）专属 ---------- */
.crumb {
  font-size: 13px; color: var(--muted-2); padding: 14px 0;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.crumb a { color: var(--muted); }
.crumb .sep { color: var(--line-3); }
.crumb .cur { color: var(--brand-800); }

.chan-hero {
  background: linear-gradient(120deg, var(--brand-800), var(--brand) 60%, var(--brand-600));
  border-radius: var(--radius); padding: clamp(26px, 3vw, 44px);
  color: #fff; box-shadow: var(--sh-2);
}
.chan-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 52px); letter-spacing: 2px; }
.chan-hero .en {
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  opacity: .7; margin-top: 6px;
}
.chan-hero .intro {
  margin-top: 14px; font-size: 15px; line-height: 1.8; max-width: 780px;
  color: rgba(255, 255, 255, .9);
}
.chan-stats { display: flex; gap: clamp(18px, 3vw, 44px); margin-top: 22px; flex-wrap: wrap; }
.chan-stats div strong {
  display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.2;
}
.chan-stats div span { font-size: 12.5px; opacity: .82; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; background: #fff; border-radius: var(--radius);
  padding: 12px 18px; box-shadow: var(--sh-1); margin-bottom: 18px;
}
.sort-tabs { display: flex; gap: 4px; }
.sort-tabs a {
  font-size: 14px; padding: 6px 16px; border-radius: 999px; color: var(--muted);
}
.sort-tabs a.is-on { background: var(--brand-50); color: var(--brand-800); font-weight: 600; }
.toolbar .count { font-size: 13px; color: var(--muted-2); }

/* 列表行 */
.entry-list { display: grid; gap: 14px; }
.entry {
  background: #fff; border-radius: var(--radius); box-shadow: var(--sh-1);
  padding: 18px; display: grid; gap: 20px;
  grid-template-columns: 268px minmax(0, 1fr);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.entry .thumb {
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--soft);
  align-self: start;   /* grid item，防止 stretch 覆盖 aspect-ratio */
}
.entry .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.entry:hover .thumb img { transform: scale(1.06); }
.entry-body { min-width: 0; display: flex; flex-direction: column; }
.entry h2 {
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.45; margin-bottom: 10px;
}
.entry:hover h2 { color: var(--brand-800); }
.entry .dek {
  color: var(--muted); font-size: 14.5px; line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.entry-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.entry-tags a {
  font-size: 12px; color: var(--brand-800); background: var(--brand-50);
  padding: 3px 10px; border-radius: 4px;
}
.entry-tags a:hover { background: var(--brand); color: #fff; }
.entry .meta-line { margin-top: auto; padding-top: 10px; }
.entry .meta-line .src { color: var(--muted); }
@media (max-width: 720px) {
  .entry { grid-template-columns: 1fr; gap: 14px; }
  .entry .thumb { aspect-ratio: 16 / 9; }
}

.pager { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  background: #fff; display: grid; place-items: center; font-size: 14px;
  color: var(--ink-2); box-shadow: var(--sh-1);
}
.pager a:hover { background: var(--brand); color: #fff; }
.pager .is-on { background: var(--brand); color: #fff; font-weight: 700; }
.pager .off { color: var(--line-3); }
/* 兼容帝国CMS分页标签 [!--show.listpage--] / [!--show.page--] 输出（b/strong/select） */
.pager b, .pager strong {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
  background: var(--brand); color: #fff; display: inline-grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.pager select, .pager input {
  height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-2); font-size: 14px;
}

/* ---------- 13. 文章页专属 ---------- */
.article-wrap { background: var(--white); }
.art-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.art-chan {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.art-head h1 {
  font-size: clamp(26px, 3.1vw, 42px); line-height: 1.32; letter-spacing: -.4px;
  font-weight: 500; color: var(--dark);
}
.art-meta {
  display: flex; align-items: center; gap: clamp(8px, 2vw, 10px); flex-wrap: wrap;
  margin-top: 20px; font-size: 13.5px; color: var(--muted-2);
}
.art-meta .src { color: var(--brand-800); font-weight: 400; }
.art-meta .act { display: flex; gap: 14px; margin-left: auto; }
.art-meta .act button {
  border: 1px solid var(--line-2); background: #fff; border-radius: 999px;
  padding: 5px 14px; font-size: 13px; color: var(--muted); transition: all .2s;
}
.art-meta .act button:hover { border-color: var(--brand); color: var(--brand); }

.art-layout {
  display: grid; gap: clamp(20px, 2.4vw, 46px);
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}
@media (max-width: 1180px) { .art-layout { grid-template-columns: 1fr; } }

/* 要点速览（GEO 核心模块） */
.takeaways {
  background: linear-gradient(180deg, var(--brand-25), #fff);
  border: 1px solid var(--brand-50); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 20px 24px; margin: 26px 0;
}
.takeaways h2 {
  font-size: 17px; color: var(--brand-800); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.takeaways ol { counter-reset: tk; margin: 0; }
.takeaways li {
  counter-increment: tk; position: relative; padding-left: 30px;
  margin-bottom: 10px; font-size: 15.5px; line-height: 1.8; color: var(--ink-2);
}
.takeaways li::before {
  content: counter(tk); position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li strong { color: var(--ink); }

/* 正文排版 */
/* 注意：主栏（.art-layout 1fr）宽屏约 1203px，若给 .art-body 设 max-width 会在右侧留出大片空白。
   改版要求正文占满主栏，故不使用可读宽度上限，让正文与标题/要点速览/相关阅读同宽。 */
.art-body { max-width: none; font-size: 17.5px; line-height: 1.95; color: var(--ink-2); }
.art-body > p { margin-bottom: 1.15em; text-align: justify; text-indent: 2em;}
.art-body > p img{ clear: both; display: block; margin: 0 auto; width: 40rem; height: auto; max-width: 67.5rem;}
.art-body > p>em,.art-body > p>em a {font-style: normal;font-size: 1.1rem;color: #999}
.art-body > p.lead::first-letter { font-size: 1em; }
.art-body h2 {
  font-size: clamp(20px, 1.9vw, 25px); margin: 1.7em 0 .7em; color: var(--dark);
  padding-left: 13px; border-left: 4px solid var(--brand); line-height: 1.4;
}
.art-body h3 { font-size: 18.5px; margin: 1.4em 0 .6em; color: var(--brand-800); }
.art-body a { color: var(--brand-800); text-decoration: underline; text-decoration-color: var(--brand-50); text-underline-offset: 3px; }
.art-body strong { color: var(--ink); }
.art-body figure { margin: 26px 0; }
.art-body figure img { width: 100%; border-radius: var(--radius-sm); }
.art-body figcaption {
  margin-top: 10px; font-size: 13.5px; color: var(--muted-2); text-align: center; line-height: 1.7;
}
.art-body blockquote {
  margin: 26px 0; padding: 16px 20px; background: var(--soft);
  border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-size: 16px;
}
.art-body ul.bullets { margin: 0 0 1.2em; }
.art-body ul.bullets li { position: relative; padding-left: 22px; margin-bottom: .5em; }
.art-body ul.bullets li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.art-note {
  margin-top: .8rem; padding: 14px 18px; background: var(--soft); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--muted); line-height: 1.8;
}

/* FAQ（GEO 核心模块） */
.faq { margin: 38px 0 0; border-top: 2px solid var(--line-2); padding-top: 26px; }
.faq h2 { font-size: clamp(19px, 1.7vw, 23px); margin-bottom: 16px; color: var(--dark); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 14px 34px 14px 0; font-size: 16.5px; font-weight: 600;
  color: var(--ink); position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 6px; top: 12px;
  font-size: 20px; color: var(--brand); font-weight: 400;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .ans { padding: 0 20px 16px 0; font-size: 15.5px; color: var(--muted); line-height: 1.85; }

/* 标签（居左）+ 责任编辑（居右），同一行 */
.art-foot-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: .8rem 0 0;
}
.art-editor {
  font-size: 13.5px; color: var(--muted-2); white-space: nowrap;
  margin-left: auto;   /* 保证换行后仍靠右 */
}
.art-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.art-tags a {
  font-size: 13.5px; background: var(--brand-50); color: var(--brand-800);
  padding: 6px 14px; border-radius: 999px;
}
.art-tags a:hover { background: var(--brand); color: #fff; }

/* 上下篇 */
.prevnext {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: .5rem;
}
@media (max-width: 620px) { .prevnext { grid-template-columns: 1fr; } }
.prevnext a {
  background: var(--soft); border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
}
.prevnext a:hover { background: var(--brand-50); color: var(--brand-800); }
.prevnext .lbl { display: block; font-size: 12px; color: var(--muted-2); margin-bottom: 4px; }

/* 文章页侧栏：目录 */
.toc { font-size: 14px; }
.toc ol { counter-reset: toc; border-left: 2px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 8px 12px; color: var(--muted); line-height: 1.6;
  border-left: 2px solid transparent; margin-left: -2px; transition: all .2s;
}
.toc a:hover { color: var(--brand-800); }
.toc a.is-on { color: var(--brand-800); font-weight: 600; border-left-color: var(--accent); background: var(--brand-25); }

/* 相关阅读 */
.related { display: grid; gap: 14px; }
.related .rel-item { display: flex; gap: 12px; align-items: flex-start; }
.related .rel-thumb {
  flex: 0 0 auto; width: 108px; aspect-ratio: 16 / 10; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--soft);
  align-self: flex-start;   /* 防止 flex stretch 覆盖 aspect-ratio */
}
.related .rel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related h4 {
  font-size: 14.5px; font-weight: 500; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.related .meta-line { font-size: 12px; margin-top: 5px; }

/* 正文主栏相关阅读（替代原 FAQ 位置，2 列网格） */
.rel-block { margin-top: 38px; }
.rel-block > .block-head { margin-bottom: 14px; }
.rel-block .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rel-block .rel-thumb { width: 132px; }
@media (max-width: 620px) { .rel-block .related { grid-template-columns: 1fr; } }

/* ---------- 14. 页脚 ---------- */
.footer {
  background: #16323a; color: rgba(255, 255, 255, .66);
  margin-top: clamp(10px, 4vw, 60px); font-size: 14px;
}
.footer-top {
  display: grid; gap: clamp(20px, 3vw, 46px);
  grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(0, 1fr));
  padding-block: clamp(32px, 4vw, 24px);
}
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.footer li { margin-bottom: 9px; }
.footer a { color: rgba(255, 255, 255, .66); }
.footer a:hover { color: #fff; }
.f-brand .brand-name { color: #fff; }
.f-brand p { margin-top: 12px; font-size: 13.5px; line-height: 1.9; }
.f-contact { margin-top: 14px; font-size: 13.5px; line-height: 1.9; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px;
  font-size: 13px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-bottom .links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 15. 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .flash-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 16. 移动端导航抽屉 ---------- */
@media (max-width: 1080px) {
  .masthead .wrap { min-height: 68px; flex-wrap: wrap; padding-block: 12px; }
  .mast-search { width: 100%; justify-content: stretch; }
  .search-box { width: 100%; }
  .nav-inner { gap: 12px; }
  .navlist { gap: 0; }
  .navlist > li > a { padding: 14px 12px; }
}
@media (max-width: 520px) {
  .brand-slogan { font-size: 15px; }
}

/* 打印 */
@media print {
  .mainnav, .flash, .side, .footer, .prevnext, .ad-slot, .back-top { display: none !important; }
  body { background: #fff; }
}

/* ---------- 手机版：隐藏站点头部，主导航作为顶部条（左 logo / 右 汉堡） ---------- */
@media (max-width: 768px) {
  /* 1. 隐藏站点头部 masthead */
  .masthead { display: none; }

  /* 2. 主导航：吸顶顶部条，左 logo + 右 汉堡按钮 */
  .mainnav { box-shadow: 0 2px 12px rgba(13, 95, 108, .22); }
  .nav-inner { min-height: 52px; gap: 10px; }
  /* logo 始终显示（站点头部已隐藏，导航条即首屏 logo 位置） */
  .nav-logo { display: flex; flex: 0 0 auto; }
  .nav-logo img { height: 30px; }

  /* 3. 汉堡按钮 */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    background: transparent; border: 0; cursor: pointer; flex: 0 0 auto;
  }
  .nav-toggle .bar {
    display: block; width: 24px; height: 2px; border-radius: 2px;
    background: #fff; margin: 0 auto;
    transition: transform .28s var(--ease), opacity .2s var(--ease);
  }
  .mainnav.is-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mainnav.is-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .mainnav.is-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 4. 导航列表：默认收起，展开为通栏下拉面板；一行 4 个，逐个居中 */
  .navlist {
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px; padding: 0 10px;
    flex: none;
    background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 100%);
    box-shadow: 0 14px 32px rgba(13, 60, 70, .30);
    max-height: 0; overflow: hidden;
    transition: max-height .3s var(--ease), padding .3s var(--ease);
    z-index: 5;
  }
  /* 展开时才加纵向内边距，避免收起状态因 padding 露出一条 */
  .mainnav.is-open .navlist { max-height: 78vh; overflow-y: auto; padding: 10px 10px 14px; }
  .navlist > li { display: block; flex: none; width: 100%; min-width: 0; }
  .navlist > li > a {
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 11px 2px; min-height: auto;
    font-size: 14.5px; white-space: nowrap; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
  }
  .navlist > li > a::after { display: none; }
  .navlist > li > a:hover, .navlist > li > a.is-active { background: rgba(255, 255, 255, .22); color: #fff; }
}

/* ============ 广告位（图片广告自适应） ============ */
/* 基础容器：块级 + 限宽，图片可自然铺满并随栅格缩放 */
.ad-slot {
  position: relative;
  display: block;
  min-width: 0; max-width: 100%;
  margin-block: clamp(0.5rem, 1.6vw, 1rem);
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* —— 未投放素材（广告位为空）时，显示占位框 —— */
/* 一旦放入 <img>／广告代码，:empty 不再匹配，占位外观自动消失，无需另加类名 */
.ad-slot:empty {
  display: flex; align-items: center; justify-content: center;
  min-height: 100px; padding: 14px;
  border: 1px dashed var(--line-3);
  background-color: var(--soft);
  background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.02) 0 10px, transparent 10px 20px);
  color: var(--muted-2); text-align: center;
  transition: border-color .2s var(--ease);
}
.ad-slot:empty:hover { border-color: var(--brand); }
.ad-slot:empty::after {
  content: attr(data-label);
  position: relative; z-index: 1;
  padding: 7px 18px; background: rgba(255,255,255,.86);
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .4px; white-space: nowrap;
}
/* 占位框预留高度（不用 aspect-ratio：它与 min-height 会反向推导出最小宽度，
   例如 970/120 × 100px = 808px，会把主栏撑宽导致窄屏横向滚动） */
.ad-slot.leaderboard:empty { min-height: 100px; }
.ad-slot.banner:empty      { min-height: 120px; }
.ad-slot.rectangle:empty   { min-height: 250px; }

/* —— 图片广告自适应（核心） —— */
.ad-slot img {
  display: block;
  width: 100%;            /* 宽度铺满容器 */
  height: auto;           /* 高度按原图比例自动换算，绝不拉伸变形 */
  max-width: 100%;        /* 永不溢出父容器 */
  object-fit: contain;    /* 极端比例下也不裁切画面 */
  border: 0;
}
/* 广告多以 <a><img></a> 形式投放，链接层与富媒体同样自适应 */
.ad-slot a { display: block; max-width: 100%; }
.ad-slot iframe,
.ad-slot ins,
.ad-slot embed,
.ad-slot video { display: block; max-width: 100%; }


/* 兼容旧写法：显式加 .is-filled 也能隐藏占位外观 */
.ad-slot.is-filled {
  min-height: 0; padding: 0;
  border: 0; background: none;
  aspect-ratio: auto;
  overflow: visible;
}
.ad-slot.is-filled::after { content: none; }

/* ============ 返回顶部（右侧悬浮） ============ */
.back-top {
  position: fixed; right: clamp(14px, 2vw, 34px); bottom: clamp(76px, 11vh, 130px);
  z-index: 95;
  width: 46px; height: 46px; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 18px rgba(13, 95, 108, .32);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .28s var(--ease), transform .28s var(--ease),
              visibility .28s var(--ease), background .2s var(--ease);
}
.back-top svg { width: 20px; height: 20px; display: block; }
.back-top .back-top-txt {
  font-size: 9px; line-height: 1; letter-spacing: .5px; margin-top: 1px;
}
.back-top.is-show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brand-800); }
.back-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 768px) {
  .back-top { right: 12px; bottom: 64px; width: 42px; height: 42px; }
  .back-top svg { width: 18px; height: 18px; }
}

/* ============ 文章页手机版精简 ============ */
@media (max-width: 768px) {
  /* 去掉面包屑导航（仅文章页，列表页保留） */
  .article-wrap .crumb { display: none; }
  /* 去掉频道标签 */
  .art-chan { display: none; }
  /* 去掉打印 / 字号调节 / 复制链接工具条 */
  .art-meta .act { display: none; }
  /* 去掉文章标签 */
  .article-wrap .art-tags { display: none; }
  /* 标签隐藏后责任编辑独占整行，右侧留出返回顶部按钮的避让空间 */
  .article-wrap .art-foot-row { padding-right: 46px; }
  /* 去掉文章页侧栏（首页/列表页侧栏保留） */
  .article-wrap .side, .footer .footer-top { display: none; }
  .art-body > p{ text-indent: 0;}
  .art-body > p img{ width: 100%!important; height: auto;}
}

/* ============ 帝国CMS 模板容错（空字段不塌陷） ============ */
/* 文章无标题图片时，帝国会输出 src=""，隐藏以免发起无效请求并露出破图 */
.entry .thumb img[src=""],
.mini-thumb img[src=""],
.post-card .thumb img[src=""],
.rel-thumb img[src=""],
.gal-card img[src=""],
.focus-slide img[src=""] { display: none; }
/* 空缩略图容器保留为柔和占位块 */
.entry .thumb:has(img[src=""]) { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 10px, transparent 10px 20px); }
/* 简介 / 标签为空时整块收起，不留空隙 */
.dek:empty,
.art-tags:empty
 { display: none; }
