/* 全局样式 */
:root {
  --primary-color: #108EE9;
  --secondary-color: #16A3FA;
  --accent-color: #FF9500;
  --dark-color: #1B1B1B;
  --success-color: #28CD41;
  --warning-color: #FF9500;
  --danger-color: #FF3B30;
  --text-color: #333333;
  --light-text: #767676;
  --bg-color: #F8F9FA;
  --card-bg: #FFFFFF;
  --border-color: #E5E7EB;
}

body {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

/* 状态栏样式 */
.status-bar {
  height: 44px;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

/* 底部导航栏样式 */
.tab-bar {
  height: 83px;
  background-color: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 20px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-top: 1px solid var(--border-color);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  text-decoration: none;
  font-size: 10px;
  padding: 8px 0;
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

/* 主内容区域 */
.main-content {
  padding: 60px 16px 100px;
  min-height: calc(100vh - 144px);
}

/* 卡片样式 */
.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 按钮样式 */
.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--bg-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
}

.btn-warning {
  background-color: var(--warning-color);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 输入框样式 */
.input-group {
  margin-bottom: 16px;
}

.input-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}

.input-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
}

/* 订单卡片样式 */
.order-card {
  border-left: 4px solid var(--primary-color);
}

.order-card.active {
  border-left-color: var(--success-color);
}

.order-card.completed {
  border-left-color: var(--accent-color);
}

.order-card.cancelled {
  border-left-color: var(--danger-color);
}

/* 地图相关样式 */
.map-container {
  height: 300px;
  background-color: #E5E7EB;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.car-marker {
  position: absolute;
  width: 32px;
  height: 32px;
  background-color: var(--primary-color);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pickup-marker, .dropoff-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pickup-marker {
  background-color: var(--success-color);
  color: white;
}

.dropoff-marker {
  background-color: var(--danger-color);
  color: white;
}

/* 状态指示器 */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-indicator.online {
  background-color: var(--success-color);
}

.status-indicator.offline {
  background-color: var(--light-text);
}

.status-indicator.busy {
  background-color: var(--warning-color);
}

/* 时间线样式 */
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  display: inline-block;
  position: relative;
  margin-right: 16px;
}

.timeline-dot.start {
  background-color: var(--success-color);
}

.timeline-dot.middle {
  background-color: var(--primary-color);
}

.timeline-dot.end {
  background-color: var(--danger-color);
}

.timeline-line {
  position: absolute;
  left: 6px;
  top: 12px;
  width: 2px;
  height: 40px;
  background-color: #ddd;
}

/* 收入统计卡片 */
.income-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

/* 用户头像样式 */
.driver-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 水波纹效果 */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.ripple:active:after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* 自定义手机框架样式 */
.phone-frame {
  width: 390px;
  height: 844px;
  background-color: white;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 35px rgba(0, 0, 0, 0.1);
  margin: 20px;
  border: 12px solid #1d1d1f;
}

.phone-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

/* 标签样式 */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-secondary {
  background-color: rgba(16, 142, 233, 0.1);
  color: var(--primary-color);
}

.badge-success {
  background-color: var(--success-color);
  color: white;
}

.badge-danger {
  background-color: var(--danger-color);
  color: white;
}

.badge-warning {
  background-color: var(--warning-color);
  color: white;
}

/* 开关样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 32px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--success-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
} 