/* ==========================================================================
   订单工作台 —— 深色 HUD 主题
   --------------------------------------------------------------------------
   设计语言：深空背景 + 青色霓虹 + 玻璃面板 + HUD 四角标记
   全部用纯 CSS 实现，不依赖外部字体、图标库或 CDN，内网服务器也能正常显示
   ========================================================================== */

:root {
  --bg-0: #05080f;
  --bg-1: #070d18;
  --panel: rgba(11, 19, 33, 0.82);
  --panel-hi: rgba(17, 28, 48, 0.92);
  --line: rgba(56, 189, 248, 0.16);
  --line-2: rgba(56, 189, 248, 0.34);

  --cyan: #22d3ee;
  --blue: #38bdf8;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;

  --text: #dbe7f5;
  --text-dim: #8397af;
  --text-mute: #55677f;

  --radius: 2px;
  --mono: "JetBrains Mono", "Cascadia Mono", "Consolas", "Courier New", monospace;
  --glow-cyan: 0 0 14px rgba(34, 211, 238, 0.45);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  background:
    radial-gradient(1100px 620px at 18% -8%, rgba(34, 211, 238, 0.10), transparent 62%),
    radial-gradient(900px 520px at 88% -4%, rgba(167, 139, 250, 0.09), transparent 58%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* 背景网格：只覆盖上半屏并淡出，避免干扰表格阅读 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 0%, transparent 78%);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 26px;
  height: 62px;
  padding: 0 24px;
  background: rgba(5, 9, 17, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.10), 0 14px 34px -20px rgba(0, 0, 0, 0.95);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand:hover { text-decoration: none; color: #fff; }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: #031016;
  background: linear-gradient(135deg, #67e8f9, #0891b2);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(34, 211, 238, 0.62);
  font-weight: 400;
}

.nav { display: flex; gap: 2px; flex: 1; }

.nav a {
  position: relative;
  padding: 7px 14px;
  color: #93a7bf;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  transition: color 0.18s, text-shadow 0.18s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: scaleX(0);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav a:hover {
  color: #e6f9ff;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}
.nav a:hover::after { transform: scaleX(1); opacity: 1; }

.user-box { display: flex; align-items: center; gap: 14px; }

.sys-clock {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding: 3px 9px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.06);
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.08);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.65);
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
  flex: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.82); }
}

/* ---------- 页面容器 ---------- */

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 26px 24px 40px;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ---------- 提示条 ---------- */

.flash-area { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }

.flash {
  padding: 11px 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: 2px solid var(--blue);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.13), rgba(56, 189, 248, 0.03));
  color: #b8e8ff;
  font-size: 13.5px;
  box-shadow: 0 0 22px -8px rgba(56, 189, 248, 0.5);
}
.flash-error {
  border-color: rgba(251, 113, 133, 0.36);
  border-left-color: var(--rose);
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.14), rgba(251, 113, 133, 0.03));
  color: #ffc9d2;
  box-shadow: 0 0 22px -8px rgba(251, 113, 133, 0.5);
}
.flash-ok {
  border-color: rgba(52, 211, 153, 0.36);
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.14), rgba(52, 211, 153, 0.03));
  color: #a7f3d0;
  box-shadow: 0 0 22px -8px rgba(52, 211, 153, 0.5);
}

/* ---------- 玻璃面板 + HUD 四角 ---------- */

.card,
.stat-card,
.filter-bar,
.table-wrap,
.login-card,
.error-card {
  position: relative;
  background: linear-gradient(158deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 22px 50px -30px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 四角 HUD 标记：用多重渐变画 8 条短线 */
.card::before,
.stat-card::before,
.filter-bar::before,
.table-wrap::before,
.login-card::before,
.error-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left     / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top left     / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top right    / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top right    / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom left  / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom left  / 1px 14px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / 1px 14px no-repeat;
}

.card { padding: 26px; }
.form-card { max-width: 840px; }
.form-narrow { max-width: 540px; }

.page-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #eaf6ff;
}
.page-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 15px;
  margin-right: 10px;
  vertical-align: -1px;
  background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, 0.15));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
}

.page-tip { margin: 0 0 20px; color: var(--text-mute); font-size: 12.5px; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

/* ---------- 登录页 ---------- */

/* 背景层：三张服务端模糊过的图轮流淡入淡出（18 秒一轮，每张停 6 秒） */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-slide {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: opacity, transform;
  filter: saturate(1.15);
  animation: bgCycle 18s ease-in-out infinite;
}

.bg-1 { background-image: url("bg1.jpg"); animation-delay: 0s; }
.bg-2 { background-image: url("bg2.jpg"); animation-delay: 6s; }
.bg-3 { background-image: url("bg3.jpg"); animation-delay: 12s; }

@keyframes bgCycle {
  0%   { opacity: 0; transform: scale(1.04); }
  4%   { opacity: 1; }
  30%  { opacity: 1; }
  34%  { opacity: 0; transform: scale(1.10); }
  100% { opacity: 0; transform: scale(1.10); }
}

/* 暗化遮罩：中间完全不压暗（图能看清），只把四周和底部压下去 */
.bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 58% at 50% 42%, rgba(5, 8, 15, 0.0), rgba(5, 8, 15, 0.58) 80%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.26) 0%, rgba(5, 8, 15, 0.68) 100%);
}

