/* Nokyn 复刻版 —— 共享样式（深色主题 + Gruvbox 配色 + 等宽字体） */
:root {
  --bg: #111111;
  --bg-soft: #1d2021;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-72: rgba(255, 255, 255, 0.72);
  --text-50: rgba(255, 255, 255, 0.50);
  --banana: #FABD2F;
  --banana-soft: rgba(250, 189, 47, 0.12);
  --green: #B8BB26;
  --aqua: #8EC07C;
  --blue: #4876D6;
  --purple: #994CC3;
  --red: #FB4934;
  --orange: #FE8019;
  --pink: #D3869B;
  --cyan: #83A598;
  --mono: "JetBrains Mono", "Cascadia Code", "Fira Code", Consolas, "Courier New", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ---- 顶部导航 ---- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  height: 56px; border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.34); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.header-inner {
  max-width: 80rem; height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.brand img, .brand .logo { width: 22px; height: 22px; }
.brand:hover .logo { animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--text-72); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 500; padding: 8px 16px;
  transition: all .15s;
}
.btn:hover { background: var(--card-hover); border-color: var(--border-strong); }
.btn-primary { background: var(--banana); border-color: var(--banana); color: #1d2021; font-weight: 700; }
.btn-primary:hover { background: #ffc94a; border-color: #ffc94a; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: transparent; border-color: rgba(251,73,52,.4); color: var(--red); }
.btn-danger:hover { background: rgba(251,73,52,.12); border-color: var(--red); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- 通用布局 ---- */
.section { max-width: 80rem; margin: 0 auto; padding: 88px 24px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(250, 189, 47, 0.35); background: var(--banana-soft);
  color: var(--banana); font-size: 13px; border-radius: 999px; padding: 4px 14px;
}
.section-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-sub { color: var(--text-72); font-size: 15px; max-width: 640px; }
.card {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card); transition: all .2s;
}
.card:hover { border-color: var(--border-strong); background: var(--card-hover); }

/* ---- 表单 ---- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-72); }
.input {
  width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px; padding: 10px 12px;
  outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--banana); }
.input::placeholder { color: var(--text-50); }
select.input option { background: #1d2021; }

/* ---- 表格 ---- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; color: var(--text-50); font-weight: 500; font-size: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.table tr:hover td { background: rgba(255,255,255,.02); }

/* ---- 徽标 ---- */
.tag {
  display: inline-flex; align-items: center; border-radius: 999px;
  font-size: 11px; padding: 3px 10px; border: 1px solid var(--border); color: var(--text-72);
}
.tag-ok { color: var(--green); border-color: rgba(184,187,38,.4); background: rgba(184,187,38,.1); }
.tag-err { color: var(--red); border-color: rgba(251,73,52,.4); background: rgba(251,73,52,.1); }
.tag-warn { color: var(--orange); border-color: rgba(254,128,25,.4); background: rgba(254,128,25,.1); }

/* ---- 提示条 ---- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #1d2021; border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 20px; font-size: 14px; z-index: 100; opacity: 0;
  transition: all .25s; box-shadow: 0 8px 30px rgba(0,0,0,.5); max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.err { border-color: rgba(251,73,52,.5); color: var(--red); }
.toast.ok { border-color: rgba(184,187,38,.5); color: var(--green); }

.empty { color: var(--text-50); font-size: 13px; text-align: center; padding: 40px 0; }
.loading { color: var(--text-50); font-size: 13px; text-align: center; padding: 24px 0; }

/* ---- 移动端汉堡按钮 ---- */
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text-72);
}
.menu-btn svg { width: 18px; height: 18px; }

/* ---- 移动端下拉菜单 ---- */
.mobile-menu {
  display: none; position: absolute; top: 56px; left: 0; right: 0;
  flex-direction: column; background: var(--bg-soft);
  border-bottom: 1px solid var(--border); padding: 6px 20px 12px; z-index: 55;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.mobile-menu a { padding: 13px 4px; color: var(--text-72); font-size: 14px; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ---- 表格横向滚动（移动端） ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .table { min-width: 560px; }

/* ---- 移动端适配 ---- */
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; }
  .header-inner { padding: 0 16px; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 26px; }
  .panel-card { overflow-x: auto; }
}
