/* ========== 食材配送·索证索票归档系统 —— 科技大屏风格（纯离线，无外部资源） ========== */
:root {
  --bg: #04120c;
  --panel: rgba(8, 26, 18, .82);
  --panel-solid: #0a1f16;
  --line: rgba(52, 211, 153, .22);
  --line-soft: rgba(52, 211, 153, .12);
  --txt: #e8f7ef;
  --sub: #7d9e8a;
  --pri: #34d399;
  --pri-d: #10b981;
  --blue: #2dd4bf;
  --green: #4ade80;
  --red: #ff4d6a;
  --orange: #ffb340;
  --radius: 8px;
  --glow: 0 0 12px rgba(52, 211, 153, .35);
  --font-num: "Consolas", "Cascadia Mono", "Courier New", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: rgba(52,211,153,.35) #061a12; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(52,211,153,.30); border-radius: 5px; }
::-webkit-scrollbar-track { background: #061a12; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px; color: var(--txt);
  background:
    radial-gradient(1100px 500px at 12% -10%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(900px 520px at 95% 0%, rgba(52, 211, 153, .10), transparent 55%),
    radial-gradient(700px 500px at 50% 115%, rgba(16, 185, 129, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* 网格底纹（缓慢漂移动画） */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgba(52, 211, 153, .035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(52, 211, 153, .035) 0 1px, transparent 1px 46px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35));
  animation: gridDrift 90s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 460px, 460px 0; }
}
/* 粒子连线背景画布 */
#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .85; }
.hidden { display: none !important; }

/* ============ 登录页（左右分栏 · 大版） ============ */
.login-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 40px 24px 34px; position: relative; z-index: 1; overflow: hidden;
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(52, 211, 153, .17), transparent 62%),
    radial-gradient(900px 560px at 84% 110%, rgba(16, 185, 129, .14), transparent 62%);
}
.login-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(52, 211, 153, .045) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(52, 211, 153, .045) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(900px 640px at 50% 50%, #000, transparent 78%);
}
/* 卡片背后的光晕 + 缓慢旋转的双环 */
.login-halo {
  position: absolute; top: 50%; left: 50%; width: 1240px; height: 1240px; transform: translate(-50%, -50%);
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, .13), rgba(52, 211, 153, .035) 40%, transparent 62%);
  animation: haloBreathe 6.4s ease-in-out infinite;
}
@keyframes haloBreathe {
  0%, 100% { opacity: .78; transform: translate(-50%, -50%) scale(.97); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}
.login-halo::before, .login-halo::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
}
.login-halo::before {
  border: 1px dashed rgba(52, 211, 153, .16); animation: haloSpin 70s linear infinite;
}
.login-halo::after {
  inset: 26%; border: 1px solid rgba(52, 211, 153, .10);
  box-shadow: 0 0 60px rgba(52, 211, 153, .10) inset, 0 0 40px rgba(52, 211, 153, .06);
}
@keyframes haloSpin { to { transform: rotate(360deg); } }

.login-shell {
  position: relative; z-index: 2; display: flex; width: 1080px; max-width: 100%;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(155deg, rgba(11, 34, 24, .95), rgba(4, 15, 10, .98));
  border: 1px solid rgba(52, 211, 153, .26);
  box-shadow:
    0 42px 90px -34px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(52, 211, 153, .05),
    0 0 110px rgba(52, 211, 153, .10),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(10px);
  animation:
    shellIn .62s cubic-bezier(.22, 1, .36, 1) both,
    shellBreathe 5.2s ease-in-out 1.1s infinite;
}
@keyframes shellIn { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }
/* 呼吸：外发光缓慢收放，边框亮度随之轻微起伏 */
@keyframes shellBreathe {
  0%, 100% {
    box-shadow:
      0 42px 90px -34px rgba(0, 0, 0, .9),
      0 0 0 1px rgba(52, 211, 153, .05),
      0 0 74px rgba(52, 211, 153, .08),
      inset 0 1px 0 rgba(255, 255, 255, .05);
    border-color: rgba(52, 211, 153, .24);
  }
  50% {
    box-shadow:
      0 42px 90px -34px rgba(0, 0, 0, .9),
      0 0 0 1px rgba(52, 211, 153, .13),
      0 0 132px rgba(52, 211, 153, .24),
      inset 0 1px 0 rgba(255, 255, 255, .07);
    border-color: rgba(52, 211, 153, .40);
  }
}
/* 四角科技感直角标 */
.ls-corner { position: absolute; width: 30px; height: 30px; pointer-events: none; z-index: 4; opacity: .8; }
.ls-corner.tl { top: 11px; left: 11px; border-top: 2px solid var(--pri); border-left: 2px solid var(--pri); border-radius: 7px 0 0 0; }
.ls-corner.tr { top: 11px; right: 11px; border-top: 2px solid var(--pri); border-right: 2px solid var(--pri); border-radius: 0 7px 0 0; }
.ls-corner.bl { bottom: 11px; left: 11px; border-bottom: 2px solid var(--pri); border-left: 2px solid var(--pri); border-radius: 0 0 0 7px; }
.ls-corner.br { bottom: 11px; right: 11px; border-bottom: 2px solid var(--pri); border-right: 2px solid var(--pri); border-radius: 0 0 7px 0; }

