/* corp — 大型企业资讯站。{$theme_path}/style.css → /static/corp/style.css */
:root {
  --ink: #101820;
  --ink-soft: #2a3544;
  --muted: #66758a;
  --line: #e4e9f0;
  --line-strong: #d0d8e2;
  --paper: #ffffff;
  --canvas: #f3f5f8;
  --canvas-2: #e9eef4;
  --brand: #123a5f;
  --brand-deep: #0b2740;
  --brand-mid: #1a5678;
  --brand-soft: #e8f1f7;
  --signal: #b45309;
  --signal-soft: #fff4e8;
  --shadow: 0 12px 32px rgba(16, 24, 32, 0.07);
  --shadow-sm: 0 4px 14px rgba(16, 24, 32, 0.05);
  --radius: 4px;
  --radius-lg: 8px;
  --max: 1240px;
  --header-h: 52px;
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--brand-mid); text-decoration: none; }
a:hover { color: var(--brand); }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ========== Header ========== */
.site-header {
  background: var(--brand-deep);
  color: #f5f8fb;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-top {
  background: #071621;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(245, 248, 251, 0.58);
}
.header-top-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 0;
  flex-wrap: wrap;
}
.header-top .dot { opacity: 0.35; }
.header-top .grow { flex: 1 1 auto; min-width: 12px; }
.header-top .city { margin: 0; color: #7eb6d9; }
.header-top .top-home {
  color: #9ec9e6;
  font-weight: 700;
  white-space: nowrap;
}
.header-top .top-home:hover { color: #fff; }
.header-top .top-hot {
  color: #9ec9e6;
  font-weight: 700;
  max-width: 14em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-top .top-hot:hover { color: #fff; }

/* ========== 站群导航（主栏内、延伸阅读下；完整标题可换行、五颜六色） ========== */
.fan-bar-panel { margin-bottom: 0; }
.fan-bar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 14px;
}
.fan-bar-links a {
  display: inline;
  max-width: 100%;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.55;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
}
.fan-bar-links a:hover { opacity: 0.85; text-decoration: underline; }
.fan-bar-links a span { font-weight: 700; }
.header-bar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 22px;
  min-height: var(--header-h);
  padding: 8px 0;
}
.brand {
  display: inline-block;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
}
.brand:hover { color: #fff; opacity: 0.92; }
.city:empty { display: none; }
.city { margin-right: 0.3em; color: #7eb6d9; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: rgba(245, 248, 251, 0.84);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}
.site-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.header-hot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  min-width: 0;
  color: rgba(245, 248, 251, 0.7);
  font-size: 0.82rem;
}
.header-hot .hot-label {
  flex: 0 0 auto;
  color: #f0b27a;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.header-hot a {
  min-width: 0;
  max-width: 16em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(245, 248, 251, 0.78);
  font-weight: 650;
}
.header-hot a:hover { color: #fff; }

/* ========== Masthead ========== */
.masthead {
  margin: 18px auto 0;
  padding: 20px 22px;
  background:
    linear-gradient(115deg, rgba(11, 39, 64, 0.96) 0%, rgba(26, 86, 120, 0.90) 58%, rgba(180, 83, 9, 0.55) 100%),
    var(--brand);
  color: #f7fbff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255,255,255,0.02) 12px,
    rgba(255,255,255,0.02) 24px
  );
  pointer-events: none;
}
.masthead-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr) minmax(220px, 0.95fr);
  gap: 16px 18px;
  align-items: stretch;
}
.masthead-copy { display: flex; flex-direction: column; justify-content: center; }
.kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #9ec9e6;
}
.masthead h1 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.masthead .lead {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(247, 251, 255, 0.86);
}
.masthead-mid {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}
.mast-spot {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(7, 22, 36, 0.38);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f7fbff;
  min-height: 0;
}
.mast-spot:hover { background: rgba(7, 22, 36, 0.55); color: #fff; }
.mast-spot img {
  width: 112px;
  height: 74px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  background: rgba(255,255,255,0.08);
}
.mast-spot em {
  display: block;
  margin: 0 0 4px;
  font-style: normal;
  color: #f0b27a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.mast-spot strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.masthead-rail {
  background: rgba(7, 22, 36, 0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  backdrop-filter: blur(6px);
}
.mast-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.mast-rail-head em {
  font-style: normal;
  color: rgba(247, 251, 255, 0.45);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}
.mast-focus {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mast-focus li + li { border-top: 1px solid rgba(255,255,255,0.08); }
.mast-focus a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  color: #f7fbff;
}
.mast-focus a:hover { color: #fff; }
.mast-idx {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f0b27a;
  letter-spacing: 0.04em;
  padding-top: 2px;
}
.mast-title {
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.mast-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mast-chips a {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: rgba(247, 251, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.04);
}
.mast-chips a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.crumb span { opacity: 0.5; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--brand); }

/* ========== Layout ========== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  margin: 16px auto 28px;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  overflow: hidden;
}
.panel:last-child { margin-bottom: 0; }
.panel-pad { padding: 26px 28px; }
.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-head h1,
.panel-head h2 {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-head h1::before,
.panel-head h2::before {
  content: "";
  width: 4px;
  height: 1.05em;
  background: var(--brand);
  border-radius: 2px;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ========== Feature / Hero ========== */
.feature { border: 0; }
.feature-card {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  min-height: 320px;
  color: inherit;
  background: var(--paper);
}
.feature-card:hover { color: inherit; }
.feature-media {
  margin: 0;
  background: #cfd8e3;
  min-height: 260px;
}
.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.feature-body {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border-left: 1px solid var(--line);
}
.tag {
  width: fit-content;
  padding: 4px 11px;
  background: var(--signal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  border-radius: 2px;
}
.feature-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.feature-card:hover .feature-title { color: var(--brand); }
.feature-body .info {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== News list ========== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list > li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.news-list > li:first-child { padding-top: 0; }
.news-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.news-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d5dde7;
  align-self: start;
}
.news-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-list > li:hover .news-thumb img { transform: scale(1.035); }
.news-body { min-width: 0; padding-top: 2px; }
.news-body .title {
  display: block;
  font-size: 1.18rem;
  font-weight: 780;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.news-body .title:hover { color: var(--brand); }
.meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.info {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list.compact > li { grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
.news-list.compact .news-body .title { font-size: 1.02rem; }

/* ========== Card grid ========== */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  color: inherit;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.grid-card:hover {
  color: inherit;
  transform: translateY(-2px);
}
.grid-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d5dde7;
}
.grid-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.grid-card:hover .grid-thumb img { transform: scale(1.04); }
.grid-title {
  font-weight: 750;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 0.98rem;
}
.grid-card:hover .grid-title { color: var(--brand); }

/* ========== Side ========== */
.side { display: flex; flex-direction: column; gap: 18px; }
.side .panel { margin: 0; }
.side-nav,
.rank-list { list-style: none; margin: 0; padding: 0; }
.side-nav li + li { border-top: 1px solid var(--line); }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.side-nav a::after {
  content: "›";
  color: var(--muted);
  font-size: 1.1rem;
}
.side-nav a:hover { color: var(--brand); padding-left: 4px; }
.rank-list { counter-reset: rank; }
.rank-list li { counter-increment: rank; }
.rank-list li + li { border-top: 1px solid var(--line); }
.rank-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  color: inherit;
  align-items: start;
}
.rank-list a::before {
  content: counter(rank, decimal-leading-zero);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.rank-list li:nth-child(-n+3) a::before { color: var(--signal); }
.rank-title {
  font-weight: 720;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}
.rank-list a:hover .rank-title { color: var(--brand); }
.rank-list .meta { grid-column: 2; margin-top: 4px; }

.side-thumb-list { list-style: none; margin: 0; padding: 0; }
.side-thumb-list li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.side-thumb-list a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  color: inherit;
  align-items: start;
}
.side-thumb-list img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #d5dde7;
  display: block;
}
.side-thumb-list strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 720;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.side-thumb-list em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
}
.side-thumb-list a:hover strong { color: var(--brand); }

.side-brief {
  background: linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}
.brief-lead {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}
.brief-points {
  margin: 0;
  padding: 0 0 0 1.1em;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.75;
}
.brief-points li + li { margin-top: 4px; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-cloud a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.tag-cloud a:hover {
  color: var(--brand);
  border-color: #b7c9da;
  background: var(--brand-soft);
}

/* ========== Article ========== */
.article-head { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-head .kicker {
  margin: 0 0 10px;
  color: var(--brand-mid);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-weight: 800;
}
.article-head h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.article-cover {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d5dde7;
}
.article-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article .content {
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.article .content p { margin: 0 0 1.15em; }
.article .content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1.2em 0;
}
.pager { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.pager a,
.back-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.pager a:hover,
.back-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

/* ========== Friend links (above footer) ========== */
.friend-bar {
  background: #eef2f6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-top: 8px;
}
/* 无友情链接数据时整块隐藏（data 优先，:has 兜底） */
.friend-bar[data-has-links="0"],
.friend-bar:not(:has(.friend-links a)) { display: none; }
.friend-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px 18px;
}
.friend-label {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-width: 0;
}
.friend-links a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
}
.friend-links a:hover { color: var(--brand); }

/* ========== Footer ========== */
.site-footer {
  background: #0a1c2d;
  color: rgba(245, 248, 251, 0.72);
  padding: 18px 0 14px;
  margin-top: 0;
}
.footer-compact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  gap: 14px 28px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  min-width: 0;
}
.footer-brand {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
a.footer-brand:hover { color: #fff; opacity: 0.9; }
.footer-desc {
  margin: 0;
  line-height: 1.5;
  font-size: 0.82rem;
  color: rgba(245, 248, 251, 0.62);
}
.footer-desc a { color: #9ec9e6; font-weight: 700; }
.footer-desc a:hover { color: #fff; }
.footer-map {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.footer-map a {
  color: rgba(245, 248, 251, 0.82);
  font-weight: 700;
  font-size: 0.86rem;
}
.footer-map a:hover { color: #fff; }
.footer-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.footer-tags a,
.footer-tags span {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: rgba(245, 248, 251, 0.7);
  font-size: 0.74rem;
  font-weight: 650;
}
.footer-tags a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 10px;
  font-size: 0.8rem;
}
.beian a { color: rgba(245, 248, 251, 0.68); }
.beian a:hover { color: #fff; text-decoration: underline; }

/* empty images */
.feature-media:has(img[src=""]),
.news-thumb:has(img[src=""]),
.grid-thumb:has(img[src=""]),
.article-cover:has(img[src=""]) { display: none; }
.news-list > li:has(.news-thumb img[src=""]) { grid-template-columns: minmax(0, 1fr); }

/* ========== Mobile ========== */
body.m { overflow-x: hidden; }
body.m .side { display: none; }
body.m .layout { display: block; margin-top: 18px; }
body.m .wrap { width: min(100% - 28px, var(--max)); }
body.m .masthead { padding: 26px 22px; margin-top: 18px; }
body.m .feature-card { grid-template-columns: 1fr; }
body.m .feature-media img { min-height: 200px; }
body.m .feature-body { border-left: 0; border-top: 1px solid var(--line); padding: 22px 20px; }
body.m .news-list > li,
body.m .news-list.compact > li {
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 0;
}
body.m .news-thumb {
  width: 100%;
  max-width: none;
}
body.m .news-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
body.m .news-body { padding-top: 0; }
body.m .news-body .title { font-size: 1.08rem; }
body.m .card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
body.m .panel-pad { padding: 18px 16px; }
body.m .header-hot { display: none; }
body.m .header-bar { grid-template-columns: 1fr; gap: 6px; }
body.m .site-nav a { padding: 8px 10px; }
body.m .footer-compact { grid-template-columns: 1fr; gap: 12px; }
body.m .footer-tags { justify-content: flex-start; }
body.m .masthead-grid { grid-template-columns: 1fr; gap: 12px; }
body.m .masthead { padding: 16px; }
body.m .masthead-mid { grid-template-rows: none; grid-template-columns: 1fr; }
body.m .fan-bar-links { gap: 8px 12px; }
body.m .fan-bar-links a { font-size: 0.84rem; }

@media (max-width: 1100px) {
  .header-hot a:nth-child(n+3) { display: none; }
  .masthead-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .masthead-mid { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; }
  .side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .feature-card { grid-template-columns: 1fr; }
  .feature-media img { min-height: 240px; }
  .feature-body { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .header-bar { grid-template-columns: 1fr; gap: 6px; }
  .header-hot { display: none; }
  .masthead { padding: 16px; }
  .masthead-grid { grid-template-columns: 1fr; gap: 12px; }
  .masthead-mid { grid-template-columns: 1fr; }
  .news-list > li,
  .news-list.compact > li {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .news-thumb { width: 100%; max-width: none; }
  .news-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .news-body { padding-top: 0; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .side { grid-template-columns: 1fr; }
  .footer-compact { grid-template-columns: 1fr; gap: 12px; }
  .footer-tags { justify-content: flex-start; }
  .friend-inner { flex-direction: column; gap: 8px; }
  .panel-pad { padding: 18px 16px; }
}
@media (max-width: 420px) {
  html { font-size: 15px; }
  .card-grid { grid-template-columns: 1fr; }
  .news-list > li,
  .news-list.compact > li { grid-template-columns: 1fr; }
}
