/* ===== Global styles (moved from App.vue so they apply across all routes) ===== */

/* ===== Dark Theme (default) ===== */
:root,
[data-theme="dark"] {
  --bg: #1a1a2e;
  --surface: #16213e;
  --text: #e0e0e0;
  --text2: #a0a0b0;
  --accent: #e94560;
  --border: #2a2a4a;
  --radius: 12px;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text2: #6b7280;
  --accent: #e94560;
  --border: #d1d5db;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang HK', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

.app {
  margin: 0 auto;
}

.header {
  background: var(--surface);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header h1 { font-size: 18px; font-weight: 700; letter-spacing: 0.5px; margin: 0; white-space: nowrap; }
.header-left-wrap { display: flex; flex-direction: column; flex: 1; }
/* 页头左列(标题/资质/口号) 与右侧工具列互不影响,右侧单独预留一列 */
.header-main { display: flex; align-items: center; flex: 1; min-width: 0; }
.header-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.header-bottom { margin-top: 3px; }
.header-sub { font-size: 12px; color: var(--text2); letter-spacing: 0.3px; white-space: nowrap; }
.header-cert { font-size: 13px; color: var(--text2); letter-spacing: 0.3px; }
.cert-br { display: none; }
.header-utils { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-slogan {
  flex: 1;
  text-align: left;
  padding-left: 30px;
  font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.slogan-link {
  margin-left: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #1a73e8;
  text-decoration: none;
}
.slogan-link:hover { text-decoration: underline; }
/* 英文副标题(Traverse mountains and seas): 独占一行排在中文口号+网址下方
   (块级元素故必须排在 .slogan-link 之后, 否则网址会被挤到第三行) */
.slogan-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text2);
}
/* 英文口号较长, 网址链接另起一行放在口号下方, 避免同行超出(仅PC端; 手机端网址本就隐藏) */
@media (min-width: 1025px) {
  .header-slogan.slogan-en { white-space: normal; }
  .header-slogan.slogan-en span { display: block; white-space: nowrap; }
  .header-slogan.slogan-en .slogan-link { display: block; margin-left: 0; margin-top: 2px; text-align: center; }
}
.sub-link { display: none; }
.sub-cn { color: var(--text); font-weight: 700; }

.lang-switch { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border-radius: 6px; padding: 2px; }
.lang-btn {
  padding: 3px 7px; border: none; border-radius: 5px;
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s;
  background: transparent; color: var(--text2); font-family: inherit;
}
.lang-btn.active { background: #e8f5e9; color: #2e7d32; }
.header .badge { font-size: 11px; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 10px; }

.theme-select {
  padding: 4px 22px 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 4px center;
}

/* Desktop two-column layout using CSS Grid */
.main-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-rows: auto auto auto;
  gap: 0 24px;
  padding: 20px;
  width: 80vw;
  margin: 0 auto;
  align-items: start;
}

/* Desktop: preview pinned on top spanning left column, right column scrolls */
.sec-preview { grid-column: 1; grid-row: 1; position: sticky; top: 60px; z-index: 40; padding-bottom: 4px; background: var(--bg); }
.col-right  { grid-column: 2; grid-row: 1 / 4; }

.preview-sticky {
  position: sticky;
  top: 64px;
  z-index: 40;
  padding-bottom: 4px;
  background: var(--bg);
}

/* Buttons */
.btn {
  padding: 10px 20px; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: #e8f5e9; color: #2e7d32; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-full { width: 100%; padding: 14px; font-size: 16px; }

/* Card */
.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
}
.card-title {
  font-size: 13px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}

/* Inputs */
.input-group { margin-bottom: 12px; }
.input-group:last-child { margin-bottom: 0; }
.input-group label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.input-row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: nowrap; }
.input-row > * { flex: 1; min-width: 0; }

input[type="text"], input[type="password"], select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; background: var(--bg); color: var(--text);
  font-family: inherit; -webkit-appearance: none; appearance: none;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
select {
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px;
}

input[type="range"] {
  width: 100%; -webkit-appearance: none; height: 6px; border-radius: 3px; background: var(--border); outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); cursor: pointer;
}
.range-value { font-size: 12px; color: var(--text2); text-align: right; min-width: 40px; }

