/* 王者荣耀 ID 速查 · 深空极光玻璃风格（对齐 3oe.top 导航站） */
:root {
  color-scheme: dark;
  --bg: #06080f;
  --panel: rgba(19, 25, 40, .72);
  --panel-2: rgba(24, 32, 50, .9);
  --text: #e9edf7;
  --muted: #93a1b8;
  --line: rgba(147, 161, 184, .16);
  --violet: #8b7cff;
  --cyan: #38e0c8;
  --amber: #ffb86b;
  --gold: #ffd166;
  --blue: #5b8cff;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 26px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, .34);
  --topbar-h: 65px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 420px at 12% -6%, rgba(139, 124, 255, .24), transparent 62%),
    radial-gradient(720px 460px at 88% 4%, rgba(56, 224, 200, .18), transparent 60%),
    radial-gradient(900px 600px at 60% 108%, rgba(91, 140, 255, .16), transparent 64%),
    linear-gradient(180deg, #06080f, #080b16 46%, #05070d);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    linear-gradient(rgba(147, 161, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 161, 184, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 78%);
}

/* topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 clamp(16px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 8, 15, .94), rgba(6, 8, 15, .72));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(150deg, rgba(139, 124, 255, .5), rgba(56, 224, 200, .34));
  font-size: 13px; font-weight: 800; letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.brand strong { display: block; font-size: 15.5px; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.back-home {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(19, 25, 40, .6);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.back-home:hover { border-color: rgba(139, 124, 255, .6); background: rgba(139, 124, 255, .16); }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 26px clamp(16px, 4.5vw, 56px) 64px; }

/* hero */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 6%, rgba(56, 224, 200, .2), transparent 52%),
    linear-gradient(158deg, rgba(24, 31, 50, .86), rgba(10, 14, 26, .66));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.overline { margin: 0 0 6px; color: var(--cyan); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0 0 8px; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.01em; }
.hero p.sub { margin: 0; max-width: 620px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.hero-stats { display: flex; gap: 30px; }
.hero-stats b { display: block; font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hero-stats span { color: var(--muted); font-size: 12px; }

/* tabs */
.tabs {
  display: flex; gap: 5px;
  margin: 20px 0 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(19, 25, 40, .6);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; border-radius: 999px;
  padding: 8px 20px;
  background: transparent; color: var(--muted);
  font: inherit; font-weight: 650; font-size: 13.5px;
  white-space: nowrap; cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] {
  color: #06080f;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}

/* toolbar */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 280px; min-width: 220px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
input[type=search], select {
  font: inherit; color: var(--text);
  background: rgba(19, 25, 40, .78);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  width: 100%; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input[type=search] { padding-left: 37px; }
input[type=search]::placeholder { color: rgba(147, 161, 184, .72); }
input[type=search]:focus, select:focus { border-color: rgba(56, 224, 200, .6); box-shadow: 0 0 0 3px rgba(56, 224, 200, .14); }
select { width: auto; min-width: 138px; cursor: pointer; }
select option { background: #0c1120; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-size: 13.5px; font-weight: 650;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(19, 25, 40, .78); color: var(--text);
  white-space: nowrap; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn:hover { border-color: rgba(139, 124, 255, .55); background: rgba(139, 124, 255, .16); transform: translateY(-1px); }
.btn svg { flex: none; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(19, 25, 40, .6);
  color: var(--muted);
  font: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] {
  color: #06080f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
.hero-card {
  position: relative;
  display: flex; gap: 13px; align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 52%),
    linear-gradient(158deg, rgba(24, 31, 50, .82), rgba(10, 14, 26, .62));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .06);
  cursor: pointer;
  overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), transparent 24%);
}
.hero-card:hover, .hero-card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 54%, transparent);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 32px color-mix(in srgb, var(--accent) 20%, transparent);
  outline: none;
}
.avatar {
  width: 54px; height: 54px; flex: none;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(12, 17, 32, .9);
  border: 1px solid rgba(255, 255, 255, .1);
}
.avatar.ph { display: grid; place-items: center; font-size: 19px; font-weight: 800; color: var(--muted); }
.hmeta { min-width: 0; flex: 1; }
.hname { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 15px; }
.role {
  flex: none;
  padding: 2px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700;
  color: #06080f;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}
.hid {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12.5px; color: var(--muted);
}
.hid b { font-size: 16px; color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.hsub { margin-top: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* skills */
.skills { display: grid; gap: 12px; }
.skill {
  position: relative;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 46%),
    linear-gradient(158deg, rgba(24, 31, 50, .82), rgba(10, 14, 26, .62));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.skill:hover, .skill:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 54%, transparent);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 32px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}
.sid {
  flex: none; width: 86px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 21px; font-weight: 800; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.sbody { min-width: 0; flex: 1; }
.shead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.sname { font-size: 15.5px; font-weight: 700; }
.srank {
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  color: var(--muted); font-size: 11.5px;
}
.sdesc { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.7; word-break: break-word; }

.empty { margin: 26px 0 0; padding: 40px 22px; text-align: center; color: var(--muted); border: 1px dashed rgba(147, 161, 184, .24); border-radius: var(--radius); }
.empty b { display: block; margin-bottom: 5px; color: var(--text); font-size: 15px; }

footer.foot { margin-top: 34px; color: var(--muted); font-size: 12.5px; line-height: 1.8; }
footer.foot code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-size: 11.5px; }

#toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 90;
  transform: translate(-50%, 14px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(12, 17, 32, .96);
  color: var(--text); font-size: 13px; font-weight: 600;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 620px) {
  .wrap { padding: 18px 14px 52px; }
  .hero { padding: 20px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 22px; }
  .brand small { display: none; }
  .sid { width: 70px; font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
}
