:root {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  color: #21354d;
  background: #e9eef5;
  --navy: #123454;
  --blue: #265cc8;
  --muted: #718198;
  --line: #dde5ef;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-text-size-adjust: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #8cb3ff; outline-offset: 4px; }
.scan-page { width: 100%; max-width: 480px; min-height: 100svh; margin: 0 auto; background: #f3f6fa; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.hero { background: var(--navy); color: #fff; padding: 20px 20px 24px; }
.brand-row { display: flex; align-items: center; gap: 9px; }
.brand-icon { display: inline-flex; flex: 0 0 21px; width: 21px; height: 21px; color: #d5e5fd; }
.brand-icon svg { width: 100%; height: 100%; }
.brand-name { flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.demo-badge { flex: 0 0 auto; padding: 4px 8px; color: #dce9fa; background: #2b4b6e; border-radius: 5px; font-size: 11px; line-height: 1.5; }
.hero h1 { margin: 24px 0 14px; font-size: 32px; line-height: 1.2; letter-spacing: .02em; font-weight: 700; }
.hero-description { margin: 0; font-size: 14px; line-height: 1.65; color: #c5d5e8; }
.content { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 0; }
.card { margin: 0; padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.card h2 { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 700; }
.product-card { padding: 17px 15px; }
.product-summary { display: flex; align-items: center; gap: 16px; }
.product-art { display: flex; flex: 0 0 82px; align-items: center; justify-content: center; width: 82px; height: 92px; border-radius: 10px; background: #eaf0fc; color: var(--blue); }
.product-art svg { width: 60px; height: 60px; }
.product-copy { flex: 1; min-width: 0; }
.product-copy h2 { font-size: 19px; overflow-wrap: anywhere; }
.product-description { margin: 6px 0; font-size: 13px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.product-code { margin-top: 15px; padding-top: 12px; border-top: 1px solid #edf1f6; }
.code-label { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.single-code { margin: 0; color: var(--navy); font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 18px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.details-card { padding-bottom: 9px; }
.details-card h2 { margin-bottom: 9px; }
.details-list { margin: 0; }
.detail-row { display: grid; grid-template-columns: minmax(0, 112px) minmax(0, 1fr); align-items: start; column-gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1f6; font-size: 15px; line-height: 1.65; }
.detail-row:last-child { border-bottom: 0; }
.detail-row dt { margin: 0; color: var(--muted); }
.detail-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.reports-card h2 { margin-bottom: 15px; }
.report-list { list-style: none; padding: 0; margin: 0; }
.report-list li + li { margin-top: 15px; padding-top: 15px; border-top: 1px solid #edf1f6; }
.report-row { display: flex; align-items: center; gap: 10px; }
.report-icon { display: inline-flex; flex: 0 0 27px; width: 27px; height: 32px; color: var(--blue); }
.report-icon svg { width: 100%; height: 100%; }
.report-copy { flex: 1; min-width: 0; }
.report-name { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.report-format { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.report-action { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 3px; min-height: 44px; margin: -6px -5px -6px 0; padding: 6px 5px; border: 0; color: var(--blue); background: transparent; font-size: 14px; line-height: 1.5; text-decoration: none; cursor: pointer; }
.report-action svg { width: 16px; height: 16px; }
.empty-report { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.empty-report p { margin: 0; font-size: 14px; line-height: 1.7; }
.phone-number { margin: 12px 0 14px; font-size: 16px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.call-button, .primary-button, .retry-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 9px; color: var(--blue); background: #eff4fd; font-size: 16px; font-weight: 500; line-height: 1.5; text-decoration: none; cursor: pointer; }
.call-button svg { width: 20px; height: 20px; }
button:disabled { cursor: default; }
.call-button:disabled { color: #8b9bb2; background: #f0f3f8; }
.mini-program { margin-top: 2px; }
.primary-button { min-height: 54px; background: var(--blue); color: #fff; font-size: 18px; }
.primary-button svg { width: 19px; height: 19px; }
.primary-button:disabled { color: #f1f4f9; background: #8b9fbf; }
.action-hint { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; }
.page-footer { padding: 21px 18px 6px; color: #7b8ba1; font-size: 12px; line-height: 1.6; text-align: center; }
.loading-card { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.loading-card p { margin: 0; color: var(--muted); font-size: 14px; }
.loader { width: 26px; height: 26px; border: 2px solid #dde6f5; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-card { padding: 30px 20px; text-align: center; }
.state-symbol { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; color: #9c754c; background: #fbf4e9; }
.state-symbol svg { width: 34px; height: 34px; }
.state-card h2 { font-size: 21px; }
.state-description { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.state-code { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #edf1f6; color: #7f8da2; font-family: Arial, sans-serif; font-size: 13px; overflow-wrap: anywhere; }
.retry-button { margin-top: 20px; }
.image-viewer { width: min(100% - 24px, 900px); max-height: calc(100dvh - 30px); padding: 0; border: 0; border-radius: 13px; overflow: auto; color: #21354d; background: #fff; }
.image-viewer::backdrop { background: #10253ce0; }
.viewer-header { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); z-index: 1; }
.viewer-header h2 { min-width: 0; margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.icon-button { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 8px; background: #f2f5f9; color: #21354d; cursor: pointer; }
.icon-button svg { width: 22px; height: 22px; }
#report-image { display: block; width: 100%; height: auto; }
.image-error { margin: 24px 16px; color: #8a5f40; font-size: 14px; line-height: 1.7; }
.viewer-help { margin: 0; padding: 12px 16px 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 350px) {
  .hero { padding: 18px 16px 23px; }
  .content { padding-right: 12px; padding-left: 12px; }
  .brand-name { font-size: 12px; }
  .product-card { padding: 15px 12px; }
  .product-summary { gap: 12px; }
  .product-art { width: 66px; height: 82px; flex-basis: 66px; }
  .product-art svg { width: 48px; height: 48px; }
  .product-copy h2 { font-size: 17px; }
  .single-code { font-size: 17px; }
  .detail-row { grid-template-columns: minmax(0, 100px) minmax(0, 1fr); font-size: 14px; column-gap: 8px; }
  .report-row { flex-wrap: wrap; }
  .report-action { margin-left: auto; }
}
@media (min-width: 600px) { .scan-page { box-shadow: 0 0 0 1px #dde5ef; } }
@media (prefers-reduced-motion: reduce) { .loader { animation: none; } }
