:root{
  --bg: #070A10;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --shadow: 0 18px 55px rgba(0,0,0,.45);
  --r: 18px;
  --r2: 14px;
  --rail: 260px;
}

*{ box-sizing:border-box; }
/* html,body{ height:100%; } */
body{
  margin:0;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% 5%, rgba(120,180,255,.16), transparent 60%),
    radial-gradient(700px 450px at 85% 10%, rgba(255,120,200,.12), transparent 55%),
    radial-gradient(900px 550px at 60% 90%, rgba(130,255,200,.10), transparent 60%),
    var(--bg);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
}
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }

.dash{
  min-height:100%;
  display:grid;
  grid-template-columns: var(--rail) 1fr;
}

/* Rail */
.rail{
  position:sticky;
  top:0;
  height:100vh;
  border-right: 1px solid var(--line);
  background: rgba(7,10,16,.72);
  backdrop-filter: blur(14px);
  padding: 14px 12px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.rail-brand{
  display:flex; align-items:center; gap:10px;
  padding: 10px 10px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.rail-brand img{ width:36px; height:36px; border-radius:12px; }
.rail-brand-text b{ display:block; font-weight:900; letter-spacing:.2px; }
.rail-brand-text span{ display:block; color: var(--muted); font-size: 12px; margin-top:2px; }

.rail-nav{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.rail-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.78);
}
.rail-item .i{
  width:28px; height:28px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 900;
}
.rail-item:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
  color:#fff;
}
.rail-item.active{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color:#fff;
}

.rail-cta{
  margin-top:auto;
  padding: 10px;
  border-radius: var(--r2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.rail-btn{
  display:block;
  text-align:center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(120,180,255,.35), rgba(255,120,200,.25));
}
.rail-btn:hover{ filter: brightness(1.08); }
.rail-links{
  margin-top: 10px;
  display:flex;
  gap: 10px;
  justify-content:center;
  color: var(--muted);
  font-size: 12px;
}
.rail-links a:hover{ color:#fff; text-decoration: underline; text-underline-offset: 3px; }

/* Main */
.main{
  padding: 18px 18px 42px;
  max-width: 1200px;
  width: 100%;
}

/* Top bar */
.top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 14px;
  padding: 14px 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}
.top-left{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.burger{
  display:none;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
}
.titleblock .kicker{
  margin:0;
  color: var(--muted);
  font-weight:700;
  font-size: 12px;
}
.titleblock h1{
  margin: 6px 0 0;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: -0.6px;
}

.top-right{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
}
.search input{
  border:0;
  outline:0;
  background: transparent;
  color: #fff;
  width: min(320px, 52vw);
}
.search input::placeholder{ color: rgba(255,255,255,.50); }
.pill{
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.pill:hover{ background: rgba(255,255,255,.08); }

/* Highlights */
.highlights{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.2fr .55fr .55fr;
  gap: 12px;
}
.hi-card{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding: 14px;
}
.hi-card.big{ padding: 16px; }
.hi-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.hi-k{ margin:0; color: var(--muted); font-weight:800; font-size: 12px; }
.hi-t{ margin:6px 0 0; font-weight: 950; letter-spacing: -.2px; }
.hi-link{ color: rgba(255,255,255,.78); font-weight:800; }
.hi-link:hover{ color:#fff; text-decoration: underline; text-underline-offset: 3px; }

.hi-body{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.poster{
  position:relative;
  overflow:hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.poster img{
  width:100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.08);
}
.poster-text{
  position:absolute;
  left: 10px; bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
.poster-text b{ display:block; }
.poster-text span{ display:block; color: var(--muted); margin-top:2px; font-size: 12px; }

.banner{
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  min-height: 88px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
}

.hi-card.stats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stat{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 12px;
}
.stat b{ display:block; font-size: 18px; }
.stat span{ display:block; color: var(--muted); font-weight:700; margin-top:4px; font-size: 12px; }

.hi-card.lanes .mini-title{
  margin:0 0 10px;
  font-weight: 950;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight: 900;
}
.chip:hover{ background: rgba(255,255,255,.08); }
.mini-note{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height:1.45;
}

/* Blocks */
.block{
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}
.block-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.block-head h2{
  margin:0;
  font-size: 16px;
  letter-spacing: -.2px;
}
.link{ color: rgba(255,255,255,.78); font-weight:900; }
.link:hover{ color:#fff; text-decoration: underline; text-underline-offset: 3px; }
.hint{ color: var(--muted); font-size: 12px; font-weight:700; }

/* Trending boards */
.boards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.board{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  padding: 12px;
}
.board-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}
.board-head h3{ margin:0; font-size: 14px; font-weight: 950; }
.board-head p{ margin:0; color: var(--muted); font-size: 12px; font-weight:700; }

/* ✅ 保持数据挂载容器：不动 class，只做通用美化 */
.top-con, .grid{
  list-style:none;
  padding:0;
  margin:0;
}
.top-con{
  display:grid;
  gap: 10px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* 给 JS append 的任意 <li> 一个安全外观，不依赖内部结构 */
.top-con > li, .grid > li{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}

/* Accordion */
.accordion{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.acc{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.acc > summary{
  cursor:pointer;
  padding: 12px 12px;
  display:grid;
  grid-template-columns: 36px 1fr auto;
  align-items:center;
  gap: 10px;
  user-select:none;
}
.acc > summary::-webkit-details-marker{ display:none; }
.acc > summary .tag{
  width:36px; height:36px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight: 950;
}
.acc > summary .name{
  font-weight: 950;
}
.acc > summary .desc{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-left: 10px;
}
.acc[open] > summary{
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.acc > ul{
  padding: 12px;
}

/* Legal */
.legal{
  margin-top: 14px;
  padding: 18px 4px 0;
}
.legal-card{
  border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  padding: 16px;
}
.legal-card h2{ margin:0 0 10px; font-size: 16px; }
.legal-card p{ margin: 0 0 10px; color: rgba(255,255,255,.78); line-height:1.55; }
.legal-card .muted{ color: var(--muted); margin-top: 6px; }
.legal-links{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 10px; }
.legal-links a{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  font-weight: 900;
}
.legal-links a:hover{ background: rgba(255,255,255,.06); }
.copy{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 980px){
  .dash{ grid-template-columns: 1fr; }
  .rail{
    position:fixed;
    left:0; top:0;
    width: min(84vw, 320px);
    transform: translateX(-105%);
    transition: transform .2s ease;
    z-index: 100;
  }
  .rail.open{ transform: translateX(0); }
  .burger{ display:inline-block; }
  .main{ padding: 14px 14px 42px; }
  .highlights{ grid-template-columns: 1fr; }
  .boards{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .search input{ width: min(260px, 56vw); }

  .main{ width: 117%;}
}
