:root {
  --theme: #14324F;
  --accent: #C4522A;
  --bg: #F3F5F7;
  --card: #FFFFFF;
  --ink: #1C2430;
  --muted: #8A93A0;
  --line: #E6E9EE;
  --soft: #F4F6F8;
  --shadow: 0 1px 2px rgba(20, 50, 79, 0.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
}
button, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
a, button { transition: color .15s ease, background .15s ease, border-color .15s ease; }
img { max-width: 100%; height: auto; }

.inner, .wrap { width: 1200px; margin: 0 auto; }
.header { background: #14324F; }
.header .inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: 8px; }
.logo .mark {
  width: 36px;
  height: 36px;
  background: #fff;
  color: #14324F;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
}
.logo b { display: block; font-size: 18px; letter-spacing: 0.04em; color: #fff; }
.logo small { display: block; color: rgba(255,255,255,.65); font-size: 12px; margin-top: 1px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.nav a { position: relative; padding: 8px 14px; font-size: 16px; color: rgba(255,255,255,.88); }
.nav a:hover, .nav a.on { color: #fff; }
.nav a.on { font-weight: 700; }
.nav a.on::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}

.cats { background: #fff; border-bottom: 1px solid var(--line); }
.cats .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 8px 0; }
.cats nav { display: flex; flex-wrap: wrap; gap: 0 18px; min-width: 0; }
.cats a { font-size: 13px; color: #3A4453; padding: 3px 0; }
.cats a:hover, .cats a.on { color: var(--accent); }
.cats time { color: var(--muted); font-size: 13px; white-space: nowrap; }

.wrap { padding: 14px 0 28px; }
.ticker {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 14px;
  height: 42px;
  margin-bottom: 12px;
  overflow: hidden;
}
.ticker b {
  color: var(--accent);
  font-size: 14px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.ticker a { font-size: 14px; white-space: nowrap; }
.ticker a + a { margin-left: 36px; }
.ticker a:hover { color: var(--accent); }
.ticker i {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
  font-size: 12px;
}

.stage { display: flex; flex-direction: column; gap: 12px; }
.row-top {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.banner, .hot { height: 332px; }
.hot { display: flex; flex-direction: column; overflow: hidden; }
.hot .tabs { flex: none; }
.hot .list.panel.on {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 2px 8px 6px;
}
.hot .list li { flex: 1; padding: 0 6px; }
.row-bottom {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: stretch;
}
.left-bottom { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.left-bottom > .card { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.left-bottom > .card .tabs { flex: none; }
.rank { min-width: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.banner { position: relative; overflow: hidden; padding: 0; }
.banner-slide {
  display: none;
  position: relative;
  height: 100%;
  background: var(--theme) center / cover no-repeat;
  color: #fff;
  text-decoration: none;
  padding: 28px 28px 48px;
  flex-direction: column;
  justify-content: flex-end;
}
.banner-slide.on { display: flex; }
.banner-slide.has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(20, 50, 79, .78));
}
.banner-slide .tag {
  position: absolute;
  top: 18px;
  left: 28px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--theme);
  background: #fff;
  padding: 2px 8px;
}
.banner-slide h2, .banner-slide p { position: relative; z-index: 1; }
.banner-slide h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.35; font-weight: 650; max-width: 16em; }
.banner-slide p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; }
.dots { position: absolute; left: 28px; bottom: 16px; display: flex; gap: 6px; z-index: 2; }
.dots button {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.35);
}
.dots button.on, .dots button:hover { background: #fff; }

.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button, .tabs .label {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 16px;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button:hover { color: var(--theme); }
.tabs button.on, .tabs .label {
  color: var(--theme);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.panel { display: none; padding: 6px 8px 8px; }
.panel.on { display: block; }
.panel.on.chips { display: flex; }
.panel.on.cols2 { display: grid; }

.list { list-style: none; margin: 0; padding: 4px 8px 8px; }
.list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 7px 6px;
  border-bottom: 1px solid #F2F4F7;
}
.list li:last-child { border-bottom: 0; }
.list li:hover { background: var(--soft); }
.list .t { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list li:hover .t { color: var(--accent); }
.m { color: var(--muted); font-size: 12px; white-space: nowrap; }
.m.fresh { color: var(--accent); }

.small-box {
  min-height: 108px;
  background: #234E68 center / cover no-repeat;
  color: #fff;
  text-decoration: none;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.small-box:hover { background-color: #1C4158; }
.small-box.has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(20, 50, 79, .72));
}
.small-box em, .small-box strong { position: relative; z-index: 1; }
.small-box em { font-style: normal; font-size: 12px; letter-spacing: 0.12em; color: #F2C7B4; }
.small-box strong { font-size: 16px; margin-top: 4px; font-weight: 650; }

.tool-view { flex: 1; min-height: 0; }
.tool-view .panel { height: 100%; padding: 12px 14px; box-sizing: border-box; }
.chips { flex-wrap: wrap; align-content: space-evenly; justify-content: space-between; gap: 10px 12px; }
.chips a { background: var(--soft); color: var(--theme); font-size: 13px; padding: 6px 12px; }
.chips a:hover { background: var(--theme); color: #fff; }
.cols2 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  height: 100%;
  overflow: hidden;
}
.cols2 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  padding: 0;
  text-align: center;
  white-space: nowrap;
}
.cols2 a i {
  font-style: normal;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}
.cols2 a:nth-child(8n+1) i { background: #3B7DD8; }
.cols2 a:nth-child(8n+2) i { background: #3AAA6A; }
.cols2 a:nth-child(8n+3) i { background: #E0892F; }
.cols2 a:nth-child(8n+4) i { background: #E15B4A; }
.cols2 a:nth-child(8n+5) i { background: #2A9A9A; }
.cols2 a:nth-child(8n+6) i { background: #8B5E3C; }
.cols2 a:nth-child(8n+7) i { background: #7A5AF5; }
.cols2 a:nth-child(8n+8) i { background: #E07A2F; }
.cols2 a:hover { color: var(--accent); }

.picks {
  list-style: none;
  margin: 0;
  padding: 4px 12px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}
.picks li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid #F2F4F7;
  min-width: 0;
}
.picks li:nth-last-child(-n+2) { border-bottom: 0; }
.picks li:hover { background: var(--soft); }
.thumb { height: 68px; background: #E4E8EE center / cover no-repeat; }
.picks a { display: block; font-size: 14px; font-weight: 650; line-height: 1.45; }
.picks li:hover a { color: var(--accent); }
.picks .m { display: block; margin-top: 4px; }

.block { margin-top: 14px; background: #fff; border: 1px solid var(--line); }
.block-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
  border-bottom: 1px solid var(--line);
}
.block-hd h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  color: var(--theme);
}
.block-hd h3 a:hover, .block-hd .more:hover { color: var(--accent); }
.block-hd .more { color: var(--muted); font-size: 13px; }
.block-bd {
  display: grid;
  grid-template-columns: 220px 1fr 1fr;
  gap: 6px 28px;
  padding: 14px 16px 12px;
  align-items: stretch;
}
.lead {
  background: #E7EBF0 center / cover no-repeat;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-width: 0;
}
.lead:hover { background-color: #DDE3EA; }
.lead .cat { color: var(--accent); font-size: 13px; font-weight: 650; }
.lead h4 { margin: 6px 0 0; font-size: 16px; line-height: 1.45; font-weight: 650; }
.lead:hover h4 { color: var(--accent); }
.lead.has-img { color: #fff; }
.lead.has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(20, 50, 79, .78));
}
.lead.has-img .cat, .lead.has-img h4 { position: relative; z-index: 1; color: #fff; }
.lead.has-img:hover h4 { color: #fff; }
.sublist { list-style: none; margin: 0; padding: 0; }
.sublist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid #F3F5F7;
  font-size: 14px;
}
.sublist li:hover { background: var(--soft); }
.sublist a {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sublist a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 8px;
  background: #C5CCD4;
  vertical-align: middle;
}
.sublist li:hover a { color: var(--accent); }

.pic-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 16px 8px;
}
.pic-card .ph { display: block; height: 124px; background: #E6EAEF center / cover no-repeat; }
.pic-card .body { display: block; padding: 10px 2px 4px; }
.pic-card .k { color: var(--accent); font-size: 12px; }
.pic-card h4 { margin: 4px 0 0; font-size: 15px; line-height: 1.45; font-weight: 650; }
.pic-card:hover h4 { color: var(--accent); }

.feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 0;
  padding: 0 20px 8px;
}
.feed article { padding: 16px 2px 14px; border-bottom: 1px solid #E8ECF1; }
.feed article:hover { background: #FAFBFC; }
.feed h4 { margin: 0 0 8px; font-size: 15px; line-height: 1.45; font-weight: 700; }
.feed a:hover h4 { color: var(--accent); }
.feed p {
  margin: 0 0 6px;
  color: #667084;
  font-size: 13px;
  line-height: 1.55;
  height: 40px;
  overflow: hidden;
}

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 4px 0 18px;
}
.pager a, .pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pager a:hover { border-color: var(--theme); color: var(--theme); }
.pager .on { background: var(--theme); color: #fff; border-color: var(--theme); }
.pager .disabled { color: #C5CCD4; }
.pager .meta { border: 0; background: transparent; color: var(--muted); font-size: 12px; margin-left: 8px; min-width: 0; }

.crumb { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumb a:hover { color: var(--accent); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.post {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 36px 40px;
}
.post h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.4; font-weight: 700; }
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.post-meta b { color: var(--accent); font-weight: 600; }
.post-cover { height: 260px; background: #E7EBF0 center / cover no-repeat; margin-bottom: 22px; }
.post-body p { margin: 0 0 16px; font-size: 16px; line-height: 1.9; color: #2A3340; }
.post-body h2 { margin: 28px 0 12px; font-size: 20px; line-height: 1.4; color: var(--theme); scroll-margin-top: 16px; }
.post-body a { color: var(--accent); }
.post-body img { max-width: 100%; height: auto; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 1.4em; }
.post-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.toc ol { margin: 0; padding: 6px 18px 14px 36px; }
.toc li { padding: 7px 0; border-bottom: 1px solid #F2F4F7; }
.toc li:last-child { border-bottom: 0; }
.toc a { font-size: 14px; }
.toc a:hover { color: var(--accent); }
.post-side .list { padding: 4px 8px 8px; }

.footer { background: var(--theme); color: rgba(255,255,255,.78); font-size: 12px; margin-top: 8px; }
.footer .inner { padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.footer a { color: #fff; margin-left: 16px; }
.footer a:hover { color: #F2C7B4; }
