/* ===========================================================
   theme-b  深空沉浸式资讯站
   视觉语言：悬浮毛玻璃顶栏 / 巨幅头条 / 卡片流 / 薄荷青点缀
   =========================================================== */

[v-cloak] { display: none; }

:root {
  --ink: #08090b;
  --panel: #12141a;
  --panel2: #171a22;
  --line: #232733;
  --text: #eceef3;
  --sub: #8b92a1;
  --dim: #5d6472;
  --accent: #4ff0c4;
  --accent2: #8b6bff;
  --serif: "Songti SC", "SimSun", "Source Han Serif SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --nav-h: 66px;
  --shell: 1220px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button, input { font-family: inherit; }

/* ---------------- 悬浮顶栏 ---------------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  background: transparent;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topnav.solid {
  background: rgba(8, 9, 11, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

.tn-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 30px; }
.logo-mark {
  width: 8px; height: 26px; border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 0 14px rgba(79, 240, 196, .55);
}
.logo-text {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
}

.nav { display: flex; gap: 28px; flex: 1; min-width: 0; }
.nav a {
  position: relative;
  font-size: 14px;
  color: var(--sub);
  letter-spacing: .5px;
  white-space: nowrap;
  padding: 6px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--accent); }
.nav a.on::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(79, 240, 196, .7);
}

/* ---------------- 搜索 ---------------- */
.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  width: 210px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  transition: width .25s, border-color .2s, background .2s;
  flex-shrink: 0;
}
.searchbox:focus-within,
.searchbox.open {
  width: 300px;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(79, 240, 196, .45);
}
.searchbox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  padding: 0 8px 0 16px;
}
.searchbox input::placeholder { color: var(--dim); }
.search-btn {
  width: 34px; height: 100%;
  border: 0; background: transparent;
  color: var(--sub);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 0 18px 18px 0;
  transition: color .18s;
}
.search-btn:hover { color: var(--accent); }

.search-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: rgba(18, 20, 26, .97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
}
.sd-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.sd-tabs button {
  flex: 1;
  height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sub);
  font-size: 12.5px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .18s;
}
.sd-tabs button:hover { border-color: #3a4152; color: var(--text); }
.sd-tabs button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #04120e;
  font-weight: 600;
}
.sd-hot { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.sd-label { font-size: 12px; color: var(--dim); }
.sd-hot a { font-size: 12.5px; color: var(--sub); }
.sd-hot a:hover { color: var(--accent); }

/* ---------------- 头条聚焦 ---------------- */
.spotlight {
  position: relative;
  height: 520px;
  margin-top: 0;
  background:
    radial-gradient(1200px 400px at 20% 120%, rgba(79, 240, 196, .18), transparent 60%),
    radial-gradient(900px 400px at 85% -10%, rgba(139, 107, 255, .22), transparent 60%),
    #0b0d11 center/cover no-repeat;
  overflow: hidden;
}

/* 无图时：用光晕撑起视觉，避免大片死黑 */
.spotlight.no-image {
  background:
    radial-gradient(900px 520px at 22% 34%, rgba(79, 240, 196, .16), transparent 62%),
    radial-gradient(820px 500px at 82% 72%, rgba(139, 107, 255, .2), transparent 64%),
    radial-gradient(600px 300px at 55% 110%, rgba(79, 240, 196, .1), transparent 70%),
    linear-gradient(135deg, #0c0e13 0%, #111520 48%, #090b0f 100%);
}
.spotlight.no-image .sp-shade {
  background: linear-gradient(180deg, rgba(8,9,11,0) 0%, rgba(8,9,11,.35) 62%, rgba(8,9,11,.96) 100%);
}
.sp-link { display: block; height: 100%; position: relative; }
.sp-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.08) 0%, rgba(8,9,11,.42) 48%, rgba(8,9,11,.94) 100%);
}
.sp-body {
  position: absolute;
  left: 50%; bottom: 58px;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell);
  padding: 0 24px;
}
.sp-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid rgba(79, 240, 196, .4);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 18px;
  background: rgba(79, 240, 196, .07);
}
.sp-title {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.28;
  margin: 0 0 16px;
  letter-spacing: 1px;
  color: #fff;
  max-width: 860px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}
.sp-intro {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .68);
  max-width: 680px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--sub);
}
.sp-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.sp-meta b { color: var(--accent); font-size: 16px; font-weight: 600; }
.sp-meta em { font-style: normal; font-size: 12px; color: var(--sub); }
.sp-go {
  margin-left: auto;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 1px;
  transition: gap .2s;
}
.sp-link:hover .sp-go { text-decoration: underline; }

.sp-corner {
  position: absolute;
  right: 28px; top: 88px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .82);
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  padding: 5px 13px;
  backdrop-filter: blur(6px);
}

/* ---------------- 主体 ---------------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 46px;
  align-items: start;
}
/* 没有头条聚焦时，给固定顶栏留出空间 */
.shell.no-spot { padding-top: calc(var(--nav-h) + 46px); }

.feed-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.feed-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 4px;
  color: #fff;
}
.feed-count { font-size: 12px; color: var(--dim); }

/* 列表行 */
.row {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(35, 39, 51, .7);
  transition: transform .22s;
}
.row:hover { transform: translateX(4px); }

.row-thumb {
  flex-shrink: 0;
  width: 208px;
  height: 124px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a2030 0%, #232c40 55%, #151a24 100%) center/cover no-repeat;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.row-noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(79, 240, 196, .26);
  text-shadow: 0 2px 20px rgba(79, 240, 196, .18);
}

.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.42;
  color: #f2f4f8;
  letter-spacing: .3px;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row:hover .row-title { color: var(--accent); }

