/* ========================================
   陪拍预约系统 - 女大学生专属风格
   配色：奶油粉、淡紫、薄荷绿
   ======================================== */

:root {
  /* 主色调 - 奶油粉色系 */
  --primary-50: #fdf2f4;
  --primary-100: #fce7eb;
  --primary-200: #f9d0d9;
  --primary-300: #f4a9ba;
  --primary-400: #ed7a96;
  --primary-500: #e34d76;
  --primary-600: #d12d5b;
  --primary-700: #b01f47;
  
  /* 辅助色 - 淡紫色 */
  --secondary-100: #f3e8ff;
  --secondary-200: #e9d5ff;
  --secondary-300: #d8b4fe;
  --secondary-400: #c084fc;
  --secondary-500: #a855f7;
  
  /* 点缀色 - 薄荷绿 */
  --accent-100: #d1fae5;
  --accent-200: #a7f3d0;
  --accent-300: #6ee7b7;
  --accent-400: #34d399;
  --accent-500: #10b981;
  
  /* 中性色 */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* 状态色 */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-pink: 0 4px 14px 0 rgba(227, 77, 118, 0.25);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ========================================
   基础样式重置
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--primary-50) 0%, #fff 50%, var(--secondary-100) 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
}

/* ========================================
   容器和布局
   ======================================== */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 481px) {
  .app-container {
    min-height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: var(--radius-xl);
  }
}

.page {
  padding: 20px;
  padding-bottom: 100px;
}

/* ========================================
   头部导航
   ======================================== */
.header {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
  padding: 24px 20px;
  color: white;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.header-icon {
  font-size: 1.75rem;
}

/* 返回按钮 */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: white;
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 12px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.back-btn:hover {
  opacity: 1;
}

/* ========================================
   卡片组件
   ======================================== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-200) 0%, var(--primary-300) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ========================================
   表单组件
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.form-label-required::after {
  content: '*';
  color: var(--error);
  margin-left: 4px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: white;
  transition: all 0.2s;
  color: var(--gray-800);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 6px;
}

.form-error {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 6px;
}

/* ========================================
   服务选择卡片
   ======================================== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.service-item:hover {
  border-color: var(--primary-300);
  background: var(--primary-50);
}

.service-item.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: var(--shadow-pink);
}

.service-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.service-radio {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.service-item.selected .service-radio {
  border-color: var(--primary-500);
  background: var(--primary-500);
}

.service-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s;
}

.service-item.selected .service-radio::after {
  transform: scale(1);
}

.service-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.service-item.selected .service-checkbox {
  border-color: var(--primary-500);
  background: var(--primary-500);
}

.service-checkbox::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
  transform: scale(0);
  transition: transform 0.2s;
}

.service-item.selected .service-checkbox::after {
  transform: scale(1);
}

.service-info {
  flex: 1;
}

.service-name {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.service-desc {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.service-price {
  font-weight: 700;
  color: var(--primary-500);
  font-size: 1.125rem;
}

.service-unit {
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: normal;
}

/* 附加服务数量输入 */
.service-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-left: 36px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--gray-600);
  transition: all 0.2s;
}

.quantity-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-500);
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-input {
  width: 60px;
  text-align: center;
  padding: 6px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
}

.quantity-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ========================================
   日期选择器
   ======================================== */
.date-picker-wrapper {
  position: relative;
}

.date-picker-input {
  width: 100%;
  padding: 12px 16px;
  padding-left: 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.date-picker-input:focus {
  outline: none;
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.date-picker-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--primary-500);
}

/* 自定义日历 */
.calendar-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  margin-top: 8px;
  border: 1px solid var(--gray-100);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
}

.calendar-nav:hover {
  background: var(--primary-100);
  color: var(--primary-500);
}

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

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day-label {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  padding: 8px 0;
  font-weight: 500;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled) {
  background: var(--primary-50);
  border-color: var(--primary-200);
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
  color: white;
  box-shadow: var(--shadow-pink);
}

.calendar-day.disabled {
  color: var(--gray-300);
  cursor: not-allowed;
}

.calendar-day.today {
  border-color: var(--primary-400);
  font-weight: 600;
}

.calendar-day-dot {
  width: 4px;
  height: 4px;
  background: var(--accent-400);
  border-radius: 50%;
  margin-top: 2px;
}

.calendar-day.selected .calendar-day-dot {
  background: white;
}

/* ========================================
   时段选择
   ======================================== */
