/**
 * 活动大厅页面样式
 * index.css
 */

/* ========== CSS 变量 ========== */
:root {
  --bg-main: #eaf3ff;
  --bg-main2: #f6fbff;
  --primary: #2f7df3;
  --primary-soft: #5ca6ff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(182, 204, 238, 0.9);
  --text-main: #12233d;
  --text-soft: #4b668f;
}

/* ========== 背景样式 ========== */
body { 
  background: radial-gradient(circle at top, #ffffff 0, var(--bg-main) 50%, var(--bg-main2) 100%); 
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 15%, rgba(130, 200, 255, 0.4), transparent 55%),
    radial-gradient(circle at 90% 80%, rgba(255, 198, 227, 0.35), transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

/* ========== 主容器 ========== */
.main-container { 
  padding: 30px; 
  min-height: calc(100vh - 60px); 
}

/* ========== 面包屑 ========== */
.breadcrumb { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-bottom: 24px; 
  font-size: 13px; 
}

.breadcrumb a { 
  color: var(--primary); 
  text-decoration: none; 
}

.breadcrumb a:hover { 
  text-decoration: underline; 
}

.breadcrumb span { 
  color: #999; 
}

/* ========== 毛玻璃卡片 ========== */
.glass {
  background: var(--glass-bg);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(118, 150, 209, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 220deg, rgba(96, 161, 255, 0.35), rgba(163, 148, 255, 0.2), rgba(255, 167, 204, 0.15), transparent, transparent, rgba(96, 161, 255, 0.3));
  opacity: 0.4;
  filter: blur(28px);
  z-index: -1;
  mix-blend-mode: screen;
}

/* ========== 页头样式 ========== */
.page-header { 
  padding: 32px; 
  margin-bottom: 32px; 
}

.page-title { 
  font-size: 32px; 
  font-weight: 700; 
  color: var(--text-main); 
  margin: 0 0 12px 0; 
  background: linear-gradient(135deg, var(--primary), var(--primary-soft)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text; 
}

.page-subtitle { 
  font-size: 15px; 
  color: var(--text-soft); 
  margin: 0; 
}

/* ========== 活动卡片网格 ========== */
.activity-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
  gap: 24px; 
}

.activity-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(118, 150, 209, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.activity-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 220deg, rgba(96, 161, 255, 0.35), rgba(163, 148, 255, 0.2), rgba(255, 167, 204, 0.15), transparent, transparent, rgba(96, 161, 255, 0.3));
  opacity: 0;
  filter: blur(28px);
  z-index: -1;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

.activity-card:hover::before { 
  opacity: 0.6; 
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(118, 150, 209, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* ========== 活动卡片头部 ========== */
.activity-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(232, 246, 255, 0.4) 100%);
  padding: 28px;
  border-bottom: 1px solid rgba(182, 204, 238, 0.5);
  position: relative;
}

.activity-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.activity-status {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* ========== 状态标签 ========== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-badge.active { 
  background: linear-gradient(135deg, #23b47e, #2dd4a3); 
  color: white; 
}

.status-badge.limit { 
  background: linear-gradient(135deg, #e34d59, #ff6b7a); 
  color: white; 
}

.status-badge.ended { 
  background: linear-gradient(135deg, #999, #bbb); 
  color: white; 
}

.activity-desc { 
  color: var(--text-soft); 
  font-size: 14px; 
  line-height: 1.6; 
  margin: 0; 
}

/* ========== 活动卡片主体 ========== */
.activity-body { 
  padding: 24px; 
}

.activity-meta { 
  margin-bottom: 16px; 
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

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

.meta-label { 
  color: #999; 
}

.meta-value { 
  color: #333; 
  font-weight: 500; 
}

/* ========== 次数信息 ========== */
.times-info {
  background: linear-gradient(135deg, rgba(47, 125, 243, 0.08), rgba(92, 166, 255, 0.06));
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 18px;
  border: 1px solid rgba(92, 166, 255, 0.2);
}

.times-label { 
  font-size: 13px; 
  color: var(--text-soft); 
  margin-bottom: 10px; 
  font-weight: 500; 
}

.times-value { 
  font-size: 36px; 
  color: var(--primary); 
  font-weight: 700; 
  font-family: 'Arial', sans-serif; 
  letter-spacing: -0.02em; 
}

/* ========== 抽奖按钮 ========== */
.draw-button {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(47, 125, 243, 0.25);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 13px;
}

.draw-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 125, 243, 0.35);
}

.draw-button:active { 
  transform: translateY(0); 
}

.draw-button:disabled {
  background: linear-gradient(135deg, #dcdcdc, #c8c8c8);
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== 空状态 ========== */
.empty-state, 
.loading-state {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  text-align: center;
  padding: 80px 20px;
  color: var(--text-soft);
}

.empty-icon { 
  font-size: 48px; 
  color: rgba(47, 125, 243, 0.3); 
  margin-bottom: 16px; 
}

/* ========== 加载动画 ========== */
.spinner { 
  width: 40px; 
  height: 40px; 
  margin: 0 auto 16px; 
  border: 4px solid rgba(47, 125, 243, 0.1); 
  border-top: 4px solid var(--primary); 
  border-radius: 50%; 
  animation: spin 0.8s linear infinite; 
}

@keyframes spin { 
  0% { transform: rotate(0deg); } 
  100% { transform: rotate(360deg); } 
}

/* ========== 查看中奖按钮 ========== */
.btn-win-record {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(47, 125, 243, 0.25);
  transition: all 0.3s ease;
  letter-spacing: 0.03em;
}

.btn-win-record:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 125, 243, 0.35);
}

/* ========== 工具类 ========== */
[v-cloak] { 
  display: none !important; 
}

