:root {
  --color-bg: #ffffff;
  --color-text: #1e1e1e;
  --color-muted: #8a8a8a;
  --color-accent: #f54343;
  --color-line: #e8e8e8;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --wrap: 1400px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; border: 0; }

.wrap {
  width: min(var(--wrap), calc(100% - 24px));
  margin: 0 auto;
}

.topbar {
  height: 32px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  color: #666;
}

.topbar .wrap,
.logo-row .wrap,
.channel .wrap {
  display: flex;
  align-items: center;
}

.topbar .wrap { height: 32px; justify-content: space-between; }
.topbar nav a { color: #666; margin-left: 16px; }
.topbar nav a:hover { color: var(--color-accent); }

.logo-row .wrap { height: 70px; justify-content: space-between; }
.brand img { height: 40px; display: block; }

.search { display: flex; height: 34px; }
.search input {
  width: 220px;
  border: 1px solid #e5e5e5;
  border-right: 0;
  padding: 0 10px;
  font: inherit;
  outline: none;
}
.search button {
  background: var(--color-accent);
  color: #fff;
  border: 0;
  padding: 0 16px;
  font: inherit;
  cursor: pointer;
}
.search button:hover { background: #e03b3b; color: #fff; }

.channel { background: var(--color-accent); }
.channel .wrap { height: 42px; overflow-x: auto; }
.channel a {
  flex: none;
  color: #fff;
  line-height: 42px;
  padding: 0 16px;
  font-size: 15px;
}
.channel .wrap a:first-child { padding-left: 0; }
.channel a:hover,
.channel a.is-on {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}

main { padding: 8px 0 12px; }
.loading, .empty { color: var(--color-muted); padding: 24px 0; }

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}
.home-main .hero { margin-top: 0; display: block; }
.home-side { min-width: 0; }
.side-mod { margin-top: 26px; }
.hot-list { list-style: none; margin: 0; padding: 0; }
.hot-item { border-bottom: 1px solid #f2f2f2; }
.hot-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0 6px;
  color: var(--color-text);
  font-size: 15px;
}
.hot-line span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hot-line em { flex: none; font-style: normal; color: #c8c8c8; }
.hot-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  color: var(--color-text);
}
.hot-card img { width: 108px; height: 68px; object-fit: cover; display: block; }
.hot-card span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
}
.side-feature {
  position: relative;
  display: block;
  margin: 12px 0 8px;
  color: #fff;
  overflow: hidden;
}
.side-feature img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.side-feature:hover img { transform: scale(1.06); }
.side-feature span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-feature:hover,
.side-feature:hover span { color: #fff; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #f3f3f3;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.5;
}
.side-more {
  display: block;
  margin-top: 12px;
  background: #f3f3f3;
  color: #888;
  text-align: center;
  line-height: 36px;
  font-size: 14px;
}
.side-more:hover { color: var(--color-accent); }
.side-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--color-line);
}
.side-tabs button {
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  padding: 0 0 8px;
  cursor: pointer;
  color: #333;
}
.side-tabs button.is-on {
  color: var(--color-accent);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--color-accent);
}
.side-rank { list-style: none; margin: 8px 0 0; padding: 0; }
.side-rank li { margin: 0; padding: 0; }
.side-rank a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  color: var(--color-text);
}
.side-rank .num {
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: #cfcfcf;
  color: #fff;
  font-size: 12px;
  flex: none;
}
.side-rank .n1 { background: #e8453c; }
.side-rank .n2 { background: #f08a24; }
.side-rank .n3 { background: #f0b429; }
.side-rank a span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.banner { position: relative; }
.banner .hero-lead { display: none; }
.banner .hero-lead.is-on { display: flex; }
.banner-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 56px;
  margin-top: -28px;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 56px;
  cursor: pointer;
}
.banner-prev { left: 0; }
.banner-next { right: 0; }
.banner-nav:hover { background: rgba(0, 0, 0, 0.55); }
.banner-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.banner-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.banner .hero-lead .cap { padding-right: 84px; }

.hero-lead {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background: #1a1a1a;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.hero-lead:hover .hero-photo { transform: scale(1.06); }
.hero-lead .cap {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 48px 22px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.hero-lead h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 700;
}
.hero-lead p { margin: 8px 0 0; color: #eee; font-size: 14px; }
.hero-lead:hover,
.hero-lead:hover h2 { color: #fff; }

.rail-title,
.block-head h2,
.page-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.rail-head,
.block-head,
.page-head {
  border-bottom: 1px solid var(--color-line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 6px;
}

.more { color: var(--color-muted); font-size: 13px; padding-bottom: 2px; }
.more:hover { color: var(--color-accent); }

.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li a {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f2f2f2;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.45;
}
.rank-list .n {
  flex: none;
  width: 18px;
  color: var(--color-accent);
  font-weight: 700;
}
.rank-list li a span:last-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section { margin-top: 26px; }

.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
  margin-top: 14px;
}
.photo-card { display: block; color: var(--color-text); }
.photo-card .shot {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.photo-card:hover img { transform: scale(1.06); }
.photo-card h3 {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  height: 2.9em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.photo-card .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}
.photo-card .meta span:first-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.photo-card .meta time { flex: none; }
.photo-card:hover h3 { color: var(--color-accent); }

.text-list { list-style: none; margin: 0; padding: 0; }
.text-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.45;
}
.text-list .t {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.text-list time {
  flex: none;
  color: var(--color-muted);
  font-size: 12px;
  padding-top: 3px;
}

.blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 28px;
}

.lead-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px;
  margin: 12px 0 4px;
  color: var(--color-text);
  align-items: stretch;
}
.lead-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 92px;
}
.lead-card strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lead-card time {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.4;
}
.pic {
  position: relative;
  display: block;
  width: 148px;
  height: 92px;
  overflow: hidden;
}
.pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.lead-card:hover .pic img,
.pic-wide:hover .cover-wide { transform: scale(1.08); }
.pic-wide {
  width: 100%;
  height: auto;
  max-height: 420px;
  margin-bottom: 16px;
}
.pic-wide .cover-wide { max-height: 420px; margin: 0; }

.page-head { margin-top: 16px; }
.page-title { font-size: 20px; }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  margin-top: 18px;
}

.detail h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
}

.meta { color: var(--color-muted); font-size: 13px; margin-bottom: 16px; }
.meta a { color: var(--color-accent); }

.summary {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #fafafa;
  color: #444;
  font-size: 15px;
}

.article-body { font-size: 17px; line-height: 1.85; }
.article-body p { margin: 0 0 1em; }
.article-body h2,
.article-body h3,
.article-body h4 { margin: 1.2em 0 0.5em; font-weight: 700; line-height: 1.4; }
.article-body h2 { font-size: 22px; }
.article-body h3 { font-size: 18px; }
.article-body ul,
.article-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.article-body li { margin: 0.25em 0; }
.article-body img { max-width: 100%; height: auto; display: block; margin: 0 0 1em; }
.article-body a { color: var(--color-accent); }
.article-body blockquote {
  margin: 0 0 1em;
  padding: 8px 14px;
  border-left: 3px solid var(--color-accent);
  color: #555;
  background: #fafafa;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.article-body td,
.article-body th { border: 1px solid var(--color-line); padding: 6px 8px; text-align: left; }
.article-body pre { overflow: auto; margin: 0 0 1em; padding: 12px; background: #f7f7f7; }
.cover-wide { display: block; width: 100%; max-height: 420px; object-fit: cover; }

.crumb { margin: 14px 0 0; font-size: 13px; color: var(--color-muted); }
.crumb a { color: #666; }

.pager { display: flex; gap: 8px; margin: 18px 0 8px; }
.pager a, .pager span {
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border: 1px solid var(--color-line);
  color: var(--color-text);
  padding: 0 8px;
}
.pager .is-on {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.panel { max-width: 760px; margin-top: 18px; }
.panel h1 {
  margin: 12px 0 16px;
  font-size: 28px;
  line-height: 1.35;
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 16px;
}
.contact-list span { color: var(--color-muted); }

.form label { display: block; margin: 0 0 14px; font-size: 14px; }
.form input, .form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #e5e5e5;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.form button {
  background: var(--color-accent);
  color: #fff;
  border: 0;
  height: 36px;
  padding: 0 22px;
  font: inherit;
  cursor: pointer;
}
.form button:hover { background: #e03b3b; color: #fff; }
.form-note { min-height: 1.4em; color: var(--color-muted); }
.form-note.is-ok { color: #1a7f37; }
.form-note.is-err { color: var(--color-accent); }

.site-foot {
  margin-top: 36px;
  background: #fafafa;
  border-top: 1px solid var(--color-line);
  color: #888;
  font-size: 12px;
  line-height: 1.8;
  padding: 22px 0 28px;
}
.site-foot a { color: #666; margin-right: 14px; }
.site-foot a:hover { color: var(--color-accent); }
.foot-name { margin: 0 0 4px; color: #333; font-size: 14px; font-weight: 700; }
.foot-desc { margin: 0 0 8px; }

@media (max-width: 900px) {
  .home-layout, .cols-2, .blocks, .detail { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .hero-lead { min-height: 220px; }
  .hero-lead h2 { font-size: 20px; }
  .search input { width: 120px; }
  .detail h1, .panel h1 { font-size: 22px; }
}
