* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --blue: #1a6fc4;
  --blue-dark: #0d4f96;
  --blue-light: #e8f2fc;
  --ink: #333b45;
  --ink-sub: #8a94a0;
  --line: #e6e9ed;
  --red: #e02020;
  --banner-h: 62px;
}
html, body { width: 100%; background: #eef3f8; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); }
body { display: flex; justify-content: center; }
#app {
  width: 100%; max-width: 480px; min-height: 100vh; background: #fff; position: relative;
  padding-bottom: 60px; overflow: hidden;
}

/* ===== 顶部 banner：浅蓝波纹 + 双 logo ===== */
.banner {
  height: var(--banner-h); display: flex; align-items: center; padding: 0 12px;
  background: linear-gradient(180deg, #f4f9fe 0%, #e4effa 100%);
  position: relative; border-bottom: 1px solid #d6e6f5; gap: 8px;
}
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-radial-gradient(ellipse at 10% 120%, transparent 0, transparent 8px, rgba(120,175,225,.25) 9px, transparent 10px);
  background-size: 100% 100%;
}
.banner .logo-ciq { display: flex; align-items: center; gap: 6px; z-index: 1; flex-shrink: 0; }
.banner .logo-ciq svg { width: 34px; height: 34px; }
.banner .ciq-txt b { display: block; font-size: 12px; color: #1f5fa0; line-height: 1.1; }
.banner .ciq-txt small { display: block; font-size: 5.5px; color: #7a93ad; letter-spacing: .3px; margin-top: 2px; }
.banner .divider { width: 1px; height: 30px; background: #bcd5ec; z-index: 1; flex-shrink: 0; }
.banner .logo-platform { display: flex; align-items: center; gap: 5px; z-index: 1; flex: 1; min-width: 0; }
.banner .logo-platform svg { width: 30px; height: 30px; flex-shrink: 0; }
.banner .pf-txt b { display: block; font-size: 12.5px; color: #1f5fa0; line-height: 1.15; white-space: nowrap; }
.banner .pf-txt small { display: block; font-size: 5.5px; color: #7a93ad; letter-spacing: .2px; margin-top: 2px; white-space: nowrap; }

/* ===== 主内容区（左侧留白给悬浮导航） ===== */
.main { padding: 14px 76px 14px 14px; position: relative; }
.card { background: #fff; }

/* 产品图区 */
.product-hero { position: relative; text-align: center; padding: 6px 0 12px; }
.product-hero img { width: 150px; height: auto; object-fit: contain; }
.hero-side-note {
  position: absolute; right: 68px; top: 8px; writing-mode: vertical-rl; color: var(--red);
  font-size: 12px; letter-spacing: 3px; font-weight: 600;
}
.hero-foot-note { color: var(--ink-sub); font-size: 11px; margin-top: 2px; text-align: right; padding-right: 4px; }

/* 区块标题 */
.section-title {
  display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700;
  color: #2b333c; margin: 14px 0 10px;
}
.section-title::before { content: ""; width: 4px; height: 18px; background: var(--blue); border-radius: 2px; }

/* 点列式字段列表 */
.field-list { list-style: none; }
.field-list li {
  padding: 11px 2px 12px 16px; position: relative; border-bottom: 1px solid var(--line);
}
.field-list li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 5px; height: 5px;
  border-radius: 50%; background: #9aa4ae;
}
.field-list .label { color: var(--ink-sub); font-size: 12.5px; margin-bottom: 5px; }
.field-list .value { color: #3a424b; font-size: 14px; line-height: 1.5; word-break: break-all; }
.field-list .value.hot { color: var(--red); font-weight: 600; }
.field-list .value img { max-width: 100%; border: 1px solid var(--line); border-radius: 4px; }

/* 折叠卡片（流通信息 / 检测报告） */
.fold-card { margin-bottom: 10px; }
.fold-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; cursor: pointer; border-bottom: 1px solid var(--line);
}
.fold-head .ft { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #2b333c; }
.fold-head .ft::before { content: ""; width: 4px; height: 17px; background: var(--blue); border-radius: 2px; }
.fold-head .arrow { color: #9aa4ae; font-size: 13px; transition: transform .2s; }
.fold-card.open .arrow { transform: rotate(180deg); }
.fold-body { display: none; padding: 6px 2px 4px; }
.fold-card.open .fold-body { display: block; }

/* 紧凑行排布（流通信息字段） */
.kv-row { display: flex; padding: 8px 0; font-size: 13px; line-height: 1.5; }
.kv-row .k { color: var(--ink-sub); flex: 0 0 78px; }
.kv-row .k::after { content: "："; }
.kv-row .v { color: #4a535d; flex: 1; word-break: break-all; padding-right: 62px; }
.kv-row .v img { max-width: 100%; border: 1px solid #eef0f2; border-radius: 3px; }

/* ===== 右侧悬浮导航 ===== */
.side-nav {
  position: fixed; right: max(8px, calc((100vw - 480px) / 2 + 8px)); top: calc(var(--banner-h) + 8px);
  z-index: 20; display: flex; flex-direction: column; gap: 8px;
}
.nav-item {
  width: 60px; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(30,80,130,.12);
  padding: 8px 2px 6px; text-align: center; cursor: pointer; border: 1px solid #eef2f6;
  transition: transform .1s;
}
.nav-item:active { transform: scale(.95); }
.nav-item svg { width: 26px; height: 26px; }
.nav-item span { display: block; font-size: 10px; color: #5b7186; margin-top: 3px; }
.nav-item.active { background: var(--blue); border-color: var(--blue); }
.nav-item.active span { color: #fff; }
.nav-item.active svg path, .nav-item.active svg rect { stroke: #fff; }

/* ===== 底部固定双按钮 ===== */
.bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 56px; display: flex; z-index: 30;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.bottom-bar button {
  flex: 1; border: none; font-size: 16px; cursor: pointer; font-weight: 500;
}
.btn-ghost-bottom { background: #fff; color: #2b333c; border-right: 1px solid var(--line) !important; }
.btn-primary-bottom { background: var(--blue); color: #fff; }

/* ===== 弹窗 ===== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 100;
  display: none; align-items: flex-end; justify-content: center;
}
.modal-mask.show { display: flex; }
.modal-box {
  width: 100%; max-width: 480px; background: #fff; border-radius: 14px 14px 0 0; padding: 18px 18px 24px;
}
.modal-title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 16px; color: #2b333c; }
.modal-body label { display: block; font-size: 13px; color: var(--ink-sub); margin: 10px 0 6px; }
.modal-body textarea, .modal-body input {
  width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 10px;
  font-size: 14px; font-family: inherit; resize: none; outline: none;
}
.modal-body textarea:focus, .modal-body input:focus { border-color: var(--blue); }
.verify-tip { font-size: 13px; color: #6b7682; margin-bottom: 6px; }
.verify-msg { font-size: 13.5px; margin-top: 12px; min-height: 20px; }
.verify-msg.ok { color: #1a9e5c; }
.verify-msg.err { color: var(--red); }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions button { flex: 1; height: 42px; border-radius: 6px; font-size: 15px; cursor: pointer; border: none; }
.btn-ghost { background: #f2f4f7; color: #5b6570; }
.btn-primary { background: var(--blue); color: #fff; }

/* toast */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 10px 18px; border-radius: 6px;
  font-size: 14px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* 空状态 */
.empty { text-align: center; padding: 80px 20px; color: var(--ink-sub); }
.empty b { display: block; font-size: 18px; margin-bottom: 8px; color: #5b6570; }

/* 检测报告 PDF 展示 */
.pdf-report iframe { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.pdf-open { display: block; margin: 10px 0 2px; padding: 10px; text-align: center; background: #eaf3fd; color: var(--blue); border: 1px solid #cfe3fa; border-radius: 6px; font-size: 13px; text-decoration: none; }
