:root {
  --bg: #07070c;
  --bg2: #0a0a12;
  --panel: #101018;
  --panel2: #14141f;
  --line: rgba(255, 255, 255, 0.085);
  --line2: rgba(255, 255, 255, 0.16);
  --txt: #f3f3f8;
  --dim: #8d8da6;
  --dim2: #5b5b72;
  --lime: #c9ff2e;
  --pink: #ff3d9a;
  --cyan: #24e9ff;
  --purple: #a874ff;
  --yellow: #ffd93d;
  --orange: #ff7b34;
  --red: #ff4d5e;
  --green: #3dffa8;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--txt); font-family: var(--sans);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; outline: none; border: none; background: none; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: #08080c; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0b0b12; }
::-webkit-scrollbar-thumb { background: #2c2c3c; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 4vw; }
.sec { margin-top: 74px; }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.sec-hd .ttl { display: flex; align-items: center; gap: 12px; }
.sec-hd .ttl::before { content: ""; width: 5px; height: 26px; background: var(--fc, var(--lime)); box-shadow: 0 0 14px var(--fc, var(--lime)); }
.sec-hd h2 { font-size: 24px; letter-spacing: -0.02em; }
.sec-hd .sub { font-family: var(--mono); font-size: 11px; color: var(--dim2); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; display: block; }
.more { font-size: 12px; padding: 5px 16px; border: 1px solid var(--line); border-radius: 20px; color: var(--dim); transition: 0.25s; }
.more:hover { color: var(--fc, var(--lime)); border-color: var(--fc, var(--lime)); box-shadow: 0 0 14px rgba(201, 255, 46, 0.15); }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 8, 13, 0.86); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4vw; height: 64px; flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.05em; }
.brand img { height: 32px; border-radius: 8px; object-fit: cover; }
.brand span { font-family: var(--mono); font-size: 10px; color: var(--dim2); font-weight: 400; }
nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { padding: 8px 9px; font-size: 13.5px; color: var(--dim); transition: 0.2s; border-radius: 6px; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--lime); background: rgba(201, 255, 46, 0.1); }
.header-right { display: flex; align-items: center; gap: 12px; }
.search-mini { display: flex; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; font-size: 12px; color: var(--dim2); width: 160px; }
.btn-pub { font-size: 12px; font-weight: 800; background: var(--lime); color: #08080c; padding: 6px 14px; border-radius: 6px; white-space: nowrap; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--dim); }

/* Hero */
.search-hero {
  position: relative; overflow: hidden; text-align: center;
  min-height: calc(100vh - 104px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 4vw 96px;
  background:
    radial-gradient(ellipse 55% 55% at 50% 34%, rgba(201, 255, 46, 0.11), transparent 70%),
    radial-gradient(ellipse 45% 50% at 82% 78%, rgba(168, 116, 255, 0.12), transparent 70%),
    linear-gradient(180deg, #0a0a13, #07070c);
  border-bottom: 1px solid var(--line);
}
.search-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px; mask-image: radial-gradient(ellipse at 50% 45%, #000, transparent 78%);
}
.search-hero > * { position: relative; z-index: 2; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--lime); margin-bottom: 18px; }
.search-hero h1 { font-size: clamp(56px, 9vw, 110px); line-height: 1; letter-spacing: -0.04em; font-weight: 900; }
.search-hero h1 .hl { color: var(--lime); text-shadow: 0 0 34px rgba(201, 255, 46, 0.55); }
.search-hero h1 .en { display: block; font-family: var(--mono); font-size: clamp(12px, 1.5vw, 18px); letter-spacing: 0.42em; color: var(--dim2); font-weight: 400; margin-top: 14px; }
.slogan { font-size: clamp(18px, 2.2vw, 26px); margin: 22px 0 30px; color: var(--dim); }
.big-search {
  width: min(720px, 92vw); height: 62px; display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 20px; border-radius: 16px;
  background: rgba(16, 16, 24, 0.92); border: 1px solid var(--line2);
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.9); transition: 0.25s;
}
.big-search:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(201, 255, 46, 0.1), 0 0 38px rgba(201, 255, 46, 0.22); }
.big-search .s-ico { color: var(--dim2); font-size: 20px; }
.big-search input { flex: 1; min-width: 0; font-size: 15px; color: var(--txt); }
.big-search input::placeholder { color: var(--dim2); }
.s-btn { height: 46px; padding: 0 22px; border-radius: 11px; font-size: 14px; font-weight: 800; color: #08080c; background: var(--lime); white-space: nowrap; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); box-shadow: 0 0 18px rgba(201, 255, 46, 0.35); transition: 0.2s; }
.s-btn:hover { box-shadow: 0 0 30px rgba(201, 255, 46, 0.6); }
.hot-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 20px; max-width: 720px; }
.hot-chips button { font-size: 12px; padding: 6px 13px; border-radius: 20px; border: 1px dashed var(--line2); color: var(--dim); transition: 0.2s; }
.hot-chips button:hover { color: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.hero-badges { display: flex; gap: 10px; margin-top: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.hero-badges span { padding: 5px 12px; border: 1px solid var(--line); border-radius: 20px; color: var(--dim); }
.hero-badges span:nth-child(1) { color: var(--pink); }
.hero-badges span:nth-child(2) { color: var(--cyan); }
.hero-badges span:nth-child(3) { color: var(--lime); }
.scroll-tip { margin-top: 44px; font-size: 12px; color: var(--dim2); letter-spacing: 0.08em; }
.scroll-tip:hover { color: var(--lime); }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; --fc: var(--lime); }
.feat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: relative; overflow: hidden; transition: 0.3s; }
.feat-card:hover { transform: translateY(-6px); border-color: var(--fc); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
.feat-card::after { content: attr(data-num); position: absolute; top: 10px; right: 20px; font-size: 96px; font-family: var(--mono); font-weight: 900; color: rgba(255, 255, 255, 0.035); line-height: 1; pointer-events: none; }
.feat-icon { font-size: 28px; margin-bottom: 14px; color: var(--fc); }
.feat-card h3 { font-size: 20px; margin-bottom: 4px; }
.feat-card .en { font-family: var(--mono); font-size: 11px; color: var(--fc); letter-spacing: 0.15em; margin-bottom: 12px; display: block; }
.feat-card p { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.feat-stat { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--fc); }
.feat-stat span { font-size: 12px; color: var(--dim2); font-weight: 400; }
.fbar { height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.fbar i { display: block; height: 100%; background: var(--fc); width: var(--w, 60%); box-shadow: 0 0 10px var(--fc); }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 26px; margin-top: 74px; }
.col-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

/* Posts */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--line); font-size: 12px; color: var(--dim); white-space: nowrap; transition: 0.2s; }
.tabs button.on { background: var(--lime); color: #08080c; border-color: var(--lime); font-weight: 800; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: 0.3s; display: flex; flex-direction: column; }
.post:hover { transform: translateY(-5px); border-color: var(--line2); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9); }
.post-img { height: 148px; overflow: hidden; background: var(--bg2); position: relative; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.post:hover .post-img img { transform: scale(1.04); }
.pbody { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.pmeta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--dim2); margin-bottom: 8px; }
.tag { font-family: var(--mono); font-size: 10px; padding: 2px 6px; border: 1px solid currentColor; border-radius: 5px; }
.t-pink { color: var(--pink); } .t-cyan { color: var(--cyan); } .t-lime { color: var(--lime); }
.t-purple { color: var(--purple); } .t-orange { color: var(--orange); } .t-red { color: var(--red); }
.post h3 { font-size: 15px; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post p { font-size: 12px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.pfoot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--dim2); margin-top: auto; }
.pfoot button { font-size: 12px; color: var(--dim2); display: flex; align-items: center; gap: 4px; transition: 0.2s; }
.pfoot button.liked { color: var(--pink); }

