/* 移动端样式 */
:root {
  /* 主题颜色 */
  --primary-color: #555555;      /* 原来是 #409eff，改成偏深的灰 */
  --success-color: #67c23a;
  --warning-color: #e6a23c;
  --danger-color: #f56c6c;
  --info-color: #909399;

  /* 文本颜色保持不变 */
  --text-primary: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --text-placeholder: #c0c4cc;
  --text-disabled: #c0c4cc;

  /* 边框颜色保持不变 */
  --border-color: #dcdfe6;
  --border-light: #e4e7ed;
  --border-lighter: #ebeef5;
  --border-extra-light: #f2f6fc;

  /* 背景颜色保持不变 */
  --background: #f5f7fa;
  --background-light: #f9fafc;
  --background-lighter: #ffffff;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-regular);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #fff;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

/* 页面容器 */
.page-container {
  padding: 15px;
  padding-bottom: 65px; /* 底部导航栏高度 + 额外空间 */
}

/* 卡片样式 */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  overflow: hidden;
}

.card-header {
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

.card-body {
  padding: 15px;
}

/* 用户信息卡片 */
.user-card {
  background-color: var(--primary-color);
  color: #fff;
  padding: 20px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 24px;
}

.user-name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}

.user-phone {
  font-size: 14px;
  opacity: 0.9;
}

.user-balance {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-item {
  text-align: center;
}

.balance-value {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 5px;
}

.balance-label {
  font-size: 12px;
  opacity: 0.9;
}

/* 列表样式 */
.list {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-lighter);
}

.list-item:last-child {
  border-bottom: none;
}

.list-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.list-content {
  flex: 1;
}

.list-title {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.list-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.list-arrow {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  height: 40px;
  padding: 0 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  /* iOS 上 input 小于 16px 会自动放大，这里统一设置为 16px，避免聚焦时页面放大 */
  font-size: 16px;
  color: var(--text-primary);
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 按钮样式 */
.btn {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

/* 公告样式 */
.notice {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.notice-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.notice-icon {
  color: var(--warning-color);
  margin-right: 5px;
}

.notice-content {
  font-size: 14px;
  color: var(--text-regular);
  line-height: 1.6;
}

/* 记录列表 */
.record-list {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.record-item {
  padding: 15px;
  border-bottom: 1px solid var(--border-lighter);
}

.record-item:last-child {
  border-bottom: none;
}

.record-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.record-title {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.record-amount {
  font-size: 16px;
  font-weight: 500;
}

.record-amount.income {
  color: var(--success-color);
}

.record-amount.expense {
  color: var(--danger-color);
}

.record-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
}

/* 搜索框 */
.search-box {
  display: flex;
  background-color: #fff;
  border-radius: 4px;
  padding: 8px 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
}

.search-icon {
  color: var(--text-secondary);
  margin-right: 10px;
}

/* 响应式调整 */
@media (min-width: 768px) {
  .page-container {
    max-width: 768px;
    margin: 0 auto;
  }
}


