@charset "utf-8";
/* ==========================================================================
   云启智联 · 产线数据采集与智能分析系统 —— 示例站点样式
   配色取自素材包 05_界面组件/配色与样式.css
   ========================================================================== */

:root {
  --brand: #0667e9;
  --brand-dark: #0552bb;
  --brand-soft: rgba(6, 103, 233, .10);
  --text: #102b54;
  --text-sub: #2c4a73;
  --panel: #f3f7fc;
  --border: #bacbe0;
  --line: #dbe6f3;
  --muted: #667e9c;
  --danger: #d8342c;
  --header-h: 88px;
  --card-w: 576px;
  --shadow-card: 0 26px 64px rgba(4, 28, 66, .34);
  --shadow-soft: 0 10px 30px rgba(16, 43, 84, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
               "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #08182f;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid rgba(6, 103, 233, .55); outline-offset: 2px; }

/* ------------------------------ 顶栏 ------------------------------ */
.topbar {
  position: relative;
  z-index: 30;
  flex: 0 0 var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 2.4vw, 36px);
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 1px 0 rgba(16, 43, 84, .10), 0 6px 22px rgba(16, 43, 84, .06);
}

.topbar__brand { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); min-width: 0; }
.topbar__logo { height: clamp(30px, 3vw, 44px); width: auto; }
.topbar__divider { width: 1px; height: 30px; background: #d3dfee; flex: 0 0 auto; }
.topbar__title {
  font-size: clamp(15px, 1.55vw, 27px);
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__nav { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 18px); flex: 0 0 auto; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(13px, 1.05vw, 18px);
  color: var(--text);
  opacity: .88;
  transition: color .18s, opacity .18s;
}
.topbar__link:hover { color: var(--brand); opacity: 1; }
.topbar__nav-sep { width: 1px; height: 22px; background: #cddbeb; }

/* ------------------------------ 舞台 ------------------------------ */
.page-login { display: flex; flex-direction: column; height: 100vh; overflow: hidden; background: #08182f; }
.stage { position: relative; flex: 1 1 auto; min-height: 0; }

.hero { position: absolute; inset: 0; overflow: hidden; }
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/bg-factory.png") center center / cover no-repeat;
  transform: scale(1.02);
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 38, .93) 0%, rgba(4, 26, 56, .74) 36%,
                    rgba(6, 32, 66, .34) 62%, rgba(8, 30, 62, .16) 100%),
    linear-gradient(180deg, rgba(3, 16, 36, .34) 0%, rgba(3, 16, 36, 0) 28%,
                    rgba(2, 14, 32, .58) 100%);
}

.hero__copy {
  position: absolute;
  left: clamp(24px, 4.4vw, 72px);
  top: clamp(32px, 9vh, 118px);
  max-width: min(52vw, 860px);
  color: #fff;
}
.hero__title {
  margin: 0;
  font-size: clamp(22px, 2.9vw, 52px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.24;
  text-shadow: 0 6px 26px rgba(2, 14, 34, .55);
}
.hero__rule {
  display: block;
  width: clamp(36px, 3.4vw, 58px);
  height: 6px;
  margin: clamp(14px, 2.4vh, 30px) 0 clamp(12px, 2.2vh, 26px);
  border-radius: 3px;
  background: linear-gradient(90deg, #2f9bff, #86d3ff);
}
.hero__sub {
  margin: 0;
  font-size: clamp(13px, 1.5vw, 26px);
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 4px 18px rgba(2, 14, 34, .5);
}

.hero__features {
  position: absolute;
  left: clamp(24px, 4.2vw, 66px);
  right: calc(var(--card-w) + clamp(60px, 8vw, 130px));
  bottom: clamp(24px, 7.5vh, 76px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__features li {
  display: flex;
  align-items: center;
  gap: clamp(8px, .9vw, 16px);
  padding-right: clamp(12px, 2.2vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, .26);
  color: #fff;
  min-width: 0;
}
.hero__features li:last-child { border-right: 0; padding-right: 0; }
.hero__features img {
  width: clamp(38px, 3.4vw, 58px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 40, 100, .38));
}
.hero__features span {
  font-size: clamp(13px, 1.28vw, 22px);
  letter-spacing: .05em;
  white-space: nowrap;
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(80px, 17vh, 250px);
  object-fit: cover;
  object-position: bottom center;
  pointer-events: none;
  opacity: .96;
}

/* ------------------------------ 登录卡片 ------------------------------ */
.login {
  position: absolute;
  top: clamp(14px, 3.2vh, 38px);
  right: clamp(14px, 3vw, 60px);
  bottom: clamp(14px, 3.2vh, 38px);
  width: var(--card-w);
  max-width: calc(100% - 28px);
  display: flex;
  justify-content: center;
  z-index: 20;
}

.login__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 2.2vh, 40px) clamp(20px, 2.4vw, 42px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .975), rgba(243, 247, 252, .985));
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow-y: auto;
  scrollbar-width: thin;
}
.login__card::-webkit-scrollbar { width: 8px; }
.login__card::-webkit-scrollbar-thumb { background: #cddbeb; border-radius: 4px; }

.login__logo {
  height: clamp(34px, 4.2vh, 64px);
  width: auto;
  margin: 0 auto clamp(8px, 1.5vh, 18px);
}
.login__title {
  margin: 0 0 clamp(12px, 2.2vh, 26px);
  text-align: center;
  font-size: clamp(15px, 1.42vw, 25px);
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--text);
}

