/* 主题颜色 */
:root {
  --primary: #ff6b6b;
  --secondary: #4ecdc4;
  --dark: #292f36;
  --light: #f7f7f7;
  --gray: #e0e0e0;
  --text: #333333;
  --border: #dddddd;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* 设备模拟 */
.device-container {
  width: 375px;
  margin: 20px;
  display: inline-block;
  vertical-align: top;
}

.device {
  width: 100%;
  height: 812px;
  background-color: white;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
}

/* 状态栏 */
.status-bar {
  height: 44px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.status-bar .time {
  font-weight: 600;
}

.status-bar .right {
  display: flex;
  gap: 5px;
}

/* 标签栏 */
.tab-bar {
  height: 84px;
  background-color: white;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: sticky;
  bottom: 0;
  padding-bottom: 30px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
  font-size: 10px;
  gap: 5px;
}

.tab-item.active {
  color: var(--primary);
}

.tab-item i {
  font-size: 22px;
}

/* 卡片样式 */
.card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 商品卡片 */
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-title {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 15px;
}

.product-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #888;
  font-size: 12px;
}

/* 按钮样式 */
.btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 24px;
  font-size: 18px;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 表单元素 */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* 网格系统 */
.container {
  padding: 16px;
  height: calc(100% - 44px - 84px);
  overflow-y: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.col {
  padding: 0 8px;
  flex: 1;
}

.col-6 {
  width: 50%;
  padding: 0 8px;
}

/* 工具类 */
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.p-2 { padding: 8px; }
.p-4 { padding: 16px; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }

/* 各种组件 */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--secondary);
  color: white;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.divider {
  height: 1px;
  background-color: var(--border);
  margin: 16px 0;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 16px;
  background-color: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 44px;
  z-index: 99;
}

.nav-title {
  font-weight: 600;
  font-size: 18px;
}

.nav-actions {
  display: flex;
  gap: 16px;
} 