/* ============================================================
   查个重 · 学术检测平台 —— 前端界面（日出/玄墨风格）
   仅视觉与前端交互；真实登录/上传/支付需后端（方案3 再接）
   ============================================================ */

/* hidden 属性始终优先（避免被 display:flex 等覆盖） */
[hidden] { display: none !important; }

/* ---------- 平台 Hero ---------- */
.pf-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 128px 0 84px;
  overflow: hidden;
}
/* 引擎滚动带已上移到 hero 顶部，左右两栏在其下方居中对齐 */
/* 关键：允许网格子项收缩，跑马灯才能被裁剪而非撑宽列 */
.pf-hero-copy, .pf-hero-form { min-width: 0; }
#pf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-hero .container { position: relative; z-index: 2; }
.pf-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 48px;
  align-items: center;
}
/* hero 内嵌的上传卡：略微提升层级与阴影，作为页面主操作区 */
.pf-hero-form .pf-card { box-shadow: 0 30px 70px rgba(0,0,0,.28); }
html:not([data-theme="dark"]) .pf-hero-form .pf-card { box-shadow: 0 24px 60px rgba(22,26,34,.14); }
.pf-hero h1 { color: #fff; font-size: 40px; line-height: 1.24; }
/* 亮色模式：平台 hero 与首页一致切换为晨光米白，避免顶栏深底深字 */
html:not([data-theme="dark"]) .pf-hero { background: #FBF5EC; color: var(--heading); }
html:not([data-theme="dark"]) .pf-hero h1 { color: var(--heading); }
html:not([data-theme="dark"]) .pf-hero .lede { color: var(--text); }
html:not([data-theme="dark"]) .pf-hero-points li { color: var(--text); }
.pf-hero .lede { color: var(--text-light); font-size: 16px; margin: 18px 0 28px; max-width: 520px; }
.pf-hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.pf-hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.pf-hero-points .ck { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #FFB36B; color: #FFB36B; display: inline-flex; align-items: center; justify-content: center; }
.pf-hero-points .ck svg { width: 8px; height: 8px; }

/* ---------- 上传卡（现位于 hero 右栏） ---------- */
.pf-card {
  position: relative;
  background: #fff; border: 1px solid #ECEFF4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px;
}
html[data-theme="dark"] .pf-card { background: #1E2634; border-color: #2B3547; }

/* 引擎展示：横跨整个 hero 的全宽循环滚动带（脱离白色卡片，浮于 hero 之上） */
/* 引擎卡片 + 提示语共用一个「按卡片宽度收缩」的块，保证提示语右缘与卡片右缘对齐 */
.pf-engine-block { position: relative; z-index: 2; width: fit-content; max-width: 100%; margin: 0 auto; }
.pf-hero-marquee {
  position: relative; z-index: 2;
  margin: 0 0 6px;
  padding: 4px 0;
}
.engine-track { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 实时检测滚动条（无缝循环；悬停暂停） */
.live-ticker {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  max-width: 1000px; margin: 0 auto 20px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16);
  overflow: hidden;
}
html:not([data-theme="dark"]) .live-ticker { background: rgba(255,255,255,.62); border-color: rgba(22,26,34,.08); box-shadow: 0 8px 24px rgba(22,26,34,.06); }
.lt-live { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #FF6A2B; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.2); }
html:not([data-theme="dark"]) .lt-live { border-right-color: rgba(22,26,34,.1); }
.lt-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; animation: ltPulse 1.6s ease-out infinite; }
@keyframes ltPulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } }
.lt-viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lt-track { display: flex; width: max-content; will-change: transform; animation: ltScroll 110s linear infinite; }
.live-ticker:hover .lt-track { animation-play-state: paused; }
@keyframes ltScroll { to { transform: translateX(-50%); } }
.lt-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; color: rgba(255,255,255,.82); margin-right: 34px; }
html:not([data-theme="dark"]) .lt-item { color: var(--text); }
.lt-tick { display: inline-flex; width: 15px; height: 15px; border-radius: 50%; background: rgba(22,163,74,.16); color: #16A34A; align-items: center; justify-content: center; flex: none; }
@media (prefers-reduced-motion: reduce) { .lt-track { animation: none; } }
.eng-card {
  flex: 0 0 auto; width: 216px;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px; border-radius: 14px;
  /* 亮色 hero：白卡 + 柔和阴影，浮于晨光之上 */
  border: 1px solid rgba(22,26,34,.06); background: rgba(255,255,255,.96);
  box-shadow: 0 10px 26px rgba(22,26,34,.10);
}
/* 暗色 hero：玻璃拟态卡 */
html[data-theme="dark"] .eng-card {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
/* 可点击选中 */
.eng-card { cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.eng-card:hover { transform: translateY(-2px); border-color: #FFB98A; }
.eng-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.eng-card.sel { border-color: var(--brand); background: rgba(255,106,43,.10); box-shadow: 0 0 0 2.5px rgba(255,106,43,.5), 0 14px 32px rgba(255,106,43,.22); }
/* 暗色下加强选中对比：亮橙描边 + 明显底色 */
html[data-theme="dark"] .eng-card.sel { border-color: #FF9F2E; background: rgba(255,138,0,.20); box-shadow: 0 0 0 2.5px rgba(255,159,46,.75), 0 14px 32px rgba(255,106,43,.3); }
.eng-ic {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.eng-ic svg { width: 18px; height: 18px; }
.eng-ic.ic-1 { background: rgba(26,160,230,.14); color: #1AA0E6; }
.eng-ic.ic-2 { background: rgba(255,106,43,.14); color: #FF6A2B; }
.eng-ic.ic-3 { background: rgba(14,159,110,.14); color: #0E9F6E; }
.eng-ic.ic-4 { background: rgba(124,92,255,.16); color: #7C5CFF; }
.eng-name { font-weight: 800; font-size: 13.5px; color: var(--heading); white-space: nowrap; }
.eng-desc { font-size: 11.5px; color: var(--text); margin-top: 2px; white-space: nowrap; }
html[data-theme="dark"] .eng-name { color: #F1F4FA; }
html[data-theme="dark"] .eng-desc { color: rgba(255,255,255,.66); }

/* 拖拽区（选中文件后动画上收） */
.drop-zone {
  display: block;
  border: 2px dashed #D8DEEA; border-radius: 14px;
  padding: 22px 20px; text-align: center; cursor: pointer;
  margin-bottom: 16px; max-height: 260px; overflow: hidden;
  transition: max-height .38s ease, opacity .3s ease, padding .38s ease, margin .38s ease, border-color .2s, background .2s;
}
.drop-zone.dz-collapsed { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; border-width: 0; }
.drop-zone:hover, .drop-zone.drag { border-color: var(--brand); background: rgba(255,106,43,.04); }

/* 选中文件条 + 取消按钮 */
.file-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px;
  border: 1.5px solid var(--brand); background: rgba(255,106,43,.06);
  animation: pfIn .3s ease;
}
.file-chip .fc-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; background: rgba(255,106,43,.14); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.file-chip .fc-name { flex: 1; font-size: 13.5px; font-weight: 700; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .fc-remove { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .18s; }
.file-chip .fc-remove:hover { background: rgba(255,77,46,.12); color: #E8570F; }
html[data-theme="dark"] .file-chip { background: rgba(255,106,43,.12); }

/* 引擎提示（跑马灯下方） */
.marquee-hint { position: relative; z-index: 2; text-align: right; font-size: 12.5px; color: var(--text-light); margin: 0 0 16px; }
html:not([data-theme="dark"]) .marquee-hint { color: var(--text); }
.drop-zone .di { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 12px; background: rgba(255,106,43,.1); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.drop-zone .di svg { width: 20px; height: 20px; }
.drop-zone .dt { font-weight: 700; color: var(--heading); font-size: 15px; }
.drop-zone .dh { font-size: 12.5px; color: var(--text); margin-top: 6px; }
html[data-theme="dark"] .drop-zone { border-color: #3A465C; }

.eula-row { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); margin: 16px 0 18px; }
.eula-row input { width: 17px; height: 17px; accent-color: var(--brand); }
.eula-row a { color: var(--brand); font-weight: 600; text-decoration: underline; cursor: pointer; }
.pf-submit { width: 100%; }
/* 底部按钮行：确认提交 + 查询报告（选文件后查询报告动画收起）；高度位置不变 */
/* 固定行高：无论是文字按钮(确认提交/扫码支付…)还是图标钮/输入框态，行高恒定，
   底部同意栏不因按钮态切换而上下跳动（行 = btn-lg 自然高，line-height 1.8 → ~56px）*/
.pf-submit-row { display: flex; align-items: stretch; height: 57px; }
.pf-submit-row .pf-submit, .pf-submit-row .pf-scan { flex: 1 1 auto; width: auto; }
/* 有文件后由「确认提交」拆分而来的两个按钮：扫码支付(主) + 查重码验证(次) */
.pf-codeverify { flex: 0 0 auto; margin-left: 10px; white-space: nowrap;
  background: rgba(148,163,184,.14); color: var(--heading); border: 1.5px solid rgba(148,163,184,.28); }
.pf-codeverify:hover { border-color: var(--brand); color: var(--brand); }
html[data-theme="dark"] .pf-codeverify { color: #F1F4FA; border-color: #2B3547; }
/* 取消按钮：保留 btn-lg 的纵向 padding（撑住行高，与其它态一致），仅收窄横向为方形图标钮 */
.pf-code-cancel { flex: 0 0 auto; margin-left: 10px; padding-left: 16px; padding-right: 16px;
  background: rgba(148,163,184,.14); color: var(--text); border: 1.5px solid rgba(148,163,184,.28); }
.pf-code-cancel:hover { color: var(--brand); border-color: var(--brand); }
html[data-theme="dark"] .pf-code-cancel { border-color: #2B3547; color: #F1F4FA; }
/* 「确认提交 → 扫码支付 / 查重码验证」拆分入场动画（backwards：不残留 transform，保留主按钮 hover 上浮）*/
@keyframes pfSplitIn { from { opacity: 0; transform: translateY(5px) scale(.94); } to { opacity: 1; transform: none; } }
.pf-scan:not([hidden]), .pf-codeverify:not([hidden]) { animation: pfSplitIn .34s cubic-bezier(.22,.61,.36,1) backwards; }
.pf-codeverify:not([hidden]) { animation-delay: .06s; }
.pf-code-input { flex: 1 1 auto; min-width: 0; padding: 0 16px; border-radius: 12px; border: 1.6px solid var(--brand);
  background: var(--white); color: var(--heading); font-size: 15px; font-weight: 800; text-align: center;
  letter-spacing: .12em; text-transform: uppercase; }
.pf-code-input::placeholder { font-weight: 400; letter-spacing: normal; color: #9AA3B2; }
.pf-code-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,106,43,.18); }
html[data-theme="dark"] .pf-code-input { background: #1E2634; }
.pf-query { flex: 0 0 auto; margin-left: 10px; white-space: nowrap; background: rgba(148,163,184,.14);
  color: var(--heading); border: 1.5px solid rgba(148,163,184,.28); max-width: 220px; overflow: hidden;
  transition: max-width .38s cubic-bezier(.4,0,.2,1), opacity .3s ease, padding .38s ease, margin-left .38s ease, border-width .3s ease; }
.pf-query:hover { border-color: var(--brand); color: var(--brand); }
html[data-theme="dark"] .pf-query { color: #F1F4FA; border-color: #2B3547; }
.pf-submit-row.file-picked .pf-query { max-width: 0; opacity: 0; padding-left: 0; padding-right: 0; margin-left: 0; border-width: 0; }

.pf-hint { font-size: 12.5px; color: var(--text); margin-top: 14px; }
.pf-hint.warn { color: #C27810; }

/* ---------- 报告列表 ---------- */
.pf-list { padding: 64px 0 90px; }
.pf-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 14px; }
.pf-list-head h2 { font-size: 24px; }
.view-toggle { display: inline-flex; background: var(--bg-light); border: 1px solid #ECEFF4; border-radius: 10px; padding: 3px; gap: 2px; }
.view-btn { border: 0; background: transparent; cursor: pointer; padding: 7px 11px; border-radius: 7px; color: var(--text); display: flex; align-items: center; }
.view-btn.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(22,26,34,.1); }
html[data-theme="dark"] .view-toggle { background: #1E2634; border-color: #2B3547; }
html[data-theme="dark"] .view-btn.active { background: #151B26; }

.rep-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rep-card {
  background: #fff; border: 1px solid #ECEFF4; border-radius: 14px;
  padding: 20px; box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.rep-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.rep-card .rc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.rep-card .rc-name { font-weight: 700; font-size: 14px; color: var(--heading); line-height: 1.4; max-width: 70%; }
.rep-card .rc-eng { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.rc-scores { display: flex; gap: 22px; margin-bottom: 14px; }
.rc-scores .s { }
.rc-scores .sv { font-family: var(--font-head); font-weight: 900; font-size: 22px; }
.rc-scores .sl { font-size: 11px; color: var(--text); }
.rc-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text); border-top: 1px solid #EEF1F5; padding-top: 12px; }
.rc-status { font-weight: 700; }
.rc-status.done { color: #0E9F6E; }
.rc-status.run { color: #1AA0E6; }
html[data-theme="dark"] .rep-card { background: #1E2634; border-color: #2B3547; }
html[data-theme="dark"] .rc-foot { border-top-color: #2B3547; }

/* 表格视图 */
.rep-table-wrap { overflow-x: auto; border: 1px solid #ECEFF4; border-radius: 14px; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rep-table th { text-align: left; font-size: 12px; color: var(--text); font-weight: 700; padding: 14px 18px; background: var(--bg-light); white-space: nowrap; }
.rep-table td { padding: 14px 18px; border-top: 1px solid #EEF1F5; color: var(--heading); }
.rep-table .badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
html[data-theme="dark"] .rep-table-wrap { border-color: #2B3547; }
html[data-theme="dark"] .rep-table th { background: #1A2130; }
html[data-theme="dark"] .rep-table td { border-top-color: #2B3547; color: #DCE3F0; }

/* EULA 弹窗 */
.eula-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.eula-mask.open { display: flex; }
.eula-box {
  background: #fff; border-radius: 18px;
  max-width: 720px; width: 100%; max-height: 80vh; overflow-y: auto;
  padding: 30px; position: relative;
}
.eula-box h3 { font-size: 18px; margin-bottom: 4px; padding-right: 30px; }
.eula-box .x { position: absolute; top: 18px; right: 20px; font-size: 22px; color: var(--text); cursor: pointer; background: none; border: 0; z-index: 1; }
.eula-box p { font-size: 13px; color: var(--text); line-height: 1.7; margin-bottom: 10px; }
html[data-theme="dark"] .eula-box { background: #1E2634; }
/* 协议正文（中英对照，逐条分节） */
.eula-content { margin-top: 8px; }
.eula-content section { padding: 12px 0; border-top: 1px solid #EEF1F5; }
.eula-content section:first-child { border-top: 0; padding-top: 4px; }
.eula-content h4 { font-size: 14px; font-weight: 800; color: var(--heading); margin: 6px 0 6px; }
html[data-theme="dark"] .eula-content section { border-top-color: #2B3547; }

/* 场景选择 + 引擎推荐 */
@keyframes pfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pf-flow { margin-bottom: 16px; animation: pfIn .3s ease; }
/* 面包屑 + 当前问题标题同一行（chip 后紧跟标题，不换行） */
.flow-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.flow-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0; }
.flow-chips:empty { display: none; }
.flow-chip {
  border: 1.5px solid var(--brand); background: rgba(255,106,43,.08); color: var(--brand);
  font-family: var(--font-body); font-size: 12px; font-weight: 700; cursor: pointer;
  padding: 5px 12px; border-radius: 999px; transition: all .18s;
}
.flow-chip:hover { background: rgba(255,106,43,.16); }
.flow-q-title { font-size: 13.5px; font-weight: 700; color: var(--heading); margin-bottom: 0; }
.flow-q-title:empty { display: none; }
.flow-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-opt {
  border: 1.5px solid #E3E7EF; background: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--heading);
  padding: 9px 15px; border-radius: 10px; transition: all .18s; text-align: left;
}
.flow-opt:hover { border-color: var(--brand); background: rgba(255,106,43,.05); color: var(--brand); }
html[data-theme="dark"] .flow-opt { background: #243044; border-color: #33415A; color: #E9EDF4; }
html[data-theme="dark"] .flow-opt:hover { border-color: var(--brand); color: #FFB98A; background: rgba(255,106,43,.12); }
.pf-reco {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(14,159,110,.08); border: 1px solid rgba(14,159,110,.25);
  animation: pfIn .3s ease;
}
.reco-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #0E9F6E; color: #fff; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.reco-body b { display: block; font-size: 13.5px; color: var(--heading); margin-bottom: 2px; }
.reco-body span { font-size: 12.5px; color: var(--text); line-height: 1.5; }
.pf-manual .reco-body { flex: 1; }
.reco-cancel { flex: none; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .18s; }
.reco-cancel:hover { background: rgba(22,26,34,.08); color: var(--heading); }
html[data-theme="dark"] .reco-cancel:hover { background: rgba(255,255,255,.12); color: #fff; }

/* 提交校验内联提示 */
.pf-err { font-size: 12.5px; color: #E8570F; text-align: center; margin: 0 0 12px; }

/* 支付：内联展开面板（不使用弹窗） */
.pf-pay {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column;
  padding: 20px; border-radius: var(--radius-lg);
  /* 毛玻璃：半透明白 + 背景模糊，透出身后上传框内容与卡片阴影，形成层次 */
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
  overflow: hidden;
  transform-origin: bottom;
  animation: payReveal .42s cubic-bezier(.22,.61,.36,1);
}
/* 头部固定、支付内容填满中间 */
.pf-pay .pay-head { flex: none; }
.pf-pay .pay-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* 从按钮所在的底部向上「揭幕」铺满，不位移、不撕裂 */
@keyframes payReveal { from { clip-path: inset(100% 0 0 0); opacity: .5; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
html[data-theme="dark"] .pf-pay { background: rgba(24,31,43,.55); border-color: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.pay-head { position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pay-head .pay-back { position: absolute; left: 0; }
.pay-head-title { font-family: var(--font-head); font-size: 15.5px; font-weight: 800; color: var(--heading); }
/* 引擎标签（应付金额上方）*/
.pay-engine { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--heading);
  background: rgba(255,106,43,.08); border: 1px solid rgba(255,106,43,.2); border-radius: 999px; padding: 5px 12px; }
.pay-engine .pe-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
html[data-theme="dark"] .pay-engine { background: rgba(255,106,43,.12); border-color: rgba(255,106,43,.3); color: #F1F4FA; }
.pay-back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--text); font-family: var(--font-body); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 7px; transition: all .18s; }
.pay-back:hover { color: var(--brand); background: rgba(255,106,43,.08); }
.pay-qr { margin-bottom: 4px; }

/* 全页拖拽接收覆盖层 */
.drag-overlay { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(22,26,34,.55); backdrop-filter: blur(3px); padding: 40px; }
.drag-overlay.show { display: flex; animation: dragIn .2s ease; }
@keyframes dragIn { from { opacity: 0; } to { opacity: 1; } }
.drag-overlay .drag-inner { pointer-events: none; width: 100%; height: 100%; border: 3px dashed rgba(255,255,255,.6); border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; }
.drag-overlay .drag-ic { width: 76px; height: 76px; border-radius: 20px; background: var(--ember-grad); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 40px rgba(255,106,43,.4); animation: dragBob 1.4s ease-in-out infinite; }
@keyframes dragBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.drag-overlay .drag-title { font-family: var(--font-head); font-weight: 900; font-size: 26px; }
.drag-overlay .drag-hint { font-size: 14px; color: rgba(255,255,255,.8); }
@media (prefers-reduced-motion: reduce) { .drag-overlay .drag-ic { animation: none; } }

@media (max-width: 900px) {
  .pf-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .rep-cards { grid-template-columns: 1fr; }
  .pf-hero-copy { padding-top: 0; }
}

/* ================= chagechong 内联报告卡 + toast（搬自旧报告页，新站风格） ================= */
/* ---- 空状态 ---- */
.cc-report-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 48px 20px; color: var(--text); }
.cc-report-empty .cre-ic { color: #C4CCDA; }
html[data-theme="dark"] .cc-report-empty .cre-ic { color: #3B4660; }
.cc-report-empty p { font-size: 14.5px; max-width: 360px; line-height: 1.6; }

/* ---- 报告卡 ---- */
.crp-card { background: var(--white); border: 1px solid #E7EBF2; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 22px; max-width: 760px; margin: 0 auto; }
html[data-theme="dark"] .crp-card { border-color: #2B3547; }
.crp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(148,163,184,.18); }
.crp-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crp-fic { width: 34px; height: 34px; flex: none; border-radius: 9px; display: inline-flex; align-items: center;
  justify-content: center; background: rgba(255,138,0,.12); color: var(--orange); }
.crp-fic svg { width: 18px; height: 18px; }
.crp-file h3 { font-size: 17px; font-weight: 700; color: var(--heading); word-break: break-all; line-height: 1.35; }
.crp-status { flex: none; font-size: 12.5px; font-weight: 700; padding: 5px 13px; border-radius: 999px; white-space: nowrap; }
.crp-status.done { background: #DCFCE7; color: #15803D; }
.crp-status.proc { background: #DBEAFE; color: #1D4ED8; }
.crp-status.err  { background: #FEE2E2; color: #B91C1C; }
html[data-theme="dark"] .crp-status.done { background: rgba(22,163,74,.2); color: #4ADE80; }
html[data-theme="dark"] .crp-status.proc { background: rgba(29,78,216,.24); color: #93C5FD; }
html[data-theme="dark"] .crp-status.err  { background: rgba(185,28,28,.24); color: #FCA5A5; }
.crp-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; padding: 10px 14px;
  border-radius: 11px; background: rgba(148,163,184,.09); font-size: 13px; color: var(--text); }
.crp-meta b { color: #16A34A; font-weight: 800; letter-spacing: .03em; }
.crp-meta em { font-style: normal; font-size: 11px; background: rgba(148,163,184,.18); border-radius: 5px; padding: 1px 7px; }

/* ---- 双指标卡 ---- */
.crp-stats { display: flex; gap: 12px; margin-top: 16px; }
.crp-stat { flex: 1; border-radius: 12px; padding: 14px 16px; border: 1px solid transparent; }
.crp-srow { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--text); }
.crp-tag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: rgba(148,163,184,.16); }
.crp-num { font-size: 2.4rem; font-weight: 800; line-height: 1.05; margin-top: 4px; }
.crp-bar { height: 5px; border-radius: 999px; background: rgba(148,163,184,.18); margin-top: 10px; overflow: hidden; }
.crp-bar i { display: block; height: 100%; border-radius: 999px; background: currentColor; }
.crp-stat.safe    { background: rgba(22,163,74,.07);  color: #16A34A; }
.crp-stat.warn    { background: rgba(255,138,0,.08);  color: #E8880F; }
.crp-stat.danger  { background: rgba(226,61,61,.07);  color: #E23D3D; }
.crp-stat.pending { background: rgba(148,163,184,.08); color: #94A3B8; }
.crp-stat.safe .crp-tag, .crp-stat.warn .crp-tag, .crp-stat.danger .crp-tag, .crp-stat.pending .crp-tag { color: inherit; }
/* 指标卡内的一键降重/降AI入口：大数字右侧、语义标签正下方，胶囊描边继承卡片语义色 */
.crp-nrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.crp-fix { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12px; font-weight: 700;
  color: inherit; text-decoration: none; border: 1px solid currentColor; border-radius: 999px; padding: 3px 11px;
  transition: background .15s ease, transform .1s ease; }
.crp-fix:hover { background: rgba(255,255,255,.55); transform: translateY(-1px); }
html[data-theme="dark"] .crp-fix:hover { background: rgba(0,0,0,.25); }

/* ---- 下载磁贴 ---- */
.crp-dl-h { font-size: 12.5px; font-weight: 600; color: var(--text); margin: 16px 0 8px; }
.crp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
/* 下载磁贴：图标+文字左右横排，整块用图标底色（矮） */
.crp-tile { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 6px; border-radius: 11px; text-decoration: none; border: 1px solid transparent;
  transition: filter .15s ease, transform .1s ease; }
.crp-tile:hover { transform: translateY(-1px); filter: brightness(.97); }
.crp-tico { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.crp-tico svg { width: 16px; height: 16px; }
.crp-tt { font-size: 12.5px; font-weight: 700; color: var(--heading); }
.crp-tile.full { background: #DCFCE7; }  .crp-tile.full .crp-tico { color: #16A34A; }
.crp-tile.body { background: #DBEAFE; }  .crp-tile.body .crp-tico { color: #2563EB; }
.crp-tile.ai   { background: #EDE9FE; }  .crp-tile.ai   .crp-tico { color: #7C3AED; }
html[data-theme="dark"] .crp-tile.full { background: rgba(34,197,94,.16); } html[data-theme="dark"] .crp-tile.full .crp-tico { color: #4ADE80; }
html[data-theme="dark"] .crp-tile.body { background: rgba(59,130,246,.16); } html[data-theme="dark"] .crp-tile.body .crp-tico { color: #60A5FA; }
html[data-theme="dark"] .crp-tile.ai   { background: rgba(139,92,246,.18); } html[data-theme="dark"] .crp-tile.ai .crp-tico { color: #A78BFA; }

/* ---- 在线查看 ---- */
.crp-view { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 12px;
  border-radius: 11px; font-size: 14px; font-weight: 700; text-decoration: none; color: #fff; background: var(--ember-grad); }
.crp-view svg { width: 17px; height: 17px; }
.crp-view:hover { filter: brightness(1.05); }

/* ---- 状态提示 ---- */
.crp-notes { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.crp-note { font-size: 13px; padding: 10px 13px; border-radius: 10px; }
.crp-note.muted { background: rgba(148,163,184,.12); color: var(--text); }
.crp-note.info  { background: rgba(29,78,216,.09); color: #1D4ED8; }
.crp-note.err   { background: rgba(226,61,61,.09); color: #E23D3D; }
html[data-theme="dark"] .crp-note.info { color: #93C5FD; }

/* ---- 删除 ---- */
/* 报告卡底部：返回检测 + 删除，并排一行 */
.crp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.crp-back, .crp-del { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px; border-radius: 11px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: background .16s ease; }
.crp-back { color: var(--text); background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.22); }
.crp-back:hover { background: rgba(148,163,184,.2); }
.crp-del { color: #DC5050; background: transparent; border-color: rgba(220,80,80,.3); }
.crp-del:hover { background: rgba(220,80,80,.08); }
.crp-back svg, .crp-del svg { width: 16px; height: 16px; }
.crp-back:disabled, .crp-del:disabled { opacity: .5; cursor: default; }

/* ================= 新站 toast ================= */
.cc-toasts { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column;
  gap: 10px; pointer-events: none; max-width: min(360px, calc(100vw - 40px)); }
.cc-toast { position: relative; overflow: hidden; pointer-events: auto; display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px 15px;
  min-width: 260px; border-radius: 13px; background: var(--white); border: 1px solid #E7EBF2; box-shadow: var(--shadow-card-hover);
  transform: translateX(120%); opacity: 0; transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .32s ease; }
html[data-theme="dark"] .cc-toast { border-color: #2B3547; }
.cc-toast.show { transform: translateX(0); opacity: 1; }
.cct-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.cct-ic svg { width: 17px; height: 17px; }
.cc-toast-success .cct-ic { background: rgba(22,163,74,.14); color: #16A34A; }
.cc-toast-error .cct-ic   { background: rgba(226,61,61,.14); color: #E23D3D; }
.cc-toast-warning .cct-ic { background: rgba(255,138,0,.16); color: #E8880F; }
.cc-toast-info .cct-ic    { background: rgba(26,160,230,.14); color: #1AA0E6; }
.cct-body { flex: 1; min-width: 0; padding-top: 2px; }
.cct-title { font-size: 14px; font-weight: 700; color: var(--heading); }
.cct-text { font-size: 12.5px; color: var(--text); margin-top: 2px; word-break: break-word; }
.cct-x { flex: none; background: none; border: none; font-size: 20px; line-height: 1; color: #A9B2C4; cursor: pointer; padding: 0 2px; }
.cct-x:hover { color: var(--heading); }
/* 倒计时色带：底部一条随时长收缩的进度条，hover 时随定时器一起暂停 */
.cct-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(148,163,184,.16); }
.cct-bar i { display: block; height: 100%; width: 100%; transform-origin: left center; animation: cctBar linear forwards; }
@keyframes cctBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.cc-toast-success .cct-bar i { background: #16A34A; }
.cc-toast-error   .cct-bar i { background: #E23D3D; }
.cc-toast-warning .cct-bar i { background: #E8880F; }
.cc-toast-info    .cct-bar i { background: #1AA0E6; }

@media (max-width: 560px) {
  .crp-stats { flex-direction: column; }
  .cc-toasts { top: 12px; right: 12px; left: 12px; max-width: none; }
}

/* ================= 上传框即结果窗：报告卡内联进 .pf-card ================= */
.cc-upload-report { display: flex; flex-direction: column; }
.cur-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px;
  background: none; border: none; color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
  padding: 4px 8px 4px 0; border-radius: 8px; transition: color .15s ease; }
.cur-back svg { width: 15px; height: 15px; }
.cur-back:hover { color: var(--brand); }
/* 报告卡在上传框内：去掉自身卡片外观（避免卡中卡）并缩小 */
#ccUploadReport .crp-card { background: none; border: none; box-shadow: none; padding: 0; margin: 0; max-width: none; }
#ccUploadReport .crp-file h3 { font-size: 15.5px; }
#ccUploadReport .crp-head { padding-bottom: 13px; }
#ccUploadReport .crp-num { font-size: 2rem; }
#ccUploadReport .crp-stats { gap: 10px; margin-top: 13px; }
#ccUploadReport .crp-stat { padding: 12px 13px; }
#ccUploadReport .crp-tiles { grid-template-columns: repeat(3, 1fr); }
#ccUploadReport .crp-dl-h { margin: 16px 0 9px; }

/* ================= 扫码支付面板：左右两栏（左=金额+支付宝+微信，右=尽量大的正方形二维码）================= */
.cc-pay-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 240px; gap: 16px; align-items: center; }
.cc-pay-left { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.pay-amount { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; color: var(--text); margin: 0 0 2px; text-align: left; }
.pay-amount b { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--brand); }
.cc-pm { width: 190px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px;
  border-radius: 11px; border: 1.5px solid #E3E7EF; background: var(--white); color: var(--heading);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.cc-pm:hover { border-color: var(--brand); }
.cc-pm.active { border-color: var(--brand); background: rgba(255,106,43,.07); }
.cc-pm:disabled { opacity: .55; cursor: default; }
.cc-pm-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* 支付品牌 logo（支付宝/微信/Visa/万事达 svg；PayNow 用品牌紫字标还原） */
.cc-pm-logo { width: 20px; height: 20px; object-fit: contain; flex: none; }
.cc-pm-logo-mc { width: 26px; margin-left: -3px; }
.cc-pm-paynow { font-weight: 800; font-style: italic; font-size: 15px; letter-spacing: -.01em; color: #7d1979; }
.cc-pm-sub { font-size: 10.5px; font-weight: 700; color: #fff; background: #7d1979; border-radius: 5px; padding: 1.5px 5px; }
html[data-theme="dark"] .cc-pm { border-color: #2B3547; }
/* 右侧：正方形二维码，随中间高度尽量拉大 */
.cc-pay-right { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.cc-pay-right .qr-slot.pay-qr { width: 240px; height: 240px; flex: none; min-height: 0; margin: 0; padding: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 1px dashed #D8DEEA; border-radius: 12px; background: rgba(148,163,184,.05); }
html[data-theme="dark"] .cc-pay-right .qr-slot.pay-qr { border-color: #2B3547; }
#ccQrImg { width: 100%; height: 100%; image-rendering: pixelated; background: #fff; border-radius: 8px; padding: 5px; }
/* 预留固定高度（约 2 行）：无论有无二维码，右栏高度不变，避免生成后跳动 */
.cc-qr-status { flex: none; min-height: 34px; font-size: 11.5px; color: var(--text); text-align: center; max-width: 180px; line-height: 1.4; }

/* 三态同高、不跳动：上传表单 / 支付覆盖层 / 报告卡固定同高 */
.pf-hero-form .pf-card { height: 380px; }
/* 上传表单：拖拽区撑满、确认提交沉底，让初始态填满盒子不留白（与支付覆盖层/报告卡同高） */
#uploadForm { display: flex; flex-direction: column; }
#uploadForm .drop-zone { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#uploadForm .drop-zone.dz-collapsed { flex: 0 0 auto; }
/* 可变内容区（文件条/引导问答/直接选引擎）：占剩余空间，内容过高时内部滚动但「隐藏滚动条」——
   这样底部同意栏+确认提交始终贴底、位置与高度不变，同时卡片固定 380、页面上看不到滚动条 */
#uploadForm .pf-mid { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
#uploadForm .pf-mid::-webkit-scrollbar { width: 0; height: 0; display: none; }
/* 底部固定组：同意栏 + 确认提交始终贴底——无论上方是拖拽区、文件条还是问答，位置与高度都不变 */
#uploadForm .pf-foot { flex: none; margin-top: auto; }
/* 报告卡：内边距收紧，整卡高度贴近上传表单，切换不跳动 */
#ccUploadReport { padding: 18px; overflow: hidden; }
#ccUploadReport .crp-tiles { margin-top: 14px; }
#ccQrHint { font-size: 13px; color: var(--text); }
.cc-qr-status { font-size: 12.5px; color: var(--text); text-align: center; margin-top: 10px; }

/* ================= EULA：按当前语言只显示一侧（英文模式纯英文，中文模式纯中文）================= */
.eula-box .eula-en { display: none; }
html[lang="en"] .eula-box .eula-zh { display: none; }
html[lang="en"] .eula-box .eula-en { display: revert; }