/* Hot list */
.hot-wrap { background: linear-gradient(135deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; --fc: var(--pink); }
.hot-wrap::before { content: ""; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: var(--pink); filter: blur(80px); opacity: 0.15; pointer-events: none; }
.hot-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.hot-item:last-child { border: none; }
.rank { font-family: var(--mono); font-size: 14px; font-weight: 800; width: 20px; color: var(--dim2); }
.hot-item:nth-child(1) .rank { color: var(--red); text-shadow: 0 0 10px var(--red); }
.hot-item:nth-child(2) .rank { color: var(--orange); }
.hot-item:nth-child(3) .rank { color: var(--yellow); }
.hot-item h4 { flex: 1; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar { width: 60px; height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--orange)); width: var(--w); }
.hot-change { margin-top: 12px; width: 100%; padding: 8px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; color: var(--dim); transition: 0.2s; }
.hot-change:hover { color: var(--pink); border-color: var(--pink); }

/* Live */
.live-box { background: var(--panel); border: 1px solid rgba(255, 77, 94, 0.3); border-radius: 16px; overflow: hidden; --fc: var(--red); margin-top: 74px; }
.live-hd { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 12px; font-family: var(--mono); color: var(--red); }
.live-main { height: 290px; position: relative; overflow: hidden; background: var(--bg2); }
.live-main img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.live-mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.live-mask h3 { font-size: 22px; margin-bottom: 8px; }
.danmu-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.timeline { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.tl-item { display: flex; gap: 12px; font-size: 13px; color: var(--dim); }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim2); margin-top: 7px; flex-shrink: 0; }
.tl-item:first-child .tl-dot { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.tl-item time { font-family: var(--mono); font-size: 11px; color: var(--dim2); white-space: nowrap; }

/* Matrix */
.boards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.board { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; position: relative; overflow: hidden; transition: 0.3s; }
.board::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--bc); opacity: 0.5; }
.board:hover { transform: translateY(-5px); border-color: var(--bc); box-shadow: 0 12px 30px -15px rgba(0,0,0,0.9); }
.board:hover::before { opacity: 1; }
.board-icon { font-size: 20px; margin-bottom: 8px; }
.board h4 { font-size: 15px; margin-bottom: 4px; color: var(--bc); }
.board p { font-size: 11px; color: var(--dim); }
.board-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 11px; color: var(--dim2); }
.board-foot button { padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line2); font-size: 10px; color: var(--dim); transition: 0.2s; }
.board-foot button:hover, .board-foot button.on { border-color: var(--bc); color: var(--bc); }

