:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-muted: #999999;
  --color-muted-2: #666666;
  --color-accent: #e73828;
  --color-line: #e6e6e6;
  --font-body: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --sidebar: 200px;
  --radius-nav: 6px;
  --radius-card: 6px;
  --radius-search: 4px;
  --wrap-main: 100%;
  --main-pad-x: 200px; /* 主区左右留白（侧栏内侧 / 右边缘） */
  /* 对齐 DoNews：默认无阴影，悬停才出蓝灰阴影 */
  --shadow-rest: none;
  --shadow-hover: 0 7px 10px rgba(127, 144, 176, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

/* ——— layout shell ——— */
.layout {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid #e6e6e6; /* 对齐 DoNews 侧栏右边框 */
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand {
  display: block;
  padding: 20px 16px 16px;
  margin-bottom: 4px;
  border-bottom: 0;
}

.brand img {
  height: 40px;
  width: auto;
  transition: opacity 0.2s ease;
}

.brand:hover img {
  opacity: 0.88;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px 24px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-nav);
  color: var(--color-muted-2);
  font-size: 15px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.side-nav a .nav-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.55;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.side-nav a .nav-ico.ico-home {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 3 10h2v9h5v-6h4v6h5v-9h2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3 3 10h2v9h5v-6h4v6h5v-9h2z'/%3E%3C/svg%3E");
}
.side-nav a .nav-ico.ico-brand {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h7v7H4zm9 0h7v7h-7zM4 13h7v7H4zm9 0h7v7h-7z'/%3E%3C/svg%3E");
}
.side-nav a .nav-ico.ico-shop {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM3 3h2l.4 2H21l-2 9H7L4 3zm4 9h9.5l1.2-5H6.2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM3 3h2l.4 2H21l-2 9H7L4 3zm4 9h9.5l1.2-5H6.2z'/%3E%3C/svg%3E");
}
.side-nav a .nav-ico.ico-truck {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 7h11v7H3zm13 2h3l2 3v2h-5zm-2 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm-9 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 7h11v7H3zm13 2h3l2 3v2h-5zm-2 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm-9 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4z'/%3E%3C/svg%3E");
}
.side-nav a .nav-ico.ico-trend {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 19h18v2H3zm2-3 4-5 3 3 6-8 2 1.5-8 10.5-3-3-2.5 3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 19h18v2H3zm2-3 4-5 3 3 6-8 2 1.5-8 10.5-3-3-2.5 3z'/%3E%3C/svg%3E");
}
.side-nav a .nav-ico.ico-store {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 10 12 3l8 7v10h-5v-6H9v6H4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 10 12 3l8 7v10h-5v-6H9v6H4z'/%3E%3C/svg%3E");
}

.side-nav a.is-active {
  background: var(--color-accent);
  color: #fff;
}

.side-nav a.is-active .nav-ico {
  opacity: 1;
}

.side-nav a:hover:not(.is-active) {
  background: #f7f7f7;
  color: var(--color-text);
}

.main {
  margin-left: var(--sidebar);
  flex: 1;
  min-width: 0;
  padding: 12px var(--main-pad-x) 56px;
  background: #fff;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 28px;
  width: 100%;
  margin: 0 auto;
}

.top-search {
  width: min(720px, 100%);
  position: relative;
}

.top-user {
  display: none !important;
}

.top-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-search);
  padding: 0 44px 0 16px;
  outline: none;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.top-search input:focus {
  border-color: #ccc;
}

.top-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.top-search button:hover {
  color: var(--color-accent);
  background: #f7f7f7;
}

.top-search .search-ico {
  display: block;
  width: 18px;
  height: 18px;
}

/* ——— hero: 左大图 + 右双叠（等高，底对齐） ——— */
.hero-row {
  width: 100%;
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  height: min(420px, 32vw);
  min-height: 360px;
  align-items: stretch;
}

.hero {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #222;
  border: 0;
  box-shadow: none;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.hero-side-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #222;
  min-height: 0;
  height: 100%;
  box-shadow: none;
}

.hero-side-card a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
}

.hero-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-side-card:hover img {
  transform: scale(1.06);
}

