/* ==========================================================================
   眼镜多门店管理系统 · 通用主题
   科技蓝点缀色 + 黑色左侧菜单
   ========================================================================== */

:root {
  /* 科技蓝 */
  --brand:          #1677ff;
  --brand-light:    #4096ff;
  --brand-dark:     #0958d9;
  --brand-cyan:     #13c2c2;
  --brand-glow:     rgba(22, 119, 255, .28);
  --brand-soft:     #e8f2ff;

  /* 左侧菜单（黑色） */
  --side-bg:        #0e1117;
  --side-bg-2:      #12161e;
  --side-line:      rgba(255, 255, 255, .06);
  --side-text:      #9aa7b8;
  --side-text-hi:   #ffffff;
  --side-active:    #1677ff;

  /* 页面 */
  --page-bg:        #f2f5f9;
  --card-bg:        #ffffff;
  --card-line:      #e8edf4;
  --text-1:         #1f2733;
  --text-2:         #5b6b7f;
  --text-3:         #93a1b3;

  --radius:         10px;
  --shadow:         0 2px 8px rgba(16, 42, 78, .06);
  --shadow-lg:      0 8px 28px rgba(16, 42, 78, .12);

  /* Element Plus 主题覆盖 */
  --el-color-primary: #1677ff;
  --el-color-primary-light-3: #4b9bff;
  --el-color-primary-light-5: #7cb8ff;
  --el-color-primary-light-7: #a9d2ff;
  --el-color-primary-light-8: #c4e0ff;
  --el-color-primary-light-9: #e8f2ff;
  --el-color-primary-dark-2: #0958d9;
  --el-border-radius-base: 8px;
  --el-font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--el-font-family);
  color: var(--text-1);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

#app { height: 100%; }

/* ── 布局 ───────────────────────────────────────────────────────────── */
.layout { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 190px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--side-bg) 0%, var(--side-bg-2) 100%);
  display: flex;
  flex-direction: column;
  transition: width .22s ease;
  position: relative;
  z-index: 10;
}
.sidebar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(22,119,255,.5), rgba(22,119,255,.05) 40%, transparent);
}
.sidebar.collapsed { width: 64px; }

.brand {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--side-line);
  flex-shrink: 0;
  overflow: hidden;
}
/* 收起态：居中显示品牌首字，代替原「镜」图标位 */
.sidebar.collapsed .brand { padding: 0; justify-content: center; }
.brand .mini {
  color: #fff; font-size: 15px; font-weight: 700;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1677ff, #13c2c2);
  box-shadow: 0 0 14px var(--brand-glow);
}
.brand .txt { color: #fff; font-size: 14.5px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.brand .txt small { display: block; font-size: 10.5px; color: #65758b; font-weight: 400; letter-spacing: 0; margin-top: 1px; }

.menu { flex: 1; overflow-y: auto; padding: 10px 8px 20px; }
.menu::-webkit-scrollbar { width: 4px; }
.menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

.menu-item, .menu-group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--side-text);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
  transition: all .18s;
  margin-bottom: 3px;
  white-space: nowrap;
  position: relative;
}
.menu-item:hover, .menu-group-title:hover { background: rgba(255,255,255,.055); color: #d6e4f5; }
.menu-item.active {
  /* 选中态：品牌蓝 → #00beff 渐变（左侧深、右侧亮，与侧边栏深色底形成高对比） */
  background: linear-gradient(90deg, var(--brand) 0%, #00beff 100%);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 190, 255, .35);
}
.menu-item.active::before {
  content: '';
  position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  background: #00beff;
  box-shadow: 0 0 10px #00beff;
}
/* 分组标题（有二级菜单）与普通菜单项文字样式保持一致，仅保留分组间距 */
.menu-group-title { margin-top: 6px; }
.menu-group-title .arrow { margin-left: auto; transition: transform .2s; }
.menu-group-title.open .arrow { transform: rotate(90deg); }
.menu-sub { overflow: hidden; padding-left: 6px; }
.menu-item .el-icon { font-size: 16px; flex-shrink: 0; }
.menu-item .badge {
  margin-left: auto; background: #ff4d4f; color: #fff;
  font-size: 10.5px; padding: 1px 6px; border-radius: 9px; line-height: 16px;
}

/* 主区 */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }

.topbar {
  height: 60px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--card-line);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(16,42,78,.04);
  position: relative;
}
.topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-cyan) 26%, transparent 62%);
  opacity: .75;
}
.topbar .collapse-btn { cursor: pointer; color: var(--text-2); font-size: 18px; padding: 6px; border-radius: 6px; }
.topbar .collapse-btn:hover { background: var(--brand-soft); color: var(--brand); }
.topbar .page-title { font-size: 15.5px; font-weight: 600; color: var(--text-1); }
.topbar .page-title .sub { font-weight: 400; color: var(--text-3); font-size: 12.5px; margin-left: 8px; }
.topbar .spacer { flex: 1; }
.topbar .user-box { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 5px 10px; border-radius: 8px; }
.topbar .user-box:hover { background: var(--brand-soft); }
.topbar .user-box .name { font-size: 13.5px; font-weight: 500; }

