:root {
  --bg: #f9fafb;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #6b7280;
  --line: #eceef2;
  --accent: #ff6a1a;
  --accent-hover: #e85d12;
  --accent-soft: #fff4ec;
  --accent-2: #16a34a;
  --warn: #c45c26;
  --shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --wrap: 1280px;
  --mute: #62625b;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: 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%;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
nav.top .row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  height: 64px;
  gap: 12px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  justify-self: start;
  flex: 0 0 auto;
}
.mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff6a1a, #ffb347);
  position: relative;
  flex: 0 0 auto;
}
.mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 7px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
  transform: skewX(-18deg);
}
.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  justify-self: center;
  flex: 0 0 auto;
}
.links a {
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
}
.links a.active,
.links a:hover {
  color: var(--ink);
}
.links a.active {
  border-bottom-color: var(--accent);
  font-weight: 650;
}
.nav-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  justify-self: end;
  flex: 0 0 auto;
}
.nav-search {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #9a9a93;
  border-radius: 10px;
  flex: 0 0 auto;
}
.nav-search:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-search svg {
  width: 20px;
  height: 20px;
}
.nav-login {
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 4px;
  white-space: nowrap;
}
.nav-login:hover {
  color: var(--ink);
}
.nav-login.active {
  color: var(--accent);
  font-weight: 650;
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.nav-user:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-user.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffb347 0%, #ff6a1a 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--mute);
  cursor: pointer;
  border-radius: 10px;
}
.nav-menu:hover {
  color: var(--ink);
  background: #f3f4f6;
}

.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: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.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(255, 154, 90, 0.28), transparent 70%),
    radial-gradient(480px 260px at 22% 78%, rgba(255, 176, 120, 0.22), transparent 72%),
    linear-gradient(180deg, #fff 0%, #f9fafb 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: #ffd0b3; 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: #ffd0b3; }
.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;
  font-weight: 750; font-size: 14px; box-shadow: 0 10px 28px rgba(255, 106, 26, 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; }

@media (max-width: 1100px) {
  .links a { padding: 8px 9px; font-size: 13px; }
}
@media (max-width: 960px) {
  nav.top .row {
    display: flex;
    justify-content: space-between;
    grid-template-columns: none;
  }
  .nav-menu { display: grid; place-items: center; }
  .links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 16px 12px;
    justify-self: stretch;
    z-index: 45;
    box-shadow: 0 12px 24px rgba(17, 17, 17, 0.06);
  }
  nav.top.open .links { display: flex; }
  .links a {
    padding: 12px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .links a.active {
    border-bottom-color: var(--line);
    color: var(--accent);
  }
  .nav-login { display: none; }
  .nav-username { display: none; }
  .nav-user { max-width: none; padding: 4px; }
  .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;
}