/* Tab switcher */
.tab-switcher {
  display: flex; gap: 4px; background: var(--bg);
  border-radius: 10px; padding: 4px; margin-bottom: 12px;
}
.tab-btn {
  flex: 1; padding: 8px 10px; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
  background: transparent; color: var(--text2); font-family: inherit;
}
.tab-btn.active { background: #e8f5e9; color: #2e7d32; }

/* Collapse */
.collapse-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text2);
  user-select: none;
}
.collapse-content { overflow: hidden; transition: max-height 0.3s ease; max-height: 800px; }
.collapse-content.hidden { max-height: 0 !important; }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px 26px;
  font-size: 13px;
  color: var(--text2);
}
.footer-sep { opacity: 0.5; }
.footer-link { color: #1a73e8; text-decoration: none; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }

/* Toast */
.toast {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  background: #e94560; color: #fff; padding: 10px 24px; border-radius: 20px;
  font-size: 14px; z-index: 10000; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* 手机端保存参数卡吸附到车牌展示区正下方的偏移(HomeView 实时测量覆写) */
:root { --save-pin-top: 48px; }

@media (max-width: 1300px) and (min-width: 1025px) {
  .main-container {
    width: 95vw;
    grid-template-columns: 1fr 360px;
    gap: 0 16px;
  }
}

/* Phone: stack vertically, right-col on top */
@media (max-width: 1024px) {
  .app { width: 100%; }

  /* 防止 iOS Safari 聚焦输入框时自动放大页面:
     Safari 对计算字号 < 16px 的 input/select 会缩放视口, 故移动端统一提到 16px。
     注: viewport 的 maximum-scale=1 / user-scalable=no 在 iOS 10+ 已被忽略, 无效。 */
  input[type="text"], input[type="password"], select {
    font-size: 16px;
  }
  /* 字号变大后折叠面板内容变高, 抬高上限避免"進階設定"底部被裁切(原 800px) */
  .collapse-content { max-height: 1600px; }

  .header {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 0;
    position: relative;
  }
  .header h1 { font-size: 16px; line-height: 1; }
  .header-top { flex-direction: column; gap: 2px; }
  .header-sub { font-size: 10px; white-space: normal; max-width: 100%; line-height: 1; }
  .header-sub .sub-sep { display: none; }
  .header-sub .sub-link {
    display: block;
    margin-top: 0;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
  }
  .header-sub .sub-cn { display: block; margin-top: 12px; }
  .header-bottom { margin-top: 1px; }
  .header-cert { font-size: 11px; line-height: 1.1; display: block; }
  .cert-br { display: inline; }
  /* 左列: 标题/资质/口号 上下堆叠 */
  .header-main { flex-direction: column; align-items: stretch; }
  .header-slogan {
    flex: none;
    order: 3;
    text-align: left;
    padding-left: 0;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
    white-space: normal;
  }
  .slogan-link { display: none; }
  /* 英文副标题: 手机端口号为 14px, 副标题相应缩到 11px */
  .slogan-sub { font-size: 11px; }
  /* 右侧独立一列: 语言/皮肤控件固定贴右、与口号行平齐,不影响左侧文字 */
  .header-utils {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    margin: 0 0 0 8px;
    align-self: flex-end;
  }
  .theme-select {
    font-size: 16px;
    padding: 5px 22px 5px 8px;
    width: auto;
    min-width: 0;
    background-position: right 4px center;
  }
  .header-left-wrap { flex: none; min-height: 50px; }

  .main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 12px;
  }
  /* 手机端: 车牌展示区(整块)滚过页头后常驻吸顶,持续到页面底部才让位;
     高度由 JS 写入 --save-pin-top,供下方「保存参数」卡吸附在它正下方 */
  .sec-preview { order: 1; width: 100%; position: sticky; top: 0; z-index: 40; background: var(--bg); box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.15); }
  .sec-preview .preview-section { position: static; }
  .col-right { order: 2; position: static; width: 100%; }
  .preview-sticky { top: 0; } /* 保留吸顶,只与 .sec-preview 的 top 对齐 */
}