.hero-side-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-slide.is-on {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: #fff;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 28px 22px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-nav {
  position: absolute;
  top: 50%;
  left: auto;
  margin: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transform: translateY(-50%);
  transition: opacity 0.25s ease, background 0.2s ease;
}

.hero-nav svg {
  display: block;
  flex-shrink: 0;
}

.hero:hover .hero-nav {
  opacity: 1;
}

.hero-nav:hover {
  background: rgba(231, 56, 40, 0.9);
}

.hero-nav.prev {
  left: 12px;
}

.hero-nav.next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-on {
  background: #fff;
}

.sub-hero {
  width: 100%;
  margin: 0 auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* 对齐 DoNews .sep-line：模块间浅灰横线，拉满主内容区 */
.sep-line {
  height: 1px;
  background-color: #e6e6e6;
  border: 0;
  margin: 45px calc(-1 * var(--main-pad-x)) 40px;
  padding: 0;
}

.sub-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 140px;
  background: #222;
  box-shadow: none;
}

.sub-card a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
}

.sub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sub-card:hover img {
  transform: scale(1.08);
}

.sub-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ——— sections ——— */
.section {
  width: 100%;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.section-head h3 {
  font-size: 22px;
}

.section-head .more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.section-head .more svg {
  display: block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.section-head .more:hover {
  color: var(--color-accent);
}

.latest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  align-items: start;
}

.flash-panel {
  position: sticky;
  top: 20px;
  align-self: start;
  padding-top: 0;
  z-index: 5;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.latest-cards,
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.latest-card {
  min-width: 0;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  padding: 0 0 12px;
  box-shadow: var(--shadow-rest);
  transition: box-shadow 0.2s ease;
}

.latest-card:hover {
  box-shadow: var(--shadow-hover);
}

.latest-card .cover {
  display: block;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
  height: 160px;
  background: #f0f0f0;
  margin-bottom: 12px;
}

.latest-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.latest-card:hover .cover img {
  transform: scale(1.05);
}

.latest-card .tags {
  font-size: 12px;
  margin: 0 10px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.latest-card .tag-cat {
  color: #3580f9;
  text-decoration: none;
}

.latest-card .tag-cat:hover {
  opacity: 0.85;
}

.latest-card .tag-hash {
  color: var(--color-muted);
  transition: color 0.2s ease;
  margin-left: auto;
}

.latest-card .tag-hash:hover {
  color: var(--color-accent);
}

.latest-card h3 {
  margin: 0 10px 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.latest-card p {
  margin: 0 10px;
  color: var(--color-muted-2);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.latest-card h3 a {
  transition: color 0.2s ease;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feed-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--color-line);
}

.feed-item:first-child {
  padding-top: 8px;
}

.feed-item:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.feed-thumb {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
}

.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.feed-item:hover .feed-thumb img {
  transform: scale(1.04);
}

.feed-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 10px;
}

.feed-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1;
}

.feed-meta .cat {
  color: var(--color-accent);
  margin: 0;
  text-decoration: none;
}

.feed-meta .cat:hover {
  opacity: 0.85;
}

.feed-time {
  color: var(--color-muted);
}

.feed-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.feed-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.feed-title a:hover {
  color: var(--color-accent);
}

.feed-summary {
  margin: 0;
  color: var(--color-muted-2);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flash-head {
  padding-bottom: 10px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--color-accent);
}

.flash-list {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  background: #fff;
  box-shadow: none;
  border-radius: 0 0 6px 6px;
  transition: box-shadow 0.2s ease;
}

.flash-panel:hover .flash-list {
  box-shadow: var(--shadow-hover);
}

.flash-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  padding-left: 14px;
}

.flash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: transparent;
}

.flash-list li:last-child {
  border-bottom: 0;
}

.flash-list time {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
}

.topic-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.recommend-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.topic-card a,
.recommend-card a {
  display: block;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.topic-card a:hover .tit,
.recommend-card a:hover .tit {
  color: var(--color-accent);
}

.topic-card,
.recommend-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding-bottom: 0;
  box-shadow: none;
  transition: none;
}

