/* 自定义样式 */
:root {
  --primary-green: #8CC63F;
  --accent-green: #73A831;
  --dark-bg: #1E1E1E;
  --card-bg: #FFFFFF;
  --card-dark: #202020;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* 全局样式 */
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  color: var(--gray-800);
  min-height: 100%;
  position: relative;
}

/* 顶部渐变区域 */
.header-gradient {
  background-color: var(--primary-green);
  background-image: linear-gradient(to bottom, var(--primary-green), var(--accent-green));
  color: white;
}

/* 圆形图标 */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 底部导航栏 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.tab-item {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.tab-item-center {
  text-decoration: none;
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-item.active {
  color: var(--primary-green);
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-green);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 胶囊形按钮 */
.btn-pill {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 卡片样式 */
.sport-card {
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.workout-card {
  border-radius: 16px;
  overflow: hidden;
}

/* 标签样式 */
.tag {
  padding: 3px 8px;
  border-radius: 50px;
  font-weight: 500;
  color: white;
}

/* 进度条 */
.progress-bar {
  height: 6px;
  background-color: var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary-green);
  border-radius: 10px;
}

/* iPhone框架 */
.iphone-frame {
  position: relative;
  width: 375px;
  height: 812px;
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  padding: 12px;
  border: 12px solid #111;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: white;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 30px;
  background: #111;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  z-index: 1000;
}

/* 工作区 */
.workspace {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px;
  min-height: 100vh;
  background: #f5f5f7;
}

/* iPad框架 */
.ipad-frame {
  width: 834px;
  height: 1194px;
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 12px solid #111;
  padding: 8px;
}

.ipad-screen {
  width: 100%;
  height: 100%;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* 自定义左内边距 */
.pl-13 {
  padding-left: 3.25rem;
}

.progress-ring {
  transform: rotate(-90deg);
}

.heart-rate-chart {
  height: 100px;
}

.blur-backdrop {
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.7);
}

.workout-card:hover {
  transform: translateY(-5px);
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 标题栏样式 */
.header-gradient {
  background: linear-gradient(to right, var(--primary-green), #9FD94A);
  color: white;
}

/* 数据标签样式 */
.data-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.data-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.dark .data-value {
  color: var(--text-light);
}

/* 列表样式 */
.list-item {
  padding: 16px;
  border-bottom: 1px solid #F2F2F2;
}

.dark .list-item {
  border-bottom: 1px solid #333;
}

/* 绿色主题类 */
.green-theme {
  background-color: var(--primary-green);
  color: white;
}

/* 黑色主题类 */
.black-theme {
  background-color: var(--primary-dark);
  color: white;
} 