.login__form { display: flex; flex-direction: column; gap: clamp(10px, 1.5vh, 18px); }

/* ------------------------------ 表单 ------------------------------ */
.field { display: flex; flex-direction: column; gap: clamp(6px, .9vh, 10px); }
.field__label { font-size: clamp(13px, 1.02vw, 17px); font-weight: 600; color: var(--text); }

.field__box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: clamp(42px, 5vh, 50px);
  padding: 0 14px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field__box:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field__icon { width: 20px; height: 20px; flex: 0 0 auto; }
.field__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: clamp(13px, 1vw, 16px);
  color: var(--text);
  outline: none;
}
.field__input::placeholder { color: #9aaec6; }
.field__input:disabled { color: var(--muted); }

.field__eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 7px;
  transition: background .18s, opacity .18s;
  opacity: .8;
}
.field__eye img { width: 22px; height: 22px; }
.field__eye:hover { background: var(--brand-soft); opacity: 1; }

.field__row { display: flex; align-items: center; gap: 12px; }
.field__box--captcha { flex: 1 1 auto; min-width: 0; }

.captcha {
  width: 124px;
  height: clamp(42px, 5vh, 50px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #eaf2fc;
  overflow: hidden;
  cursor: pointer;
}
.captcha svg { display: block; width: 100%; height: 100%; }
.captcha__loading { font-size: 13px; color: var(--muted); }

.captcha__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  opacity: .78;
  transition: transform .35s, background .18s, opacity .18s;
}
.captcha__refresh img { width: 22px; height: 22px; }
.captcha__refresh:hover { opacity: 1; background: var(--brand-soft); transform: rotate(180deg); }

