
/* ===== CSS块 1 ===== */

/* 主内容 */
.container { max-width: 800px; margin: 0 auto; padding: 16px; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.page-title { font-size: 17px; font-weight: 700; color: #2d3748; }
.page-count { font-size: 12px; color: #718096; }
/* 风险筛选栏 */
.risk-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.risk-filter-btn {
  padding: 7px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  font-size: 12px;
  color: #4a5568;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.risk-filter-btn:hover { border-color: #4299e1; color: #4299e1; }
.risk-filter-btn.active {
  background: #2c5282;
  color: #fff;
  border-color: #2c5282;
}
.risk-filter-btn.high.active { background: #c53030; border-color: #c53030; }
.risk-filter-btn.medium.active { background: #c05621; border-color: #c05621; }
.risk-filter-btn.low.active { background: #276749; border-color: #276749; }
.risk-filter-btn.quick.active { background: #2b6cb0; border-color: #2b6cb0; }
.risk-filter-btn.pro.active { background: #6b46c1; border-color: #6b46c1; }
/* 统一的分享和评分区域 */
.share-rating-section {
  margin-top: 14px;
  padding: 16px;
  background: #f7fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.rating-area {
  text-align: center;
  margin-bottom: 14px;
}
.rating-label {
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}
.rating-stars {
  display: inline-flex;
  gap: 6px;
  cursor: pointer;
}
.rating-stars .star {
  font-size: 28px;
  color: #cbd5e0;
  transition: color 0.2s;
  user-select: none;
}
.rating-stars .star:hover,
.rating-stars .star.active {
  color: #f6ad55;
}
.rating-info {
  font-size: 12px;
  color: #718096;
  margin-top: 6px;
}
.share-btn-unified {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2c5282, #3182ce);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.share-btn-unified:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}
/* 记录列表 */
.record-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.record-item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.record-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f7fafc;
}
.record-info { flex: 1; min-width: 0; }
.record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.record-name { font-size: 14px; font-weight: 600; color: #2d3748; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-time { font-size: 11px; color: #a0aec0; flex-shrink: 0; margin-left: 8px; }
.record-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.risk-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.risk-high { background: #fff5f5; color: #c53030; }
.risk-medium { background: #fffaf0; color: #c05621; }
.risk-low { background: #f0fff4; color: #276749; }
.risk-none { background: #f0fff4; color: #276749; }
.record-hazard-count { font-size: 10px; color: #a0aec0; }
.record-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.record-cat { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #edf2f7; color: #718096; }
.record-summary {
  font-size: 12px;
  color: #718096;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* 加载更多 */
.load-more-btn {
  text-align: center;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: #4299e1;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
  transition: all 0.2s;
}
.load-more-btn:hover { background: #ebf8ff; }
.end-tip { text-align: center; padding: 14px; color: #a0aec0; font-size: 12px; }
/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #a0aec0;
}
.empty-icon { width: 48px; height: 48px; margin: 0 auto 12px; opacity: 0.5; }
.empty-text { font-size: 14px; margin-bottom: 4px; }
.empty-sub { font-size: 12px; }
.empty-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #2c5282, #3182ce);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
/* 加载中 */
.loading-state { text-align: center; padding: 40px 20px; }
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #4299e1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; color: #718096; }
/* 详情弹窗 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.modal-title { font-size: 16px; font-weight: 700; color: #2d3748; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #a0aec0;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.modal-close:hover { color: #4a5568; }
.modal-body { padding: 16px 20px 20px; }
/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  max-width: 90%;
  text-align: center;
}
.toast.show { opacity: 1; }
/* ===== 图片大图预览 ===== */
.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 99999; justify-content: center; align-items: center; }
.image-modal.active { display: flex; }
.image-modal img { max-width: 95%; max-height: 95%; object-fit: contain; }
.image-modal-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 30px; cursor: pointer; background: rgba(0,0,0,0.5); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
