/* 腊味溯源 H5 · 棕色主题，跟小程序 app.wxss 视觉对齐 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #faf6f0; color: #3d2817; }
body { max-width: 480px; margin: 0 auto; min-height: 100vh; }
.page { padding: 16px; padding-bottom: 120px; }

/* 顶部标题栏 */
.topbar {
  background: #8B4513; color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.topbar .title { font-size: 18px; font-weight: 600; }
.topbar .logout { font-size: 13px; opacity: .85; cursor: pointer; }

/* 卡片 */
.card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(139,69,19,.08); }
.card .sec-title { font-size: 14px; font-weight: 600; color: #8B4513; margin-bottom: 10px; }

/* 表单 */
.label { font-size: 13px; color: #6b5a47; margin-top: 12px; margin-bottom: 4px; }
.input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #e8ddcc; border-radius: 8px;
  background: #fff; font-size: 15px; color: #3d2817; outline: none;
}
.input:focus, select:focus, textarea:focus { border-color: #8B4513; }

/* 按钮 */
.btn {
  display: block; width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: #8B4513; color: #fff; font-size: 16px; font-weight: 500;
  cursor: pointer; margin-top: 16px; transition: opacity .15s;
}
.btn:active { opacity: .85; }
.btn.secondary { background: #c9b8a3; color: #3d2817; }
.btn[disabled] { background: #d9cdb9; cursor: not-allowed; }

/* 按钮行（两列动作） */
.row-flex { display: flex; gap: 10px; }
.row-flex .btn { flex: 1; margin-top: 0; }

/* 大按钮（首页 6 个打卡） */
.bigbtn {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px; border-radius: 12px; background: #fff;
  border: 1px solid #e8ddcc; margin-bottom: 12px; cursor: pointer;
  transition: transform .08s;
}
.bigbtn:active { transform: scale(.98); }
.bigbtn .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #8B4513, #c9b8a3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.bigbtn .name { font-size: 16px; font-weight: 500; }
.bigbtn .note { font-size: 12px; color: #8a7a67; margin-top: 2px; }

/* 批次选择器 */
.batch-pick { padding: 12px; border: 1px dashed #c9b8a3; border-radius: 10px;
  margin-bottom: 12px; text-align: center; color: #6b5a47; font-size: 14px; cursor: pointer; }
.batch-pick.active { background: #fff6e9; border-style: solid; border-color: #8B4513; color: #8B4513; font-weight: 500; }

/* 照片 */
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-grid .photo { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.photo-grid .add-btn {
  width: 80px; height: 80px; border: 1px dashed #c9b8a3; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #8B4513; font-size: 28px; cursor: pointer; background: #faf6f0;
}

/* 列表项 */
.list-item { padding: 12px; border-bottom: 1px solid #f0e8dc; display: flex; justify-content: space-between; align-items: center; }
.list-item:last-child { border-bottom: none; }
.list-item .l-title { font-size: 15px; font-weight: 500; }
.list-item .l-sub { font-size: 12px; color: #8a7a67; margin-top: 2px; }
.list-item .l-tag { font-size: 12px; background: #fff6e9; color: #8B4513; padding: 3px 8px; border-radius: 10px; }

/* toast */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: rgba(60,40,23,.92); color: #fff; padding: 10px 18px; border-radius: 24px;
  font-size: 14px; z-index: 999; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* 占位 */
.muted { color: #8a7a67; font-size: 13px; }
.empty { text-align: center; padding: 40px 20px; color: #b0a08e; }

/* 组选择（哪一缸腌的货）*/
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { border: 1px solid #e2d6c4; background: #fff; border-radius: 999px; padding: 7px 14px;
  font-size: 13px; color: #5a4634; cursor: pointer; }
.gchip.on { background: #8B4513; color: #fff; border-color: #8B4513; }