/* 网格叠在图片上，和整体风格保持一致 */
.bg-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 88% 62% at 50% 34%, #000 0%, transparent 82%);
  mask-image: radial-gradient(ellipse 88% 62% at 50% 34%, #000 0%, transparent 82%);
}

.login-wrap {
  display: flex;
  justify-content: center;
  padding-top: 9vh;
  position: relative;
  z-index: 2;
}

/* 登录卡片里的元素依次浮现 */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.login-card .login-title {
  animation: riseIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
.login-card .login-sub {
  animation: riseIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.30s both;
}
.login-card form {
  animation: riseIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both;
}
.login-card .login-hint {
  animation: riseIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.68s both;
}

/* 登录页背后的光晕圆环 */
.login-wrap::before {
  content: "";
  position: absolute;
  top: 3vh;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.10);
  box-shadow:
    0 0 90px 10px rgba(34, 211, 238, 0.10),
    inset 0 0 90px rgba(34, 211, 238, 0.06);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 392px;
  padding: 36px 30px 30px;
}

.login-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: #eaf9ff;
  text-shadow: 0 0 26px rgba(34, 211, 238, 0.55);
}

/* 登录页的字段是平铺的，没有 .form-row 包裹，单独给间距 */
.login-card .field { margin-bottom: 18px; }

.login-sub {
  margin: 0 0 28px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(34, 211, 238, 0.6);
}

.login-hint {
  margin: 20px 0 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 12px;
}

/* ---------- 表单控件 ---------- */

.form-row { margin-bottom: 18px; }

.field { display: block; }

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8fb3cc;
}

.opt  { font-style: normal; font-weight: 400; color: var(--text-mute); letter-spacing: normal; }
.req  { font-style: normal; font-weight: 400; color: var(--rose); letter-spacing: normal; }

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-mute);
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius);
  background: rgba(4, 9, 17, 0.86);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

input::placeholder, textarea::placeholder { color: #44566d; }

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 211, 238, 0.75);
  background: rgba(6, 14, 26, 0.95);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 0 18px rgba(34, 211, 238, 0.16);
}

select option { background: #0a1424; color: var(--text); }

textarea { resize: vertical; min-height: 62px; }

input[type="file"] {
  padding: 8px 11px;
  background: rgba(6, 12, 22, 0.7);
  color: var(--text-dim);
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.1);
  color: #a5ecff;
  font-family: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
}
input[type="file"]::file-selector-button:hover {
  background: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.3);
}

.current-shot { margin-top: 14px; }
.current-shot img {
  max-width: 230px;
  max-height: 168px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 0 22px -6px rgba(34, 211, 238, 0.32);
}

/* 三个状态勾选组 */
.status-group {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  background: rgba(4, 9, 17, 0.45);
}
.status-group legend {
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8fb3cc;
}

/* ---------- 自定义勾选框 ---------- */

.chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.18s;
}

.chk input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chk-mark {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 2px;
  background: rgba(4, 10, 19, 0.9);
  flex: none;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.chk:hover .chk-mark { border-color: rgba(34, 211, 238, 0.75); }

.chk input:checked + .chk-mark,
.chk-on .chk-mark {
  background: linear-gradient(135deg, #0e7490, #22d3ee);
  border-color: #67e8f9;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.65), inset 0 0 7px rgba(255, 255, 255, 0.28);
}

.chk input:checked + .chk-mark::after,
.chk-on .chk-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #04151c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.chk input:checked ~ .chk-text,
.chk-on .chk-text {
  color: #7dd3fc;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.chk input:focus-visible + .chk-mark {
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.35);
}

.chk-lg { font-size: 14px; }
.chk-lg .chk-mark { width: 19px; height: 19px; }
.chk-lg .chk-mark::after { left: 6px; top: 2px; }

.toggle-form { margin: 0; }

/* ---------- 按钮 ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  color: #03161d;
  font-weight: 700;
  background: linear-gradient(135deg, #67e8f9, #0891b2);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.6);
}

.btn-ghost {
  color: #9fd6ea;
  background: rgba(8, 16, 29, 0.8);
  border-color: rgba(56, 189, 248, 0.28);
}
.btn-ghost:hover {
  color: #e2fbff;
  border-color: rgba(34, 211, 238, 0.85);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.07);
}

.btn-block { width: 100%; margin-top: 8px; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--blue);
  cursor: pointer;
  transition: color 0.18s, text-shadow 0.18s;
}
.btn-link:hover {
  color: var(--cyan);
  text-decoration: none;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
}
.btn-link.danger { color: var(--rose); }
.btn-link.danger:hover { color: #ffb3bf; text-shadow: 0 0 12px rgba(251, 113, 133, 0.6); }

.inline-form { display: inline; margin: 0; }

.form-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ---------- 统计卡片 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 16px 18px 14px;
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
}

.stat-card:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 30px -8px rgba(34, 211, 238, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* 左侧发光竖条 */
.stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}
.stat-total::after  { background: var(--blue);   box-shadow: 0 0 12px var(--blue); }
.stat-green::after  { background: var(--green);  box-shadow: 0 0 12px var(--green); }
.stat-blue::after   { background: var(--cyan);   box-shadow: 0 0 12px var(--cyan); }
.stat-orange::after { background: var(--amber);  box-shadow: 0 0 12px var(--amber); }
.stat-purple::after { background: var(--violet); box-shadow: 0 0 12px var(--violet); }

