/* 基础配色（护眼柔和蓝绿系） */
:root {
  --c1: #519D9E;
  --c2: #58C9B9;
  --c3: #74DBCC;
  --c4: #9DC8C8;
  --c5: #D1B6E1;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; background: #f7fbfc; color: #1f2d3d; }

header { background: var(--c1); color: #fff; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
header h1 { margin: 0; font-size: 18px; }

.container { padding: 16px; max-width: 1200px; margin: 0 auto; }

/* 登录容器（毛玻璃半透明） */
.glass-box {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  padding: 12px;
}

/* 垂直左对齐按钮组 */
.btn-group-vertical { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.button { background: var(--c2); color: #003b3b; border: none; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.button.secondary { background: var(--c4); }
.button.danger { background: #ff6b6b; color: #fff; }
.button:disabled { opacity: 0.6; cursor: not-allowed; }

/* 表单 */
.input, .select { width: 100%; padding: 8px 10px; border: 1px solid #cdd7de; border-radius: 8px; }
.label { font-size: 12px; color: #546e7a; margin-top: 8px; }

/* 卡片固定尺寸 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 12px; }
.card { width: 150px; height: 180px; background: #fff; border: 1px solid #e6eef2; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.card .image { height: 130px; display: flex; align-items: center; justify-content: center; background: #f0f6f7; }
.card .image img { max-height: 130px; max-width: 100%; object-fit: contain; }
.card .name { height: 40px; line-height: 40px; padding: 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid #eef3f6; }

/* 区块标题与布局 */
.section { margin-top: 16px; }
.section-title { font-weight: 600; margin-bottom: 8px; }
.flex { display: flex; gap: 16px; }
.flex-col { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; }

/* 汇总表 */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #e6eef2; padding: 8px; font-size: 13px; }
.table th { background: #f4f8f9; text-align: left; }
.total-bar { display: flex; justify-content: space-between; padding: 8px; background: #eef6f7; border-radius: 8px; margin-top: 8px; }

/* 数据表格（列表模式） */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.data-table thead { background: var(--c1); color: #fff; }
.data-table th { padding: 12px; text-align: left; font-weight: 500; font-size: 13px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #e6eef2; font-size: 13px; }
.data-table tbody tr:hover { background: #f8fcfd; }
.data-table tbody tr:last-child td { border-bottom: none; }

/* 标签页 */
.tabs { display: flex; gap: 8px; }
.tab { padding: 8px 12px; background: #e7f3f5; border-radius: 8px; cursor: pointer; }
.tab.active { background: var(--c3); }

/* 简易图表容器 */
.chart { background: #fff; border: 1px solid #e6eef2; border-radius: 10px; padding: 12px; }
