/* =========================================================================
 * TK-BR Guard · 样式
 * 设计基调：浅色高级感 —— 细边框 + 柔和分层阴影 + 克制的蓝色点缀
 * 所有类名与旧版保持一致，JS 逻辑不需要改动
 * ====================================================================== */

:root {
  /* 底色：略偏冷的纸白，避免死灰 */
  --bg: #f5f6f8;
  --bg-soft: #f1f3f7;
  --bg-tint: #fafbfc;
  --card: #ffffff;

  /* 线条：发丝级，比纯灰更透气 */
  --border: #eaecf1;
  --border-strong: #dde1e9;
  --hairline: rgba(12, 18, 34, .07);

  /* 文字 */
  --text: #0c1222;
  --text-2: #4b5565;
  --text-3: #8a93a3;

  /* 主色：比原来的纯蓝更沉一点，显贵 */
  --primary: #3355f0;
  --primary-dark: #2743d4;
  --primary-soft: #eef1ff;
  --primary-line: #c6d1ff;

  /* 语义色（保留原变量名，引擎里有用到） */
  --block: #d92d20;
  --block-bg: #fef2f1;
  --high: #d9600f;
  --high-bg: #fff5ec;
  --medium: #b58100;
  --medium-bg: #fffaeb;
  --low: #0b7fc0;
  --low-bg: #eff8fd;
  --pass: #039855;
  --pass-bg: #ecfdf3;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --shadow-sm: 0 1px 2px rgba(12, 18, 34, .05);
  --shadow: 0 1px 2px rgba(12, 18, 34, .04), 0 10px 28px -18px rgba(12, 18, 34, .22);
  --shadow-lg: 0 40px 80px -32px rgba(12, 18, 34, .32), 0 12px 32px -16px rgba(12, 18, 34, .14);
  --ring: 0 0 0 4px rgba(51, 85, 240, .12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "tnum" 0;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(1200px 420px at 50% -180px, rgba(51, 85, 240, .07), rgba(51, 85, 240, 0) 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

::selection { background: rgba(51, 85, 240, .16); color: var(--text); }

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 11px 28px;
  display: flex; align-items: center; gap: 14px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 15.5px; letter-spacing: -.35px;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  width: 31px; height: 31px; border-radius: 10px;
  background: linear-gradient(150deg, #5b78ff 0%, #3355f0 45%, #2138c9 100%);
  color: #fff; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; letter-spacing: -.3px;
  box-shadow: 0 4px 12px -3px rgba(43, 70, 224, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: box-shadow .2s, transform .2s;
}
.logo:hover .logo-mark {
  box-shadow: 0 8px 20px -4px rgba(43, 70, 224, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
  transform: translateY(-1px);
}
.logo .sub {
  font-weight: 450; font-size: 12px; color: var(--text-3);
  margin-left: 10px; padding-left: 10px;
  border-left: 1px solid var(--border-strong);
  letter-spacing: 0;
}
.spacer { flex: 1; }
.topbar-actions { display: flex; gap: 6px; align-items: center; }

/* 顶栏「更多」下拉 */
.moremenu { position: relative; }
.moremenu > summary {
  list-style: none; cursor: pointer; user-select: none;
}
.moremenu > summary::-webkit-details-marker { display: none; }
.moremenu > summary::marker { content: ''; }
.moremenu[open] > summary { background: rgba(12, 18, 34, .06); color: var(--text); }
.menu {
  position: absolute; right: 0; top: calc(100% + 9px); z-index: 60;
  min-width: 178px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  box-shadow: 0 24px 48px -18px rgba(12, 18, 34, .28), 0 6px 16px -10px rgba(12, 18, 34, .16);
  animation: menuIn .14s ease;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2);
  font-family: inherit; font-size: 13px; font-weight: 500;
  text-decoration: none; cursor: pointer; text-align: left;
  transition: background .12s, color .12s;
}
.menu-item:hover { background: var(--bg-soft); color: var(--text); }
.menu-item .muted { font-size: 11px; margin-left: auto; }
.menu-sep { height: 1px; background: var(--border); margin: 5px 6px; }

/* 窄屏顶栏：副标题收起，按钮横向滚动，绝不换行 */
@media (max-width: 1080px) {
  .logo { white-space: nowrap; flex: none; }
  .logo .sub { display: none; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 9px 14px; gap: 8px; }
  /* 注意：这里不能用 overflow 滚动，否则「更多」下拉会被裁掉 */
  .topbar-actions { gap: 4px; overflow: visible; }
  .topbar-actions .btn { flex: none; padding: 0 9px; }
  #ruleVer { display: none; }
  .tab { padding: 0 11px; font-size: 12.5px; }
  .tabs { display: flex; width: 100%; }
  .wrap { padding: 14px 14px 72px; }
  .card-head { padding: 13px 15px; }
  .card-body { padding: 16px; }
  .score-panel { padding: 16px; gap: 15px; }
  .issue { padding: 13px 15px; }
  .cert-bar { padding: 12px 15px; }
  .suggest-box { margin: 0 15px 15px; }
}

/* ---------------- 布局 ---------------- */
.wrap { max-width: 1400px; margin: 0 auto; padding: 22px 28px 96px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid.full { grid-template-columns: minmax(0, 1fr); }
.grid.full #reportCard { display: none; }
@media (max-width: 1080px) { .grid { grid-template-columns: 1fr; } }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #fcfdff);
  display: flex; align-items: center; gap: 11px;
}
.card-head h2 {
  margin: 0; font-size: 15px; font-weight: 650;
  letter-spacing: -.35px; color: var(--text);
  display: inline-flex; align-items: center;
}
.card-head h2::before {
  content: ''; width: 7px; height: 7px; border-radius: 2.5px; margin-right: 10px;
  background: linear-gradient(160deg, #6d88ff, var(--primary));
  box-shadow: 0 0 0 4px rgba(51, 85, 240, .09);
}
.card-head .hint { font-size: 12px; color: var(--text-3); }
.card-body { padding: 22px; }

/* ---------------- Tab（分段控件） ---------------- */
.tabs {
  display: inline-flex; gap: 3px; padding: 4px;
  background: var(--bg-soft); border-radius: 12px; margin-bottom: 20px;
  border: 1px solid var(--border);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; height: 33px; padding: 0 16px; border: 0; border-radius: 9px;
  background: transparent; color: var(--text-2);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: color .15s, background .15s, box-shadow .15s;
  font-family: inherit; white-space: nowrap;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .55); }
.tab.active {
  background: #fff; color: var(--primary); font-weight: 600;
  box-shadow: 0 1px 2px rgba(12, 18, 34, .07), 0 4px 12px -8px rgba(12, 18, 34, .3);
}
.tab .n {
  display: inline-block; min-width: 16px; padding: 0 4px;
  border-radius: 8px; background: rgba(12, 18, 34, .06); color: var(--text-3);
  font-size: 10px; margin-left: 4px; line-height: 16px;
}
.tab.active .n { background: var(--primary-soft); color: var(--primary); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: #3b4657; margin-bottom: 7px; letter-spacing: -.05px;
}
.field label .req { color: var(--block); margin-left: 2px; }
.field .tip { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.55; }
.field .tip b { color: var(--text-2); font-weight: 600; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* 商品ID / 品牌 / 售价 三栏：ID 最长，给它多一点 */
.row.three { grid-template-columns: 1.25fr 1fr .9fr; }
@media (max-width: 560px) { .row, .row.three { grid-template-columns: 1fr; } }

input[type=text], input[type=number], input[type=password], textarea, select {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  font-size: 13.5px; font-family: inherit; line-height: 1.5;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(12, 18, 34, .03);
}
input::placeholder, textarea::placeholder { color: #aab2c0; }
input[type=text]:hover, input[type=number]:hover, textarea:hover, select:hover {
  border-color: #cfd5e0;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: inset 0 1px 2px rgba(12, 18, 34, .02), var(--ring);
  background: #fff;
}
textarea { resize: vertical; min-height: 96px; }
.char-count {
  font-size: 11px; color: var(--text-3); float: right;
  font-variant-numeric: tabular-nums; font-weight: 500;
}
.char-count.warn { color: var(--medium); }
.char-count.bad { color: var(--block); }

/* 文件选择 */
input[type=file] {
  width: 100%; padding: 9px 12px; font-size: 12.5px; font-family: inherit;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-tint); color: var(--text-2); cursor: pointer;
  transition: border-color .15s, background .15s;
}
input[type=file]:hover { border-color: var(--primary-line); background: #fbfcff; }
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 6px 12px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; color: var(--text); font-family: inherit; font-size: 12.5px;
  font-weight: 550; cursor: pointer; box-shadow: var(--shadow-sm);
}
input[type=file]::file-selector-button:hover { border-color: #cfd5e0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: #fff; color: var(--text);
  font-size: 13px; font-weight: 550; font-family: inherit;
  cursor: pointer; transition: all .15s; white-space: nowrap;
  text-decoration: none; box-shadow: var(--shadow-sm); letter-spacing: -.1px;
}
.btn:hover { border-color: #cfd5e0; box-shadow: 0 2px 8px -3px rgba(12, 18, 34, .22); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary {
  background: linear-gradient(180deg, #4166ff 0%, #2c4aeb 100%);
  border-color: #2c4aeb; color: #fff;
  box-shadow: 0 1px 2px rgba(30, 52, 180, .3), 0 8px 20px -10px rgba(44, 74, 235, .75),
              inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  border-color: var(--primary-dark);
  box-shadow: 0 2px 4px rgba(30, 52, 180, .3), 0 12px 26px -12px rgba(44, 74, 235, .8),
              inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:active { box-shadow: inset 0 2px 6px rgba(10, 20, 80, .25); }
.btn-primary:disabled {
  opacity: .5; cursor: not-allowed; box-shadow: none;
  background: #b9c2d6; border-color: #b9c2d6;
}
.btn-lg { height: 43px; padding: 0 20px; font-size: 14px; border-radius: 11px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-ghost {
  border-color: transparent; background: transparent; color: var(--text-2);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(12, 18, 34, .05); border-color: transparent; box-shadow: none; }
.btn-block { width: 100%; }

/* ---------------- 类目 chips ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: #fff;
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
  transition: all .14s; user-select: none;
  display: inline-flex; align-items: center;
  box-shadow: 0 1px 1px rgba(12, 18, 34, .03);
}
.chip:hover { border-color: var(--primary-line); color: var(--primary); background: #fbfcff; }
.chip:active { transform: scale(.975); }
.chip.on {
  background: linear-gradient(180deg, #f3f6ff, #e9eeff);
  border-color: #b9c7ff; color: #2b46d6; font-weight: 600;
  box-shadow: 0 0 0 3px rgba(51, 85, 240, .07);
}

/* ---------------- 报告：空态 ---------------- */
.report-empty {
  padding: 76px 24px 84px; text-align: center; color: var(--text-3);
}
.report-empty .big {
  width: 68px; height: 68px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 20px; color: var(--primary);
  background: linear-gradient(160deg, #f4f7ff, #eaefff);
  border: 1px solid #e2e8ff;
  box-shadow: 0 12px 28px -18px rgba(51, 85, 240, .55), inset 0 1px 0 #fff;
  opacity: 1;
}
.report-empty .big svg { opacity: .85; }
.report-empty > div:not(.big) { font-size: 13.5px; font-weight: 550; color: var(--text-2); }
.report-empty .small { font-weight: 400; }

/* ---------------- 报告：评分 ---------------- */
.score-panel {
  display: flex; align-items: center; gap: 20px;
  padding: 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fcfdff, #fff);
}
.ring { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .val {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 25px; font-weight: 750; letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.score-meta { flex: 1; min-width: 0; }
.verdict-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1px;
}
.verdict-desc { font-size: 12.5px; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.sev-counts { display: flex; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
.sev-pill {
  font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 650;
  letter-spacing: -.1px;
}

/* ---------------- 报告：资质栏 ---------------- */
.cert-bar {
  padding: 13px 20px; background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px; display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.6;
}
.cert-bar.warn { background: var(--medium-bg); }
/* NCM 缺失提示：中性灰，不抢眼、不当作问题 */
.cert-bar.ncm-hint { background: #f8fafc; color: var(--text-2); }
.cert-bar.ncm-hint b { color: var(--text); font-weight: 650; }
.cert-bar.ncm-hint .cd-tip { color: var(--text-3); margin-top: 4px; font-size: 11.5px; }
.cert-tag {
  display: inline-block; padding: 2px 8px; margin-right: 4px;
  border-radius: 6px; background: #fff; border: 1px solid var(--border-strong);
  font-size: 11px; font-weight: 650; color: var(--text-2);
}
.cert-tag.anvisa { border-color: #c9d9ff; background: #eef4ff; color: #1d4ed8; }
.cert-tag.inmetro { border-color: #ffd8c2; background: #fff3ec; color: #b4470d; }
.cert-tag.anatel { border-color: #cfe9d8; background: #eefbf3; color: #04723c; }

.cat-detail {
  margin-top: 12px; padding-left: 12px;
  border-left: 2px solid #e8c78a;
  font-size: 12px; line-height: 1.65; color: var(--text-2);
}
.cat-detail b {
  display: block; color: var(--text); font-weight: 650;
  font-size: 12.5px; margin-bottom: 3px;
}
.cat-detail .cd-tip { color: var(--text-3); margin-top: 3px; }

/* ---------------- 报告：问题列表 ---------------- */
.issue-list { padding: 0; }
.issue {
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
  transition: background .12s;
}
.issue:hover { background: #fcfdff; }
.issue:last-child { border-bottom: 0; }
.issue-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.issue-name { font-weight: 650; font-size: 13.5px; letter-spacing: -.1px; }
.issue-group {
  font-size: 10.5px; padding: 1px 7px; border-radius: 5px;
  background: var(--bg-soft); color: var(--text-3); font-weight: 600;
}
.sev {
  font-size: 10px; font-weight: 750; padding: 2px 7px; border-radius: 5px;
  letter-spacing: .4px; white-space: nowrap;
}
.sev.BLOCK  { background: var(--block-bg); color: var(--block); }
.sev.HIGH   { background: var(--high-bg); color: var(--high); }
.sev.MEDIUM { background: var(--medium-bg); color: var(--medium); }
.sev.LOW    { background: var(--low-bg); color: var(--low); }
.sev.WARN   { background: var(--medium-bg); color: var(--medium); }
.issue-body { margin-top: 8px; font-size: 12.5px; line-height: 1.68; }
.issue-body .kv { color: var(--text-2); }
.issue-body .kv b { color: var(--text); font-weight: 600; }
.issue-body .fix {
  margin-top: 8px; padding: 9px 12px;
  background: #f7f9ff; border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0; color: var(--text-2);
}
.issue-body .fix b { color: var(--primary); font-weight: 650; }
.issue-body .basis { color: var(--text-3); font-size: 11.5px; margin-top: 6px; }

.suggest-box {
  margin: 0 20px 18px; padding: 13px 15px;
  background: linear-gradient(180deg, #f2fdf6, var(--pass-bg));
  border: 1px solid #b7ebcd;
  border-radius: 12px;
}
.suggest-box .label { font-size: 11.5px; font-weight: 700; color: var(--pass); margin-bottom: 5px; letter-spacing: .1px; }
.suggest-box .val { font-size: 13px; color: var(--text); font-weight: 500; word-break: break-word; line-height: 1.55; }
.suggest-box .sb-tip { font-size: 11.5px; color: #0a7a44; margin-top: 6px; opacity: .85; }

/* ---------------- 图片预览 ---------------- */
.img-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.img-item {
  position: relative; width: 86px; height: 86px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-strong); background: #fff;
  box-shadow: var(--shadow-sm);
}
.img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-item .del {
  position: absolute; top: 4px; right: 4px;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(12, 18, 34, .62); color: #fff; border: 0;
  font-size: 11px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: background .15s;
}
.img-item .del:hover { background: rgba(217, 45, 32, .9); }
.img-item .primary-flag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(51, 85, 240, .92), rgba(39, 67, 212, .96));
  color: #fff; font-size: 9.5px; text-align: center; padding: 2px 0; font-weight: 600;
  letter-spacing: .2px;
}
.dropzone {
  border: 1.5px dashed #d8dee8; border-radius: 14px;
  padding: 30px 16px; text-align: center; cursor: pointer;
  transition: all .16s; background: var(--bg-tint);
}
.dropzone:hover, .dropzone.over {
  border-color: var(--primary-line); background: #fafbff;
}
.dropzone.over { box-shadow: 0 0 0 3px rgba(51, 85, 240, .08); }
.dropzone .dz-title { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; color: var(--text); }
.dropzone .dz-sub { font-size: 12px; color: var(--text-3); }

/* ---------------- 批量表格 ---------------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border); border-radius: 12px;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td {
  padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
th {
  background: #f8fafc; font-weight: 650; font-size: 11.5px;
  color: var(--text-2); white-space: nowrap; position: sticky; top: 0;
  letter-spacing: .1px; z-index: 1;
}
td.num { font-variant-numeric: tabular-nums; }
/* 商品ID：定宽等宽字体，长 ID 截断但不换行（完整值在标题 title 里） */
td.pid-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--text-2);
  max-width: 132px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
tbody tr:hover td { background: #fcfdff; }
tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; white-space: nowrap; letter-spacing: .2px;
}
.pill.BLOCK { background: var(--block-bg); color: var(--block); }
.pill.HIGH { background: var(--high-bg); color: var(--high); }
.pill.MEDIUM { background: var(--medium-bg); color: var(--medium); }
.pill.LOW { background: var(--low-bg); color: var(--low); }
.pill.PASS { background: var(--pass-bg); color: var(--pass); }

/* ---------------- 杂项 ---------------- */
.notice {
  padding: 11px 14px; border-radius: 11px;
  font-size: 12.5px; line-height: 1.65; margin-bottom: 14px;
  background: var(--low-bg); color: #0a5e8a; border: 1px solid #cbe7f5;
}
.notice.warn { background: var(--medium-bg); color: #8a5a00; border-color: #f2dfa8; }
.notice.ok { background: var(--pass-bg); color: #04723c; border-color: #b7ebcd; }
.notice.err { background: var(--block-bg); color: var(--block); border-color: #f6c9c4; }
.notice b { font-weight: 700; }

.hide { display: none !important; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 开关 */
.switch { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 36px; height: 21px; border-radius: 999px; background: #d3d9e3;
  position: relative; transition: background .18s; flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(12, 18, 34, .1);
}
.switch .track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(12, 18, 34, .28); transition: transform .18s;
}
.switch input:checked + .track { background: linear-gradient(180deg, #4166ff, #2c4aeb); }
.switch input:checked + .track::after { transform: translateX(15px); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: #d3d9e3; border-radius: 8px; border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: #b6bfcd; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12, 18, 34, .38);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .8);
  width: 100%; max-width: 620px; max-height: 86vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-head {
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  background: linear-gradient(180deg, #fdfdff, #fff);
}
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 650; flex: 1; letter-spacing: -.2px; }
.modal-close {
  width: 28px; height: 28px; border-radius: 8px;
  border: 0; background: transparent; font-size: 20px; line-height: 1;
  color: var(--text-3); cursor: pointer; font-family: inherit;
  display: grid; place-items: center; transition: all .15s;
}
.modal-close:hover { color: var(--text); background: rgba(12, 18, 34, .06); }
.modal-body { padding: 22px; overflow-y: auto; font-size: 13px; line-height: 1.72; color: var(--text-2); }
.modal-body h4 {
  margin: 20px 0 8px; font-size: 13px; color: var(--text); font-weight: 650;
  letter-spacing: -.1px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body ol, .modal-body ul { margin: 0 0 12px; padding-left: 20px; }
.modal-body li { margin-bottom: 6px; }
.modal-body code {
  background: var(--bg-soft); padding: 1.5px 6px; border-radius: 5px;
  font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace;
  border: 1px solid var(--border);
}
.modal-body .kv-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
}
.modal-body .kv-row:last-child { border-bottom: 0; }
.modal-body .kv-row b { color: var(--text); font-weight: 600; }

/* ---------------- 授权 / 注册 ---------------- */
.lic-btn { gap: 7px; font-variant-numeric: tabular-nums; font-weight: 550; }
.lic-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none;
  box-shadow: 0 0 0 3px rgba(4, 114, 60, .1);
}
.lic-btn.lic-off {
  color: var(--primary); border-color: var(--primary-line);
  background: linear-gradient(180deg, #f7f9ff, var(--primary-soft));
}
.lic-btn.lic-off:hover { border-color: var(--primary); background: var(--primary-soft); }
.lic-btn.lic-off .lic-dot { box-shadow: 0 0 0 3px rgba(51, 85, 240, .12); }
.lic-btn.lic-on {
  color: #04723c; border-color: #b7ebcd;
  background: linear-gradient(180deg, #f4fdf8, var(--pass-bg));
}
.lic-btn.lic-on:hover { border-color: #7fdba5; background: var(--pass-bg); }
.lic-btn.lic-near {
  color: #8a5a00; border-color: #f2dfa8;
  background: linear-gradient(180deg, #fffcf2, var(--medium-bg));
}
.lic-btn.lic-near:hover { border-color: #e8c968; background: var(--medium-bg); }
.lic-btn.lic-near .lic-dot { box-shadow: 0 0 0 3px rgba(181, 129, 0, .12); }

.modal.modal-wide { max-width: 660px; }

.lic-lead { margin-bottom: 18px; }
.lic-lead-t { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -.35px; }
.lic-lead-s { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.7; }

.lic-grid { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 620px) {
  .lic-grid { grid-template-columns: 1fr; gap: 14px; }
  .qr-wrap { max-width: 160px; margin: 0 auto; }
  .lic-side { padding: 14px 12px 16px; }
  .lic-side .btn { max-width: 220px; margin: 8px auto 0; }
}

.lic-side {
  text-align: center;
  background: linear-gradient(180deg, #fafbfd, var(--bg-soft));
  border: 1px solid var(--border); border-radius: 14px; padding: 12px;
}
.qr-wrap {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px -12px rgba(12, 18, 34, .35);
}
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-ph {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px dashed var(--border-strong); border-radius: 12px;
  background: #fff; color: var(--text-2); font-size: 12px; line-height: 1.5; padding: 10px;
}
.qr-ph b { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.qr-ph span { font-size: 11px; color: var(--text-3); word-break: break-all; }

.wx-id { margin-top: 11px; font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.wx-id b { color: var(--text); font-weight: 650; }
.lic-side .btn { margin-top: 8px; background: #fff; }
.lic-side-tip { margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }

.lic-form { min-width: 0; }
.lic-label { display: block; font-size: 12.5px; font-weight: 600; color: #3b4657; margin-bottom: 7px; }
.key-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase;
  background: #fff; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  box-shadow: inset 0 1px 2px rgba(12, 18, 34, .03);
}
.key-input::placeholder { letter-spacing: .8px; font-size: 12.5px; color: #aab2c0; }
.key-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.lic-msg { margin-top: 10px; font-size: 12px; line-height: 1.6; }
.lic-msg.err { color: var(--block); }
.lic-note {
  margin-top: 15px; padding-top: 12px; border-top: 1px dashed var(--border);
  font-size: 11.5px; color: var(--text-3); line-height: 1.65;
}

.lic-ok { text-align: center; padding: 6px 0 2px; }
.okmark {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #f4fdf8, var(--pass-bg));
  color: var(--pass); font-size: 27px; font-weight: 700;
  border: 2px solid #b7ebcd;
  box-shadow: 0 10px 24px -14px rgba(3, 152, 85, .6);
}
.ok-title { font-size: 16.5px; font-weight: 700; color: var(--text); letter-spacing: -.25px; }
.ok-sub { margin-top: 7px; font-size: 13px; color: var(--text-2); }
.lic-kv-mini {
  margin: 18px auto 0; max-width: 400px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  text-align: left; background: var(--bg-tint);
}
.lic-kv-mini > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 13px; font-size: 12.5px; border-bottom: 1px solid var(--border);
}
.lic-kv-mini > div:last-child { border-bottom: 0; }
.lic-kv-mini span { color: var(--text-3); }
.lic-kv-mini b { color: var(--text); font-weight: 600; }
.ok-tip { margin-top: 15px; font-size: 12px; color: var(--text-3); }
.lic-state-ok { color: var(--pass) !important; }

/* 打印 */
@media print {
  .topbar, .tabs, .btn, .dropzone { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  .grid { grid-template-columns: 1fr; }
  /* 打印件上的商品ID要看得清，方便和后台对账 */
  .card-head .hint { color: #333 !important; font-size: 12.5px; font-weight: 600; }
}

/* ---------------- 未激活：硬锁 ---------------- */
body.lic-locked { overflow: hidden; }

#licLock {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(245, 246, 248, .9);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

#licLock .lk-card {
  width: 100%; max-width: 410px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 48px 80px -40px rgba(12, 18, 34, .4), 0 12px 32px -18px rgba(12, 18, 34, .16);
  padding: 32px 28px 26px; text-align: center;
}

#licLock .lk-mark {
  width: 46px; height: 46px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; color: #fff;
  background: linear-gradient(150deg, #5b78ff 0%, #3355f0 45%, #2138c9 100%);
  font-size: 14.5px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 8px 20px -8px rgba(43, 70, 224, .6), inset 0 1px 0 rgba(255, 255, 255, .35);
}

#licLock .lk-title {
  font-size: 17px; font-weight: 700; color: var(--text);
  letter-spacing: -.3px;
}

#licLock .lk-sub {
  margin: 9px 0 20px; font-size: 12.5px; line-height: 1.75; color: var(--text-2);
}

#licLock .lk-wx {
  margin-top: 13px; font-size: 12.5px; color: var(--text-2);
}
#licLock .lk-wx b { color: var(--text); }

#licLock .lk-foot {
  margin-top: 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.6;
}

/* 硬锁状态下不给关弹窗的按钮 */
.modal-mask.lic-hard .modal-close { display: none; }

/* =========================================================================
 * UI v2 · 功能页视觉升级
 * 只在文末追加覆盖，不改动上面任何既有规则；类名全部沿用旧版，
 * 新增的只有 fset / submit-zone / scanviz / card-report 等纯展示类。
 * ====================================================================== */

/* ---- 环境层：网格 + 顶部双色柔光点 ---- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(12, 18, 34, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 18, 34, .032) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px;
  -webkit-mask-image: radial-gradient(1080px 560px at 50% -40px, rgba(0, 0, 0, .95), transparent 74%);
  mask-image: radial-gradient(1080px 560px at 50% -40px, rgba(0, 0, 0, .95), transparent 74%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(720px 400px at 88% -140px, rgba(112, 84, 255, .085), transparent 70%),
    radial-gradient(620px 340px at 6% -160px, rgba(0, 160, 190, .06), transparent 70%);
}
.wrap { position: relative; z-index: 1; }

/* ---- 顶栏：更薄的高光分割线 ---- */
.topbar {
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 1px 0 rgba(12, 18, 34, .03), 0 12px 30px -26px rgba(12, 18, 34, .5);
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 85, 240, .22) 22%, rgba(51, 85, 240, .28) 50%, rgba(51, 85, 240, .22) 78%, transparent);
  opacity: .8;
}
.logo-mark { position: relative; overflow: hidden; }
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, .38), transparent 55%);
}

/* ---- 卡片：更立体的分层 ---- */
.card {
  box-shadow: 0 1px 1px rgba(12, 18, 34, .03), 0 14px 34px -26px rgba(12, 18, 34, .35);
  transition: box-shadow .25s ease;
}
.card:hover { box-shadow: 0 1px 1px rgba(12, 18, 34, .03), 0 22px 46px -28px rgba(12, 18, 34, .42); }
.card-head { background: linear-gradient(180deg, #ffffff, #fbfcff); }
.card-head h2 { font-size: 15px; flex: none; white-space: nowrap; }
.card-head .hint {
  letter-spacing: .1px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 「填入示例」小按钮 */
.btn-sample {
  height: 26px; padding: 0 9px; font-size: 12px;
  color: var(--primary); border-radius: 7px;
  background: var(--primary-soft); border-color: var(--primary-line);
}
.btn-sample:hover { background: #e6ebff; border-color: #b3c1ff; color: var(--primary-dark); box-shadow: none; }

/* ---- Tab：等宽分段 + 图标 ---- */
.tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px; width: 100%; padding: 5px; border-radius: 13px;
  background: linear-gradient(180deg, #f0f2f7, #f4f6fa);
  box-shadow: inset 0 1px 2px rgba(12, 18, 34, .045);
  overflow: visible;
}
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 8px; border-radius: 9px;
  font-size: 13px; font-weight: 550; letter-spacing: -.1px;
  color: var(--text-2);
}
.tab svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .72; transition: opacity .15s;
}
.tab:hover { background: rgba(255, 255, 255, .62); color: var(--text); }
.tab:hover svg { opacity: 1; }
.tab.active {
  background: #fff; color: var(--primary); font-weight: 650;
  box-shadow: 0 1px 1px rgba(12, 18, 34, .05), 0 4px 12px -7px rgba(51, 85, 240, .55),
              0 0 0 1px rgba(51, 85, 240, .06);
}
.tab.active svg { opacity: 1; }

/* ---- 表单分区 ---- */
.fset { padding-top: 18px; margin-top: 18px; border-top: 1px dashed var(--border-strong); }
.fset:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.fset-h {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700; color: var(--text);
  letter-spacing: .2px; margin-bottom: 14px;
}
.fset-h i {
  font-style: normal; font-size: 10px; font-weight: 750;
  letter-spacing: .6px; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
  padding: 1px 5px; border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.fset-s {
  font-size: 11.5px; font-weight: 450; color: var(--text-3);
  margin-left: auto; letter-spacing: 0;
}
.field.last { margin-bottom: 0; }
.field label .opt {
  font-size: 11.5px; font-weight: 450; color: var(--text-3); margin-left: 3px;
}
.tip.tight { margin: 7px 0 16px; }

/* 输入框：聚焦时的层次更强一点 */
input[type=text], input[type=number], input[type=password], textarea, select {
  padding: 10px 13px; border-radius: 10px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input[type=text]:focus, input[type=number]:focus, input[type=password]:focus,
textarea:focus, select:focus {
  box-shadow: inset 0 1px 2px rgba(12, 18, 34, .02), 0 0 0 4px rgba(51, 85, 240, .11),
              0 6px 16px -12px rgba(51, 85, 240, .6);
}

/* ---- 拖放区 ---- */
.dropzone {
  border-radius: 13px; padding: 26px 16px;
  background:
    radial-gradient(320px 120px at 50% 0%, rgba(51, 85, 240, .05), transparent 72%),
    var(--bg-tint);
}
.dropzone:hover, .dropzone.over {
  border-color: #b3c1ff;
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(51, 85, 240, .09), transparent 72%),
    #fbfcff;
}
.dz-icon {
  width: 40px; height: 40px; margin: 0 auto 10px;
  display: grid; place-items: center; border-radius: 12px;
  color: var(--primary); background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.dz-icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.dropzone:hover .dz-icon, .dropzone.over .dz-icon {
  border-color: var(--primary-line); box-shadow: 0 6px 14px -8px rgba(51, 85, 240, .6);
}

/* 图片缩略图 */
.img-item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.img-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-line);
  box-shadow: 0 10px 22px -14px rgba(12, 18, 34, .5);
}

/* ---- 提交区 ---- */
.submit-zone { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-lg { height: 46px; font-size: 14.5px; letter-spacing: .2px; border-radius: 12px; }
#btnScan::before, #btnScanImage::before, #btnBatchRun::before {
  content: ''; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: var(--ico-shield) center / contain no-repeat;
  mask: var(--ico-shield) center / contain no-repeat;
  opacity: .95;
}
.submit-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 11px; font-size: 11.5px; color: var(--text-3); text-align: center;
}
.submit-note svg {
  width: 13px; height: 13px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; opacity: .8;
}
:root {
  --ico-shield: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3.2v5.3c0 4.6-3.1 8.2-7.5 9.5-4.4-1.3-7.5-4.9-7.5-9.5V6.2z'/%3E%3Cpath d='M9.2 12l2 2 3.6-3.9'/%3E%3C/svg%3E");
}

/* 主按钮：细微流光 */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 46%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:disabled::after { display: none; }

/* ---- 右侧报告：吸顶 + 内部滚动 ---- */
.card-report {
  position: sticky; top: 74px;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 106px);
}
.card-report .card-head { flex: none; }
#reportBody { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; scrollbar-gutter: stable; }

/* 空态 */
.report-empty {
  padding: 56px 24px; min-height: clamp(420px, 62vh, 640px);
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; color: var(--text-3);
}
.scanviz { position: relative; width: 132px; height: 132px; margin: 0 auto 20px; }
.sv-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv-arc {
  transform-origin: 66px 66px;
  animation: svSpin 4.2s linear infinite;
  filter: drop-shadow(0 4px 10px rgba(51, 85, 240, .35));
}
@keyframes svSpin { to { transform: rotate(360deg); } }
.sv-icon {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  transform: translate(-50%, -50%);
  fill: none; stroke: var(--primary); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .9;
}
.report-empty .re-title {
  font-size: 14.5px; font-weight: 650; color: var(--text); letter-spacing: -.2px;
}
.report-empty .re-title b { color: var(--primary); font-weight: 750; }
.report-empty .re-sub {
  font-size: 12.5px; font-weight: 400; color: var(--text-3); margin-top: 7px; line-height: 1.65;
}
.report-empty .re-steps {
  margin: 20px auto 0; max-width: 300px;
  display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.re-step {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 10px;
  background: var(--bg-tint); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 400; color: var(--text-2);
}
.re-step b {
  width: 17px; height: 17px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 750; color: var(--primary);
  background: var(--primary-soft); border: 1px solid var(--primary-line);
}

/* 评分面板 */
.score-panel { padding: 22px 20px; gap: 18px; }
.ring { background: radial-gradient(closest-side, rgba(51, 85, 240, .055), transparent 76%); border-radius: 50%; }
.ring .val { font-size: 27px; font-weight: 800; letter-spacing: -1.2px; }
.ring svg circle:last-of-type { filter: drop-shadow(0 3px 8px rgba(51, 85, 240, .22)); }
.verdict-badge { padding: 5px 13px; font-size: 12.5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.verdict-desc { font-size: 12.5px; margin-top: 9px; }

/* 问题列表：左侧严重度色条 */
.issue-list::before {
  content: '问题明细'; display: block;
  padding: 15px 20px 7px;
  font-size: 11px; font-weight: 750; letter-spacing: .8px;
  color: var(--text-2);
}
.issue {
  position: relative; padding: 15px 20px 15px 18px;
  border-bottom: 1px solid var(--border);
}
.issue::before {
  content: ''; position: absolute; left: 0; top: 15px; bottom: 15px;
  width: 2.5px; border-radius: 0 3px 3px 0; background: transparent;
}
.issue[data-sev="BLOCK"]::before  { background: var(--block); }
.issue[data-sev="HIGH"]::before   { background: var(--high); }
.issue[data-sev="MEDIUM"]::before { background: var(--medium); }
.issue[data-sev="LOW"]::before    { background: var(--low); }
.issue:hover { background: #fbfcff; }
.issue-name { font-size: 13.5px; }
.issue-body .fix {
  background: linear-gradient(90deg, #f4f7ff, #f8faff);
  border-left-width: 2.5px;
}

/* 改写标题 */
.suggest-box {
  position: relative; margin: 14px 20px 20px; padding: 15px 16px 15px 18px;
  border-radius: 13px;
  background: linear-gradient(180deg, #f4fdf7, #ecfdf3);
  border: 1px solid #b7ebcd;
  box-shadow: 0 10px 24px -20px rgba(3, 152, 85, .7);
}
.suggest-box::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #34c77b, var(--pass));
}
.suggest-box .label { display: flex; align-items: center; gap: 6px; }
.suggest-box .label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(3, 152, 85, .22), transparent);
}
.suggest-box .val { font-size: 13.5px; }

/* ---- 窄屏适配 ---- */
@media (max-width: 1080px) {
  .card-report { position: static; max-height: none; }
  #reportBody { overflow: visible; }
}
@media (max-width: 760px) {
  .fset-h { font-size: 11.5px; }
  .fset-s { display: none; }
  .submit-zone { margin-top: 18px; padding-top: 16px; }
  .report-empty { padding: 34px 16px 32px; min-height: auto; }
  .scanviz { width: 112px; height: 112px; }
  .card-report .card-head { flex-wrap: wrap; }
}
@media (max-width: 620px) {
  /* 输入卡标题旁的小字在窄屏让位给「填入示例」 */
  .card-input .card-head .hint { display: none; }
}
@media (max-width: 560px) {
  .tab svg { display: none; }
  .tabs { gap: 3px; padding: 4px; }
  .tab { height: 34px; font-size: 12.5px; padding: 0 6px; }
  .row.three { gap: 12px; }
  .chip { height: 28px; padding: 0 10px; font-size: 12px; }
  .btn-sample { font-size: 11.5px; padding: 0 8px; }
}

/* ---- 打印：去掉吸顶与滚动 ---- */
@media print {
  body::before, body::after { display: none !important; }
  .card-report { position: static; max-height: none; box-shadow: none; }
  #reportBody { overflow: visible; }
  .issue-list::before { display: none; }
  .btn-sample { display: none !important; }
}
