
* { margin:0; padding:0; box-sizing:border-box; }
body { background:#2b2b2b; overflow-x:hidden; font-family:Arial, Helvetica, sans-serif; }
.sheet { width:210mm; height:297mm; background:#fff; position:relative; overflow:hidden;
  display:flex; flex-direction:column; padding:10mm 9mm 8mm; }
.phead { display:flex; justify-content:space-between; align-items:baseline;
  border-bottom:2.2px solid #ae0000; padding-bottom:2.5mm; margin-bottom:4mm; }
.pcat { font-size:20px; font-weight:bold; color:#111; letter-spacing:.5px; }
.pbrand { font-size:10px; color:#999; }
.grid { flex:1; display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(3,1fr); gap:3mm; }
.cell { border:1px solid #e6e6e6; border-radius:2px; padding:2.5mm 2mm 1.8mm; display:flex;
  flex-direction:column; align-items:center; background:#fff; }
.cell.empty { border:none; }
.imgbox { width:100%; flex:1; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.imgbox img { max-width:100%; max-height:100%; object-fit:contain; }
.pname { font-size:12.5px; font-weight:bold; color:#111; text-align:center; line-height:1.25;
  margin-top:1.8mm; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.psku { font-size:10.5px; color:#ae0000; font-weight:bold; margin-top:1mm; letter-spacing:.5px; }
.pfoot { display:flex; justify-content:space-between; font-size:10px; color:#999;
  border-top:1px solid #ddd; padding-top:2mm; margin-top:3mm; }
/* 封面 */
.cover-band { height:16mm; background:#ae0000; margin:-10mm -9mm 0; }
.cover-band.bottom { position:absolute; left:0; right:0; bottom:0; height:16mm; margin:0; }
.cover-logo { text-align:center; margin-top:18mm; }
.cover-logo img { max-width:82mm; max-height:40mm; }
.cover-title { text-align:center; font-size:56px; color:#111; letter-spacing:2px;
  line-height:1.12; margin-top:16mm; }
.cover-sub { text-align:center; font-size:19px; color:#666; margin-top:7mm; }
.cover-count { text-align:center; font-size:15px; color:#ae0000; font-weight:bold; margin-top:12mm; }
.cover-foot { text-align:center; margin-top:22mm; font-size:15px; color:#333; line-height:1.7; }
/* 目录 */
.toc-title { font-size:30px; color:#111; border-bottom:2.2px solid #ae0000; padding-bottom:3mm; margin-bottom:8mm; }
.toc-table { width:100%; border-collapse:collapse; }
.toc-table tr { line-height:2.15; }
.tname { font-size:15.5px; font-weight:bold; color:#222; }
.tdots { border-bottom:1px dotted #bbb; }
.tpage { font-size:14px; color:#ae0000; font-weight:bold; width:14mm; text-align:right; }
/* 封底 */
.back-title { font-size:30px; color:#111; border-bottom:2.2px solid #ae0000; padding-bottom:3mm; margin-bottom:10mm; }
.back-logo { margin-bottom:8mm; }
.back-logo img { max-width:60mm; max-height:30mm; }
.back-company { font-size:20px; color:#111; margin-bottom:5mm; }
.back-line { font-size:15px; color:#333; line-height:1.9; }
.back-note { font-size:13.5px; color:#ae0000; font-weight:bold; margin-top:9mm; }
.back-sign { margin-top:10mm; }
.back-sign img { max-width:50mm; }

.toolbar { display:flex; align-items:center; gap:10px; padding:10px 14px; background:#1d1d1d;
  color:#eee; font-size:14px; position:sticky; top:0; z-index:5; flex-wrap:wrap; }
@media (max-width:600px){ #barwrap { order:9; flex-basis:100%; } }
.toolbar a, .toolbar button { background:#ae0000; color:#fff; border:none; padding:7px 14px;
  border-radius:3px; font-size:14px; cursor:pointer; text-decoration:none; font-family:inherit; }
.toolbar button:hover, .toolbar a:hover { opacity:.88; }
#pnum { min-width:74px; text-align:center; font-weight:bold; }
#barwrap { flex:1; height:5px; background:#444; border-radius:3px; overflow:hidden; }
#bar { height:100%; width:0; background:#ae0000; transition:width .25s; }
#stage { margin:12px auto 24px; transform-origin:top center; }
.sheet { box-shadow:0 6px 24px rgba(0,0,0,.5); margin:0 auto; }
.hint { text-align:center; color:#888; font-size:12px; padding-bottom:18px; }
