/* =====================================================
 * 主样式文件 - 导入所有模块
 * ===================================================== */

/* 基础样式 */
@import url('./base/variables.css');
@import url('./base/reset.css');
@import url('./base/layout.css');

/* 组件样式 */
@import url('./components/filter.css');
@import url('./components/tabs.css');
@import url('./components/buttons.css');
@import url('./components/cards.css');
@import url('./components/list-view.css');
@import url('./components/pagination.css');

/* 抽屉组件 */
@import url('./drawers/filter-drawer.css');
@import url('./drawers/rule-drawer.css');
@import url('./drawers/tier-pricing-drawer.css');
@import url('./drawers/config-drawer.css');
@import url('./drawers/share-drawer.css');
@import url('./drawers/confirm-modal.css');
@import url('./drawers/payment-drawer.css');
@import url('./drawers/order-detail-drawer.css');

/* 页面特定样式 */
@import url('./pages/my-groups.css');
@import url('./pages/orders.css');

/* 响应式样式 */
@import url('./base/responsive.css');

/* 简单的空状态样式 */
.empty-hint {
  text-align: center;
  padding: 60px 20px;
  color: #909399;
  font-size: 14px;
  width: 100%;
}

/* 空状态样式 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  width: 100%;
  min-height: 400px;
}

.empty-state-icon {
  color: #c0c4cc;
  margin-bottom: 24px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 12px;
}

.empty-state-description {
  font-size: 14px;
  color: #909399;
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.6;
}

.empty-state-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* 确保产品列表容器支持居中显示空状态 */
.deal-grid {
  width: 100%;
}

/* 当deal-grid包含空状态时，设置为flex布局 */
.deal-grid:has(.empty-state) {
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.segmented-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e4e7ed;
}

.tab-button {
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #606266;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

.tab-button:hover {
  color: #409eff;
}

.tab-button.active {
  color: #409eff;
  border-bottom-color: #409eff;
}

.tab-badge {
  background: #f0f2f5;
  color: #909399;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.tab-button.active .tab-badge {
  background: #ecf5ff;
  color: #409eff;
}

/* 我的拼团容器空状态 */
#my-groups-container:has(.empty-state) {
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 400px;
}

/* 订单容器 - 具体样式在 pages/orders.css 中定义 */
