/* O2O 商城平台 - 主样式 */

/* 导航按钮 */
.nav-btn { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: #4b5563; transition: all 0.15s; cursor: pointer; }
.nav-btn:hover, .nav-btn.active { color: #E63946; background: #fef2f2; }
.mobile-nav { color: #6b7280; transition: color 0.15s; cursor: pointer; }
.mobile-nav.active { color: #E63946; }

/* 卡片 */
.card { background: #fff; border-radius: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.07); border: 1px solid #f3f4f6; overflow: hidden; }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid #f3f4f6; display: flex; align-items: center; justify-content: space-between; }
.card-body { padding: 1.25rem; }

/* 按钮 */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; background: #E63946; color: #fff; font-weight: 600; border-radius: 0.75rem; padding: 0.625rem 1.25rem; transition: background 0.15s; cursor: pointer; }
.btn-primary:hover { background: #c1121f; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-gold { display: inline-flex; align-items: center; justify-content: center; background: #FFB703; color: #fff; font-weight: 600; border-radius: 0.75rem; padding: 0.625rem 1.25rem; transition: background 0.15s; cursor: pointer; }
.btn-gold:hover { background: #e09e00; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; border: 2px solid #E63946; color: #E63946; font-weight: 600; border-radius: 0.75rem; padding: 0.5rem 1.25rem; transition: all 0.15s; cursor: pointer; background: transparent; }
.btn-outline:hover { background: #fef2f2; }
.btn-ghost { color: #6b7280; hover: color: #374151; hover: bg: #f3f4f4; border-radius: 0.75rem; padding: 0.5rem 1rem; transition: all 0.15s; cursor: pointer; }

/* 表单 */
.form-input { width: 100%; border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 0.625rem 1rem; font-size: 0.875rem; outline: none; transition: all 0.15s; background: #fff; }
.form-input:focus { border-color: #E63946; box-shadow: 0 0 0 3px rgba(230,57,70,0.1); }
.form-input:disabled { background: #f9fafb; color: #9ca3af; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 0.375rem; }
.form-group { margin-bottom: 1rem; }

/* 徽章 */
.badge-vip { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; background: #fee2e2; color: #dc2626; font-size: 0.75rem; font-weight: 700; border-radius: 9999px; }
.badge-gold { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; background: #fef9c3; color: #a16207; font-size: 0.75rem; font-weight: 700; border-radius: 9999px; }
.badge-new { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; background: #dcfce7; color: #15803d; font-size: 0.75rem; font-weight: 700; border-radius: 9999px; }
.badge-hot { display: inline-flex; align-items: center; padding: 0.125rem 0.5rem; background: #ffedd5; color: #c2410c; font-size: 0.75rem; font-weight: 700; border-radius: 9999px; }

/* 状态点 */
.status-dot-green { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #4ade80; }
.status-dot-yellow { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #facc15; }
.status-dot-red { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #f87171; }
.status-dot-gray { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #9ca3af; }

/* 进度条 */
.progress-bar { height: 0.5rem; background: #f3f4f6; border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: #E63946; border-radius: 9999px; transition: all 0.7s; }

/* 分隔线 */
.divider { border-top: 1px dashed #e5e7eb; margin: 1rem 0; }

/* 数字大字 */
.stat-num { font-size: 1.875rem; font-weight: 800; }

/* 阴影卡 */
.shadow-card { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

/* 加载动画 */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

/* 页面过渡 */
.page-enter { animation: fadeSlideIn 0.25s ease-out; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 统计卡片渐变 */
.stat-card-red { background: linear-gradient(135deg, #E63946 0%, #ff6b6b 100%); }
.stat-card-blue { background: linear-gradient(135deg, #1D3557 0%, #457b9d 100%); }
.stat-card-gold { background: linear-gradient(135deg, #FFB703 0%, #ffd166 100%); }
.stat-card-green { background: linear-gradient(135deg, #2a9d8f 0%, #57cc99 100%); }

/* 活动区渐变背景 */
.stat-card-orange { background: linear-gradient(135deg, #f97316 0%, #ef4444 100%); }
.stat-card-orange-light { background: rgba(255,255,255,0.1); }
.stat-card-orange-badge { background: rgba(255,255,255,0.2); }

/* 商品卡悬停 */
.product-card { background: #fff; border-radius: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.07); border: 1px solid #f3f4f6; overflow: hidden; cursor: pointer; transition: all 0.2s; }
.product-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* 步骤线 */
.step-line { position: absolute; top: 1rem; left: 100%; width: 100%; height: 2px; background: #e5e7eb; }
.step-line-done { background: #E63946; }

/* 豆子进度 */
.bean-cell { width: 2rem; height: 2rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; border-width: 2px; transition: all 0.15s; }
.bean-used { background: #f3f4f6; border-color: #d1d5db; color: #9ca3af; }
.bean-today { background: #E63946; border-color: #E63946; color: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); transform: scale(1.1); }
.bean-future { background: #fff; border-color: #e5e7eb; color: #d1d5db; }