/*!
 * 搜火GEO · 运营后台扩展样式 (admin.css)
 * -----------------------------------------------------------------------------
 * 在 app.css 的基础上补充「平台运营端」与「登录页」专有样式。
 * 设计令牌（颜色 / 圆角 / 阴影 / 字体）全部沿用 app.css 的 :root 变量，
 * 保证两个端视觉同源。本文件不重复定义任何已有类。
 */

/* 兜底：作者样式的 display 会覆盖 UA 的 [hidden]{display:none} */
[hidden] { display: none !important; }

/* ============================ 1. 登录页 ============================ */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg);
}

/* --- 左：品牌区 --- */
.login__brand {
  position: relative;
  padding: 56px 56px 40px;
  color: #fff;
  background:
    radial-gradient(900px 520px at 8% 6%, rgba(255, 90, 31, .30), transparent 62%),
    radial-gradient(700px 460px at 92% 92%, rgba(46, 107, 230, .26), transparent 60%),
    linear-gradient(160deg, #0B1524 0%, #12203A 52%, #0E1B2E 100%);
  display: flex;
  flex-direction: column;
}
.login__logoRow { display: flex; align-items: center; gap: 12px; }
.login__logo {
  width: 44px; height: 44px; flex: none;
  border-radius: 13px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 22px rgba(255, 90, 31, .36);
}
.login__name { font-size: 20px; font-weight: 700; letter-spacing: .4px; }
.login__nameSub { font-size: 12px; color: #93A2BC; letter-spacing: 1.4px; text-transform: uppercase; }

.login__slogan { margin-top: 52px; max-width: 520px; }
.login__sloganTitle { font-size: 34px; font-weight: 700; line-height: 1.34; letter-spacing: .4px; }
.login__sloganTitle em { font-style: normal; color: #FF8A3D; }
.login__sloganDesc { margin-top: 14px; font-size: 14.5px; line-height: 1.75; color: #A9B6CC; }

.login__features { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.login__feature { display: flex; gap: 12px; align-items: flex-start; }
.login__featureIco {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  color: #FF8A3D;
  border: 1px solid rgba(255, 255, 255, .1);
}
.login__featureTitle { font-size: 14px; font-weight: 600; }
.login__featureDesc { font-size: 12.5px; color: #93A2BC; margin-top: 3px; line-height: 1.6; }

.login__stats {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  gap: 34px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.login__stat { display: flex; flex-direction: column; gap: 2px; }
.login__statValue { font-size: 22px; font-weight: 700; }
.login__statValue span { font-size: 13px; font-weight: 500; color: #93A2BC; margin-left: 3px; }
.login__statLabel { font-size: 12px; color: #93A2BC; }

/* --- 右：表单区 --- */
.login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.login__box { width: 100%; max-width: 400px; }
.login__title { font-size: 24px; font-weight: 700; }
.login__desc { margin-top: 8px; font-size: 13.5px; color: var(--text-3); }

.login__form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.login__field { display: flex; flex-direction: column; gap: 7px; }
.login__label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.login__inputWrap { position: relative; display: flex; align-items: center; }
.login__inputWrap .ico { position: absolute; left: 13px; color: var(--text-3); pointer-events: none; }
.login__input {
  width: 100%; height: 46px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}
.login__eye {
  position: absolute; right: 6px;
  width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3);
  display: grid; place-items: center;
}
.login__eye:hover { background: var(--border-2); color: var(--text-2); }

.login__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.login__check { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); }
.login__check input { width: 15px; height: 15px; accent-color: var(--brand); }
.login__link { color: var(--blue); font-weight: 500; }

.login__error {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  border: 1px solid rgba(240, 68, 56, .22);
}
.login__submit { height: 46px; width: 100%; font-size: 15px; }

.login__demo { margin-top: 26px; }
.login__demoHead {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-3);
  margin-bottom: 12px;
}
.login__demoHead::before, .login__demoHead::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.login__accounts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login__acc {
  text-align: left;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.login__acc:hover { border-color: var(--brand); box-shadow: 0 4px 14px var(--brand-dim); transform: translateY(-1px); }
.login__accName { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.login__accMeta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; font-family: var(--font); }
.login__foot { margin-top: 24px; font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* ============================ 2. 运营端顶栏标识 ============================ */

.console-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 9px;
  border-radius: 7px;
  background: var(--sidebar);
  color: #fff;
  font-size: 11.5px; font-weight: 600; letter-spacing: .4px;
}
.role-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  border-radius: 20px;
  font-size: 12.5px; font-weight: 600;
  background: var(--purple-soft); color: var(--purple);
}
.role-chip--owner { background: var(--brand-soft); color: var(--brand); }
.role-chip--ops { background: var(--blue-soft); color: var(--blue); }
.role-chip--finance { background: var(--success-soft); color: var(--success); }
.role-chip--auditor { background: var(--warn-soft); color: var(--warn); }

/* 侧边栏底部：当前登录身份 */
.who-card {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 9px;
  background: rgba(255, 255, 255, .06);
}
.who-card__meta { min-width: 0; }
.who-card__name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-card__role { font-size: 11.5px; color: #93A2BC; }

/* ============================ 3. 表格内富单元格 ============================ */

.cell-stack { display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.cell-sub { font-size: 12px; color: var(--text-3); }
.cell-main { font-weight: 600; }
.cell-avatar { display: flex; align-items: center; gap: 9px; }
.cell-avatar__name { font-weight: 600; }
.cell-avatar__meta { font-size: 12px; color: var(--text-3); }

.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money--pos { color: var(--success); }
.money--neg { color: var(--text); }
.money--cost { color: var(--text-3); font-weight: 500; }

/* 毛利条（媒体定价用） */
.margin-cell { display: flex; flex-direction: column; gap: 5px; min-width: 108px; }
.margin-cell__num { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.margin-cell__num i { font-style: normal; font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-left: 4px; }

/* 库存指示 */
.stock-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.stock-cell__num { font-variant-numeric: tabular-nums; font-weight: 600; }
.stock-low { color: var(--warn); }

/* ============================ 4. 内容审核 ============================ */

.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.review-item:hover { border-color: var(--text-3); box-shadow: var(--shadow-md); }
.review-item--high { border-left: 3px solid var(--danger); }
.review-item--mid { border-left: 3px solid var(--warn); }
.review-item--low { border-left: 3px solid var(--success); }

.review-item__head { display: flex; align-items: flex-start; gap: 12px; }
.review-item__main { flex: 1; min-width: 0; }
.review-item__title { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.review-item__meta {
  margin-top: 7px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-size: 12.5px; color: var(--text-3);
}
.review-item__meta b { color: var(--text-2); font-weight: 600; }
.review-item__ops { display: flex; align-items: center; gap: 8px; flex: none; }
.review-item__foot {
  margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12.5px;
}
.review-word {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 6px;
  background: var(--danger-soft); color: var(--danger);
  font-size: 12px; font-weight: 500;
}
.review-word--mid { background: var(--warn-soft); color: var(--warn); }

/* ============================ 5. 分发监控 ============================ */

.reason-list { display: flex; flex-direction: column; gap: 11px; }
.reason-row { display: flex; align-items: center; gap: 12px; }
.reason-row__label { width: 190px; flex: none; font-size: 13px; color: var(--text-2); }
.reason-row__bar { flex: 1; min-width: 0; }
.reason-row__val { width: 62px; flex: none; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.task-progress { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.task-progress__num { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================ 6. 权限矩阵 ============================ */

.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
.perm-yes { color: var(--success); display: inline-grid; place-items: center; }
.perm-no { color: var(--border); display: inline-grid; place-items: center; }

/* ============================ 7. 键值网格与信息块 ============================ */

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; }
.kv-grid .kv { display: flex; flex-direction: column; gap: 3px; }
.kv-grid .kv > span { font-size: 12.5px; color: var(--text-3); }
.kv-grid .kv > b { font-size: 14.5px; }

.info-tile {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--head);
  border: 1px solid var(--border-2);
}
.info-tile__ico {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: #fff; color: var(--text-2);
  border: 1px solid var(--border);
}
.info-tile__ico--brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.info-tile__ico--blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.info-tile__ico--ok { background: var(--success-soft); color: var(--success); border-color: transparent; }
.info-tile__ico--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.info-tile__ico--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.info-tile__label { font-size: 12.5px; color: var(--text-3); }
.info-tile__value { font-size: 18px; font-weight: 700; line-height: 1.3; }
.info-tile__value span { font-size: 12.5px; font-weight: 500; color: var(--text-3); margin-left: 3px; }

/* 口径说明条 */
.caliber {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12.5px;
  line-height: 1.65;
}
.caliber--warn { background: var(--warn-soft); color: #B54708; }
.caliber b { font-weight: 600; }

/* ============================ 8. 段控（Tab） ============================ */

.seg--pill { background: var(--border-2); padding: 3px; border-radius: 10px; display: inline-flex; gap: 2px; }
.seg--pill .seg__btn { border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--text-2); border: 0; background: none; }
.seg--pill .seg__btn.is-active { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.seg--pill .seg__btn:hover:not(.is-active) { color: var(--text); }

/* 视图内小标题（不在 card__head 里时） */
.sub-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px; flex-wrap: wrap;
}
.sub-head__title { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ============================ 9. 响应式 ============================ */

@media (max-width: 1180px) {
  .login { grid-template-columns: 1fr; }
  .login__brand { display: none; }
  .login__panel { padding: 48px 20px; }
  .login__accounts { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .topbar__toggle { display: grid; }
  .reason-row__label { width: 130px; }
}

@media (max-width: 760px) {
  .login__panel { padding: 32px 16px; }
  .login__title { font-size: 21px; }
  .review-item__head { flex-direction: column; }
  .review-item__ops { width: 100%; justify-content: flex-end; }
  .reason-row { flex-wrap: wrap; }
  .reason-row__label { width: 100%; }
}
