/* 全局样式 */
page {
  background-color: #f5f5f5;
  font-size: 28rpx;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f5;
}

/* 通用样式类 */
.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

.text-primary {
  color: #4CAF50;
}

.text-secondary {
  color: #388E3C;
}

.text-accent {
  color: #FF9800;
}

.bg-white {
  background-color: #ffffff;
}

.padding {
  padding: 20rpx;
}

.padding-horizontal {
  padding-left: 20rpx;
  padding-right: 20rpx;
}

.padding-vertical {
  padding-top: 20rpx;
  padding-bottom: 20rpx;

}

.margin {
  margin: 20rpx;
}

.margin-horizontal {
  margin-left: 20rpx;
  margin-right: 20rpx;
}

.margin-vertical {
  margin-top: 20rpx;
  margin-bottom: 20rpx;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 30rpx;
  border-radius: 10rpx;
  font-size: 32rpx;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #4CAF50;
  color: white;
}

.btn-primary:hover {
  background-color: #388E3C;
}

.btn-secondary {
  background-color: #FF9800;
  color: white;
}

.btn-secondary:hover {
  background-color: #F57C00;
}

.btn-block {
  width: 100%;
}

/* 卡片样式 */
.card {
  background-color: #ffffff;
  border-radius: 10rpx;
  padding: 20rpx;
  margin: 20rpx;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 10rpx;
  font-weight: 500;
}

.form-group input,
.form-group picker,
.form-group textarea {
  width: 100%;
  padding: 20rpx;
  border: 2rpx solid #ddd;
  border-radius: 10rpx;
  font-size: 28rpx;
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40rpx;
}

.spinner {
  width: 50rpx;
  height: 50rpx;
  border: 5rpx solid #f3f3f3;
  border-top: 5rpx solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}