:root {
  --bg: #eef2f5;
  --surface: #ffffff;
  --ink: #1a2c3e;
  --ink-muted: #5a6f7e;
  --brand: #1f7b60;
  --brand-deep: #0b3b2f;
  --brand-soft: #eff7f3;
  --line: #cbdde6;
  --card-bg: #f7fafc;
  --table-head: #d9e8ef;
  --radius: 28px;
  --shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  padding: 2rem 1rem;
  min-height: 100vh;
}

a { color: var(--brand); }

.doc-container {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 2.5rem;
}

/* -------- Header -------- */
.header-main {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}

.header-left { flex: 1; min-width: 240px; }
.header-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--brand-deep);
  border-left: 6px solid var(--brand);
  padding-left: 1rem;
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.h1-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #2c5a4a;
}

.subhead {
  color: #2c5a4a;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.85rem;
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
}

.qr-code-area {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #e2edf2;
  border-radius: 16px;
  padding: 10px 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.qr-code-area canvas,
.qr-code-area img {
  width: 168px !important;
  height: 168px !important;
}

.qr-label {
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.lang-switch-area { margin: 0; }

.lang-selector {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1f5e4b;
  min-width: 200px;
  max-width: min(280px, 100%);
  cursor: pointer;
  outline: none;
}

/* -------- Two column cards -------- */
.two-column-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1rem;
  margin-top: 1.4rem;
  align-items: start;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid #dce8ef;
  border-radius: 16px;
  padding: 1rem 1.15rem 1.05rem;
  margin-bottom: 0.9rem;
}

.info-card.tint-warm { background: #fef6e0; }
.info-card.tint-green { background: #f0f7f4; }
.info-card.tint-cool { background: #eef4fa; }

.conformity-para {
  margin: 0 0 0.85rem;
  line-height: 1.55;
}
.conformity-para:last-child { margin-bottom: 0; }
.conformity-para strong,
.symbol-row p strong {
  font-weight: 700;
  color: inherit;
}
.info-card.tint-paper { background: #fefef7; border-color: #dce9ef; }

.spec-list {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 0.35rem;
}

.spec-list li {
  display: grid;
  grid-template-columns: minmax(140px, 36%) 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e4eef3;
  font-size: 0.94rem;
  align-items: start;
}

.spec-list li:last-child { border-bottom: none; }
.spec-list .label {
  color: #3d5566;
  font-weight: 700;
}
.spec-list li > span:last-child {
  color: var(--ink);
  word-break: break-word;
}


h2 {
  font-size: 1.35rem;
  margin-top: 1.7rem;
  margin-bottom: 0.85rem;
  font-weight: 650;
  color: #1d5a48;
  border-bottom: 2px solid #d4e2e9;
  padding-bottom: 0.35rem;
}

h3 {
  font-size: 1.12rem;
  margin: 0 0 0.55rem;
  font-weight: 650;
  color: #1d4e3f;
}

.compliance-badge {
  background: #f3faf6;
  border: 1px solid #cfe6db;
  border-radius: 14px;
  padding: 1.05rem 1.2rem 1.15rem;
  font-size: 0.95rem;
}

.hazard-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  color: var(--brand-deep);
}

.hazard-intro { margin-bottom: 0.7rem; }

/* 有害物质限值表：白底卡片，与绿色声明区对比明显 */
.metal-table-wrap {
  background: #fff;
  border: 1.5px solid #b7c9d4;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 45, 60, 0.06);
  margin: 0.35rem 0 1rem;
  overflow: hidden;
}

.metal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
  background: #fff;
  font-size: 0.95rem;
}

.metal-table tbody th,
.metal-table tbody td {
  padding: 0.78rem 0.9rem;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid #dce6ec;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.metal-table tbody tr:last-child th,
.metal-table tbody tr:last-child td {
  border-bottom: 0;
}

.metal-table tbody th {
  width: 32%;
  font-weight: 700;
  color: var(--ink);
  background: #f4f8fa;
  border-right: 1px solid #dce6ec;
}

.metal-table tbody td {
  color: #243746;
  background: #fff;
}

.metal-table tbody tr:nth-child(even) td {
  background: #f7fbfd;
}

.metal-table tbody tr:nth-child(even) th {
  background: #eef4f7;
}

.hazard-line { margin: 0.4rem 0; }

.svhc-block {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #c5dccf;
}

.svhc-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
  color: #0b4f7a;
}

.svhc-body { color: #243746; line-height: 1.55; }

.stack-block { margin-top: 0.85rem; }
.stack-block .info-card { margin-bottom: 0; }

.marking-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0.4rem 0 1.1rem;
  padding: 0.9rem 1rem;
  background: #fafcfd;
  border: 1px solid #dce8ef;
  border-radius: 16px;
}

.mark-item {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e2edf2;
  border-radius: 12px;
  padding: 0.35rem;
}

.mark-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mark-item[hidden] { display: none; }

/* -------- Performance table -------- */
.perf-section { margin-top: 0.35rem; }

.perf-card {
  background: #fff;
  border: 1px solid #d5e4ec;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 0.3rem;
}

.perf-card-title {
  padding: 0.95rem 1.1rem 0.55rem;
  font-size: 1.12rem;
  font-weight: 650;
  color: #1d4e3f;
}

.perf-table-wrap {
  width: 100%;
  overflow-x: visible;
}

.perf-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.94rem;
  table-layout: fixed;
}

.perf-table th,
.perf-table td {
  padding: 0.72rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e4eef3;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.4;
}

.perf-table th {
  background: var(--table-head);
  color: var(--brand-deep);
  font-weight: 700;
}

.perf-table tbody tr:nth-child(even) {
  background: #f7fbfd;
}

.perf-table tbody tr:hover {
  background: #eef7f3;
}

.perf-notes {
  padding: 0.75rem 1.1rem 1rem;
  color: var(--ink-muted);
  font-size: 0.86rem;
  display: grid;
  gap: 0.55rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.perf-note {
  padding-left: 0.75rem;
  border-left: 3px solid #7eb6d0;
}

/* -------- Warning blocks -------- */
.label-stack {
  display: grid;
  gap: 0.85rem;
  margin: 0.5rem 0 1.15rem;
  width: 100%;
}

.safety-label,
.battery-warning-blackbox {
  width: 100%;
  margin: 0;
  background: #fff;
  color: #111;
  border-radius: 0;
  border: 1.5px solid #111;
  outline: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 7.5rem;
  align-items: stretch;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.warning-text-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid #111;
}

.warning-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-bottom: 1.5px solid #111;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
}

.warning-body {
  padding: 0.55rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.warn-triangle {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.05rem;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding-top: 0.3rem;
  flex-shrink: 0;
}

.keep-out {
  color: #111;
  font-weight: 800;
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
}

.warning-desc {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #111;
  font-weight: 400;
  text-align: center;
}

.ingestion-list {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #111;
}

.ingestion-list:empty { display: none; }

.ingestion-list li { margin: 0.22rem 0; }

.ingestion-list strong { font-weight: 800; }

.warning-icon-panel {
  display: grid;
  place-items: center;
  padding: 0.4rem;
  background: #fff;
}

.warning-icon-right {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 50%;
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
}

.warning-icon-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.battery-label .warning-icon-right,
.ingestion-label .warning-icon-right {
  width: 5.75rem;
  height: 5.75rem;
}

.warning-box,
.caution-box {
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.7rem;
  font-size: 0.94rem;
}

.warning-box {
  background: #fff4f0;
  border: 1px solid #f0c7ba;
}

.caution-box {
  background: #fff9e8;
  border: 1px solid #ead7a0;
}

.box-label {
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.warning-box .box-label { color: #b42318; }
.caution-box .box-label { color: #9a6b00; }

.file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.file-links a {
  text-decoration: none;
  background: var(--brand-soft);
  border: 1px solid #c5dfd4;
  color: var(--brand-deep);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.file-links a:hover { background: #dff0e8; }

.doc-divider {
  border: none;
  border-top: 1px solid #dce8ef;
  margin: 1.5rem 0 1rem;
}

footer,
.site-footer {
  color: var(--ink-muted);
  font-size: 0.86rem;
  text-align: center;
  line-height: 1.7;
}

.site-footer-line {
  margin: 0;
}

.site-footer-line + .site-footer-line {
  margin-top: 0.15rem;
}

.site-footer .footer-sep {
  margin: 0 0.45em;
  opacity: 0.55;
}

.site-footer a {
  color: var(--brand);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* -------- Portal list -------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0 1.2rem;
}

.search-box {
  flex: 1;
  min-width: 220px;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  outline: none;
}

.search-box:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 107, 87, 0.15);
}

.tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.tab-btn,
.lang-btn {
  border: 1px solid var(--line);
  background: #f0f4f8;
  color: var(--brand-deep);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.88rem;
}

.tab-btn.active,
.lang-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.battery-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #d5e4ec;
  background: #fff;
  table-layout: fixed;
}

.battery-table th,
.battery-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #e4eef3;
  text-align: left;
  vertical-align: middle;
}

.battery-table th {
  background: #e6f0f4;
  color: var(--brand-deep);
}

/* 列宽参考 tmmq.top：型号 / 化学体系 / 二维码 / 详情 */
.battery-table th:nth-child(1),
.battery-table td:nth-child(1) {
  width: 18%;
}

.battery-table th:nth-child(2),
.battery-table td:nth-child(2) {
  width: 40%;
}

.battery-table th:nth-child(3),
.battery-table td:nth-child(3) {
  width: 24%;
}

.battery-table th:nth-child(4),
.battery-table td:nth-child(4) {
  width: 18%;
}

.battery-table .chem-cell {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.4;
}

.detail-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.detail-link:hover { text-decoration: underline; }

.no-results {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.admin-entry {
  display: inline-flex;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: none;
}

.bullet-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.bullet-list li { line-height: 1.5; }

.waste-block {
  display: grid;
  gap: 0.85rem;
}

.waste-intro,
.waste-footer {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.waste-footer {
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.75rem;
}

.waste-item h4 {
  margin: 0 0 0.3rem;
  color: var(--brand-deep);
  font-size: 0.98rem;
}

.waste-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.symbol-legend {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.symbol-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.symbol-row img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2edf2;
  border-radius: 10px;
  padding: 4px;
}

.symbol-row p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media print {
  body { background: #fff; padding: 0; }
  .doc-container { box-shadow: none; padding: 0.8rem; }
  .qr-code-area, .lang-selector { display: none; }
}

/* Tablet */
@media (max-width: 900px) {
  body { padding: 0.75rem 0.5rem; }
  .doc-container { padding: 1.15rem 1rem 1.5rem; border-radius: 18px; }
  .two-column-layout { grid-template-columns: 1fr; }
  .header-right { width: 100%; align-items: flex-start; }
  .spec-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .safety-label,
  .battery-warning-blackbox {
    grid-template-columns: 1fr 6.5rem;
  }
  .metal-table tbody th { width: auto; }
  .mark-item { width: 72px; height: 72px; }
  .qr-code-area canvas,
  .qr-code-area img { width: 140px !important; height: 140px !important; }
  h1 { font-size: 1.3rem; }
  .h1-sub { font-size: 0.95rem; }
}

/* Phone — QR 扫码主场景 */
@media (max-width: 640px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
  }

  .doc-container {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 1rem 0.9rem 1.6rem;
    padding-left: max(0.9rem, env(safe-area-inset-left));
    padding-right: max(0.9rem, env(safe-area-inset-right));
  }

  .header-main {
    flex-direction: column;
    gap: 0.9rem;
  }

  .header-right {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .qr-code-area {
    padding: 6px 8px 8px;
  }

  .qr-code-area canvas,
  .qr-code-area img {
    width: 96px !important;
    height: 96px !important;
  }

  .lang-selector {
    min-width: 120px;
    min-height: 40px;
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.15rem;
    border-left-width: 4px;
    padding-left: 0.7rem;
    word-break: break-word;
  }

  .h1-sub {
    font-size: 0.92rem;
    font-weight: 600;
  }

  .subhead {
    font-size: 0.88rem;
    margin-bottom: 0.2rem;
  }

  h2 {
    font-size: 1.12rem;
    margin-top: 1.35rem;
  }

  h3 { font-size: 1.02rem; }

  .info-card,
  .compliance-badge,
  .perf-card,
  .warning-box,
  .caution-box {
    border-radius: 12px;
    padding: 0.85rem 0.9rem;
  }

  .spec-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.55rem 0;
    font-size: 0.95rem;
  }

  .spec-list .label {
    font-size: 0.82rem;
    color: var(--ink-muted);
  }

  .perf-table-wrap {
    overflow-x: visible;
    margin: 0;
    padding: 0;
  }

  .perf-card {
    overflow: visible;
  }

  .perf-card-title {
    padding: 0.85rem 0.9rem 0.45rem;
    font-size: 1.02rem;
  }

  .perf-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 0.82rem;
  }

  .perf-table th,
  .perf-table td {
    padding: 0.55rem 0.4rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
  }

  .perf-notes {
    padding: 0.65rem 0.9rem 0.9rem;
    font-size: 0.8rem;
  }

  .metal-table-wrap {
    border-radius: 10px;
  }

  .metal-table {
    display: table;
    width: 100%;
    table-layout: fixed;
    font-size: 0.86rem;
  }

  .metal-table tbody {
    display: table-row-group;
  }

  .metal-table tr {
    display: table-row;
  }

  .metal-table tbody th,
  .metal-table tbody td {
    display: table-cell;
    padding: 0.62rem 0.55rem;
    white-space: normal;
  }

  .metal-table tbody th {
    width: 34%;
  }

  .marking-icons {
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .mark-item {
    width: 64px;
    height: 64px;
  }

  .warning-text-section {
    border-right: 0;
    border-bottom: 1.5px solid #111;
    width: 100%;
  }

  .warning-icon-panel {
    padding: 0.75rem;
  }

  .safety-label,
  .battery-warning-blackbox {
    grid-template-columns: 1fr;
  }

  .warning-icon-right,
  .battery-label .warning-icon-right,
  .ingestion-label .warning-icon-right {
    width: 4.75rem;
    height: 4.75rem;
    margin: 0 auto;
  }

  .keep-out { font-size: 0.88rem; }
  .warning-desc,
  .ingestion-list { font-size: 0.82rem; }

  .file-links {
    flex-direction: column;
  }

  .file-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .symbol-row {
    grid-template-columns: 56px 1fr;
    gap: 0.65rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    max-width: none;
    min-height: 44px;
    font-size: 16px; /* 避免 iOS 自动放大 */
  }

  .tabs {
    gap: 0.4rem;
  }

  .tab-btn,
  .lang-btn {
    min-height: 40px;
    padding: 0.5rem 0.85rem;
  }

  /* 手机：保持横向表格（同 tmmq.top），化学体系格内换行完整显示 */
  .table-scroll {
    overflow-x: visible;
  }

  .battery-table {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .battery-table thead {
    display: table-header-group;
  }

  .battery-table tbody {
    display: table-row-group;
  }

  .battery-table tr {
    display: table-row;
  }

  .battery-table th,
  .battery-table td {
    display: table-cell;
    font-size: 0.82rem;
    padding: 0.65rem 0.4rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    vertical-align: top;
  }

  .battery-table th:nth-child(1),
  .battery-table td:nth-child(1) {
    width: 20%;
  }

  .battery-table th:nth-child(2),
  .battery-table td:nth-child(2) {
    width: 36%;
  }

  .battery-table th:nth-child(3),
  .battery-table td:nth-child(3) {
    width: 24%;
  }

  .battery-table th:nth-child(4),
  .battery-table td:nth-child(4) {
    width: 20%;
  }

  .battery-table .chem-cell {
    white-space: normal;
  }

  .battery-table td::before {
    content: none;
  }

  .detail-link {
    display: inline;
    font-size: 0.8rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 0 0.2rem;
    word-break: break-word;
  }
}

@media (max-width: 380px) {
  h1 { font-size: 1.05rem; }
  .qr-code-area canvas,
  .qr-code-area img {
    width: 84px !important;
    height: 84px !important;
  }
  .mark-item { width: 56px; height: 56px; }
}
