/* ============ 钱来来物流 · 后台设计系统 ============ */
:root {
  --q-brand: #165DFF;
  --q-brand-dark: #0E42D2;
  --q-brand-soft: #E8F0FF;
  --q-ink: #1D2129;
  --q-sub: #4E5969;
  --q-muted: #86909C;
  --q-line: #E5E6EB;
  --q-line-soft: #F2F3F5;
  --q-bg: #F5F7FA;
  --q-radius: 10px;
  --q-shadow: 0 2px 12px rgba(29, 33, 41, 0.06);
  --q-green: #00B42A;
  --q-orange: #FF7D00;
  --q-red: #F53F3F;
}

* { box-sizing: border-box; }

.qll-page {
  background: var(--q-bg);
  padding: 16px 18px 30px;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--q-ink);
}

/* ---------- 卡片 ---------- */
.qll-card {
  background: #fff;
  border: 1px solid #EFF0F3;
  border-radius: var(--q-radius);
  box-shadow: var(--q-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.qll-card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--q-line-soft);
  background: #fff;
}
.qll-card__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.qll-card__title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--q-brand);
}
.qll-card__bd { padding: 18px 20px; }
.qll-card__bd--tight { padding: 12px 20px 18px; }

/* ---------- 统计卡片 ---------- */
.qll-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.qll-stat {
  position: relative;
  background: #fff;
  border: 1px solid #EFF0F3;
  border-radius: var(--q-radius);
  box-shadow: var(--q-shadow);
  padding: 18px 20px 16px;
  overflow: hidden;
}
.qll-stat::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--q-brand-soft);
  opacity: .55;
}
.qll-stat__label { font-size: 13px; color: var(--q-sub); position: relative; z-index: 1; }
.qll-stat__value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  margin: 9px 0 6px;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.qll-stat__hint { font-size: 12px; color: var(--q-muted); position: relative; z-index: 1; }
.qll-stat__hint .up { color: var(--q-green); font-weight: 600; }
.qll-stat__hint .down { color: var(--q-red); font-weight: 600; }
.qll-stat--warn::after { background: #FFF1E8; }
.qll-stat--warn .qll-stat__value { color: var(--q-orange); }
.qll-stat--ok::after { background: #E8FFEA; }

/* ---------- 表格 ---------- */
.qll-table-wrap { padding: 0 20px 18px; }
.layui-table { margin: 0; color: var(--q-ink); font-size: 13px; }
.layui-table th {
  background: #FAFBFC !important;
  color: var(--q-sub);
  font-weight: 600;
  font-size: 13px;
  border-color: var(--q-line-soft) !important;
}
.layui-table td { border-color: var(--q-line-soft) !important; }
.layui-table-view { border-radius: 8px; border-color: var(--q-line-soft); }
.layui-table-page { border-top: 1px solid var(--q-line-soft); }

/* ---------- 表单 ---------- */
.layui-form-label { width: 96px; color: var(--q-sub); font-weight: 500; }
.layui-input, .layui-textarea, .layui-select {
  border-radius: 8px;
  border-color: var(--q-line);
  font-size: 14px;
}
.layui-input:focus, .layui-textarea:focus { border-color: var(--q-brand) !important; }
.layui-form-mid.layui-word-aux { color: var(--q-muted); }

/* ---------- 按钮 ---------- */
.layui-btn { border-radius: 8px; font-size: 13px; }
.layui-btn-normal, .layui-btn { background-color: var(--q-brand); }
.layui-btn-normal:hover { opacity: .92; }
.layui-btn-primary {
  border-color: var(--q-line);
  color: var(--q-sub);
  background: #fff;
}
.layui-btn-xs { border-radius: 6px; }
.layui-btn-danger { background-color: var(--q-red); }

/* ---------- 标签 ---------- */
.qll-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 18px;
  background: var(--q-brand-soft);
  color: var(--q-brand);
  vertical-align: 1px;
}
.qll-tag--green { background: #E8FFEA; color: var(--q-green); }
.qll-tag--orange { background: #FFF1E8; color: var(--q-orange); }
.qll-tag--red { background: #FFECE8; color: var(--q-red); }
.qll-tag--gray { background: #F2F3F5; color: var(--q-muted); }

.qll-link { color: var(--q-brand); cursor: pointer; font-weight: 600; text-decoration: none; }
.qll-link:hover { text-decoration: underline; }
.qll-muted { color: var(--q-muted); }
.qll-mono { font-family: Consolas, "Courier New", monospace; letter-spacing: .4px; }
.qll-money { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 框架布局 ---------- */
.qll-shell { margin: 0; padding: 0; background: var(--q-bg); height: 100vh; overflow: hidden; }
.qll-shell__top {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--q-line-soft);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 16px;
}
.qll-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--q-ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.qll-logo i {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--q-brand), #4B8BFF);
  color: #fff;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  font-style: normal;
}
.qll-logo span { font-size: 12px; color: var(--q-muted); font-weight: 400; letter-spacing: .5px; margin-left: 2px; }
.qll-topright { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--q-sub); }
.qll-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--q-brand-soft); color: var(--q-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.qll-logout { color: var(--q-muted); text-decoration: none; }
.qll-logout:hover { color: var(--q-red); }

.qll-shell__body { display: flex; height: calc(100vh - 60px); }
.qll-side {
  width: 208px;
  background: #fff;
  border-right: 1px solid var(--q-line-soft);
  padding: 14px 12px;
  overflow-y: auto;
}
.qll-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--q-sub);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 4px;
  transition: all .18s;
}
.qll-menu__item i { font-size: 16px; color: var(--q-muted); }
.qll-menu__item:hover { background: #F7F8FA; color: var(--q-ink); }
.qll-menu__item.is-active {
  background: var(--q-brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(22, 93, 255, .25);
}
.qll-menu__item.is-active i { color: #fff; }
.qll-menu__group { font-size: 12px; color: var(--q-muted); padding: 12px 14px 6px; letter-spacing: .5px; }
.qll-main { flex: 1; overflow: hidden; }
.qll-main iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 时间线 ---------- */
.qll-timeline { padding: 6px 0 0 6px; }
.qll-timeline__item {
  position: relative;
  padding: 0 0 22px 26px;
  border-left: 2px solid var(--q-line);
  margin-left: 6px;
}
.qll-timeline__item:last-child { border-left-color: transparent; padding-bottom: 4px; }
.qll-timeline__dot {
  position: absolute;
  left: -7px;
  top: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--q-brand);
}
.qll-timeline__item:first-child .qll-timeline__dot { background: var(--q-brand); box-shadow: 0 0 0 4px rgba(22, 93, 255, .12); }
.qll-timeline__time { font-size: 12px; color: var(--q-muted); font-variant-numeric: tabular-nums; }
.qll-timeline__status { font-size: 14px; font-weight: 600; margin: 3px 0 3px; }
.qll-timeline__status .qll-tag { margin-left: 6px; }
.qll-timeline__desc { font-size: 13px; color: var(--q-sub); line-height: 1.6; }

/* ---------- 详情信息条 ---------- */
.qll-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 20px;
  padding: 4px 0;
}
.qll-info__item { font-size: 13px; }
.qll-info__label { color: var(--q-muted); margin-bottom: 4px; font-size: 12px; }
.qll-info__value { color: var(--q-ink); font-weight: 600; word-break: break-all; }

.qll-empty { text-align: center; color: var(--q-muted); padding: 26px 0; font-size: 13px; }

/* ---------- 登录页 ---------- */
.login-page {
  margin: 0;
  height: 100vh;
  background: linear-gradient(135deg, #0B1B3F 0%, #123A82 55%, #165DFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}
.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}
.login-page::before { width: 460px; height: 460px; left: -140px; bottom: -160px; }
.login-page::after { width: 320px; height: 320px; right: -100px; top: -110px; }
.login-box {
  position: relative;
  z-index: 2;
  width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 38px 34px 30px;
  box-shadow: 0 24px 60px rgba(4, 16, 44, .35);
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand__logo {
  width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--q-brand), #4B8BFF);
  color: #fff; font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.login-brand h1 { font-size: 20px; font-weight: 700; margin: 0 0 6px; letter-spacing: 1px; }
.login-brand p { font-size: 12px; color: var(--q-muted); margin: 0; letter-spacing: .5px; }
.login-box .layui-input { height: 44px; line-height: 44px; padding-left: 14px; font-size: 14px; }
.login-btn {
  width: 100%;
  height: 46px;
  line-height: 46px;
  margin-top: 6px;
  background: var(--q-brand);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .2s;
}
.login-btn:hover { background: var(--q-brand-dark); }
.login-tip { text-align: center; font-size: 12px; color: var(--q-muted); margin-top: 18px; }

@media (max-width: 900px) {
  .qll-stats { grid-template-columns: repeat(2, 1fr); }
}
