: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 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  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;
  overflow: hidden;
}
.logo .mark.has-img { background: transparent; }
.logo .mark img {
  width: 36px;
  height: 36px;
  max-width: none;
  object-fit: cover;
  display: block;
}
.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 { flex: 1 0 auto; 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 {
  flex: none;
  color: var(--accent);
  font-size: 14px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.ticker a {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.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: 2fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.tag-side {
  height: 348px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}
.small-box { flex: none; }
.rank {
  height: 348px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.tag-card {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rank .tabs,
.tag-card .tabs { flex: none; }
.tag-card .tool-view { flex: 1; min-height: 0; }
.tag-card .panel.on.chips { height: 100%; }

.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: rgba(255, 255, 255, .7);
  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; min-width: 0; }
.list li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 7px 6px;
  border-bottom: 1px solid #F2F4F7;
  min-width: 0;
  overflow: hidden;
}
.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 { flex: none; 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: flex-start;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px 12px;
  overflow: hidden;
}
.panel.on.chips.is-empty { align-items: center; justify-content: center; align-content: center; }
.empty-info { width: 132px; height: 132px; display: block; flex: none; }
.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;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  flex: 1;
  min-height: 0;
}
.picks li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid #F2F4F7;
  min-width: 0;
  overflow: hidden;
}
.picks li > div { 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: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  word-break: break-word;
}
.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); min-width: 0; overflow: hidden; }
.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 minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 28px;
  padding: 14px 16px 12px;
  align-items: stretch;
}
.block-bd > * { min-width: 0; }
.block-bd.no-lead { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.block-bd.has-lead.cols-1 { grid-template-columns: 220px minmax(0, 1fr); }
.block-bd.no-lead.cols-1,
.block-bd.is-empty { grid-template-columns: minmax(0, 1fr); }
.block-empty { margin: 0; padding: 8px 4px; color: var(--muted); font-size: 14px; }
.lead {
  background: #E7EBF0 center / cover no-repeat;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.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;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
.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; min-width: 0; }
.sublist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid #F3F5F7;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
}
.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); }
.subcats {
  display: grid;
  gap: 8px 28px;
  padding: 6px 16px 14px;
  border-top: 1px solid var(--line);
}
.subcats.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subcats.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.subcats.cols-1 { grid-template-columns: minmax(0, 1fr); }
.subcat { min-width: 0; }
.subcat h4 {
  margin: 8px 0 4px;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--theme);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pic-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 16px 16px 8px;
}
.pic-card { min-width: 0; }
.pic-card .pic-hit { display: block; color: inherit; }
.pic-card .ph { display: block; height: 124px; background: #E6EAEF center / cover no-repeat; }
.pic-card .body { display: block; padding: 10px 2px 4px; min-width: 0; }
.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;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
.pic-card:hover h4 { color: var(--accent); }

.feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 0;
  padding: 0 20px 8px;
}
.feed article { padding: 16px 2px 14px; border-bottom: 1px solid #E8ECF1; min-width: 0; }
.feed article:hover { background: #FAFBFC; }
.feed h4 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
.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; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.post-head h1 { flex: 1; min-width: 0; }
.post h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.post-acts { flex: none; display: inline-flex; gap: 8px; align-items: center; }
.post-act { font-size: 12px; color: var(--accent); white-space: nowrap; }
.post-act:hover { color: var(--theme); }
.picks .post-acts { display: flex; margin-top: 2px; }
.pic-card .post-acts { padding: 0 2px 6px; }
.feed .post-acts { margin: -6px 0 8px; }
.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; }
.article-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.article-nav-prev, .article-nav-next { min-width: 0; }
.article-nav-prev { padding-right: 22px; }
.article-nav.has-both .article-nav-next { padding-left: 22px; border-left: 1px solid var(--line); text-align: right; }
.article-nav-next { text-align: right; }
.article-nav a {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.article-nav a:hover { color: var(--accent); }
.post-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; min-width: 0; }
.post-side .card { overflow: hidden; }
.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-brand {
  background: var(--theme);
  color: rgba(255,255,255,.8);
  text-align: center;
  margin-top: 8px;
  padding: 36px 16px 8px;
}
.footer-brand h2 { margin: 0; font-size: 22px; color: #fff; }
.footer-brand h4 { margin: 8px auto 0; max-width: 80%; font-size: 14px; font-weight: 400; line-height: 1.7; color: rgba(255,255,255,.65); }
.footer-brand a { display: inline-block; margin: 16px 10px 0; padding: 6px 14px; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.footer-brand a:hover { color: #F2C7B4; border-color: #F2C7B4; }
.footer { background: var(--theme); color: rgba(255,255,255,.78); font-size: 12px; margin-top: 8px; text-align: center; }
.footer-brand + .footer { margin-top: 0; }
.footer .inner { padding: 22px 0 26px; }
.footer a { color: #fff; }
.footer a:hover { color: #F2C7B4; }
.footer p { margin: 0; line-height: 1.9; }
.footer .flinks { margin-bottom: 10px; }
.footer .flinks ul { display: inline; margin: 0; padding: 0; list-style: none; }
.footer .flinks li { display: inline-block; margin: 0 7px 7px; }
.footer .flinks strong { margin: 0 7px; }
.footer .fcode { margin-bottom: 12px; overflow: hidden; }
.footer .foot-stat { margin-top: 8px; }