/* —— 左：品牌区 —— */
.login-brand {
  width: 536px; flex: none; padding: 54px 50px 42px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background:
    radial-gradient(560px 400px at 8% -6%, rgba(52, 211, 153, .18), transparent 66%),
    linear-gradient(158deg, rgba(9, 40, 27, .78), rgba(5, 20, 13, .30));
  border-right: 1px solid rgba(52, 211, 153, .16);
}
.login-brand::before {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(52, 211, 153, .45), transparent);
  animation: brandLine 5s ease-in-out infinite;
}
@keyframes brandLine { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.login-brand::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 240px; pointer-events: none;
  background-image:
    linear-gradient(rgba(52, 211, 153, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, .10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, #000);
  opacity: .5;
}
.lb-head { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.lb-logo { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 0 26px rgba(52, 211, 153, .35); }
.lb-co { font-size: 15px; color: #dff7ea; letter-spacing: 2.2px; font-weight: 600; }
.lb-en {
  font-size: 9px; color: rgba(125, 158, 138, .85); letter-spacing: 2.2px; margin-top: 6px;
  font-family: var(--font-num); white-space: nowrap;
}
.lb-title {
  position: relative; z-index: 1; margin: 40px 0 0; font-size: 39px; line-height: 1.28;
  letter-spacing: 4px; font-weight: 700; color: #f3fbf7;
  text-shadow: 0 0 34px rgba(52, 211, 153, .26);
}
.lb-title span {
  background: linear-gradient(92deg, #b8f5dd, #34d399 52%, #2dd4bf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(52, 211, 153, .28));
}
.lb-desc {
  position: relative; z-index: 1; margin-top: 20px; max-width: 420px;
  font-size: 13.5px; line-height: 2.05; color: #8fb3a1; letter-spacing: .7px;
}
.lb-feats { list-style: none; position: relative; z-index: 1; margin-top: 38px; display: flex; flex-direction: column; gap: 17px; }
.lb-feats li { display: flex; align-items: flex-start; gap: 14px; }
.lb-feats b {
  flex: none; width: 31px; height: 31px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-size: 12px; font-weight: 400; color: var(--pri);
  border: 1px solid rgba(52, 211, 153, .34); background: rgba(52, 211, 153, .09);
  box-shadow: inset 0 0 16px rgba(52, 211, 153, .12);
}
.lb-feats span { display: block; font-size: 14px; color: #e3f6ec; letter-spacing: 1.6px; font-weight: 600; line-height: 1.35; }
.lb-feats i { display: block; font-style: normal; font-size: 12.5px; color: #7d9e8a; margin-top: 5px; letter-spacing: .5px; }
.lb-foot {
  position: relative; z-index: 1; margin-top: auto; padding-top: 40px;
  display: flex; align-items: center; gap: 13px;
  font-size: 11.5px; color: #6f927f; letter-spacing: 1.6px;
}
.lb-foot i { width: 4px; height: 4px; border-radius: 50%; background: rgba(52, 211, 153, .5); }

/* —— 右：表单区 —— */
.login-panel {
  flex: 1; min-width: 0; padding: 62px 62px 54px; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, rgba(4, 16, 10, .50), rgba(3, 12, 8, .80));
}
.lp-head { margin-bottom: 36px; }
.lp-kicker {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-num); font-size: 10.5px; letter-spacing: 3.2px; color: rgba(125, 158, 138, .92);
}
.lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pri); box-shadow: 0 0 10px var(--pri); animation: lpPulse 2.2s ease-in-out infinite; }
@keyframes lpPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.lp-head h2 { font-size: 27px; letter-spacing: 6px; color: #f3fbf7; margin: 16px 0 10px; font-weight: 700; }
.lp-head p { font-size: 12.5px; color: #7d9e8a; letter-spacing: 1.1px; }

.login-panel .login-field { margin-bottom: 20px; }
.login-panel .login-field label { font-size: 12.5px; color: #8fb3a1; letter-spacing: 2px; margin-bottom: 9px; }
.login-panel .login-field input {
  padding: 14px 16px; font-size: 14.5px; border-radius: 10px; letter-spacing: .6px;
  background: rgba(3, 14, 9, .9); border: 1px solid rgba(52, 211, 153, .22);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.login-panel .login-field input::placeholder { color: rgba(125, 158, 138, .5); letter-spacing: .6px; }
.login-panel .login-field input:focus {
  border-color: var(--pri); background: rgba(4, 20, 13, .96);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, .10), 0 0 24px rgba(52, 211, 153, .2);
}
.login-panel .btn.login-submit {
  margin-top: 10px; padding: 15px; font-size: 15.5px; letter-spacing: 5px; text-indent: 5px; border-radius: 10px;
  background: linear-gradient(135deg, #6ee7b7, #34d399 45%, #10b981);
  border-color: #a7f3d0; color: #04120c;
  box-shadow: 0 12px 32px -12px rgba(52, 211, 153, .85), 0 0 26px rgba(52, 211, 153, .22);
  transition: all .18s;
}
.login-panel .btn.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px -12px rgba(52, 211, 153, .95), 0 0 36px rgba(52, 211, 153, .38);
  filter: brightness(1.06);
}
/* 记住密码复选框（员工端登录页） */
.login-remember {
  display: flex; align-items: center; gap: 8px; margin: -4px 0 14px;
  font-size: 12.5px; color: #8fb3a1; letter-spacing: 1px; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.login-remember input { display: none; }
.login-remember i {
  flex: none; width: 16px; height: 16px; border-radius: 5px;
  border: 1px solid rgba(52, 211, 153, .45); background: rgba(3, 14, 9, .9);
  position: relative; transition: all .15s;
}
.login-remember input:checked + i {
  background: linear-gradient(135deg, #34d399, #10b981); border-color: #6ee7b7;
  box-shadow: 0 0 10px rgba(52, 211, 153, .45);
}
.login-remember input:checked + i::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #04120c; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.login-remember:hover i { border-color: var(--pri); }
.lp-note {
  margin-top: 24px; font-size: 11.5px; color: rgba(125, 158, 138, .8); letter-spacing: .8px; line-height: 1.9;
  padding-top: 18px; border-top: 1px dashed rgba(52, 211, 153, .13);
}
/* 登录页的教程入口：图文 + 视频合并页，给第一次用的人和培训对象留一个明显入口 */
.login-panel .lp-guide {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; padding: 10px 14px; border-radius: 9px;
  border: 1px solid rgba(52, 211, 153, .32); background: rgba(52, 211, 153, .07);
  color: #a7f3d0; text-decoration: none; font-size: 12.5px; letter-spacing: .4px;
  transition: all .18s;
}
.login-panel .lp-guide:hover {
  color: #061a12; background: linear-gradient(180deg, #a7f3d0, #34d399);
  border-color: var(--pri); box-shadow: 0 0 16px rgba(52, 211, 153, .4);
}
/* 登录失败提示条 */
.login-panel .err {
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 10px 13px;
  border-radius: 8px; border: 1px solid rgba(255, 77, 106, .38); background: rgba(255, 77, 106, .09);
  font-size: 12.5px; letter-spacing: .6px; text-align: left;
}
.login-panel .err::before {
  content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255, 77, 106, .92); color: #04120c;
  font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; text-shadow: none;
}
.login-copy { position: relative; z-index: 2; font-size: 11.5px; color: rgba(125, 158, 138, .55); letter-spacing: 2px; }

/* 桌面端不再“压扁”内边距，改为整框等比缩放（脚本写 zoom），保证 1080×618 的版式比例恒定 */
@media (max-width: 1000px) {
  .login-wrap { padding: 22px 16px; gap: 16px; }
  .login-halo { width: 760px; height: 760px; }
  .login-shell { flex-direction: column; width: 100%; max-width: 540px; border-radius: 16px; }
  .login-brand {
    width: auto; padding: 30px 28px 24px; border-right: none;
    border-bottom: 1px solid rgba(52, 211, 153, .16);
  }
  .login-brand::before { display: none; }
  .lb-title { font-size: 24px; margin-top: 20px; letter-spacing: 2px; }
  .lb-desc, .lb-feats, .lb-foot { display: none; }
  .lb-en { letter-spacing: 1.4px; font-size: 8.5px; }
  .login-panel { padding: 30px 28px 34px; }
  .lp-head { margin-bottom: 24px; }
  .lp-head h2 { font-size: 22px; margin: 12px 0 8px; }
  .ls-corner { width: 22px; height: 22px; }
}
@media (max-width: 420px) {
  .login-wrap { padding: 18px 12px; gap: 12px; }
  .login-brand { padding: 22px 22px 20px; }
  .lb-logo { width: 42px; height: 42px; border-radius: 11px; }
  .lb-co { font-size: 13px; letter-spacing: 1.2px; }
  .lb-en { display: none; }
  .lb-title { font-size: 19px; margin-top: 14px; letter-spacing: 1px; }
  .login-panel { padding: 26px 22px 30px; }
  .lp-head h2 { font-size: 20px; letter-spacing: 4px; }
  .login-copy { font-size: 10.5px; letter-spacing: 1px; text-align: center; }
}

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 56px; display: flex; align-items: center; padding: 0 18px;
  background: linear-gradient(180deg, rgba(7, 24, 16, .96), rgba(7, 24, 16, .82));
  border-bottom: 1px solid var(--line); box-shadow: 0 4px 24px rgba(0, 0, 0, .45), 0 1px 0 rgba(52, 211, 153, .25);
  backdrop-filter: blur(8px);
}
.brand { font-weight: 700; font-size: 15px; white-space: nowrap; letter-spacing: 1px; color: #effbf4; text-shadow: 0 0 14px rgba(52, 211, 153, .5); display: flex; align-items: center; gap: 9px; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; filter: drop-shadow(0 0 8px rgba(52, 211, 153, .55)); }
.tabs { display: flex; gap: 2px; margin-left: 18px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { height: 0; }
.tabs button {
  border: 1px solid transparent; background: transparent; padding: 7px 10px; border-radius: 6px; cursor: pointer;
  font-size: 13px; color: var(--sub); white-space: nowrap; letter-spacing: .3px; transition: all .18s;
}
.tabs button:hover { color: var(--pri); border-color: var(--line-soft); background: rgba(52, 211, 153, .06); }
.tabs button.on {
  color: #061a12; font-weight: 700; border-color: var(--pri);
  background: linear-gradient(180deg, #a7f3d0, #34d399);
  box-shadow: 0 0 16px rgba(52, 211, 153, .5);
}
/* 「使用教程」常驻入口：与页签同高，靠右贴住，避免和业务页签混在一起被误点 */
/* 教程入口按钮组：常驻顶栏右侧，不参与 .tabs 的横向滚动，菜单再多也不会被挤出屏幕 */
.guide-box { display: flex; align-items: center; gap: 6px; margin-left: 10px; flex: none; }
.guide-box button.guide-link {
  border: 1px solid rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08);
  color: #a7f3d0; padding: 6px 11px; border-radius: 6px; cursor: pointer;
  font-size: 13px; white-space: nowrap; letter-spacing: .3px; transition: all .18s;
}
.guide-box button.guide-link:hover {
  color: #061a12; background: linear-gradient(180deg, #a7f3d0, #34d399);
  border-color: var(--pri); box-shadow: 0 0 14px rgba(52, 211, 153, .45);
}
.user-box { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 13px; white-space: nowrap; }
/* 顶栏流光扫描线 */
.topbar::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 240px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--pri), transparent);
  animation: scanX 7s linear infinite;
}
@keyframes scanX { from { transform: translateX(-260px); } to { transform: translateX(100vw); } }

main { padding: 18px; max-width: 1320px; margin: 0 auto; position: relative; z-index: 1; }

/* ============ 动态入场 ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card, .stat { animation: fadeUp .45s ease both; }
.stat-grid .stat:nth-child(1) { animation-delay: .02s; }
.stat-grid .stat:nth-child(2) { animation-delay: .08s; }
.stat-grid .stat:nth-child(3) { animation-delay: .14s; }
.stat-grid .stat:nth-child(4) { animation-delay: .20s; }
.stat-grid .stat:nth-child(5) { animation-delay: .26s; }
.stat-grid .stat:nth-child(6) { animation-delay: .32s; }
/* 表格行悬浮微光 */
tr { transition: background .15s; }
/* 按钮按压反馈 */
.btn:active { transform: translateY(1px) scale(.98); }

/* ============ 通用组件 ============ */
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 16px; box-shadow: inset 0 0 40px rgba(0, 96, 62, .08); backdrop-filter: blur(4px);
}
.card::before, .card::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; opacity: .8; }
.card::before { top: -1px; left: -1px; border-top: 1.5px solid var(--pri); border-left: 1.5px solid var(--pri); }
.card::after { bottom: -1px; right: -1px; border-bottom: 1.5px solid var(--pri); border-right: 1.5px solid var(--pri); }
.card h3 { font-size: 15px; margin-bottom: 12px; letter-spacing: 1px; color: #effbf4; padding-left: 10px; border-left: 3px solid var(--pri); text-shadow: 0 0 10px rgba(52, 211, 153, .35); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }

.btn {
  border: 1px solid var(--line); background: rgba(52, 211, 153, .05); padding: 7px 15px; border-radius: 6px;
  cursor: pointer; font-size: 13px; color: var(--txt); letter-spacing: 1px; transition: all .15s;
}
.btn:hover { border-color: var(--pri); color: var(--pri); box-shadow: var(--glow); background: rgba(52, 211, 153, .1); }
.btn.primary {
  background: linear-gradient(180deg, #34d399, #10b981); border-color: #6ee7b7; color: #04120c; font-weight: 700;
  box-shadow: 0 0 14px rgba(52, 211, 153, .35);
}
.btn.primary:hover { box-shadow: 0 0 22px rgba(52, 211, 153, .6); filter: brightness(1.1); }
.btn.danger { color: var(--red); border-color: rgba(255, 77, 106, .45); }
.btn.danger:hover { box-shadow: 0 0 12px rgba(255, 77, 106, .4); }
.btn.sm { padding: 3px 10px; font-size: 12px; border-radius: 5px; }
.btn.block { width: 100%; padding: 11px; font-size: 15px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--sub); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(52, 211, 153, .10); vertical-align: middle; }
th { color: var(--pri); font-weight: 600; background: rgba(52, 211, 153, .05); white-space: nowrap; letter-spacing: 1px; text-shadow: 0 0 8px rgba(52, 211, 153, .3); }
tr:hover td { background: rgba(52, 211, 153, .05); }

/* 已选文件提示：可单个移除 / 一键清空 */
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.fchips-label { font-size: 12px; color: var(--sub); }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .28); color: var(--txt);
  word-break: break-all;
}
.fchip a { color: var(--red); font-weight: 700; text-decoration: none; cursor: pointer; }
.fchip a:hover { color: #ffb4c0; }
.fclear { font-size: 12px; color: var(--orange); cursor: pointer; text-decoration: none; }
.fclear:hover { text-decoration: underline; }

/* 证件预警表：供应商名称可能较长，固定列宽 + 换行，不挤压其他列 */
.exp-table { table-layout: fixed; }
.exp-table th, .exp-table td { padding: 9px 8px; }
.exp-table td { vertical-align: top; }
.exp-table td.sup-name { word-break: break-word; overflow-wrap: anywhere; line-height: 1.55; }
.sup-link { color: inherit; cursor: pointer; border-bottom: 1px dashed rgba(52, 211, 153, .35); text-decoration: none; }
.sup-link:hover { color: var(--pri); border-bottom-color: var(--pri); }
a.qual-status { text-decoration: none; }
a.qual-status:hover { filter: brightness(1.2); text-decoration: underline; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: 12px; border: 1px solid transparent; letter-spacing: .5px; }
.tag.green { background: rgba(0, 230, 118, .10); color: var(--green); border-color: rgba(0, 230, 118, .35); }
.tag.red { background: rgba(255, 77, 106, .12); color: var(--red); border-color: rgba(255, 77, 106, .4); }
.tag.orange { background: rgba(255, 179, 64, .12); color: var(--orange); border-color: rgba(255, 179, 64, .4); }
.tag.gray { background: rgba(125, 158, 138, .12); color: #9ab5a4; border-color: rgba(154, 181, 164, .3); }
.tag.blue { background: rgba(16, 185, 129, .12); color: #7dd3b0; border-color: rgba(16, 185, 129, .4); }

.form-item { margin-bottom: 12px; text-align: left; }
.form-item label { display: block; font-size: 12.5px; color: var(--sub); margin-bottom: 5px; letter-spacing: 1px; }
.form-item input, .form-item select, .form-item textarea {
  width: 100%; border: 1px solid rgba(52, 211, 153, .25); border-radius: 6px; padding: 8px 10px; font-size: 13px;
  font-family: inherit; background: rgba(4, 18, 12, .85); color: var(--txt); transition: all .15s;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  outline: none; border-color: var(--pri); box-shadow: 0 0 10px rgba(52, 211, 153, .3);
}
.form-item input[type="date"] { color-scheme: dark; }
.form-item input[type="file"] { color: var(--sub); color-scheme: dark; }
.form-item select option { background: #0a1f16; color: var(--txt); }
.form-item textarea { min-height: 64px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--txt); margin: 0; }
.checks input[type="checkbox"] { accent-color: var(--pri); width: 15px; height: 15px; }
/* 多选清单（单品 / 客户，chip 式复选框） */
.chk-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 190px; overflow: auto; padding: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(4, 18, 12, .35); }
.chk-list label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--txt); margin: 0;
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; white-space: nowrap; }
.chk-list label:hover { border-color: rgba(52, 211, 153, .55); }
.chk-list label.on { border-color: var(--pri); background: rgba(52, 211, 153, .14); color: #eafff5; }
.chk-list input[type="checkbox"] { accent-color: var(--pri); width: 15px; height: 15px; margin: 0; }
.chk-list .ck-group { flex: 0 0 100%; font-size: 11.5px; letter-spacing: 1px; color: var(--dim); padding: 2px 0 0; }
.err { color: var(--red); font-size: 12px; margin-bottom: 10px; text-align: left; text-shadow: 0 0 8px rgba(255, 77, 106, .5); }

/* ============ 仪表盘 ============ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  position: relative; overflow: hidden; background: linear-gradient(165deg, rgba(10, 32, 22, .9), rgba(6, 18, 12, .92));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px;
  box-shadow: inset 0 0 30px rgba(0, 100, 66, .10);
}
.stat::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--pri), transparent); opacity: .55;
}
.stat .num {
  font-family: var(--font-num); font-size: 30px; font-weight: 700; color: var(--pri);
  text-shadow: 0 0 18px rgba(52, 211, 153, .55); letter-spacing: 1px;
}
.stat .lbl { color: var(--sub); font-size: 12px; margin-top: 4px; letter-spacing: 1.5px; }
.stat.warn .num { color: var(--orange); text-shadow: 0 0 18px rgba(255, 179, 64, .55); }
.stat.bad .num { color: var(--red); text-shadow: 0 0 18px rgba(255, 77, 106, .55); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(2, 10, 7, .72); z-index: 100;  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; backdrop-filter: blur(3px);
}
/* 高拍仪拍照浮层：叠加在表单弹窗（z-index 100）之上，不破坏正在填写的表单 */
.cam-mask { z-index: 200; }
.cam-mask .modal { border-color: rgba(52, 211, 153, .45); box-shadow: 0 0 60px rgba(52, 211, 153, .3); }
#cam-video { border: 1px solid rgba(52, 211, 153, .3); }
.modal {
  position: relative; background: linear-gradient(165deg, rgba(10, 32, 22, .97), rgba(6, 18, 12, .98));
  border: 1px solid var(--line); border-radius: 10px; width: 640px; max-width: 100%; padding: 22px 24px;
  box-shadow: 0 0 50px rgba(52, 211, 153, .15), inset 0 0 60px rgba(0, 96, 62, .1);
}
.modal.wide { width: 1000px; }
.modal::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 2px; background: linear-gradient(90deg, transparent, var(--pri), transparent); }
.modal h3 { margin-bottom: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; position: sticky; bottom: -22px; padding: 12px 0 2px; background: linear-gradient(180deg, rgba(8, 24, 16, 0), rgba(8, 24, 16, .96) 38%); border-radius: 0 0 10px 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

.toast {
  position: fixed; top: 72px; left: 50%; transform: translateX(-50%);
  background: rgba(6, 18, 12, .95); color: var(--pri); border: 1px solid var(--pri);
  padding: 10px 24px; border-radius: 6px; z-index: 200; font-size: 13px; letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(52, 211, 153, .35);
}
.toast.err { color: var(--red); border-color: var(--red); box-shadow: 0 0 20px rgba(255, 77, 106, .4); }

.sub-title { font-size: 13px; font-weight: 600; color: var(--pri); margin: 16px 0 8px; letter-spacing: 2px; border-left: 3px solid var(--pri); padding-left: 8px; text-shadow: 0 0 10px rgba(52, 211, 153, .4); }
.file-link { color: #a7f3d0; text-decoration: none; margin-right: 10px; word-break: break-all; }
.file-link:hover { text-decoration: underline; text-shadow: 0 0 8px rgba(52, 211, 153, .6); }
.muted { color: var(--sub); font-size: 12px; }

/* 供应商基础资质快捷上传行 */
.qq-row { border: 1px dashed var(--line-soft); border-radius: 6px; padding: 8px 10px 8px; background: rgba(52, 211, 153, .03); }
.qq-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.qq-head b { color: var(--txt); font-size: 13px; letter-spacing: 1px; }
.qq-head .muted { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.qq-head input[type="date"] { width: 145px; padding: 3px 6px; font-size: 12px; }
.qq-row input[type="file"] { color: var(--sub); color-scheme: dark; width: 100%; }
/* 一个大类下可能有多条「供应商 + 报告」，每条独立一行 */
.catrow { background: rgba(255, 255, 255, .02); border: 1px solid var(--line-soft); border-radius: 6px; padding: 6px 8px; flex-wrap: wrap; }
.catrow .catsup { font-size: 12.5px; }
.catrow .btn.sm { padding: 4px 8px; }
.catblock > .btn.sm { margin-top: 2px; }

/* 尊重系统「减弱动态效果」设置：登录页仍在，但不再呼吸起伏 */
@media (prefers-reduced-motion: reduce) {
  .login-shell { animation: shellIn .01s both; }
  .login-halo { animation: none; }
  .login-halo::before { animation: none; }
  .lp-dot { animation: none; }
  .login-brand::before { animation: none; }
}

/* 客户管理：报告推送勾选列表（选择器带上 .push-list，压过 .form-item label/input 的默认样式） */
.push-list { max-height: 320px; overflow: auto; border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px; background: rgba(52, 211, 153, .03); }
.push-list .push-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px; border-radius: 6px; cursor: pointer; margin: 0; }
.push-list .push-row:hover { background: rgba(52, 211, 153, .08); }
.push-list .push-row + .push-row { border-top: 1px dashed var(--line-soft); }
.push-list .push-row > input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--pri); }
.push-list .push-main { font-size: 13px; color: var(--txt); min-width: 0; line-height: 1.45; }
.push-list .push-main .muted { display: block; margin-top: 2px; }
.push-list .push-files { white-space: nowrap; text-align: right; }