.slots-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.slot-item {
  padding: 16px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.slot-item:hover:not(.disabled) {
  border-color: var(--primary-300);
  background: var(--primary-50);
}

.slot-item.selected {
  border-color: var(--primary-500);
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
  color: white;
  box-shadow: var(--shadow-pink);
}

.slot-item.disabled {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  border-color: var(--gray-200);
}

.slot-item.booked {
  background: var(--gray-100);
  color: var(--gray-400);
  cursor: not-allowed;
  border-color: var(--gray-200);
  position: relative;
}

.slot-item.booked::after {
  content: '已约满';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.625rem;
  background: var(--gray-300);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.slot-time {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.slot-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.slots-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.slots-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ========================================
   价格汇总卡
   ======================================== */
.price-summary {
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 20px;
}

.price-summary-title {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px dashed var(--gray-200);
}

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

.price-item-label {
  color: var(--gray-600);
}

.price-item-value {
  color: var(--gray-800);
  font-weight: 500;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 2px solid var(--primary-200);
}

.price-total-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.price-total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-500);
}

/* ========================================
   按钮
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
  color: white;
  box-shadow: var(--shadow-pink);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 77, 118, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: var(--primary-500);
  border: 2px solid var(--primary-200);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-50);
  border-color: var(--primary-400);
}

.btn-danger {
  background: linear-gradient(135deg, #f87171 0%, var(--error) 100%);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* 底部固定按钮 */
.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 16px 20px 24px;
  background: linear-gradient(to top, white 70%, transparent);
}

/* ========================================
   订单详情卡片
   ======================================== */
.order-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.order-header {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-100) 100%);
  padding: 20px;
  text-align: center;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.order-status-pending {
  background: #fef3c7;
  color: #d97706;
}

.order-status-paid {
  background: #d1fae5;
  color: #059669;
}

.order-status-cancelled {
  background: #f3f4f6;
  color: #6b7280;
}

.order-status-completed {
  background: #dbeafe;
  color: #2563eb;
}

.order-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  font-family: monospace;
}

.order-body {
  padding: 20px;
}

.order-section {
  margin-bottom: 20px;
}

.order-section:last-child {
  margin-bottom: 0;
}

.order-section-title {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.order-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.order-info-row:last-child {
  border-bottom: none;
}

.order-info-label {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.order-info-value {
  color: var(--gray-800);
  font-weight: 500;
  font-size: 0.875rem;
  text-align: right;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.order-item-info {
  flex: 1;
}

.order-item-name {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.order-item-detail {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.order-item-price {
  font-weight: 700;
  color: var(--primary-500);
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 2px solid var(--gray-200);
  margin-top: 16px;
}

.order-total-label {
  font-size: 1rem;
  font-weight: 600;
}

.order-total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-500);
}

.order-footer {
  padding: 16px 20px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 12px;
}

/* ========================================
   查单表单
   ======================================== */
.lookup-form {
  max-width: 400px;
  margin: 0 auto;
}

.lookup-form .form-group {
  margin-bottom: 20px;
}

.lookup-tips {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 24px;
}

.lookup-tips-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

/* ========================================
   成功页面
   ======================================== */
.success-page {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-300) 0%, var(--accent-400) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.3);
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.success-desc {
  color: var(--gray-500);
  margin-bottom: 32px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
  margin: 0 auto;
}

/* ========================================
   弹窗
   ======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 360px;
  padding: 24px;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s;
  box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: var(--warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

.modal-icon.danger {
  background: var(--error);
  color: white;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--gray-800);
}

.modal-desc {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

/* ========================================
   加载状态
   ======================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  margin-left: 12px;
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 16px;
}

/* ========================================
   空状态
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.875rem;
}

/* ========================================
   错误提示
   ======================================== */
.error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #dc2626;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.success-alert {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #16a34a;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

/* ========================================
   底部导航
   ======================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s;
  border-radius: var(--radius-md);
}

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

.nav-icon {
  font-size: 1.5rem;
}

/* ========================================
   装饰元素
   ======================================== */
.decoration-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.decoration-blob-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-300);
  top: -100px;
  right: -100px;
}

.decoration-blob-2 {
  width: 250px;
  height: 250px;
  background: var(--secondary-300);
  bottom: 10%;
  left: -80px;
}

/* ========================================
   工具类
   ======================================== */
.hidden {
  display: none !important;
}

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

.text-primary {
  color: var(--primary-500);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-error {
  color: var(--error);
}

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

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   响应式调整
   ======================================== */
@media (max-width: 480px) {
  .page {
    padding: 16px;
    padding-bottom: 100px;
  }
  
  .slots-container {
    grid-template-columns: 1fr;
  }
  
  .header h1 {
    font-size: 1.25rem;
  }
}