/* Download */
.dl-sec { background: linear-gradient(135deg, rgba(36,233,255,0.08), rgba(61,255,168,0.08)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 60px 0; margin-top: 74px; --fc: var(--cyan); }
.dl-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.dl-title { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.dl-desc { font-size: 14px; color: var(--dim); margin-bottom: 24px; }
.dl-links { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-link { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid rgba(36,233,255,0.4); border-radius: 8px; font-size: 13px; color: var(--cyan); transition: 0.2s; background: rgba(36,233,255,0.05); }
.dl-link:hover { background: rgba(36,233,255,0.15); border-color: var(--cyan); box-shadow: 0 0 20px rgba(36,233,255,0.2); }
.dl-main-btn { display: inline-block; margin-top: 20px; padding: 12px 28px; background: var(--green); color: #07070c; font-weight: 900; border-radius: 8px; font-size: 15px; box-shadow: 0 0 20px rgba(61,255,168,0.3); transition: 0.2s; }
.dl-main-btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(61,255,168,0.5); }
.dl-features { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.dl-features ul { list-style: none; }
.dl-features li { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.dl-features li:last-child { border: none; }
.dl-features li::before { content: "✦"; color: var(--green); }

/* Sidebar Cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card h4 { font-size: 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h4::before { content: ""; width: 4px; height: 14px; background: var(--lime); }

/* Footer */
footer { background: var(--bg2); border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 74px; font-size: 13px; color: var(--dim); }
.f-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.f-grid h5 { color: var(--txt); margin-bottom: 14px; font-size: 14px; }
.f-grid a { display: block; margin-bottom: 10px; transition: 0.2s; }
.f-grid a:hover { color: var(--lime); }
.f-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: var(--dim2); flex-wrap: wrap; gap: 10px; }
.update-time { font-family: var(--mono); }

/* Toast */
#toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--lime); color: var(--lime); padding: 10px 24px; border-radius: 8px; font-size: 13px; z-index: 999; opacity: 0; pointer-events: none; transition: 0.3s; }
#toast.show { opacity: 1; bottom: 40px; }

/* Responsive */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .boards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .col-side { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr; }
  .search-mini { display: none; }
  .dl-layout { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .posts, .col-side, .boards { grid-template-columns: 1fr; }
  .sec { margin-top: 56px; }
  .hbar { display: none; }
  header { flex-wrap: wrap; height: auto; padding: 10px 4vw; }
  nav { order: 3; flex: 1 0 100%; margin-top: 10px; }
  .big-search { height: 56px; padding-left: 14px; }
  .s-btn { height: 40px; padding: 0 14px; font-size: 13px; }
  .f-grid { grid-template-columns: 1fr; }
}