/* 仓库盘点系统 - 共享样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #1f2329; }
.page { max-width: 640px; margin: 0 auto; padding: 12px; padding-bottom: 40px; }
.card { background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.page-title { font-size: 18px; font-weight: 600; margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.page-title .sub { font-size: 12px; color: #86909c; font-weight: 400; }
.muted { color: #86909c; font-size: 12px; }
.spec-line { display: flex; justify-content: space-between; align-items: center; }
.spec-tag { display: inline-block; background: #e8f3ff; color: #1664ff; border-radius: 4px; padding: 1px 6px; font-size: 12px; }
/* 规格大字标签：紧贴商品名、醒目，重要区别参数 */
.spec-line-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.spec-big { display: inline-block; background: #1664ff; color: #fff; font-weight: 700; font-size: 16px; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }
.tag { display: inline-block; border-radius: 4px; padding: 1px 8px; font-size: 12px; }
.tag-green { background: #e8f7ee; color: #00a441; }
.tag-blue { background: #e8f3ff; color: #1664ff; }
.tag-orange { background: #fff3e0; color: #ff7d00; }
.tag-gray { background: #f2f3f5; color: #86909c; }
.tag-red { background: #feeceb; color: #ee0a24; }
.row { display: flex; gap: 8px; align-items: center; }
.grow { flex: 1; }
.btn { border: none; border-radius: 6px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.btn-primary { background: #1664ff; color: #fff; }
.btn-danger { background: #ee0a24; color: #fff; }
.btn-plain { background: #fff; color: #1664ff; border: 1px solid #1664ff; }
.btn-gray { background: #f2f3f5; color: #4e5969; }
.btn-block { width: 100%; padding: 12px; font-size: 16px; }
input[type=text], input[type=number], input[type=password], textarea, select {
  width: 100%; border: 1px solid #dcdfe6; border-radius: 6px; padding: 9px 10px; font-size: 15px; outline: none;
}
input:focus, textarea:focus { border-color: #1664ff; }
.form-row { margin-bottom: 12px; }
.form-label { display: block; font-size: 13px; color: #4e5969; margin-bottom: 5px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
th, td { border: 1px solid #e5e6eb; padding: 7px 9px; text-align: left; }
th { background: #f7f8fa; white-space: nowrap; }
.nav { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.nav a { color: #1664ff; text-decoration: none; font-size: 14px; }
.progress-bar { height: 6px; background: #e5e6eb; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.progress-bar > div { height: 100%; background: #1664ff; }
.empty { text-align: center; color: #86909c; padding: 40px 0; font-size: 14px; }
/* 宽表格容器：超宽时横向滚动，不压缩列（订单明细等只读表用） */
.card-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wide-table { min-width: 720px; }
/* 商品/列表卡片网格：手机 1 列，桌面自适应多列，自适应宽屏 */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.prod-card { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); display: flex; flex-direction: column; }
.prod-card .pc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.prod-card .pc-name { font-weight: 600; font-size: 15px; }
.prod-card .pc-meta { font-size: 13px; color: #4e5969; line-height: 1.9; word-break: break-all; }
.prod-card .pc-meta b { color: #1f2329; }
.prod-card .pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
@media (max-width: 640px) { .prod-card .pc-meta { font-size: 14px; } }