/* 重置样式 */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f7f9fc;
  padding-bottom: 60px;
}

/* 顶部导航栏 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
}

.back-button {
  font-size: 16px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  padding: 0 15px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon {
  font-size: 20px;
  color: #666;
}

/* 主要内容区域 */
.main-container {
  padding: 54px 15px 0;
}

/* 底部导航栏 */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -1px 4px rgba(0, 21, 41, 0.08);
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #666;
  font-size: 12px;
  gap: 4px;
}

.nav-item.active {
  color: #4a8cff;
}

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

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

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

.list-item {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: #333;
}

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

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.list-item-subtitle {
  font-size: 13px;
  color: #666;
}

.list-item-right {
  color: #999;
  font-size: 14px;
  display: flex;
  align-items: center;
}

/* 通用按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  gap: 6px;
}

.btn-primary {
  background-color: #4a8cff;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #3a7deb;
}

.btn-outline {
  background-color: transparent;
  color: #4a8cff;
  border: 1px solid #4a8cff;
}

.btn-outline:hover {
  background-color: rgba(74, 140, 255, 0.1);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #4a8cff;
  outline: none;
}

/* 通用图标样式 */
.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #666;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.icon-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 通用标题样式 */
.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 15px;
  color: #333;
}

/* 通用徽章样式 */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background-color: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}

/* 通用分割线 */
.divider {
  height: 1px;
  background-color: #f0f0f0;
  margin: 15px 0;
}

/* 通用空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.empty-state-icon {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-state-text {
  font-size: 14px;
  margin-bottom: 15px;
}

/* 通用加载状态 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
}

.loading i {
  margin-right: 8px;
}

/* 通用标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
}

.tag-primary {
  background-color: #e6f7ff;
  color: #4a8cff;
}

.tag-success {
  background-color: #f6ffed;
  color: #52c41a;
}

.tag-warning {
  background-color: #fffbe6;
  color: #faad14;
}

.tag-error {
  background-color: #fff2f0;
  color: #ff4d4f;
}

/* 通用工具类 */
.text-primary { color: #4a8cff; }
.text-success { color: #52c41a; }
.text-warning { color: #faad14; }
.text-error { color: #ff4d4f; }
.text-muted { color: #999; }

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

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pl-0 { padding-left: 0; }
.pr-0 { padding-right: 0; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

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

/* 基础样式 */
:root {
  --primary-color: #4A8CFF;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* iOS UI变量 */
  --ios-notch-height: 35px;
  --ios-status-height: 44px;
  --ios-bottom-bar-height: 80px;
  --ios-safe-area-top: 47px;
  --ios-safe-area-bottom: 34px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f7fa;
  color: var(--gray-900);
  line-height: 1.5;
}

/* 移动设备样式 */
.mobile-device {
  width: 393px;
  height: 852px;
  background-color: white;
  border-radius: 55px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin: 20px auto;
  border: 10px solid #000;
}

/* 状态栏 */
.status-bar {
  height: 44px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
}

.status-bar-left {
  font-weight: bold;
}

.status-bar-right {
  display: flex;
  align-items: center;
}

.status-bar-right i {
  margin-left: 5px;
}

/* iOS 16 状态栏样式 */
.ios-status-bar {
  background-color: transparent;
  height: var(--ios-status-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px 0 25px;
  box-sizing: border-box;
  color: #000;
  font-size: 14px;
  font-weight: 500;
  padding-top: 12px;
}

/* 动态岛区域 */
.dynamic-island-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--ios-notch-height);
  pointer-events: none;
  z-index: 1001;
}

.status-bar-left {
  display: flex;
  align-items: center;
}

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

.status-bar-time {
  margin-right: 5px;
  font-weight: 600;
}

.status-bar-battery {
  display: flex;
  align-items: center;
}

.status-bar-signal i,
.status-bar-wifi i,
.status-bar-battery i {
  font-size: 14px;
}

/* 导航栏 */
.nav-bar {
  height: var(--ios-bottom-bar-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--gray-200);
  padding-bottom: var(--ios-safe-area-bottom);
  z-index: 900;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px 0;
  font-size: 12px;
}

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

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

/* 内容区域 */
.content {
  height: calc(100% - 104px); /* 状态栏高度 + 导航栏高度 */
  overflow-y: auto;
  padding: 15px;
  padding-top: calc(var(--ios-safe-area-top) + 10px);
  padding-bottom: calc(var(--ios-bottom-bar-height) + 10px);
}

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

.card-header {
  padding: 15px;
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-weight: 600;
  margin: 0;
  color: var(--gray-800);
}

.card-body {
  padding: 15px;
}

.card-footer {
  padding: 15px;
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-100);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  color: white;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary {
  color: white;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success {
  color: white;
  background-color: var(--success-color);
  border-color: var(--success-color);
}

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

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

.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-700);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid var(--gray-400);
  border-radius: 0.25rem;
  transition: border-color 0.15s;
}

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

/* 实用工具类 */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-light { color: var(--light-color) !important; }
.text-dark { color: var(--dark-color) !important; }
.text-muted { color: var(--gray-600) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }

/* 列表样式 */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-item {
  padding: 12px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
}

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

.list-item-icon {
  margin-right: 15px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-item-content {
  flex: 1;
}

.list-item-title {
  font-weight: 500;
  margin-bottom: 3px;
  font-size: 15px;
}

.list-item-subtitle {
  color: var(--gray-600);
  font-size: 13px;
}

.list-item-action {
  color: var(--gray-500);
}

/* 徽章样式 */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-secondary {
  background-color: var(--gray-200);
  color: var(--gray-800);
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-danger {
  background-color: var(--danger-color);
  color: white;
}

/* 图像样式 */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

/* 进度条 */
.progress {
  height: 8px;
  background-color: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
} 