/* ------------------------------ 记住我 ------------------------------ */
.login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}
.checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(12px, .95vw, 16px);
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkbox__box {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: #fff;
  transition: background .18s, border-color .18s;
}
.checkbox input:checked + .checkbox__box { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked + .checkbox__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.checkbox input:focus-visible + .checkbox__box { box-shadow: 0 0 0 3px var(--brand-soft); }

.login__forgot { font-size: clamp(12px, .95vw, 16px); color: #2f6fc4; }
.login__forgot:hover { color: var(--brand); text-decoration: underline; }

/* ------------------------------ 提交区 ------------------------------ */
.login__error {
  min-height: 18px;
  margin: -4px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--danger);
  opacity: 0;
  transition: opacity .18s;
}
.login__error.is-on { opacity: 1; }

.login__submit {
  width: 100%;
  height: clamp(46px, 5.6vh, 58px);
  margin-top: 2px;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: clamp(15px, 1.15vw, 20px);
  font-weight: 700;
  letter-spacing: .12em;
  box-shadow: 0 10px 24px rgba(6, 103, 233, .32);
  transition: background .18s, box-shadow .18s, transform .12s;
}
.login__submit:hover { background: var(--brand-dark); box-shadow: 0 12px 28px rgba(6, 103, 233, .42); }
.login__submit:active { transform: translateY(1px); }
.login__submit[disabled] { opacity: .72; cursor: not-allowed; box-shadow: none; transform: none; }

/* ------------------------------ 技术支持 ------------------------------ */
.login__support { margin-top: clamp(12px, 2.2vh, 26px); }
.login__support-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.login__support-title::before,
.login__support-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.login__contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 20px);
  margin-top: clamp(8px, 1.4vh, 16px);
  flex-wrap: wrap;
}
.login__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12px, .95vw, 16px);
  color: var(--text-sub);
  transition: color .18s;
}
.login__contact a:hover { color: var(--brand); }
.login__contact img { width: 18px; height: 18px; flex: 0 0 auto; }
.login__contact-sep { width: 1px; height: 16px; background: #cddbeb; }

/* ------------------------------ 动效 ------------------------------ */
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.is-shake { animation: shake .5s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------ 工具类 ------------------------------ */
.is-locked { overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------ 弹窗 ------------------------------ */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__mask { position: absolute; inset: 0; background: rgba(6, 22, 44, .56); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative;
  width: min(480px, 100%);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(4, 28, 66, .42);
  animation: modalIn .22s ease-out both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.modal__title { margin: 0; font-size: 17px; font-weight: 800; color: var(--text); }
.modal__close { width: 30px; height: 30px; border-radius: 8px; font-size: 22px; line-height: 1; color: var(--muted); }
.modal__close:hover { background: var(--panel); color: var(--text); }
.modal__body { padding: 20px 22px 24px; font-size: 14px; line-height: 1.85; color: var(--text-sub); overflow-y: auto; }
.modal__body p { margin: 0 0 10px; }
.modal__body p:last-child { margin-bottom: 0; }
.modal__body strong { color: var(--text); }
.modal__body a { color: var(--brand); }
.modal__body a:hover { text-decoration: underline; }
.modal__list { margin: 6px 0 0; padding-left: 18px; }
.modal__list li { margin: 4px 0; }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1280px) {
  .hero__copy { max-width: 44vw; }
  .hero__features { right: auto; gap: 18px; }
  .hero__features li { padding-right: 18px; }
  .hero__features span { font-size: 15px; }
  .hero__features img { width: 42px; }
}

@media (max-width: 1024px) {
  .page-login { height: auto; min-height: 100vh; overflow: visible; }
  .stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h));
    padding: 24px 16px 36px;
  }
  .hero__copy, .hero__features { display: none; }
  .hero__wave { height: 120px; }
  .login { position: static; width: 100%; max-width: 520px; inset: auto; }
  .login__card { max-height: none; overflow: visible; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar__title { display: none; }
  .topbar__divider { display: none; }
  .topbar__nav .topbar__link span { display: none; }
  .login__card { border-radius: 16px; padding: 20px 18px; }
  .login__title { font-size: 15px; }
  .field__row { gap: 8px; }
  .captcha { width: 108px; height: 44px; }
  .login__contact { flex-direction: column; gap: 6px; }
  .login__contact-sep { display: none; }
}

@media (max-width: 420px) {
  .topbar__logo { height: 28px; }
  .captcha { width: 96px; }
  .captcha__refresh { width: 28px; }
}

@media (min-width: 1025px) and (max-height: 700px) {
  .hero__copy { top: 26px; }
  .hero__features { bottom: 18px; }
  .login__logo { height: 36px; }
  .login__title { font-size: 16px; margin-bottom: 14px; }
}

/* ==========================================================================
   页面总览（overview.html）
   ========================================================================== */
.page-overview {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 400px at 10% -8%, rgba(6, 103, 233, .10), transparent 62%),
    linear-gradient(180deg, #f5f9fe 0%, #eef4fb 46%, #e9f1fa 100%);
}

/* ------------------------------ 顶栏 ------------------------------ */
.dash-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
  padding: 0 clamp(16px, 3vw, 44px);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 1px 0 rgba(16, 43, 84, .08), 0 8px 24px rgba(16, 43, 84, .05);
}
.dash-top__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash-top__logo { height: 36px; width: auto; }
.dash-top__divider { width: 1px; height: 24px; background: #d7e2f0; flex: 0 0 auto; }
.dash-top__name {
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-top__right { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 16px); flex: 0 0 auto; }
.dash-top__user { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-sub); }
.dash-top__user b { font-weight: 600; color: var(--text); }
.dash-top__sep { width: 1px; height: 18px; background: #d7e2f0; }
.dash-top__btn {
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid #cfdded;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  transition: border-color .18s, color .18s, box-shadow .18s;
}
.dash-top__btn:hover { border-color: var(--brand); color: var(--brand); box-shadow: 0 6px 16px rgba(6, 103, 233, .14); }
.dash-top__btn[disabled] { opacity: .6; cursor: default; }

/* ------------------------------ 主体 ------------------------------ */
.dash {
  flex: 1 1 auto;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 2.6vw, 34px) clamp(14px, 3vw, 40px) clamp(26px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 26px);
}

