/* 商家端H5 - 通用样式 */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  background: #f5f5f5;
}

/* 顶部导航 */
.top-nav {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
  padding: 30px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left .shop-name {
  font-size: 32px;
  font-weight: bold;
}

.nav-right .nav-icon {
  font-size: 40px;
}

/* 统计卡片 */
.stats-container {
  padding: 30px;
}

.stats-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stats-card.secondary {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
  color: #fff;
}

.stats-card.secondary .stats-label {
  color: rgba(255,255,255,0.8);
}

.stats-item {
  text-align: center;
  flex: 1;
}

.stats-value {
  font-size: 48px;
  font-weight: bold;
  color: #FF6B35;
}

.stats-card.secondary .stats-value {
  color: #fff;
}

.stats-label {
  font-size: 24px;
  color: #999;
  margin-top: 10px;
}

.stats-divider {
  width: 2px;
  height: 60px;
  background: #eee;
}

.stats-card.secondary .stats-divider {
  background: rgba(255,255,255,0.3);
}

/* 功能菜单 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0 30px;
  margin-bottom: 20px;
}

.menu-item {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.menu-icon {
  font-size: 60px;
  margin-bottom: 16px;
}

.menu-text {
  font-size: 28px;
  color: #333;
  font-weight: bold;
}

/* 规则卡片 */
.rules-card {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  margin: 0 30px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.rules-title {
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.rules-edit {
  font-size: 26px;
  color: #FF6B35;
}

.rule-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
}

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

.rule-label {
  font-size: 26px;
  color: #666;
}

.rule-value {
  font-size: 26px;
  color: #333;
  font-weight: bold;
}

/* 退出登录 */
.logout-section {
  padding: 40px 30px;
}

.logout-btn {
  width: 100%;
  height: 96px;
  background: #fff;
  color: #999;
  border: 2px solid #eee;
  border-radius: 48px;
  font-size: 30px;
}

/* 我的活动页面 */
.activity-tabs {
  display: flex;
  background: #fff;
  padding: 0 30px;
  margin-bottom: 20px;
}

.activity-tab {
  flex: 1;
  text-align: center;
  padding: 30px 0;
  font-size: 28px;
  color: #666;
  position: relative;
}

.activity-tab.active {
  color: #FF6B35;
  font-weight: bold;
}

.activity-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #FF6B35;
  border-radius: 2px;
}

.activity-list {
  padding: 0 30px;
}

.activity-item {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.activity-title {
  font-size: 30px;
  font-weight: bold;
  color: #333;
  flex: 1;
}

.activity-status {
  font-size: 24px;
  padding: 8rpx 20rpx;
  border-radius: 20px;
  margin-left: 20px;
}

.activity-status.pending {
  background: #FFF3E0;
  color: #E65100;
}

.activity-status.approved {
  background: #E8F5E9;
  color: #4CAF50;
}

.activity-status.rejected {
  background: #FFEBEE;
  color: #F44336;
}

.activity-content {
  font-size: 26px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.activity-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f5f5f5;
}

.activity-time {
  font-size: 24px;
  color: #999;
}

.activity-action {
  font-size: 26px;
  color: #FF6B35;
}

/* 核销记录页面 */
.record-tabs {
  display: flex;
  background: #fff;
  padding: 0 30px;
}

.record-tab {
  flex: 1;
  text-align: center;
  padding: 30px 0;
  font-size: 28px;
  color: #666;
}

.record-tab.active {
  color: #FF6B35;
  font-weight: bold;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 100px 0;
}

.empty-icon {
  font-size: 100px;
  margin-bottom: 20px;
}

.empty-text {
  font-size: 28px;
  color: #999;
}

/* Toast提示 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 30px 60px;
  border-radius: 16px;
  font-size: 28px;
  z-index: 9999;
}

/* 加载中 */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  width: 600px;
  max-width: 90%;
}

.modal-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

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

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

.form-input {
  width: 100%;
  height: 96px;
  border: 2px solid #eee;
  border-radius: 16px;
  padding: 0 30px;
  font-size: 28px;
  box-sizing: border-box;
}

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

.modal-btn {
  width: 100%;
  height: 96px;
  border: none;
  border-radius: 48px;
  font-size: 30px;
  font-weight: bold;
}

.modal-btn.primary {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E53 100%);
  color: #fff;
}

.modal-btn.default {
  background: #f5f5f5;
  color: #666;
  margin-top: 20px;
}
