/* 通用样式 - 模拟iPhone 15 Pro */
* {
  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: #F5F7FA;
  color: #2C3E50;
  line-height: 1.6;
}

/* iPhone 15 Pro 容器 */
.phone-container {
  width: 393px;
  height: 852px;
  margin: 20px auto;
  background: #000; /* 黑色外边框 */
  border-radius: 47px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #F5F7FA;
  border-radius: 39px;
  overflow: hidden;
  position: relative;
}

/* iOS 状态栏 */
.status-bar {
  height: 44px;
  background: transparent;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease;
  pointer-events: none; /* 让点击事件穿透 */
}

.status-bar * {
  pointer-events: auto; /* 恢复子元素的点击事件 */
}

/* 状态栏样式变体 - 现在只控制文字颜色，背景由页面头部提供 */
.status-bar.light {
  color: #000;
}

.status-bar.dark {
  color: #fff;
}

.status-bar.gradient-purple {
  color: #fff;
}

.status-bar.gradient-blue {
  color: #fff;
}

.status-bar.gradient-green {
  color: #fff;
}

.status-bar.gradient-orange {
  color: #fff;
}

.status-bar.transparent {
  color: #fff;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 页面内容区域 */
.page-content {
  height: calc(100% - 60px); /* 减去底部导航 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 44px; /* 为状态栏留出空间 */
  /* 隐藏滚动条 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 隐藏Webkit浏览器的滚动条 */
.page-content::-webkit-scrollbar {
  display: none;
}

/* 底部Tab导航 */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #9CA3AF;
  text-decoration: none;
  font-size: 10px;
  transition: color 0.2s;
}

.nav-item.active {
  color: #44A3D8;
}

.nav-item i {
  font-size: 22px;
}

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

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(90deg, #4ECDC4 0%, #44A3D8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(68, 163, 216, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(90deg, #3DB8B0 0%, #3A8FC4 100%);
  box-shadow: 0 6px 16px rgba(68, 163, 216, 0.4);
}

.btn-secondary {
  background: #E5E7EB;
  color: #2C3E50;
}

.btn-success {
  background: #52C41A;
  color: #fff;
}

.btn-danger {
  background: linear-gradient(135deg, #FFB88C 0%, #FF9A6B 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 154, 107, 0.3);
}

.btn-block {
  width: 100%;
  display: block;
}

/* 输入框样式 */
.input {
  width: 100%;
  padding: 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
}

.input:focus {
  outline: none;
  border-color: #44A3D8;
}

/* 标题样式 */
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: #2C3E50;
  margin: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
  margin: 16px 16px 8px;
}

/* 列表样式 */
.list-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #F0F0F0;
}

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

/* 标签样式 */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge-primary {
  background: #E0F7F4;
  color: #44A3D8;
}

.badge-success {
  background: #E8F5E9;
  color: #52C41A;
}

.badge-warning {
  background: #FFF3E0;
  color: #FF9A6B;
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ECDC4 0%, #44A3D8 100%);
  transition: width 0.3s;
}

/* 安全提示 */
.safety-warning {
  background: #FFF3E0;
  border-left: 4px solid #FF9A6B;
  padding: 12px 16px;
  margin: 16px;
  border-radius: 4px;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9CA3AF;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: #D1D5DB;
}

/* 加载状态 */
.loading {
  text-align: center;
  padding: 40px;
  color: #9CA3AF;
}

/* 工具类 */
.text-center {
  text-align: center;
}

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

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gap-8 {
  gap: 8px;
}

.gap-16 {
  gap: 16px;
}

