@import url("/css/bilzatweb-theme.css");

:root {
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "DM Sans", Inter, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(109, 94, 245, 0.16), transparent 60%),
    radial-gradient(800px 400px at 100% 20%, rgba(139, 127, 248, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}
a { color: var(--accent); text-decoration: none; }
.wrap {
  width: min(var(--wrap), 100%);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 1536px) {
  .wrap { max-width: 1536px; width: 1536px; }
}

/* —— 顶栏：紫底 + 居中白胶囊菜单（对齐参考图） —— */
nav.top {
  position: sticky; top: 0; z-index: 40;
  width: 100%;
  isolation: isolate;
  background: linear-gradient(90deg, #5b4fe0 0%, var(--bp-purple) 45%, #7a6cf0 100%);
  border-bottom: none;
  box-shadow: 0 10px 28px rgba(86, 70, 229, 0.28);
}
nav.top .row {
  display: grid;
  grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr);
  align-items: center;
  height: 68px;
  column-gap: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 17px;
  letter-spacing: -0.02em;
  justify-self: start;
  z-index: 2;
  min-width: 0;
}
.brand:hover { color: #fff; opacity: 0.92; }
.mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.mark::after {
  content: "";
  position: absolute; left: 5px; right: 5px; bottom: 7px;
  height: 3px; border-radius: 99px; background: #fff; transform: skewX(-18deg);
}
.links {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: stretch;
  justify-self: center;
  width: max-content;
  max-width: min(920px, calc(100vw - 300px));
  min-width: min(720px, calc(100vw - 300px));
  padding: 4px;
  gap: 2px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.12);
}
.links a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5c5c6d;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 999px;
  border-bottom: none;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  min-width: 0;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.links a:hover {
  color: var(--ink);
  background: rgba(109, 94, 245, 0.08);
}
.links a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--bp-purple), var(--bp-purple-deep));
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(109, 94, 245, 0.28);
}
.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  justify-self: end;
  z-index: 2;
  min-width: 0;
}
.nav-search {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: #fff;
  border-radius: 999px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}
.nav-search:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
}
.nav-search svg { width: 18px; height: 18px; }
.nav-login {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 999px;
}
.nav-login:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.nav-actions .nav-register {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 999px;
  margin-left: 2px;
  background: linear-gradient(135deg, #5b4fe0, var(--bp-purple-deep));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 20px rgba(26, 26, 46, 0.18);
}
.nav-actions .nav-register:hover {
  background: linear-gradient(135deg, var(--bp-purple), var(--bp-purple-deep));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 168px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}
.nav-user:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.nav-user.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.22);
}
.nav-avatar {
  width: 28px; height: 28px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--bp-purple-deep);
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.nav-username {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-menu {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff; cursor: pointer; border-radius: 999px;
}
.nav-menu:hover { color: #fff; background: rgba(255, 255, 255, 0.24); }
.nav-actions .btn.ink {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 10px 18px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 650; font-size: 14px; cursor: pointer;
}
.btn:hover { border-color: #d1d5db; }
.btn.primary {
  background: linear-gradient(135deg, var(--bp-purple), var(--bp-purple-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(109, 94, 245, 0.28);
}
.btn.primary:hover {
  background: linear-gradient(135deg, var(--bp-purple-soft), var(--bp-purple));
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(109, 94, 245, 0.36);
}
.btn.ink {
  background: #111; color: #fff; border-color: #111;
  border-radius: 10px; padding: 8px 20px; font-weight: 600; font-size: 14px;
  min-height: 36px;
}
.btn.ink:hover { opacity: 0.85; border-color: #111; color: #fff; }
.btn.ghost { background: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* —— 首页英雄：网格 + 暖光 —— */
.hero-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 280px at 72% 18%, rgba(109, 94, 245, 0.2), transparent 70%),
    radial-gradient(480px 260px at 22% 78%, rgba(139, 127, 248, 0.14), transparent 72%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  pointer-events: none;
}
.hero {
  position: relative;
  padding: 88px 0 56px;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 { font-size: 56px; line-height: 1.16; margin: 12px 0 16px; font-weight: 800; letter-spacing: -0.03em; }
h1 .accent { color: var(--accent); }
.lead { color: var(--muted); font-size: 17px; line-height: 1.75; margin: 0 auto; max-width: 640px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-note a { color: var(--ink); font-weight: 650; border-bottom: 1px solid #d1d5db; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px auto 0; max-width: 720px; }
.metric {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow);
}
.metric b { display: block; font-size: 28px; letter-spacing: -0.03em; }
.metric span { color: var(--muted); font-size: 13px; }

.section { padding: 56px 0 8px; }
.section-title { text-align: center; font-size: 28px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 28px; }

.actions-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.action-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 20px;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.action-card:hover { transform: translateY(-3px); border-color: var(--accent-border); color: inherit; }
.action-card .n {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.action-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--ink); }
.action-card p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.action-card em { font-style: normal; color: var(--accent); font-weight: 700; font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 10px 0 28px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
a.card { color: inherit; display: block; transition: transform 0.15s, border-color 0.15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--accent-border); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }

.panel {
  background: #111; color: #efe9dc; border-radius: 20px; padding: 18px;
  min-height: 220px; box-shadow: var(--shadow); font-family: var(--mono); font-size: 13px;
}
.panel .bar { color: #8d8678; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: start; }

.page-hero { padding: 48px 0 12px; }
.page-hero h1 { font-size: 36px; }

footer.site-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  background: var(--accent); color: #fff; border: 0;
  border-radius: 999px; padding: 12px 18px;
  box-shadow: 0 10px 28px rgba(109, 94, 245, 0.35);
  display: inline-flex; align-items: center; gap: 8px;
}
.fab:hover { background: var(--accent-hover); color: #fff; }

form.stack { display: grid; gap: 10px; max-width: 420px; }
input, textarea, select {
  width: 100%; padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); font: inherit; background: #fff;
}
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-weight: 600; }
.msg { min-height: 22px; color: var(--warn); font-size: 13px; }
.ok { color: var(--accent-2); }
.notice { background: #fff6e8; border: 1px solid #f0d7b0; padding: 12px 14px; border-radius: 12px; color: #6a4a18; }
pre { background: #111; color: #efe9dc; padding: 16px; border-radius: 14px; overflow: auto; }

.links .nav-forever {
  font-size: 12px;
  font-weight: 750;
  color: var(--accent) !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border-bottom: 0 !important;
}

@media (max-width: 1180px) and (min-width: 961px) {
  .links {
    max-width: min(760px, calc(100vw - 280px));
    min-width: min(560px, calc(100vw - 280px));
  }
  .links a { font-size: 12.5px; padding: 8px 8px; }
}
@media (max-width: 960px) {
  nav.top .row {
    display: flex;
    justify-content: space-between;
    height: 60px;
  }
  .nav-menu { display: grid; place-items: center; }
  .links {
    display: none;
    position: absolute;
    left: 12px; right: 12px; top: 64px;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 10px;
    justify-self: stretch;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    background: #fff;
    border-radius: 18px;
    gap: 4px;
    box-shadow: 0 16px 36px rgba(26, 26, 46, 0.16);
  }
  nav.top.open .links { display: grid; }
  .links a {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    text-align: left;
  }
  .nav-login { display: none; }
  .nav-username { max-width: 72px; }
  .hero, .grid, .metrics, .actions-3, .split { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .hero { padding: 56px 0 36px; }
}

.logs-lazy-hint {
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