/* ------------------------------ 头图 ------------------------------ */
.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: clamp(22px, 3vw, 40px) clamp(20px, 3vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  color: #fff;
  background: linear-gradient(110deg, #062a58 0%, #083d7e 46%, #0a5bbd 100%);
  box-shadow: 0 20px 44px rgba(6, 42, 88, .26);
}
.dash-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/bg-factory.png") center 42% / cover no-repeat;
  opacity: .2;
  pointer-events: none;
}
.dash-hero__inner { position: relative; z-index: 2; max-width: 660px; }
.dash-hero__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: rgba(255, 255, 255, .64);
}
.dash-hero__title {
  margin: 0;
  font-size: clamp(21px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 6px 24px rgba(2, 16, 38, .4);
}
.dash-hero__sub {
  margin: 10px 0 0;
  font-size: clamp(12px, 1.05vw, 16px);
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}
.dash-kpi {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 1.4vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-kpi li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 76px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}
.dash-kpi b { font-size: clamp(18px, 1.8vw, 26px); font-weight: 800; letter-spacing: .02em; }
.dash-kpi span { font-size: 12px; color: rgba(255, 255, 255, .76); }

/* ------------------------------ 流程条 ------------------------------ */
.flow {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2ebf7;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.flow__item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px clamp(10px, 1.4vw, 20px) 14px clamp(40px, 3.4vw, 54px);
  min-width: 0;
}
.flow__item + .flow__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #eaf1f9;
}
.flow__num {
  position: absolute;
  left: clamp(12px, 1.4vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}
.flow__item b { font-size: clamp(13px, 1.05vw, 15px); font-weight: 700; }
.flow__item i {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------ 卡片网格 ------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.card {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 18px;
  background: #fff;
  border: 1px solid #e4edf8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 43, 84, .06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #c9ddf6;
  box-shadow: 0 16px 36px rgba(16, 43, 84, .12);
}
.card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  flex: 0 0 auto;
}
.card__title { margin: 0; flex: 1 1 auto; min-width: 0; font-size: clamp(14px, 1.05vw, 16px); font-weight: 800; }
.card__tag {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 20px;
  background: #eef5fe;
  color: #3a72b8;
  font-size: 11px;
  white-space: nowrap;
}
.card__desc { margin: 12px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.card__preview { flex: 1 1 auto; height: 150px; overflow: hidden; }

/* ------------------------------ 迷你界面 ------------------------------ */
.mini {
  display: flex;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e6eef8;
  border-radius: 11px;
  background: linear-gradient(160deg, #f8fbff, #eef5fd);
  overflow: hidden;
}
.mini i { display: block; font-style: normal; }
.mini__row { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; }
.mini__row--grow { flex: 1 1 auto; }

/* 01 登录页 */
.mini--login { align-items: stretch; }
.mini__panel {
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e3ecf7;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(16, 43, 84, .06);
}
.mini__logo { width: 40px; height: 8px; margin: 0 auto 2px; border-radius: 3px; background: var(--brand); }
.mini__input { height: 10px; border-radius: 3px; background: #f3f7fc; border: 1px solid #dfe9f5; }
.mini__cap { flex: 0 0 34%; height: 10px; border-radius: 3px; background: #cfe2f8; border: 1px solid #b9d3ee; }
.mini__btn { height: 12px; margin-top: 2px; border-radius: 4px; background: var(--brand); }
.mini__art { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.mini__art-title { height: 8px; width: 92%; border-radius: 3px; background: rgba(6, 43, 88, .46); }
.mini__art-sub { height: 6px; width: 62%; border-radius: 3px; background: rgba(6, 43, 88, .2); }

/* 02 系统概览 */
.mini--home { flex-direction: column; }
.mini__tile { flex: 1 1 0; height: 32px; border-radius: 7px; background: #fff; border: 1px solid #e2ecf8; }
.mini__tile--brand { background: linear-gradient(150deg, #0667e9, #4b93ef); border-color: transparent; }
.mini__chart {
  position: relative;
  flex: 1.6 1 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2ecf8;
  overflow: hidden;
}
.mini__chart::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: linear-gradient(180deg, rgba(6, 103, 233, .06), rgba(6, 103, 233, .26));
  clip-path: polygon(0 78%, 12% 60%, 26% 68%, 40% 42%, 55% 52%, 68% 24%, 82% 38%, 100% 10%, 100% 100%, 0 100%);
}
.mini__list {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2ecf8;
}
.mini__list::before,
.mini__list::after { content: ""; height: 6px; border-radius: 3px; background: #e4edf8; }
.mini__list::after { width: 62%; }

/* 03 基础配置 */
.mini--config { flex-direction: column; }
.mini__steps { display: flex; gap: 5px; flex: 0 0 auto; }
.mini__step { flex: 1 1 0; height: 5px; border-radius: 3px; background: #dbe7f4; }
.mini__step--on { background: var(--brand); }
.mini__table {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e6eef8;
}
.mini__tr { display: flex; gap: 5px; flex: 1 1 0; min-height: 0; }
.mini__cell { flex: 1 1 auto; border-radius: 3px; background: #e9f1fa; }
.mini__cell--sm { flex: 0 0 24%; background: #d6e6f7; }
.mini__cell--xs { flex: 0 0 14%; background: #c6dcf4; }

/* 04 设备接入 */
.mini--access { flex-direction: column; }
.mini__chips { display: flex; flex-wrap: wrap; gap: 4px; flex: 0 0 auto; }
.mini__chip {
  padding: 3px 6px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #dfe9f5;
  font-size: 9px;
  line-height: 1.2;
  color: #7d99b8;
}
.mini__chip--on { background: #eaf3ff; border-color: #a8c8ee; color: var(--brand); font-weight: 700; }
.mini__dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; align-self: center; }
.mini__dot--idle { background: #f0b429; }

/* 05 数据采集监测 */
.mini--collect { flex-direction: column; }
.mini__stats { display: flex; gap: 6px; flex: 0 0 auto; }
.mini__stat {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e6eef8;
}
.mini__stat b { height: 9px; width: 68%; border-radius: 3px; background: var(--brand); opacity: .85; }
.mini__stat span { height: 5px; width: 100%; border-radius: 3px; background: #e7eff9; }
.mini__stat--warn b { background: #f0a02a; }
.mini__bars {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 8px 6px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e6eef8;
}
.mini__bars i { flex: 1 1 0; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #5fa0ec, #bcd8f6); }
.mini__bars i:nth-child(1) { height: 32%; }
.mini__bars i:nth-child(2) { height: 54%; }
.mini__bars i:nth-child(3) { height: 44%; }
.mini__bars i:nth-child(4) { height: 70%; }
.mini__bars i:nth-child(5) { height: 58%; }
.mini__bars i:nth-child(6) { height: 84%; }
.mini__bars i:nth-child(7) { height: 72%; }
.mini__bars i:nth-child(8) { height: 94%; }

/* 06 生产实时看板 */
.mini--board { flex-direction: column; }
.mini__board-head { display: flex; gap: 6px; flex: 0 0 auto; }
.mini__kpi { flex: 1 1 0; height: 26px; border-radius: 7px; background: #fff; border: 1px solid #e6eef8; }
.mini__kpi--brand { background: linear-gradient(140deg, #0667e9, #4b93ef); border-color: transparent; }
.mini__line {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e6eef8;
  overflow: hidden;
}
.mini__line i { width: 4px; height: 4px; border-radius: 50%; background: #cfe1f6; }
.mini__line::after {
  content: "";
  position: absolute;
  inset: 10px 8px;
  background: linear-gradient(180deg, rgba(6, 103, 233, .05), rgba(6, 103, 233, .28));
  clip-path: polygon(0 72%, 10% 56%, 20% 64%, 30% 40%, 40% 50%, 50% 26%, 60% 36%, 70% 16%, 80% 30%, 90% 10%, 100% 22%, 100% 100%, 0 100%);
}

/* 07 异常告警 */
.mini--alert { flex-direction: column; gap: 6px; }
.mini__alert {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e9f0f9;
}
.mini__alert-dot { flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: #f0b429; }
.mini__alert-dot--warn { background: #f0b429; }
.mini__alert-dot--danger { background: #e5484d; }
.mini__alert-line { flex: 1 1 auto; height: 5px; border-radius: 3px; background: #e7eff9; }
.mini__pill {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 20px;
  background: #fff5e6;
  border: 1px solid #f6dfb8;
  color: #b87400;
  font-size: 8px;
  line-height: 1.3;
}
.mini__pill--danger { background: #fdecec; border-color: #f7cdcd; color: #c22a2f; }
.mini__pill--warn { background: #fff5e6; border-color: #f6dfb8; color: #b87400; }
.mini__pill--ok { background: #eaf8ef; border-color: #c6ebd4; color: #12793f; }

/* 08 智能分析与报表 */
.mini--analysis { align-items: center; }
.mini__donut {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(#0667e9 0 58%, #5fa0ec 58% 80%, #b7d5f5 80% 92%, #e2ecf8 92% 100%);
}
.mini__donut::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: #f7fbff; }
.mini__legend { flex: 1 1 auto; display: flex; flex-direction: column; gap: 7px; }
.mini__legend-row { display: flex; align-items: center; gap: 6px; }
.mini__legend-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 2px; background: #0667e9; }
.mini__legend-dot--a { background: #0667e9; }
.mini__legend-dot--b { background: #5fa0ec; }
.mini__legend-dot--c { background: #b7d5f5; }
.mini__legend-row span { flex: 1 1 auto; height: 6px; border-radius: 3px; background: #e7eff9; }
.mini__legend-row--sm span { flex: 0 1 62%; }

/* ------------------------------ 说明 ------------------------------ */
.note {
  padding: clamp(16px, 2vw, 24px);
  background: #fff;
  border: 1px solid #e4edf8;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.note__title { margin: 0 0 14px; font-size: 15px; font-weight: 800; }
.note__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.note__item {
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f7fbff, #eef5fd);
  border: 1px solid #e8f0fa;
}
.note__item b { display: block; margin-bottom: 5px; font-size: 13px; color: var(--text); }
.note__item p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* ------------------------------ 页脚 ------------------------------ */
.dash-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 16px 26px;
  font-size: 12.5px;
  color: var(--muted);
}
.dash-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-sub); }
.dash-foot a:hover { color: var(--brand); }
.dash-foot__sep { width: 1px; height: 14px; background: #d5e2f0; }

/* ------------------------------ 总览页响应式 ------------------------------ */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .note__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow__item i { display: none; }
  .flow__item { padding-top: 12px; padding-bottom: 12px; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-top__name { display: none; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-kpi { width: 100%; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .note__grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow__item + .flow__item::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
  .flow__item { padding: 10px 14px 10px 46px; }
  .flow__num { top: 50%; }
  .card__preview { height: 136px; }
  .dash-top { height: 62px; }
  .dash-top__logo { height: 30px; }
  .dash-top__user b { display: none; }
  .dash-top__btn { padding: 7px 12px; font-size: 13px; }
}
