* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

.container {
  padding: 20rpx;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid #f3f3f3;
  border-top: 4rpx solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 20rpx;
  font-size: 28rpx;
  color: #999;
}

.btn {
  display: inline-block;
  padding: 20rpx 40rpx;
  font-size: 32rpx;
  border-radius: 8rpx;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #4CAF50;
  color: white;
}

.btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn-primary:active {
  background-color: #45a049;
}

.input {
  width: 100%;
  padding: 20rpx;
  font-size: 32rpx;
  border: 2rpx solid #ddd;
  border-radius: 8rpx;
  outline: none;
  transition: border-color 0.3s;
}

.input:focus {
  border-color: #4CAF50;
}

.card {
  background: white;
  border-radius: 12rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16rpx;
}

.card-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
}

.empty-tip {
  text-align: center;
  padding: 100rpx 20rpx;
  color: #999;
  font-size: 32rpx;
}

.error-tip {
  text-align: center;
  padding: 40rpx 20rpx;
  color: #f44336;
  font-size: 28rpx;
}

.loading {
  text-align: center;
  padding: 40rpx 20rpx;
  color: #999;
  font-size: 28rpx;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30rpx 20rpx;
  gap: 20rpx;
}

.page-btn {
  padding: 12rpx 24rpx;
  background-color: #4CAF50;
  color: white;
  border-radius: 8rpx;
  font-size: 28rpx;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.page-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8rpx;
  font-size: 24rpx;
  color: #666;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12rpx;
  padding: 30rpx;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.modal-title {
  font-size: 32rpx;
  font-weight: bold;
}

.modal-close {
  font-size: 40rpx;
  color: #999;
  cursor: pointer;
  padding: 0 10rpx;
}

.modal-body {
  font-size: 28rpx;
  line-height: 1.6;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  padding: 10rpx 20rpx;
  font-size: 28rpx;
  color: #4CAF50;
  cursor: pointer;
  margin-bottom: 20rpx;
}

.back-btn::before {
  content: '‹';
  font-size: 40rpx;
  margin-right: 8rpx;
}

.refresh-btn {
  position: fixed;
  bottom: 100rpx;
  right: 40rpx;
  width: 80rpx;
  height: 80rpx;
  background-color: #4CAF50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4rpx 12rpx rgba(76, 175, 80, 0.4);
  cursor: pointer;
  z-index: 100;
}

.search-bar {
  display: flex;
  gap: 20rpx;
  margin-bottom: 30rpx;
}

.search-input {
  flex: 1;
  padding: 20rpx;
  font-size: 28rpx;
  border: 2rpx solid #ddd;
  border-radius: 8rpx;
  outline: none;
}

.search-btn {
  padding: 20rpx 40rpx;
  background-color: #4CAF50;
  color: white;
  border-radius: 8rpx;
  font-size: 28rpx;
  cursor: pointer;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20rpx;
}

.grid-item {
  background: white;
  border-radius: 8rpx;
  padding: 20rpx;
  text-align: center;
}

.grid-label {
  font-size: 24rpx;
  color: #999;
  margin-bottom: 8rpx;
}

.grid-value {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
}

/* 统一导航栏样式 */
.custom-navigation {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-left {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-right {
  width: 80px;
  text-align: right;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
}

.back-btn-nav {
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.back-btn-nav:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

.user-info-display {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}
