* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #eef1f5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  background:
    radial-gradient(circle at 20% 10%, #d3ddf0 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, #cfd7e6 0%, transparent 50%),
    #eef1f5;
}

/* 桌面预览时的手机外框 */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 880px;
  background: #f5f7fa;
  border-radius: 32px;
  box-shadow:
    0 30px 80px rgba(30,50,90,.25),
    0 0 0 10px #1a1a1a,
    0 0 0 12px #2a2a2a;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 26px;
  background: #1a1a1a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 100;
}
.app {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #f2f4f7;
}
.app::-webkit-scrollbar { width: 0; }

/* 状态栏 */
.status-bar {
  height: 40px;
  padding: 12px 22px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #0057B8 0%, #0069D9 100%);
}
.status-icons { display: flex; gap: 6px; font-size: 11px; }

/* 导航 */
.nav {
  height: 44px;
  background: linear-gradient(180deg, #0069D9 0%, #007ce8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 17px;
  font-weight: 500;
}
.nav-back, .nav-more { font-size: 22px; opacity: .9; }
.nav-title { font-weight: 600; letter-spacing: .5px; }

/* Hero */
.hero {
  position: relative;
  padding: 20px 16px 20px;
  background: linear-gradient(180deg, #007ce8 0%, #0057B8 60%, #003a80 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,.15), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.1), transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

.cert-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px;
  backdrop-filter: blur(6px);
}
.cert-shield {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-text { color: #fff; }
.cert-title { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.cert-sub { font-size: 12px; opacity: .85; margin-top: 4px; }

.scan-info {
  margin-top: 14px;
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 12px 8px;
  box-shadow: 0 8px 24px rgba(0,50,140,.15);
}
.scan-item {
  flex: 1;
  text-align: center;
  padding: 0 4px;
}
.scan-label { font-size: 11px; color: #7a869a; }
.scan-value { font-size: 13px; color: #0057B8; font-weight: 600; margin-top: 4px; word-break: break-all; }
.scan-count { color: #E8391A; }
.scan-divider {
  width: 1px;
  background: #e0e6ee;
  margin: 4px 0;
}

/* 通用卡片 */
.card {
  margin: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(20,40,80,.05);
}
.section-head {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.section-icon { font-size: 18px; margin-right: 8px; }
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
  flex: 1;
}
.section-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #0057B8;
}
.section-tag.green { background: #e6f7ec; color: #14915a; }

/* 产品卡 */
.product-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f2f4f7;
}
.product-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.product-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,87,184,.9);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
}
.product-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a1a;
  line-height: 1.35;
}
.product-model {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

/* 信息网格 */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  border-top: 1px dashed #e5e9f0;
  padding-top: 12px;
}
.info-item { padding: 4px 0; }
.info-key { font-size: 11px; color: #8892a6; margin-bottom: 3px; }
.info-val { font-size: 13px; color: #1a1a1a; font-weight: 500; line-height: 1.4; }
.mt16 { margin-top: 16px; }

/* 时间线 */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: #e5e9f0;
}
.timeline-item {
  position: relative;
  padding: 6px 0 6px 30px;
  min-height: 34px;
}
.timeline-dot {
  position: absolute;
  left: 3px; top: 10px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  box-shadow: 0 0 0 3px #fff;
}
.timeline-item.done .timeline-dot { background: #14915a; }
.timeline-item.current .timeline-dot {
  background: #0057B8;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(0,87,184,.25);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(0,87,184,.25); }
  50% { box-shadow: 0 0 0 3px #fff, 0 0 0 10px rgba(0,87,184,.08); }
}
.timeline-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.timeline-desc { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* 原材料 */
.material-list { display: flex; flex-direction: column; gap: 14px; }
.material-item {
  padding: 12px;
  background: #f7f9fc;
  border-radius: 10px;
  border: 1px solid #eef2f7;
}
.material-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.material-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.material-ratio { font-size: 11px; color: #0057B8; background: #e6efff; padding: 2px 8px; border-radius: 8px; }
.material-sub { font-size: 12px; color: #6b7280; margin-top: 3px; }
.progress {
  margin-top: 8px;
  height: 6px;
  background: #e5e9f0;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0057B8, #14915a);
  border-radius: 3px;
}

/* 检测报告 */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.test-item {
  padding: 10px 6px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #eef2f7;
}
.test-item.pass {
  background: linear-gradient(180deg, #f0fdf5 0%, #fff 100%);
  border-color: #d1f0dd;
}
.test-key { font-size: 11px; color: #6b7280; }
.test-val { font-size: 15px; font-weight: 700; color: #14915a; margin: 3px 0; }
.test-note { font-size: 10px; color: #9aa5b8; }

.report-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed #e5e9f0;
  padding-top: 12px;
}
.report-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f7f9fc;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid #eef2f7;
}
.report-icon { font-size: 22px; }
.report-info { flex: 1; }
.report-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.report-sub { font-size: 11px; color: #6b7280; margin-top: 2px; }
.report-arrow { color: #cbd5e1; font-size: 20px; }

/* 提示条 */
.hint {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: #7a869a;
  background: #f7f9fc;
  border-radius: 8px;
  border-left: 3px solid #0057B8;
}

/* 图片画廊 */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

/* 企业卡片 */
.company-card { padding: 0; overflow: hidden; }
.company-hero {
  position: relative;
  height: 140px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.company-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,40,90,.2), rgba(0,40,90,.85));
}
.company-logo {
  position: absolute;
  top: 12px; left: 12px;
  height: 30px;
  background: rgba(255,255,255,.95);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 1;
}
.company-name {
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.company-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}
.stat-item { text-align: center; padding: 0 4px; }
.stat-num { font-size: 18px; font-weight: 700; color: #0057B8; }
.stat-key { font-size: 11px; color: #6b7280; margin-top: 2px; }

.company-desc {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
  border-bottom: 1px solid #eef2f7;
}

.qrcode-row {
  display: flex;
  padding: 16px;
  gap: 12px;
  justify-content: center;
}
.qr-col { text-align: center; }
.qr-img, .qr-mock {
  width: 96px; height: 96px;
  border-radius: 8px;
  border: 1px solid #eef2f7;
  padding: 4px;
  background: #fff;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-inner {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, #1a1a1a 0 4px, transparent 4px 8px), repeating-linear-gradient(-45deg, #1a1a1a 0 4px, transparent 4px 8px);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  background-color: #0057B8;
}
.qr-key { font-size: 12px; color: #6b7280; margin-top: 6px; }

.company-links {
  display: flex;
  flex-direction: column;
  padding: 4px 16px 16px;
  gap: 8px;
}
.company-links a {
  font-size: 13px;
  color: #0057B8;
  text-decoration: none;
  padding: 8px 12px;
  background: #f7f9fc;
  border-radius: 8px;
}

/* 底部操作 */
.footer-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px 4px;
}
.btn {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-ghost {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e9f0;
}
.btn-primary {
  background: linear-gradient(135deg, #0057B8 0%, #007ce8 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,87,184,.3);
}

.footer-brand {
  text-align: center;
  font-size: 11px;
  color: #9aa5b8;
  padding: 16px 20px 32px;
  line-height: 1.6;
}
