:root{
  --bg:#0b0f14;
  --panel:rgba(255,255,255,.04);
  --border:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.88);
  --muted:rgba(255,255,255,.62);
}

*{box-sizing:border-box}
html, body{ min-height:100%; }

body{
  margin:0;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(120,80,255,.10), transparent 62%),
    radial-gradient(900px 520px at 85% 20%, rgba(80,200,255,.09), transparent 62%),
    radial-gradient(900px 520px at 45% 90%, rgba(140,180,255,.06), transparent 70%),
    var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "PingFang SC","Microsoft YaHei", sans-serif;
}

/* global mouse glow */
body::before{
  content:"";
  position:fixed;
  inset:-240px;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(620px 520px at var(--cx, 50vw) var(--cy, 50vh),
      rgba(140,180,255,.09),
      rgba(120,255,180,.05),
      transparent 72%);
  filter: url(#fluidGlow) blur(18px);
  opacity:0;
  transition: opacity .6s ease;
}
body.mouse-glow::before{ opacity:1; }

.topbar, .wrap, .modal{ position:relative; z-index:1; }

.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px;
  background: rgba(10,14,20,.65);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index:2;
}

.muted{color:var(--muted)}
.tiny{font-size:12px}

.brandCard{
  display:flex; align-items:center; gap:12px;
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  cursor:pointer;
  position:relative;
  overflow:hidden;
}

.avatarWrap{ position:relative; width:44px; height:44px; }
.avatar{
  width:44px; height:44px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.online{
  position:absolute;
  right:2px; bottom:2px;
  width:10px; height:10px;
  border-radius:999px;
  background:rgba(120,255,180,.95);
  border:2px solid rgba(10,14,20,.92);
}

.brandText{ display:flex; flex-direction:column; gap:2px; }
.brandTop{ display:flex; align-items:center; gap:10px; }
.name{font-weight:700;letter-spacing:.5px}
.sub{opacity:.65}
.tag{font-size:12px; opacity:.75;}

.nav{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

/* ===== Buttons: ALL rounded ===== */
.pill, .searchbox, .searchClear, .x, .tileBtn{
  border-radius:999px !important;
}

.pill{
  appearance:none;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:inherit;
  padding:10px 14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.pill:hover{background:rgba(255,255,255,.07)}

.searchbox{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
}
.search{
  width:min(360px, 52vw);
  border:none;
  outline:none;
  background:transparent;
  color:inherit;
  font:inherit;
}
.search::placeholder{ color: rgba(255,255,255,.45); }
.searchClear{
  width:32px;height:32px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.75);
  cursor:pointer;
}
.searchClear:hover{ background:rgba(0,0,0,.32); }

.wrap{max-width:1100px;margin:0 auto;padding:18px 18px 48px; min-height:calc(100vh - 90px);}
.hero{padding:10px 0 12px}
.hero h1{margin:8px 0 8px;font-size:34px}

.panel{
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.03);
  box-shadow:0 20px 60px rgba(0,0,0,.35);
}
.panelhead{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  padding:14px;
}
@media(max-width:980px){ .grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:620px){ .grid{ grid-template-columns: 1fr; } }

.tile{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  overflow:hidden;
  cursor:pointer;
  position:relative;
}
.tile:hover{ background:rgba(0,0,0,.26); }

.thumb{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}
.metaBox{ padding:10px 12px 12px; }
.cap{ font-weight:700; margin-bottom:6px; }
.tags{ font-size:12px; color:var(--muted); }

/* actions */
.tileActions{
  position:absolute;
  top:10px; right:10px;
  display:flex; gap:8px;
  opacity:0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events:none;
}
.tile:hover .tileActions{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}
.tileBtn{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.38);
  color:rgba(255,255,255,.86);
  padding:6px 10px;
  font-size:12px;
  cursor:pointer;
  backdrop-filter: blur(6px);
}
.tileBtn:hover{ background:rgba(0,0,0,.55); }

/* modal */
.modal{
  position:fixed; inset:0;
  display:none;
  place-items:center;
  background:rgba(0,0,0,.55);
  z-index:2147483647;
}
.modal.show{display:grid}
.modalbox{
  width:min(900px,92vw);
  max-height:86vh;
  overflow:auto;
  border-radius:18px;
  border:1px solid var(--border);
  background:rgba(10,14,20,.92);
  box-shadow:0 30px 90px rgba(0,0,0,.55);
  padding:16px 16px 18px;
}
.modalbox.wide{width:min(1000px,92vw)}
.x{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.22);
  color:rgba(255,255,255,.75);
  font-size:16px;
  width:34px;height:34px;
  cursor:pointer;
}
.x:hover{background:rgba(0,0,0,.32); color:rgba(255,255,255,.92);}
.big{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  margin-top:12px;
}

.form{display:grid;gap:10px;margin-top:10px}
input{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  color:rgba(255,255,255,.88);
  padding:10px 12px;
  font:inherit;
}
label{font-size:12px;color:rgba(255,255,255,.70)}
.row{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}

.footer{padding:16px 18px 22px; text-align:center; color:var(--muted);}

/* ===== One single glow system (fluid) ===== */
.glowable{
  position:relative;
  overflow:hidden;
  border-radius:inherit;
}
.glowable::before{
  content:"";
  position:absolute;
  inset:-180px;
  pointer-events:none;
  background:
    radial-gradient(320px 260px at var(--mx, 50%) var(--my, 50%),
      rgba(140,180,255,.11),
      transparent 70%),
    radial-gradient(280px 240px at calc(var(--mx, 50%) + 12%) calc(var(--my, 50%) - 10%),
      rgba(120,255,180,.07),
      transparent 72%),
    radial-gradient(240px 220px at calc(var(--mx, 50%) - 14%) calc(var(--my, 50%) + 12%),
      rgba(255,160,220,.05),
      transparent 74%);
  filter: url(#fluidGlow) blur(14px) saturate(1.05);
  opacity:0;
  transition: opacity .18s ease;
}
.glowable:hover::before{ opacity:1; }

/* ===== FIX: brandCard must stay rounded ===== */
.brandCard{
  border-radius: 18px !important;
  overflow: hidden !important;
}
.brandCard::before{
  border-radius: 18px !important;
}

/* glowable 不再用 inherit，避免继承到 0 变方 */
.glowable{
  border-radius: 16px;
}
.pill, .link, .searchbox, .tileBtn, .x{
  border-radius: 999px !important;
}