.content { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }

/* ── 卡片 / 统计 ────────────────────────────────────────────────────── */
.panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-line);
  margin-bottom: 16px;
}
.panel-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-line);
}
.panel-head .t { font-size: 14.5px; font-weight: 600; position: relative; padding-left: 11px; }
.panel-head .t::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-cyan));
}
.panel-head .spacer { flex: 1; }
.panel-body { padding: 16px 18px; }
.panel-body.no-pad { padding: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 16px 18px;
  border: 1px solid var(--card-line); box-shadow: var(--shadow);
  position: relative; overflow: hidden; transition: all .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cfe3ff; }
/* 可点击卡片（如工厂端状态卡片，点击跳转对应订单列表） */
.stat-card.is-clickable { cursor: pointer; }
.stat-card.is-clickable:hover { border-color: var(--brand); box-shadow: var(--shadow-lg), 0 0 0 3px rgba(22,119,255,.08); }
.stat-card::after {
  content: ''; position: absolute; right: -22px; top: -22px;
  width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,119,255,.10), transparent 70%);
}
.stat-card .label { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.stat-card .value { font-size: 26px; font-weight: 700; color: var(--text-1); line-height: 1.1; letter-spacing: -.5px; }
.stat-card .value.blue { color: var(--brand); }
.stat-card .value.cyan { color: var(--brand-cyan); }
.stat-card .value.green { color: #17b26a; }
.stat-card .value.red { color: #f04438; }
.stat-card .value.orange { color: #f79009; }
.stat-card .foot { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }
.stat-card .ico {
  position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--card-line); }
.toolbar .spacer { flex: 1; }

.pager { padding: 14px 18px; display: flex; justify-content: flex-end; }

/* ── 通用 ───────────────────────────────────────────────────────────── */
.thumb {
  width: 46px; height: 46px; border-radius: 7px; object-fit: cover;
  background: #f2f5f9; border: 1px solid var(--card-line); display: block;
}
.thumb-box { display: flex; align-items: center; gap: 9px; }
.thumb-box .noimg {
  width: 46px; height: 46px; border-radius: 7px; background: #f2f5f9; border: 1px solid var(--card-line);
  display: flex; align-items: center; justify-content: center; color: #c3cfdd; font-size: 17px;
}
.muted { color: var(--text-3); font-size: 12.5px; }
.price { color: #f04438; font-weight: 600; }
.price::before { content: '￥'; font-size: .82em; }
.money-red { color: #f04438; font-weight: 600; }

.tag-blue { color: var(--brand); }
.form-tip { font-size: 12px; color: var(--text-3); line-height: 1.7; margin-top: 4px; }

/* ==========================================================================
   表单项对齐修正
   --------------------------------------------------------------------------
   Element Plus 的 .el-form-item__content 默认是 display:flex; flex-wrap:wrap。
   一旦在输入框后面跟一个块级元素（如 .form-tip / .tier-pick / 说明行），
   它就成了输入框的弹性兄弟节点，会被挤到输入框旁边或使整行错位 ——
   表现就是「同一行的两个表单项，一个的控件对齐了、另一个没对齐」。
   这里强制让这些附属元素独占一行，保证同一行内所有控件顶边对齐。
   ========================================================================== */
.el-form-item__content > .form-tip,
.el-form-item__content > .tier-pick,
.el-form-item__content > .pick-line,
.el-form-item__content > .detail-table,
.el-form-item__content > table,
.el-form-item__content > .muted { flex: 0 0 100%; width: 100%; }
/* 水平方向用 flex-start 对齐控件左边缘（默认 stretch 会让部分控件被拉宽） */
.el-form-item__content { align-items: flex-start; }
/* 同一行两个表单项时，让内容区从同一条基线开始，避免因行高差异而错位 */
.grid-2 > .el-form-item, .grid-3 > .el-form-item { margin-bottom: 18px; }
.grid-2 > .el-form-item > .el-form-item__content,
.grid-3 > .el-form-item > .el-form-item__content { min-height: 32px; }

/* 选定项说明行（镜架价格 / 颜色） */
.pick-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 12px; }
.pick-line-lbl { color: var(--text-3); flex-shrink: 0; }
.pick-line-val { font-weight: 700; color: #f04438; }

/* 颜色名称（纯文字，替代原来的色号圆点） */
.color-text {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  border: 1px solid var(--card-line); background: #fff; color: var(--text-2);
  font-size: 12px; cursor: pointer; transition: all .15s; user-select: none;
}
.color-text:hover { border-color: var(--brand); color: var(--brand); }
.color-text.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* 色号色块 / 色点 */
.color-dots { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.color-dots .dot {
  width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex-shrink: 0;
  border: 1px solid rgba(15, 34, 58, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.color-dots .color-dots-txt {
  font-size: 12px; color: var(--text-3); margin-left: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px;
}
.color-chip {
  display: inline-flex; align-items: center; gap: 5px; margin: 2px 5px 2px 0;
  padding: 2px 8px 2px 4px; border-radius: 999px; background: #f5f8fc;
  border: 1px solid var(--card-line); font-size: 12px; color: var(--text-2);
}
.color-chip i {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(15, 34, 58, .14);
}

/* 门店预约分布条形 */
.store-bar {
  display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer;
  font-size: 13px; color: var(--text-2);
}
.store-bar:hover .nm { color: var(--brand); }
.store-bar .nm { width: 150px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-bar .track {
  flex: 1; height: 10px; border-radius: 999px; background: #eef3fa; overflow: hidden; display: block;
}
.store-bar .track i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #7db8ff 0%, #1677ff 100%);
}
.store-bar .num { width: 48px; text-align: right; flex-shrink: 0; font-weight: 600; color: var(--text-1); }
.img-slot {
  width: 92px; height: 92px; border-radius: 8px; border: 1px dashed #cfd9e6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; cursor: pointer; color: var(--text-3); font-size: 12px; background: #fafcff;
  position: relative; overflow: hidden;
}
.img-slot:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot .del {
  position: absolute; right: 3px; top: 3px; background: rgba(0,0,0,.55); color: #fff;
  width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 11px;
}
.img-list { display: flex; flex-wrap: wrap; gap: 10px; }

.empty { padding: 44px 0; text-align: center; color: var(--text-3); font-size: 13px; }

/* 打印 */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .content { padding: 0; }
}

/* 小屏 */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; }
  .sidebar.collapsed { transform: translateX(-100%); width: 190px; }
  .content { padding: 12px; }
}

/* 明细表（订单档案展示） */
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table th, .detail-table td { border: 1px solid var(--card-line); padding: 8px 11px; text-align: left; }
.detail-table th { background: #f7faff; color: var(--text-2); font-weight: 500; width: 110px; }
.detail-table td.center, .detail-table th.center { text-align: center; }

/* ── 启动占位 ───────────────────────────────────────────────────────── */
.boot-loading {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 14px; letter-spacing: 1px;
}

/* ── 登录页 ─────────────────────────────────────────────────────────── */
.login-wrap {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 12% 8%, #0e1a2e 0%, #0a0f18 42%, #06090f 100%);
}
.login-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(22,119,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,119,255,.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 45%, #000 10%, transparent 72%);
}
.login-wrap::after {
  content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  right: -140px; bottom: -220px;
  background: radial-gradient(circle, rgba(19,194,194,.24), transparent 66%);
  filter: blur(12px);
}
.login-card {
  position: relative; z-index: 2;
  width: 386px; padding: 34px 34px 26px;
  border-radius: 16px;
  background: rgba(20,26,36,.86);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(22,119,255,.10) inset;
  backdrop-filter: blur(14px);
}
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.login-brand .logo {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg, #1677ff, #13c2c2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; font-weight: 700;
  box-shadow: 0 0 24px rgba(22,119,255,.5);
}
.login-brand h1 { margin: 0; font-size: 18px; color: #fff; letter-spacing: .6px; }
.login-brand p { margin: 4px 0 0; font-size: 12px; color: #75869c; }
.login-card .el-form-item { margin-bottom: 16px; }
.login-card .el-input__wrapper {
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
  border-radius: 9px;
}
.login-card .el-input__wrapper:hover { box-shadow: 0 0 0 1px rgba(22,119,255,.5) inset; }
.login-card .el-input__wrapper.is-focus { box-shadow: 0 0 0 1px #1677ff inset; }
.login-card .el-input__inner { color: #eaf1fa; }
.login-card .el-input__inner::placeholder { color: #647488; }
.login-foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: #5c6c80; letter-spacing: .3px; }
.login-hint {
  margin-top: 14px; padding: 9px 12px; border-radius: 8px; font-size: 12px;
  color: #7d8ea3; background: rgba(22,119,255,.08); border: 1px solid rgba(22,119,255,.16);
  line-height: 1.7;
}
.login-hint b { color: #9dc0f0; font-weight: 600; }

/* ── 页面小件 ───────────────────────────────────────────────────────── */
.chart { width: 100%; height: 300px; }
.chart.sm { height: 250px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.list-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--card-line); }
.list-row:last-child { border-bottom: 0; }
.list-row .idx {
  width: 21px; height: 21px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff; background: #c3cfdd;
}
.list-row .idx.top1 { background: linear-gradient(135deg,#f7a600,#ff7a45); }
.list-row .idx.top2 { background: linear-gradient(135deg,#8c9aac,#5b6b7f); }
.list-row .idx.top3 { background: linear-gradient(135deg,#c98a4b,#a9713a); }
.list-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.list-row .vv { font-size: 13px; color: var(--brand); font-weight: 600; }

/* 订单状态色块 */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }

/* 富文本 */
.x-rich { border: 1px solid var(--card-line); border-radius: 8px; overflow: hidden; background: #fff; }
.x-rich-bar {
  display: flex; align-items: center; gap: 3px; padding: 6px 8px;
  background: #f7faff; border-bottom: 1px solid var(--card-line); flex-wrap: wrap;
}
.x-rich-bar .btn {
  min-width: 27px; height: 27px; padding: 0 6px; border-radius: 6px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-2); user-select: none;
}
.x-rich-bar .btn:hover { background: var(--brand-soft); color: var(--brand); }
.x-rich-bar .sep { width: 1px; height: 16px; background: var(--card-line); margin: 0 4px; }
.x-rich-body {
  min-height: 190px; padding: 12px 14px; outline: none; font-size: 13.5px; line-height: 1.8;
  max-height: 420px; overflow-y: auto;
}
.x-rich-body:empty::before { content: attr(data-placeholder); color: #b6c2d1; }
.x-rich-body img { max-width: 100%; border-radius: 6px; }

/* 订单号 / 预约号：强制单行，不折行 */
.el-table .col-no .cell { white-space: nowrap; overflow: hidden; text-overflow: clip; word-break: keep-all; }

/* 表格操作列紧凑 */
.el-table .cell .op-link { color: var(--brand); cursor: pointer; font-size: 12.5px; margin-right: 9px; }
.el-table .cell .op-link:hover { color: var(--brand-dark); text-decoration: underline; }
.el-table .cell .op-link.danger { color: #f04438; }
.el-table .cell .op-link.muted { color: var(--text-3); cursor: not-allowed; text-decoration: none; }

/* 档案明细表（左眼/右眼两行） */
.eye-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eye-table th, .eye-table td { border: 1px solid var(--card-line); padding: 7px 6px; text-align: center; }
.eye-table th { background: #f7faff; color: var(--text-2); font-weight: 500; }
.eye-table td.lbl { background: #fbfdff; font-weight: 600; color: var(--text-1); width: 74px; white-space: nowrap; }
.eye-table th.req::after { content: '*'; color: #f04438; margin-left: 2px; }
.req-mark { color: #f04438; margin-right: 2px; }
/* 开单弹窗内的档案数据卡：表头一行 + 处方表 */
.arch-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.arch-head .arch-name { font-weight: 700; color: var(--text-1); }
.arch-head .arch-tag {
  font-size: 11px; padding: 1px 8px; border-radius: 20px;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
/* 散光 > 200 度的眼别高亮：提示这眼会走进更高的度数档位 */
.eye-table td.cyl-hit { background: #fff7e6; color: #b45309; font-weight: 600; }

/* 底部统计条 */
.foot-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 18px; background: #f7faff; border-top: 1px solid var(--card-line);
  font-size: 13px;
}
.foot-bar .big { font-size: 19px; font-weight: 700; color: #f04438; }
.foot-bar .big.blue { color: var(--brand); }

/* 商品选择卡片 */
.pick-list { max-height: 340px; overflow-y: auto; }
.pick-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px;
  border: 1px solid var(--card-line); margin-bottom: 8px; cursor: pointer; transition: all .16s;
}
.pick-item:hover { border-color: #bcd9ff; background: #fafcff; }
.pick-item.on { border-color: var(--brand); background: var(--brand-soft); }
.pick-item .nm { flex: 1; min-width: 0; font-size: 13px; }
.pick-item .nm small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; }
/* 选品卡片内的可点选项（颜色名称 / 度数档位）：
   这些才是「选定」入口，所以条目本体在镜架 / 镜片时不再整体可点 */
.pick-item .opt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pick-item.is-pickable { cursor: pointer; }
.pick-item:has(.opt-row) { cursor: default; }

/* 度数档位（镜片）：三选一 */
.tier-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px;
  border: 1px solid var(--card-line); background: #fff; color: var(--text-2);
  font-size: 12px; cursor: pointer; transition: all .15s; user-select: none;
}
.tier-chip:hover { border-color: var(--brand); color: var(--brand); }
.tier-chip b { font-weight: 700; color: #f04438; }
.tier-chip.on, .tier-chip.hot {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand);
}
.tier-chip.on b, .tier-chip.hot b { color: #f04438; }
.tier-chip em {
  font-style: normal; font-size: 10px; padding: 0 4px; border-radius: 8px;
  background: var(--brand); color: #fff; margin-left: 2px;
}
.tier-chip.sm { font-size: 11.5px; padding: 1px 8px; }
/* 开单表单里的档位选择区 */
.tier-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tier-pick-lbl { font-size: 12px; color: var(--text-3); }
.tip-warn { color: #d97706 !important; }
.tip-danger { color: #f04438 !important; }

/* 打印区域 */
.print-sheet { font-size: 13px; color: #111; }
.print-sheet h1 { font-size: 19px; text-align: center; margin: 0 0 4px; }
.print-sheet .sub { text-align: center; color: #666; font-size: 12px; margin-bottom: 16px; }
.print-sheet table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.print-sheet th, .print-sheet td { border: 1px solid #999; padding: 6px 9px; }
.print-sheet th { background: #f2f2f2; width: 92px; text-align: left; }
.print-sheet .foot { margin-top: 24px; display: flex; justify-content: space-between; font-size: 13px; }

/* ==========================================================================
   抢购到店人脸核验（XFaceVerify + 门店端人脸核验页）
   ========================================================================== */
.fv-wrap { display: flex; flex-direction: column; gap: 14px; }

/* 结果条 */
.fv-result {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--card-line); background: #f7faff;
}
.fv-result .fv-ico { font-size: 30px; color: var(--brand); flex: none; }
.fv-result .fv-rt { font-size: 16px; font-weight: 700; color: var(--text-1); }
.fv-result .fv-rs { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.fv-result.ok { background: #f0fbf4; border-color: #b7ebc6; }
.fv-result.ok .fv-ico { color: #17b26a; }
.fv-result.bad { background: #fff4f4; border-color: #ffc9c9; }
.fv-result.bad .fv-ico { color: #f04438; }
.fv-result.bad .fv-rt { color: #d92d20; }

.fv-shot { text-align: center; }
.fv-shot img { max-width: 240px; border-radius: 12px; border: 1px solid var(--card-line); }

/* 采集舞台 */
.fv-stage {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 380px;
  background: #10151f; border-radius: 14px; overflow: hidden;
}
.fv-stage .fv-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.fv-stage .fv-mask {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 34% 46% at 50% 48%, transparent 62%, rgba(8, 12, 20, .62) 100%);
}
.fv-stage .fv-mask::after {
  content: ''; position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 3 / 4; border: 2px dashed rgba(255, 255, 255, .55);
  border-radius: 46% / 34%; pointer-events: none;
}
.fv-stage .fv-hint {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  color: #fff; font-size: 13px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

.fv-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.fv-tips { font-size: 12.5px; color: var(--text-3); line-height: 1.9; }
.fv-tips p { margin: 0; }
.fv-tips strong { color: #d92d20; }

.fv-preview { display: flex; align-items: center; gap: 14px; padding: 12px; background: #f7faff; border-radius: 12px; }
.fv-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--card-line); }
.fv-preview .fv-pmeta { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }

/* 人脸重复并排对比 */
.fv-compare { display: flex; align-items: center; justify-content: center; gap: 18px; }
.fv-compare .fv-cbox { text-align: center; }
.fv-compare .fv-cbox img {
  width: 168px; height: 168px; object-fit: cover; border-radius: 12px;
  border: 2px solid #ffc9c9; background: #f5f5f5;
}
.fv-compare .fv-clabel { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; font-weight: 600; }
.fv-compare .fv-carrow { font-size: 26px; color: #f04438; }
.fv-compare .fv-cmeta { margin-top: 8px; font-size: 12px; color: var(--text-2); line-height: 1.8; }

/* 全平台人脸库 */
.face-lib { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; min-height: 120px; }
.face-lib-item {
  border: 1px solid var(--card-line); border-radius: 10px; overflow: hidden;
  background: #fff; transition: all .16s;
}
.face-lib-item:hover { border-color: #bcd9ff; box-shadow: 0 6px 18px rgba(22, 119, 255, .1); }
.face-lib-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.face-lib-item .face-lib-no {
  width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  background: #f5f7fa; color: var(--text-3); font-size: 12px;
}
.face-lib-item .face-lib-meta { padding: 7px 9px; font-size: 12px; line-height: 1.6; }

/* 预约管理 · 人脸核验（列表缩略图 + 详情对比） */
.ap-face { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 5px; }
.ap-face-img {
  width: 34px; height: 34px; border-radius: 7px; object-fit: cover;
  border: 1px solid var(--card-line); cursor: pointer; transition: all .16s;
}
.ap-face-img:hover { border-color: var(--brand); transform: scale(1.08); box-shadow: 0 4px 12px rgba(22, 119, 255, .28); }
.ap-face-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 7px; border: 1px dashed var(--card-line);
  background: #fafbfc; color: var(--text-3); font-size: 10px;
}

.ap-face-detail { display: flex; align-items: flex-start; justify-content: center; gap: 14px; }
.ap-fd-box { text-align: center; }
.ap-fd-box img {
  width: 148px; height: 148px; object-fit: cover; border-radius: 12px;
  border: 2px solid var(--card-line); background: #f5f5f5; display: block;
}
.ap-fd-box .ap-fd-no {
  width: 148px; height: 148px; display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--card-line); border-radius: 12px;
  background: #fafbfc; color: var(--text-3); font-size: 12.5px;
}
.ap-fd-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; font-weight: 600; }
.ap-fd-arrow { font-size: 24px; color: #f04438; margin-top: 60px; }
.ap-fd-meta { margin-top: 8px; font-size: 12px; color: var(--text-2); line-height: 1.7; }
