* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #F5F7FA;
  color: #333333;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* 导航栏 */
.navbar {
  background-color: transparent;
  box-shadow: none;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-radius: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar h1 {
  font-size: 20px;
  color: #333333;
}

.navbar .btn {
  padding: 8px 16px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.navbar .btn-login {
  background-color: transparent;
  color: #333333;
}

.navbar .btn-login:hover {
  background-color: #f5f5f5;
}

.navbar .btn-logout {
  background-color: transparent;
  color: #333333;
  border: none;
  padding: 0;
  font-size: 16px;
  text-decoration: none;
}

.navbar .btn-logout:hover {
  background-color: rgba(74, 144, 217, 0.15);
  text-decoration: none;
}

/* 卡片样式 */
.card {
  background-color: #FFFFFF;
  border-radius: 0;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333333;
}

.card-title.collapsible {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title.collapsible .collapse-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.card-title.collapsible.expanded .collapse-icon {
  transform: rotate(180deg);
}

.history-content {
  display: none;
}

.history-content.expanded {
  display: block;
}

/* 图表卡片 - 透明背景 */
.card.chart-card {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

/* AI分析卡片 - 灰色虚线边框 */
.card.ai-card {
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 2px dashed #CCCCCC;
  padding: 15px;
}

/* 图表区域 */
.chart-container {
  position: relative;
  height: 350px;
  margin-bottom: 10px;
}

/* 统计卡片 */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
  align-items: start;
}

.stat-card {
  background-color: #FFFFFF;
  border-radius: 0;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-top: 4px solid;
}

.stat-card.daiziwen {
  border-top-color: #4A90D9;
}

.stat-card.liyan {
  border-top-color: #E85D75;
}

.stat-card h3 {
  font-size: 16px;
  color: #666666;
  margin-bottom: 10px;
}

.stat-card .weight {
  font-size: 32px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 5px;
}

.stat-card .weight-unit {
  font-size: 14px;
  color: #666666;
}

.stat-card .change {
  font-size: 14px;
  margin-top: 8px;
  font-weight: 500;
}

.stat-card .change.down {
  color: #52c41a;
}

.stat-card .change.up {
  color: #ff4d4f;
}

.stat-card .bmi {
  font-size: 14px;
  color: #666666;
  margin-top: 8px;
}

/* 表单样式 */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #666666;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4A90D9;
}

/* 人员选择按钮组 */
.person-selector {
  display: flex;
  gap: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #d9d9d9;
}

.person-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background-color: #FFFFFF;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.person-btn:first-child {
  border-right: 1px solid #d9d9d9;
}

.person-btn:hover {
  background-color: #f5f5f5;
}

.person-btn.active.daiziwen {
  background-color: #4A90D9;
  color: white;
}

.person-btn.active.liyan {
  background-color: #E85D75;
  color: white;
}

/* 提交按钮 */
.btn-submit {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  color: #333333;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background-color: rgba(74, 144, 217, 0.15);
}

/* 历史记录表格 */
.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.history-table th {
  font-weight: 600;
  color: #666666;
  font-size: 14px;
}

.history-table td {
  font-size: 14px;
}

.history-table tr:hover {
  background-color: #fafafa;
}

.person-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
}

.person-tag.daiziwen {
  background-color: rgba(74, 144, 217, 0.15);
  color: #4A90D9;
}

.person-tag.liyan {
  background-color: rgba(232, 93, 117, 0.15);
  color: #E85D75;
}

.btn-delete {
  padding: 6px 12px;
  background-color: transparent;
  color: #333333;
  border: none;
  border-radius: 0;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-delete:hover {
  background-color: #ff4d4f;
  color: white;
}

/* 登录页面 */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 15px;
  background-color: transparent;
  box-shadow: none;
  border: 2px dashed #CCCCCC;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333333;
}

.login-container .form-group {
  margin-bottom: 20px;
}

.login-container input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d9