.topic-card:hover,
.recommend-card:hover {
  transform: none;
  box-shadow: none;
}

.topic-card .pic,
.recommend-card .pic {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 130px;
  background: #f0f0f0;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

.topic-card:hover .pic,
.recommend-card:hover .pic {
  box-shadow: var(--shadow-hover);
}

.recommend-card .pic {
  height: 148px;
}

.topic-card img,
.recommend-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.topic-card:hover img,
.recommend-card:hover img {
  transform: scale(1.05);
}

.topic-card .tit,
.recommend-card .tit {
  display: block;
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  transition: color 0.2s ease;
}

.section-recommend {
  margin-bottom: 0;
}

.section-more {
  margin-top: 0;
  margin-bottom: 40px;
  padding-top: 0;
  border-top: none;
  box-shadow: none;
}

.card-cover {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  height: 148px;
  background: #f0f0f0;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— inner pages ——— */
.page-hero-title {
  width: 100%;
  margin: 0 0 24px;
  padding-bottom: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  border-bottom: 0;
}

.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--color-muted);
}

.crumb a {
  color: var(--color-muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--color-accent);
}

.crumb-sep {
  color: #ccc;
  font-size: 12px;
}

/* 频道页顶部：左大图 + 右 2×2 */
.channel-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  width: 100%;
  height: min(420px, 34vw);
  min-height: 320px;
  margin: 0 0 0;
}

.channel-hero[hidden],
.sep-line[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.channel-hero-main {
  min-height: 0;
  height: 100%;
}

.channel-hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  min-height: 0;
  height: 100%;
}

.channel-hero-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #222;
  height: 100%;
  min-height: 0;
}

.channel-hero-card a {
  display: block;
  width: 100%;
  height: 100%;
  color: #fff;
}

.channel-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.channel-hero-card:hover img {
  transform: scale(1.06);
}

.channel-hero-card .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.channel-hero-main .channel-hero-card .cap {
  font-size: 22px;
  padding: 48px 20px 18px;
}

.channel-cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.list-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}

.list-wrap.is-search {
  max-width: none;
}

.search-result-head {
  margin: 0 0 4px;
}

.search-result-head[hidden] {
  display: none !important;
}

.search-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.search-title em {
  font-style: normal;
  color: var(--color-accent);
}

.search-count {
  margin: 0 0 28px;
  font-size: 14px;
  color: var(--color-muted);
}

.list-wrap.is-search .channel-cards {
  margin-top: 0;
}

.search-count strong {
  color: var(--color-text);
  font-weight: 600;
}

.search-empty {
  padding: 48px 0;
  text-align: left;
  font-size: 15px;
}

.article-wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.prose-wrap,
.form-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
}

.article-wrap h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.article-meta {
  color: var(--color-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.article-cover {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 980 / 420;
  background: #f0f0f0;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text);
}

.article-body p {
  margin: 0 0 1em;
}

.prose-wrap {
  font-size: 16px;
  line-height: 1.8;
}

.contact-dl {
  margin: 0;
}

.contact-dl dt {
  color: var(--color-muted);
  font-size: 13px;
  margin-top: 16px;
}

.contact-dl dd {
  margin: 4px 0 0;
  font-size: 16px;
}

.form-wrap label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}

.form-wrap input,
.form-wrap textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-search);
  padding: 10px 12px;
  margin-bottom: 16px;
  outline: none;
}

.form-wrap textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-primary {
  display: inline-block;
  border: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-nav);
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(0.95);
  color: #fff;
}

.form-msg {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-muted-2);
}

.form-msg.is-err {
  color: var(--color-accent);
}

/* ——— footer（对齐 DoNews：#f4f4f4 底条 60px，左链 | 分隔，无「网站信息」） ——— */
.site-footer {
  margin-left: var(--sidebar);
  background: #f4f4f4;
  border-top: 0;
  padding: 0 var(--main-pad-x);
  color: #333;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  min-height: 60px;
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  color: #333;
  line-height: 60px;
}

/* 参考站 bottom-font-margin：span 左右 15px，这里略加大 */
.footer-links-row > span {
  margin: 0 22px;
  color: #333;
}