.row-intro {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.row-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--dim);
}
.row-meta i { width: 3px; height: 3px; border-radius: 50%; background: #353b49; }
.row-meta b { color: var(--accent); font-size: 14px; font-weight: 600; }
.row-meta em { font-style: normal; font-size: 11px; }

.more {
  display: block;
  margin: 40px auto 0;
  width: 220px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--sub);
  font-size: 13.5px;
  letter-spacing: 3px;
  border-radius: 23px;
  cursor: pointer;
  transition: all .22s;
}
.more:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 24px rgba(79, 240, 196, .18); }
.more:disabled { opacity: .5; cursor: default; }

.empty { padding: 90px 0; text-align: center; color: var(--dim); }

/* ---------------- 右栏 ---------------- */
.rail { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 30px; }

.rail-block { }
.rail-title {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 4px;
  color: #fff;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.rail-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 34px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(79, 240, 196, .8);
}

.adstack { display: flex; flex-direction: column; gap: 10px; }
.adcell {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 19 / 9.2;
  background: #101218;
  transition: border-color .2s;
}
.adcell:hover { border-color: rgba(79, 240, 196, .45); }
.adcell img { width: 100%; height: 100%; object-fit: cover; }

.chart { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.chart li { border-bottom: 1px dashed rgba(35, 39, 51, .9); }
.chart li:last-child { border-bottom: 0; }
.chart a {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #b9c0cd;
  transition: color .18s;
}
.chart a:hover { color: #fff; }
.ch-rank {
  flex-shrink: 0;
  width: 20px;
  font-family: var(--serif);
  font-size: 15px;
  color: #494f5e;
  text-align: center;
}
.chart li:nth-child(1) .ch-rank { color: #ff5a5f; }
.chart li:nth-child(2) .ch-rank { color: #ff9650; }
.chart li:nth-child(3) .ch-rank { color: #ffd24a; }
.ch-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------------- 详情页 ---------------- */
.reader { padding-top: var(--nav-h); min-height: 100vh; }

.rd-cover {
  height: 420px;
  background: #0d0f14 center/cover no-repeat;
  position: relative;
}
.rd-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,.35), var(--ink));
}

.rd-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 90px;
  position: relative;
  z-index: 2;
}
/* 有封面时标题上浮，压在封面图下缘 */
.reader.has-cover .rd-inner { margin-top: -110px; }

.rd-back {
  display: inline-block;
  font-size: 13px;
  color: var(--sub);
  margin-bottom: 26px;
  transition: color .18s;
}
.rd-back:hover { color: var(--accent); }

.rd-title {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.34;
  margin: 0 0 22px;
  letter-spacing: .8px;
  color: #fff;
}

.rd-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  color: var(--sub);
}
.rd-meta i { width: 3px; height: 3px; border-radius: 50%; background: #3a4152; }
.rd-meta b { color: var(--accent); font-size: 17px; font-weight: 600; }
.rd-meta em { font-style: normal; font-size: 12px; }

.rd-rule {
  height: 1px;
  margin: 26px 0 34px;
  background: linear-gradient(90deg, var(--accent), rgba(139, 107, 255, .5) 40%, transparent);
}

.rd-body {
  font-size: 16.5px;
  line-height: 2;
  color: #c6ccd8;
  word-break: break-word;
}
.rd-body p { margin: 0 0 20px; }
.rd-body img {
  max-width: 100%; height: auto;
  margin: 22px 0;
  border-radius: 8px;
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.rd-body b, .rd-body strong { color: #fff; }
.rd-body a { color: var(--accent); text-decoration: underline; }
.rd-body h2, .rd-body h3 { color: #fff; font-family: var(--serif); margin: 30px 0 14px; }

.rd-related {
  margin-top: 70px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

/* ---------------- 页脚 ---------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 34px 24px;
  background: #06070a;
}
.ft-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: center;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .4px;
}

/* ---------------- 灯箱 ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  padding: 30px;
  backdrop-filter: blur(4px);
}
.lightbox img { max-width: 95vw; max-height: 92vh; object-fit: contain; border-radius: 6px; }
.lb-close {
  position: absolute;
  top: 12px; right: 28px;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  opacity: .6;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; gap: 34px; }
  .rail { position: static; }
  .sp-title { font-size: 36px; }
  .spotlight { height: 440px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 58px; }
  .tn-inner { gap: 16px; padding: 0 16px; }
  .nav { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .logo-text { font-size: 18px; letter-spacing: 2px; }
  .searchbox { width: 132px; }
  .searchbox:focus-within, .searchbox.open { width: 200px; }
  .search-drop { width: 280px; right: -8px; }

  .spotlight { height: 380px; }
  .sp-body { bottom: 30px; padding: 0 16px; }
  .sp-title { font-size: 25px; }
  .sp-intro { font-size: 13px; -webkit-line-clamp: 2; }
  .sp-corner { top: 70px; right: 16px; font-size: 10.5px; padding: 4px 10px; }
  .sp-go { display: none; }

  .shell { padding: 28px 16px 60px; }
  .row { gap: 14px; padding: 16px 0; }
  .row-thumb { width: 108px; height: 74px; border-radius: 8px; }
  .row-title { font-size: 16.5px; margin-bottom: 7px; }
  .row-intro { display: none; }
  .row-meta { font-size: 11px; gap: 9px; }

  .rd-cover { height: 240px; }
  .rd-inner { padding: 34px 16px 60px; }
  .reader.has-cover .rd-inner { margin-top: -60px; }
  .rd-title { font-size: 25px; }
  .rd-body { font-size: 15.5px; }
}
