:root { --aside: #1f2937; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; background: #f2f4f7; color: #1f2937; }
.layout { min-height: 100vh; }
.aside { background: var(--aside); }
.logo { color: #fff; font-size: 17px; font-weight: 600; padding: 18px 20px; letter-spacing: 1px; }
.aside .el-menu { border-right: none; }
.header { background: #fff; display: flex; align-items: center; justify-content: space-between;
          box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.crumb { font-size: 16px; font-weight: 600; }
.main { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.hint { color: #909399; font-size: 12px; margin-left: 10px; }
.stat { text-align: center; }
.stat-num { font-size: 26px; font-weight: 600; color: #2563eb; }
.stat-label { color: #6b7280; font-size: 13px; margin-top: 4px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
              background: linear-gradient(135deg, #1f2937 0%, #2563eb 100%); }
.login-card { width: 380px; background: #fff; border-radius: 12px; padding: 34px 28px; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.login-card h2 { margin: 0; text-align: center; color: #1f2937; }
.login-card .sub { text-align: center; color: #6b7280; margin: 6px 0 22px; font-size: 13px; }
.login-card .tip { text-align: center; color: #9ca3af; font-size: 12px; margin: 14px 0 0; }
.login-card .err { text-align: center; color: #f56c6c; font-size: 13px; margin: 10px 0 0; }
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #6b7280; font-size: 14px; }
.boot-tip { margin-top: 8px; font-size: 12px; color: #9ca3af; }

/* 价量表格 */
.ari-scroll { overflow: auto; max-height: 62vh; margin-top: 12px; border: 1px solid #e5e7eb; background: #fff; }
.ari-table { border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.ari-table th, .ari-table td { border: 1px solid #e5e7eb; padding: 4px 6px; text-align: center; }
.ari-table thead th { background: #f8fafc; position: sticky; top: 0; z-index: 3; }
.ari-table .sticky-left { position: sticky; left: 0; background: #fff; z-index: 2; text-align: left; min-width: 150px; }
.ari-table thead .sticky-left { z-index: 4; background: #f8fafc; }
.ari-table .wd { color: #9ca3af; font-weight: normal; }
.ari-table .sub-id { color: #9ca3af; font-size: 11px; }
.ari-table .cell { min-width: 92px; }
.cell-in { width: 62px; height: 24px; border: 1px solid #d1d5db; border-radius: 4px; padding: 0 4px; font-size: 12px; display: block; margin: 0 auto 3px; }
.json-box { background: #0f172a; color: #d1fae5; padding: 12px; border-radius: 8px; font-size: 12px;
            max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.field-tip { color: #9ca3af; font-size: 12px; line-height: 1.5; margin-top: 4px; }

/* logid：可点击复制 */
.logid-cell { display: inline-block; max-width: 100%; cursor: pointer; color: #2563eb;
              font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 12px;
              word-break: break-all; border-bottom: 1px dashed #93b4f7; }
.logid-cell:hover { color: #1d4ed8; border-bottom-style: solid; }

/* 滑动拼图验证码 */
.cap-box { margin-top: 16px; user-select: none; }
.cap-canvas { position: relative; border-radius: 6px; overflow: hidden; background: #eef2f7; }
.cap-canvas.loading { display: flex; align-items: center; justify-content: center; }
.cap-loading { color: #909399; font-size: 12px; }
.cap-bg { display: block; width: 100%; height: 100%; }
.cap-block { position: absolute; left: 0; top: 0; width: 52px; height: 52px; box-shadow: 0 0 4px rgba(0,0,0,.35); }
.cap-refresh { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; line-height: 22px;
  text-align: center; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; font-size: 14px; }
.cap-refresh:hover { background: rgba(0,0,0,.6); }
.cap-mask { position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; letter-spacing: 1px; }
.cap-mask.show { display: flex; background: rgba(0,0,0,.45); }
.cap-bar { position: relative; margin-top: 8px; height: 38px; line-height: 38px; border-radius: 19px;
  background: #f1f3f6; border: 1px solid #e1e4e8; overflow: hidden; }
.cap-bar.ok { background: #eaf7ec; border-color: #b7e2bf; }
.cap-tip { display: block; text-align: center; color: #909399; font-size: 12px; }
.cap-btn { position: absolute; top: -1px; left: 0; width: 40px; height: 38px; border-radius: 19px;
  background: #fff; border: 1px solid #d7dae0; box-shadow: 0 1px 4px rgba(0,0,0,.15);
  text-align: center; cursor: grab; color: #409eff; font-size: 15px; }
.cap-btn:active { cursor: grabbing; background: #ecf5ff; }
.cap-box.cap-bad .cap-bar { animation: capshake .3s; border-color: #f56c6c; }
@keyframes capshake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

/* 商品列表：抖音侧下架/封禁原因的次级小字说明 */
.cell-sub { margin-top: 2px; font-size: 12px; line-height: 1.3; color: #e6a23c;
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