.footer-links-row > span:first-child {
  margin-left: 0;
}

.footer-links-row a {
  color: #333;
  text-decoration: none;
  padding: 0;
}

.footer-links-row a:hover {
  color: var(--color-accent);
}

.footer-right,
.footer-siteinfo,
.footer-copy,
.footer-friends {
  display: none;
}

.footer-links-row .footer-icp a {
  color: #333;
}

.footer-links-row .footer-icp a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
}

.empty {
  color: var(--color-muted);
  padding: 24px 0;
}

/* ——— motion（对齐参考站：悬停缩放 / 淡入） ——— */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-row,
.sub-hero,
.section-latest,
.section-topics,
.section-recommend,
.section-more {
  animation: fadeUp 0.55s ease both;
}

.sub-hero {
  animation-delay: 0.06s;
}

.section-latest {
  animation-delay: 0.12s;
}

.section-topics {
  animation-delay: 0.18s;
}

.section-recommend {
  animation-delay: 0.22s;
}

.section-more {
  animation-delay: 0.26s;
}

.flash-list li a {
  transition: color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-row,
  .sub-hero,
  .section-latest,
  .section-topics,
  .section-recommend,
  .section-more {
    animation: none;
  }

  .latest-card:hover .cover img,
  .hero-side-card:hover img,
  .sub-card:hover img,
  .topic-card:hover img,
  .recommend-card:hover img {
    transform: none;
  }

  .latest-card:hover,
  .topic-card:hover .pic,
  .recommend-card:hover .pic {
    box-shadow: var(--shadow-rest);
  }
}

/* ——— mobile ——— */
@media (max-width: 1400px) {
  .latest-cards,
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .hero-row {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (max-width: 1100px) {
  .hero-row {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero,
  .hero-side {
    height: auto;
    min-height: 0;
  }

  .hero {
    height: 320px;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .hero-side-card {
    height: 160px;
  }

  .channel-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .channel-hero-main {
    height: 280px;
  }

  .channel-hero-side {
    height: auto;
    grid-template-rows: none;
  }

  .channel-hero-side .channel-hero-card {
    height: 140px;
  }

  .channel-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-hero {
    grid-template-columns: repeat(3, 1fr);
  }

  .recommend-strip,
  .topic-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .latest-cards,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main,
  .site-footer {
    margin-left: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 50;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }

  .top-bar {
    padding-left: 48px;
  }

  .feed-item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
    align-items: center;
  }

  .feed-title {
    font-size: 16px;
  }

  .feed-summary {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .card-grid,
  .sub-hero,
  .recommend-strip,
  .topic-strip,
  .latest-cards,
  .channel-cards,
  .hero-side {
    grid-template-columns: 1fr;
  }

  .channel-hero-side {
    grid-template-columns: 1fr;
  }

  .latest-card .cover {
    height: 160px;
  }

  .hero {
    height: 220px;
  }

  .hero {
    height: 240px;
    max-height: none;
  }

  .hero-slide .cap {
    font-size: 16px;
  }
}

/* rich-text body (API content HTML) */
.article-body img,
.detail-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em 0;
}
.article-body h2,
.detail-body h2 {
  margin: 1.4em 0 0.6em;
  font-size: 1.35em;
  line-height: 1.35;
}
.article-body h3,
.detail-body h3 {
  margin: 1.25em 0 0.5em;
  font-size: 1.18em;
}
.article-body h4,
.detail-body h4 {
  margin: 1.1em 0 0.45em;
  font-size: 1.05em;
}
.article-body ul,
.article-body ol,
.detail-body ul,
.detail-body ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}
.article-body li,
.detail-body li {
  margin: 0.25em 0;
}
.article-body blockquote,
.detail-body blockquote {
  margin: 1em 0;
  padding: 0.6em 1em;
  border-left: 3px solid currentColor;
  opacity: 0.92;
}
.article-body a,
.detail-body a {
  text-decoration: underline;
}
.article-body table,
.detail-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95em;
}
.article-body th,
.article-body td,
.detail-body th,
.detail-body td {
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
  text-align: left;
}