.preview-section[data-v-9602d134] { text-align: center;
}
.plate-label[data-v-9602d134] {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 4px;
  margin-top: 8px;
  text-align: left;
}
.plate-label[data-v-9602d134]:first-child { margin-top: 0;
}
.preview-wrapper[data-v-9602d134] {
  position: relative; display: inline-block; cursor: pointer;
  transition: transform 0.2s; max-width: 100%; min-height: 40px;
  border-radius: 4px; overflow: hidden;
}
.preview-wrapper[data-v-9602d134]:active { transform: scale(0.98);
}
.preview-wrapper.loading[data-v-9602d134] { opacity: 0.6; pointer-events: none;
}
.preview-img[data-v-9602d134] {
  display: block; max-width: 100%; height: auto;
  border-radius: 4px; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.preview-placeholder[data-v-9602d134] {
  min-height: 60px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: var(--text2);
  gap: 8px; font-size: 14px;
}
.spinner[data-v-9602d134] {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin-9602d134 0.8s linear infinite;
}
@keyframes spin-9602d134 {
to { transform: rotate(360deg);
}
}
.click-hint[data-v-9602d134] {
  font-size: 12px; color: var(--text2); margin-top: 6px;
  user-select: none;
}

.brand-selector[data-v-baa2818c] {
  position: relative;
  flex: 1;
}
.input-label[data-v-baa2818c] {
  display: block;
  font-size: 12px;
  color: var(--text2, #a0a0b0);
  margin-bottom: 4px;
}
.selector-trigger[data-v-baa2818c] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 8px;
  background: var(--bg, #1a1a2e);
  color: var(--text, #e0e0e0);
  cursor: pointer;
  font-size: 14px;
  box-sizing: border-box;
}
.trigger-logo[data-v-baa2818c] {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}
.trigger-placeholder[data-v-baa2818c] {
  font-size: 16px;
  flex-shrink: 0;
}
.trigger-text[data-v-baa2818c] {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trigger-arrow[data-v-baa2818c] {
  color: var(--text2, #a0a0b0);
  font-size: 12px;
  transition: transform 0.2s;
}
.trigger-arrow.open[data-v-baa2818c] {
  transform: rotate(180deg);
}
.dropdown-panel[data-v-baa2818c] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface, #16213e);
  border: 1px solid var(--border, #2a2a4a);
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  max-height: 320px;
  display: flex;
  flex-direction: column;
}
.dropdown-panel.drop-up[data-v-baa2818c] {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 4px;
}
.dropdown-search[data-v-baa2818c] {
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border, #2a2a4a);
  background: transparent;
  color: var(--text, #e0e0e0);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  flex-shrink: 0;
}
.dropdown-list[data-v-baa2818c] {
  list-style: none;
  overflow-y: auto;
  padding: 4px 0;
  flex: 1;
}
.dropdown-item[data-v-baa2818c] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
}
.dropdown-item[data-v-baa2818c]:hover,
.dropdown-item.active[data-v-baa2818c] {
  background: var(--bg, #1a1a2e);
}
.item-logo[data-v-baa2818c] {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 3px;
  flex-shrink: 0;
}
.item-icon[data-v-baa2818c] {
  font-size: 16px;
  flex-shrink: 0;
}
.item-text[data-v-baa2818c] {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-check[data-v-baa2818c] {
  color: var(--accent, #e94560);
  font-size: 14px;
  flex-shrink: 0;
}
.dropdown-empty[data-v-baa2818c] {
  padding: 16px;
  text-align: center;
  color: var(--text2, #a0a0b0);
  font-size: 13px;
}

.card[data-v-2158777b] { margin-top: 12px;
}
.switch-row[data-v-2158777b] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.switch[data-v-2158777b] {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
}
.switch.on[data-v-2158777b] {
  background: #e8f5e9;
}
.switch-knob[data-v-2158777b] {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
}
.switch.on .switch-knob[data-v-2158777b] {
  left: 22px;
  background: #2e7d32;
}

/* 集團標誌卡: 開關行是卡片內的一般設定列, 不帶外層那個大寫粗體標題感 */
.logo-switch[data-v-2158777b] { margin: 10px 0;
}
.logo-tip[data-v-2158777b] { font-size: 11px; color: var(--text2); margin-top: 8px;
}
.slider-row[data-v-2158777b] {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
}
.slider-row input[type="range"][data-v-2158777b] {
  flex: 1;
  min-width: 0;
  height: 24px;
}
.preset-card[data-v-2158777b] { border: 1px solid var(--accent); border-radius: 8px; padding: 10px;
}

/* PC: 右邊內容往上滾時,保存按鈕區域滾到頂部後吸附在頁頭下方,一直可見可點 */
@media (min-width: 1025px) {
.preset-card[data-v-2158777b] {
    position: sticky;
    top: 60px;
    z-index: 30;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
}
/* 手机端: 保存参数卡吸附在已吸顶的车牌展示区正下方(top 由 HomeView 实时测量
   展示区高度并写入 --save-pin-top),两块同时固定,滚动调参时都一直可见 */
@media (max-width: 1024px) {
.preset-card[data-v-2158777b] {
    position: sticky;
    top: var(--save-pin-top, 48px);
    z-index: 34;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
}
.preset-badge[data-v-2158777b] {
  margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 8px;
  border-radius: 10px; background: var(--border); color: var(--text2);
  vertical-align: middle;
}
.preset-badge.on[data-v-2158777b] { background: #e8f5e9; color: #1b7d2e;
}
.preset-key[data-v-2158777b] {
  margin: 6px 0; font-size: 12px; font-weight: 700; color: var(--accent);
  word-break: break-all;
}
.preset-tip[data-v-2158777b] { font-size: 11px; color: var(--text2); margin-bottom: 8px;
}
.preset-actions[data-v-2158777b] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.preset-btn[data-v-2158777b] {
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px;
  font-size: 13px; font-weight: 700; cursor: pointer; background: var(--surface);
  color: var(--text); font-family: inherit;
}
.preset-btn.save[data-v-2158777b] { background: #e8f5e9; border-color: #c8e6c9; color: #2e7d32;
}
.preset-btn.del[data-v-2158777b]:disabled { opacity: 0.4; cursor: not-allowed;
}
.preset-count[data-v-2158777b] { font-size: 11px; color: var(--text2);
}
.preset-msg[data-v-2158777b] { margin-top: 6px; font-size: 12px; font-weight: 700; color: #1b7d2e; word-break: break-all;
}
.adj-btn[data-v-2158777b] {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.adj-btn[data-v-2158777b]:active {
  background: var(--accent);
  color: #fff;
}


.order-panel[data-v-43af63b2] {
  margin-top: 0;
}
.tab-content[data-v-43af63b2] {
  padding-top: 8px;
}
.inline-switch[data-v-43af63b2] {
  background: var(--bg);
  border-radius: 10px;
  padding: 4px;
}
.inline-switch .tab-btn[data-v-43af63b2] {
  padding: 8px 10px;
  font-size: 13px;
}
.required[data-v-43af63b2] {
  color: var(--accent);
}
.input-error[data-v-43af63b2] {
  border-color: #e94560 !important;
}
.field-error[data-v-43af63b2] {
  color: #e94560;
  font-size: 12px;
  margin-top: 2px;
  display: block;
}
.order-error[data-v-43af63b2] {
  color: #e94560;
  font-size: 13px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(233, 69, 96, 0.1);
  border-radius: 6px;
}
button[data-v-43af63b2]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
select[data-v-43af63b2]:disabled,
input[data-v-43af63b2]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fs-overlay[data-v-66433cd6] {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  z-index: 9999; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  overflow-y: auto;
}
.fs-images[data-v-66433cd6] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 8px;
}
.fs-img-wrap[data-v-66433cd6] {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
}
.fs-image[data-v-66433cd6] {
  max-width: min(92vw, 100%);
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  -webkit-touch-callout: default;
}
.fs-downloads[data-v-66433cd6] {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.fs-download[data-v-66433cd6] {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid #1a73e8;
  border-radius: 6px;
  color: #1a73e8;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.fs-download[data-v-66433cd6]:hover {
  background: #1a73e8;
  color: #fff;
}
.fs-close[data-v-66433cd6] {
  position: fixed; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 20px; cursor: pointer; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.fs-loading[data-v-66433cd6] {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; color: rgba(255,255,255,0.6);
}
.spinner[data-v-66433cd6] {
  width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #fff; border-radius: 50%;
  animation: spin-66433cd6 0.8s linear infinite;
}
@keyframes spin-66433cd6 {
to { transform: rotate(360deg);
}
}

.modal-overlay[data-v-875b7a64] {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-content[data-v-875b7a64] {
  background: var(--surface);
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-header[data-v-875b7a64] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2[data-v-875b7a64] {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.close-btn[data-v-875b7a64] {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text2);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  font-family: inherit;
}
.close-btn[data-v-875b7a64]:hover { color: var(--text);
}
.modal-body[data-v-875b7a64] {
  padding: 20px 24px 24px;
}
.order-image[data-v-875b7a64] {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.instructions[data-v-875b7a64] {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.step[data-v-875b7a64] {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.step[data-v-875b7a64]:last-child { margin-bottom: 0;
}
.step-num[data-v-875b7a64] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-actions[data-v-875b7a64] {
  display: flex;
  gap: 12px;
}
.modal-actions .btn[data-v-875b7a64] {
  flex: 1;
  padding: 14px 20px;
  font-size: 16px;
}
.btn-taobao[data-v-875b7a64] {
  background: #ff5000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-taobao[data-v-875b7a64]:hover {
  background: #e04400;
}
.btn-taobao[data-v-875b7a64]:active {
  transform: scale(0.96);
}
@media (max-width: 1024px) {
.modal-actions[data-v-875b7a64] {
    flex-direction: column;
}
.modal-content[data-v-875b7a64] {
    max-height: 90vh;
}
}

.admin-page[data-v-a85e9158] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-header[data-v-a85e9158] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-brand[data-v-a85e9158] { display: flex; align-items: baseline; gap: 10px;
}
.admin-logo[data-v-a85e9158] { font-weight: 700; letter-spacing: 1px;
}
.admin-title[data-v-a85e9158] { font-size: 13px; color: var(--text2);
}
.admin-header-utils[data-v-a85e9158] { display: flex; align-items: center; gap: 10px;
}
.admin-footer[data-v-a85e9158] { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px 30px;
}
.admin-sep[data-v-a85e9158] { opacity: 0.5;
}
.admin-home[data-v-a85e9158] { font-size: 13px; font-weight: 600; color: #1a73e8; text-decoration: none; white-space: nowrap;
}
.admin-home[data-v-a85e9158]:hover { text-decoration: underline;
}
.admin-user[data-v-a85e9158] { font-size: 13px; color: var(--text2);
}
.admin-main[data-v-a85e9158] {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 12px;
}
.admin-center[data-v-a85e9158] { padding-top: 40px;
}
.login-card[data-v-a85e9158] { max-width: 360px; margin: 0 auto;
}
.upload-preview[data-v-a85e9158] {
  display: block;
  margin: 8px auto 0;  /* horizontally centered under the upload row */
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.zoom-overlay[data-v-a85e9158] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.zoom-img[data-v-a85e9158] {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.zoom-close[data-v-a85e9158] {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.zoom-close[data-v-a85e9158]:hover { background: rgba(255, 255, 255, 0.35);
}
.form-error[data-v-a85e9158] { color: var(--accent); font-size: 13px; margin-bottom: 10px;
}
.qr-wrap[data-v-a85e9158] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
}
.qr-save-img[data-v-a85e9158] { width: 280px; height: 280px; border-radius: 8px;
}
.qr-save-hint[data-v-a85e9158] { margin: 6px 0 0; font-size: 12px; color: var(--text2);
}
.qr-url[data-v-a85e9158] {
  font-size: 13px;
  color: var(--text2);
  word-break: break-all;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;  /* center the short link + copy button */
  gap: 8px;
}
.qr-btns[data-v-a85e9158] {
  display: flex;
  justify-content: center;   /* center the download buttons */
  gap: 12px;                 /* spacing between them */
}
.qr-cdr-hint[data-v-a85e9158] {
  margin: 10px 0 0;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  background: #fff8e1;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  line-height: 1.5;
  text-align: center;  /* center the CDR tip */
}
.btn-sm[data-v-a85e9158] { padding: 4px 10px; font-size: 12px;
}
.list-tools[data-v-a85e9158] {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.list-tools-btns[data-v-a85e9158] { display: flex; align-items: center; gap: 8px;
}
.list-refresh[data-v-a85e9158] { margin-bottom: 10px;
}
.code-list[data-v-a85e9158] { display: flex; flex-direction: column; gap: 6px;
}
.code-id[data-v-a85e9158] { font-family: monospace; font-weight: 700; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; display: inline-block;
}
.code-serials[data-v-a85e9158] { white-space: normal; word-break: break-all;
}
.code-time[data-v-a85e9158] { color: var(--text2); font-size: 12px; white-space: normal; word-break: break-all;
}
.badge[data-v-a85e9158] { padding: 2px 8px; border-radius: 10px; font-size: 11px;
}
.badge-new[data-v-a85e9158] { background: var(--border); color: var(--text2);
}
.badge-verified[data-v-a85e9158] { background: #2e7d32; color: #fff;
}
.badge-shipped[data-v-a85e9158] { background: #1565c0; color: #fff;
}
.badge-unshipped[data-v-a85e9158] { background: #fff8e1; color: #b45309; border: 1px solid #f59e0b;
}
.list-empty[data-v-a85e9158] { color: var(--text2); font-size: 13px; padding: 10px 0;
}
.table-wrap[data-v-a85e9158] { overflow-x: auto;
}
.code-table[data-v-a85e9158] {
  width: 100%;
  min-width: 0;  /* always fit the container — no horizontal cut-off */
  table-layout: fixed;  /* columns split by <colgroup>, table never overflows */
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--border);
}
.code-table th[data-v-a85e9158] {
  text-align: center;
  padding: 8px 6px;
  background: var(--bg);
  color: var(--text2);
  font-size: 12px;
  font-weight: 700;
  white-space: normal;  /* headers wrap instead of widening the table */
  word-break: break-word;
  border: 1px solid var(--border);
}
.code-table td[data-v-a85e9158] {
  padding: 12px 10px;
  border: 1px solid var(--border);
  vertical-align: middle;
  text-align: center;
}
.code-table tbody tr[data-v-a85e9158]:hover { background: var(--bg);
}
.row-empty[data-v-a85e9158] { color: var(--text2);
}
.row-time-sub[data-v-a85e9158] { font-size: 11px; color: var(--text2); margin-top: 2px; white-space: nowrap;
}
.row-plate-no[data-v-a85e9158] { font-weight: 700; white-space: nowrap;
}
.code-bills[data-v-a85e9158] { display: flex; gap: 6px; justify-content: center;
}
.row-plate-thumbs[data-v-a85e9158] { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.row-qr-thumb[data-v-a85e9158] {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: zoom-in;
}
.row-plate-thumb[data-v-a85e9158] {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
/* 操作按钮:每行 3 个,共 2 行(未发货 5 个=3+2,已发货 2 个=2) */
.row-actions[data-v-a85e9158] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;  /* shrink with the fixed-layout column */
}
.row-actions .btn[data-v-a85e9158] {
  width: 100%;
  margin: 0;
  white-space: nowrap;
  padding: 4px 6px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-warning[data-v-a85e9158] { background: #f59e0b; color: #fff;
}
.btn-warning[data-v-a85e9158]:hover:not(:disabled) { background: #d97706;
}
.btn-ship[data-v-a85e9158] { background: #81c784; color: #fff;
}
.btn-ship[data-v-a85e9158]:hover:not(:disabled) { background: #66bb6a;
}

/* ===== Plate number modal (設置車牌) ===== */
.modal-sm[data-v-a85e9158] { width: min(380px, 92vw);
}

/* ===== Display settings modal (掃碼頁顯示設置) ===== */
.switch-row[data-v-a85e9158] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.switch[data-v-a85e9158] {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch.on[data-v-a85e9158] { background: var(--accent);
}
.switch-knob[data-v-a85e9158] {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: left 0.2s;
}
.switch.on .switch-knob[data-v-a85e9158] { left: 22px;
}
.plate-input[data-v-a85e9158] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
}
.plate-modal-actions[data-v-a85e9158] {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* ===== Plate image management modal ===== */
.btn-danger[data-v-a85e9158] { background: #e57373; color: #fff;
}
.btn-danger[data-v-a85e9158]:hover:not(:disabled) { background: #ef5350;
}
.modal-overlay[data-v-a85e9158] {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal[data-v-a85e9158] {
  width: min(640px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.modal-header[data-v-a85e9158] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.modal-close[data-v-a85e9158] { border: none; background: none; font-size: 16px; cursor: pointer; color: var(--text2);
}
.modal-body[data-v-a85e9158] { padding: 16px; overflow-y: auto;
}
.img-grid[data-v-a85e9158] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.img-grid-item[data-v-a85e9158] { display: flex; flex-direction: column; gap: 6px;
}
.img-grid-thumb[data-v-a85e9158] {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
.img-upload-row[data-v-a85e9158] { display: flex; align-items: center; gap: 10px;
}
.img-upload-row input[type="file"][data-v-a85e9158] { flex: 1;
}
.modal-hint[data-v-a85e9158] { margin-top: 10px; font-size: 12px; color: var(--text2);
}

/* ===== Scan history modal (驗證記錄) ===== */
.modal-summary[data-v-a85e9158] { font-size: 13px; color: var(--text2); margin-bottom: 10px;
}
.logs-list[data-v-a85e9158] { display: flex; flex-direction: column; gap: 6px;
}
.logs-item[data-v-a85e9158] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 13px;
}
.logs-no[data-v-a85e9158] { font-weight: 700; white-space: nowrap;
}
.logs-info[data-v-a85e9158] { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0;
}
.logs-meta[data-v-a85e9158] { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.logs-time[data-v-a85e9158] { flex: 1; color: var(--text2); text-align: right; white-space: nowrap;
}
.cred-form[data-v-a85e9158] { padding-top: 12px;
}
input[type="file"][data-v-a85e9158] {
  font-size: 13px;
  color: var(--text2);
  width: 100%;
}

/* 自定义文件选择按钮(替代浏览器默认 Choose File) */
.file-btn[data-v-a85e9158] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  margin: 0;  /* <label> has a UA default bottom margin — remove so it aligns with inputs */
}
.file-btn[data-v-a85e9158]:hover { background: var(--border);
}
.file-btn.disabled[data-v-a85e9158] { opacity: 0.5; cursor: not-allowed;
}
.file-btn input[data-v-a85e9158] { display: none;
}

/* 上传按钮 + 冠字号/车牌号输入框同一行 */
.upload-inline[data-v-a85e9158] {
  display: flex;
  align-items: center;
  gap: 8px;
}
.upload-inline .file-btn[data-v-a85e9158] { flex-shrink: 0; padding: 10px 14px; font-size: 14px;
}
.upload-inline input[type="text"][data-v-a85e9158] { flex: 1; min-width: 0;
}
@media (max-width: 640px) {
.admin-header[data-v-a85e9158] { flex-wrap: wrap; gap: 6px 10px;
}
.admin-header-utils[data-v-a85e9158] { flex-wrap: wrap; justify-content: flex-end;
}
.admin-user[data-v-a85e9158] { display: none;
} /* 窄屏只留按钮 */
.input-row[data-v-a85e9158] { flex-direction: column;
}
.btn-full[data-v-a85e9158] { margin-top: 14px;
}

  /* 手机端:表格转卡片,每行一张卡片,字段竖排带标签 */
.table-wrap[data-v-a85e9158] { overflow-x: visible;
}
.code-table[data-v-a85e9158],
  .code-table tbody[data-v-a85e9158],
  .code-table tr[data-v-a85e9158],
  .code-table td[data-v-a85e9158] { display: block;
}
.code-table[data-v-a85e9158] {
    width: 100%;
    min-width: 0;
    border: none;
}
.code-table thead[data-v-a85e9158] { display: none;
}
.code-table tbody tr[data-v-a85e9158] {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 2px 12px;
    background: var(--surface);
}
.code-table tbody tr[data-v-a85e9158]:hover { background: var(--surface);
}
.code-table td[data-v-a85e9158] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: none;
    border-bottom: 1px dashed var(--border);
    padding: 10px 0;
    text-align: left;
}
.code-table td[data-v-a85e9158]:last-child { border-bottom: none;
}
.code-table td[data-v-a85e9158]::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
    white-space: nowrap;
    flex-shrink: 0;
}
  /* 操作按钮在卡片底部独占一行,每行 3 个 */
.code-table td[data-label="操作"][data-v-a85e9158] {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.row-actions[data-v-a85e9158] {
    width: 100%;
    min-width: 0;
}
  /* 图片组靠右,与标签同行 */
.code-bills[data-v-a85e9158],
  .row-plate-thumbs[data-v-a85e9158] { justify-content: flex-end;
}
.code-table td[data-label="二維碼"] img[data-v-a85e9158] { margin-left: auto;
}
}

.admin-page[data-v-33361b45] { min-height: 100vh; display: flex; flex-direction: column;
}
.admin-header[data-v-33361b45] {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.admin-brand[data-v-33361b45] { display: flex; align-items: baseline; gap: 10px;
}
.admin-logo[data-v-33361b45] { font-weight: 700; letter-spacing: 1px;
}
.admin-title[data-v-33361b45] { font-size: 13px; color: var(--text2);
}
.admin-header-utils[data-v-33361b45] { display: flex; align-items: center; gap: 10px;
}
.admin-user[data-v-33361b45] { font-size: 13px; color: var(--text2);
}
.admin-main[data-v-33361b45] { width: 90%; max-width: 1400px; margin: 0 auto; padding: 20px 12px;
}
.admin-center[data-v-33361b45] { padding-top: 40px;
}
.login-card[data-v-33361b45] { max-width: 360px; margin: 0 auto;
}
.login-hint[data-v-33361b45] { margin: 12px 0 0; font-size: 12px; color: var(--text2); text-align: center;
}
.admin-footer[data-v-33361b45] { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px 30px;
}
.admin-sep[data-v-33361b45] { opacity: 0.5;
}
.admin-home[data-v-33361b45] { font-size: 13px; font-weight: 600; color: #1a73e8; text-decoration: none; white-space: nowrap;
}
.admin-home[data-v-33361b45]:hover { text-decoration: underline;
}
.form-error[data-v-33361b45] { color: var(--accent); font-size: 13px; margin-bottom: 10px;
}
.muted-note[data-v-33361b45] { font-size: 13px; color: var(--text2); margin: 10px 0;
}

/* Filter row */
.filter-row[data-v-33361b45] { display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.range-tabs[data-v-33361b45] { display: inline-flex; gap: 2px; background: var(--bg); border-radius: 8px; padding: 2px;
}
.range-tab[data-v-33361b45] {
  border: none; background: transparent; color: var(--text2);
  font-family: inherit; font-size: 13px; padding: 6px 12px;
  border-radius: 6px; cursor: pointer;
}
.range-tab.active[data-v-33361b45] { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.range-tab[data-v-33361b45]:hover:not(.active) { color: var(--text);
}

/* KPI tiles */
.kpi-row[data-v-33361b45] { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px;
}
.kpi-tile[data-v-33361b45] { padding: 14px 16px;
}
.kpi-label[data-v-33361b45] { font-size: 12px; color: var(--text2); margin-bottom: 6px;
}
/* proportional (not tabular) figures on hero numbers */
.kpi-value[data-v-33361b45] { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: normal;
}

/* Trend chart */
.chart-card[data-v-33361b45] { padding: 16px;
}
.card-title[data-v-33361b45] { font-size: 13px; font-weight: 700; color: var(--text2); margin-bottom: 10px;
}
.legend[data-v-33361b45] { display: flex; gap: 16px; margin-bottom: 8px; font-size: 12px; color: var(--text2);
}
.legend-item[data-v-33361b45] { display: inline-flex; align-items: center; gap: 6px;
}
.swatch[data-v-33361b45] { display: inline-block; width: 10px; height: 3px; border-radius: 2px;
}
.chart-wrap[data-v-33361b45] { position: relative;
}
.trend-svg[data-v-33361b45] { display: block; width: 100%; height: auto; touch-action: none;
}
.gridline[data-v-33361b45] { stroke: var(--border); stroke-width: 1; opacity: 0.45;
}
.crosshair[data-v-33361b45] { stroke: var(--text2); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.6;
}
.hover-ring[data-v-33361b45] { filter: none;
}
.axis-label[data-v-33361b45] { font-size: 11px; fill: var(--text2);
}
.tooltip[data-v-33361b45] {
  position: absolute; top: 6px; transform: translateX(-50%); pointer-events: none;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; min-width: 120px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); z-index: 5;
}
.tt-day[data-v-33361b45] { font-size: 12px; font-weight: 700; margin-bottom: 5px;
}
.tt-row[data-v-33361b45] { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); margin-top: 3px;
}

/* Rank bars — one hue (identity, not a ramp) */
.two-col[data-v-33361b45] { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
@media (max-width: 900px) {
.two-col[data-v-33361b45] { grid-template-columns: 1fr;
}
}
.bar-list[data-v-33361b45] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px;
}
.bar-list li[data-v-33361b45] { display: grid; grid-template-columns: 110px 1fr 56px; align-items: center; gap: 10px; font-size: 13px;
}
.bar-label[data-v-33361b45] { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar-track[data-v-33361b45] { background: var(--bg); border-radius: 4px; overflow: hidden;
}
.bar-fill[data-v-33361b45] { height: 12px; border-radius: 4px; background: #e94560; min-width: 2px;
}
.bar-count[data-v-33361b45] { text-align: right; color: var(--text); font-variant-numeric: tabular-nums;
}

/* Tables */
.table-scroll[data-v-33361b45] { overflow-x: auto;
}
.data-table[data-v-33361b45] { width: 100%; border-collapse: collapse; font-size: 13px;
}
.data-table th[data-v-33361b45] {
  text-align: left; font-weight: 600; color: var(--text2);
  font-size: 12px; padding: 6px 10px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td[data-v-33361b45] { padding: 7px 10px; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap;
}
.data-table tr:last-child td[data-v-33361b45] { border-bottom: none;
}
.data-table .num[data-v-33361b45] { text-align: right; font-variant-numeric: tabular-nums;
}
.mono[data-v-33361b45] { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px;
}
.ua-cell[data-v-33361b45] { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2);
}
.table-more[data-v-33361b45] { display: flex; justify-content: center; padding-top: 12px;
}

/* ===== 手机适配(≤640px,与防偽後台同一断点) ===== */
@media (max-width: 640px) {
.admin-main[data-v-33361b45] { width: 100%; padding: 12px 8px;
}
.admin-header[data-v-33361b45] { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px;
}
.admin-user[data-v-33361b45] { display: none;
} /* 窄屏只留按钮 */
.kpi-row[data-v-33361b45] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.kpi-tile[data-v-33361b45] { padding: 10px 12px;
}
.kpi-value[data-v-33361b45] { font-size: 24px;
}
.filter-row[data-v-33361b45] { flex-wrap: wrap; gap: 8px;
}
.range-tab[data-v-33361b45] { padding: 6px 9px; font-size: 12px;
}
.two-col[data-v-33361b45] { gap: 10px;
}

  /* 趋势图:保持字号可读,窄屏横向滑动而非整体压扁;
     隐藏滚动条外观(灰色横条),触屏滑动仍然可用 */
.chart-wrap[data-v-33361b45] { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.chart-wrap[data-v-33361b45]::-webkit-scrollbar { display: none; height: 0;
}
.trend-svg[data-v-33361b45] { min-width: 560px;
}
.tooltip[data-v-33361b45] { min-width: 104px;
}
.bar-list li[data-v-33361b45] { grid-template-columns: 88px 1fr 48px; gap: 8px;
}

  /* 表格转卡片:每行一张卡片,字段竖排带标签(与防偽後台一致) */
.table-scroll[data-v-33361b45] { overflow-x: visible;
}
.data-table[data-v-33361b45],
  .data-table tbody[data-v-33361b45] { display: block;
}
.data-table thead[data-v-33361b45] { display: none;
}
.data-table tbody tr[data-v-33361b45] {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 0 0 10px;
    padding: 2px 12px;
    background: var(--surface);
}
.data-table td[data-v-33361b45] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: none;
    border-bottom: 1px dashed var(--border);
    padding: 8px 0;
    text-align: right;
    white-space: normal;
}
.data-table td[data-v-33361b45]:last-child { border-bottom: none;
}
.data-table td[data-v-33361b45]::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
    white-space: nowrap;
    flex-shrink: 0;
}
.ua-cell[data-v-33361b45] { max-width: none;
}
.mono[data-v-33361b45] { white-space: normal;
}
}

.verify-page[data-v-7e947f74] {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.verify-header[data-v-7e947f74] {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}
.verify-logo[data-v-7e947f74] { font-weight: 700; font-size: 18px; letter-spacing: 2px;
}
.verify-header-sub[data-v-7e947f74] { font-size: 11px; color: var(--text2); letter-spacing: 0.5px;
}
.verify-main[data-v-7e947f74] {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 12px;
}
.verify-card[data-v-7e947f74] {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.verify-loading[data-v-7e947f74] { color: var(--text2); padding: 30px 0;
}
.verify-icon[data-v-7e947f74] {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}
.verify-icon-ok[data-v-7e947f74] { background: #2e7d32;
}
.verify-icon-warn[data-v-7e947f74] { background: #f59e0b;
}
.verify-icon-bad[data-v-7e947f74] { background: #9e9e9e;
}
.verify-title[data-v-7e947f74] { font-size: 22px; font-weight: 700; margin-bottom: 4px;
}
.verify-title-en[data-v-7e947f74] { font-size: 11px; letter-spacing: 2px; color: #2e7d32; margin-bottom: 10px;
}
.verify-desc[data-v-7e947f74] { font-size: 14px; color: var(--text2); line-height: 1.6;
}
.verify-site[data-v-7e947f74] {
  display: inline-block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
}
.verify-site[data-v-7e947f74]:hover { text-decoration: underline;
}
.verify-plate[data-v-7e947f74] {
  margin: 14px 0;
  padding: 10px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.verify-plate-label[data-v-7e947f74] { font-size: 12px; color: var(--text2);
}
.verify-plate-no[data-v-7e947f74] { font-size: 18px; font-weight: 700; letter-spacing: 1px;
}
.verify-note[data-v-7e947f74] {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.verify-note-row[data-v-7e947f74] {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 13px;
}
.verify-note-label[data-v-7e947f74] { color: var(--text2);
}
.verify-note-value[data-v-7e947f74] { font-family: monospace; font-weight: 700; letter-spacing: 1px;
}
.verify-note-img[data-v-7e947f74] {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.verify-time[data-v-7e947f74] { margin-top: 14px; font-size: 12px; color: var(--text2);
}
.verify-scan-box[data-v-7e947f74] {
  margin: 14px 0 4px;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.verify-scan-first[data-v-7e947f74] { background: #e8f5e9; color: #2e7d32;
}
.verify-scan-repeat[data-v-7e947f74] { background: #fff8e1; color: #b45309;
}
.verify-scan-text[data-v-7e947f74] { font-weight: 700;
}
.verify-scan-time[data-v-7e947f74] { font-size: 12px; color: var(--text2);
}
.verify-scan-warn[data-v-7e947f74] {
  margin: 6px 0 0;
  font-size: 12px;
  color: #b45309;
  line-height: 1.5;
}
.verify-history[data-v-7e947f74] {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.verify-history-title[data-v-7e947f74] { font-size: 13px; font-weight: 700; color: var(--text2);
}
.verify-history-item[data-v-7e947f74] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 12px;
}
.verify-history-no[data-v-7e947f74] { font-weight: 700;
}
.verify-history-time[data-v-7e947f74] { flex: 1; color: var(--text2);
}
.verify-history-now[data-v-7e947f74] {
  font-size: 11px;
  color: #b45309;
  border: 1px solid #f59e0b;
  border-radius: 4px;
  padding: 1px 6px;
}
.verify-footer[data-v-7e947f74] {
  padding: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--text2);
  letter-spacing: 0.5px;
}