.stat-label {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.stat-value {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #eaf9ff;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.55);
  font-variant-numeric: tabular-nums;
}

.stat-bar {
  height: 4px;
  margin: 10px 0 8px;
  background: rgba(56, 189, 248, 0.12);
  overflow: hidden;
}
.stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.55), #67e8f9);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.95);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stat-bar-flat span {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.42));
  box-shadow: none;
}

.stat-sub { font-size: 11.5px; color: var(--text-mute); }

/* ---------- 筛选栏 ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 13px 15px;
  margin-bottom: 16px;
}

.search-input { flex: 1 1 280px; min-width: 200px; }
.select { flex: 0 0 auto; width: auto; min-width: 132px; }

/* ---------- 表格 ---------- */

.table-wrap { overflow-x: auto; }

.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.grid thead th {
  position: sticky;
  top: 0;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #93d9f2;
  background: rgba(6, 12, 22, 0.96);
  padding: 12px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
  z-index: 2;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.28);
}

.grid tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.07);
  color: var(--text);
  vertical-align: middle;
}

.grid tbody tr { transition: background 0.15s; }
.grid tbody tr:hover { background: rgba(34, 211, 238, 0.055); }
.grid tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--cyan); }
.grid tbody tr:last-child td { border-bottom: none; }

.col-id { width: 54px; font-family: var(--mono); color: var(--text-mute); }
.col-shot { width: 86px; }
.col-status { width: 110px; }
.col-meta { width: 152px; font-size: 12.5px; white-space: nowrap; }
.col-ops { width: 112px; white-space: nowrap; }
.col-ops .inline-form { margin-left: 12px; }

.thumb {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius);
  filter: saturate(0.92);
  transition: transform 0.16s, filter 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.thumb:hover {
  transform: scale(1.06);
  filter: saturate(1.1);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.45);
}

.cell-text {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-time {
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--text-mute); }

.empty {
  text-align: center;
  color: var(--text-mute);
  padding: 46px 12px !important;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

/* ---------- 标签 ---------- */

.tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  color: #9fd6ea;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.tag-admin {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
}

.reset-form { display: inline-flex; gap: 7px; align-items: center; }
.reset-form input {
  width: 152px;
  padding: 5px 9px;
  font-size: 12.5px;
}

/* ---------- 分页 ---------- */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.pager-info {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ---------- 错误页 ---------- */

.error-card {
  max-width: 480px;
  margin: 9vh auto 0;
  text-align: center;
  padding: 44px 30px;
}
.error-code {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: rgba(34, 211, 238, 0.22);
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.35);
}
.error-message { margin: 14px 0 26px; color: var(--text-dim); }

/* ---------- 滚动条 ---------- */

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: rgba(4, 9, 17, 0.6); }
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.22);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: rgba(34, 211, 238, 0.45); }

/* ---------- 窄屏适配 ---------- */

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page { padding: 16px 14px 32px; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .user-box { margin-left: auto; }
  .sys-clock { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { padding: 11px; }
  .search-input { flex-basis: 100%; }
  .card { padding: 18px; }
  .cell-text { max-width: 150px; }
  .stat-value { font-size: 25px; }
}

/* ---------- 尊重系统的"减少动态效果"设置 ---------- */

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  .stat-bar span { transition: none; }
  .stat-card:hover { transform: none; }
  .thumb:hover { transform: none; }
  .nav a::after { transition: none; }

  /* 背景只显示第一张，不做轮播和浮现 */
  .bg-slide { animation: none; }
  .bg-1 { opacity: 1; }
  .login-card .login-title,
  .login-card .login-sub,
  .login-card form,
  .login-card .login-hint { animation: none; }
}
