/* ==========================================================================
   活动记录页面样式表 - activity.css
   版本号 (Version): 1.0.2
   更新时间 (Update): 2026-02-04
   更新说明 (Change Log): 
     1.0.0 - 初始版本
     1.0.1 - 修复移动端卡片布局溢出
     1.0.2 - 大幅简化动画，提升性能，降低卡顿
   ========================================================================== */

/* ============================
   基础配置 & 字体定义
   ============================ */
@font-face {
  font-family: 'FashionBitmap';
  src: url('./fronts/FashionBitmap16_0.091.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 全局重置 & 基础样式 - 解决右侧红条 */
html, body {
  width: 100%;
  overflow-x: hidden !important;
  position: relative;
  margin: 0;
  padding: 0;
  max-width: 100vw !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100% !important;
}

/* ============================
   页面基础布局（简化背景）
   ============================ */
body {
  font-family: 'FashionBitmap', sans-serif;
  color: #ffffff;
  min-height: 100vh;
  padding: clamp(20px, 5vw, 40px) clamp(10px, 2vw, 20px);
  position: relative;
  overflow-x: hidden !important;
  background: radial-gradient(circle at center, #1a0005 0%, #000 100%);
  animation: pageLoad 0.8s ease-out;
}

#particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden !important;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 10px;
  overflow: hidden !important;
}

/* ============================
   通用动画定义（仅保留一次性初始化动画）
   ============================ */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes btnShine {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

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

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

/* ============================
   组件样式（大幅简化）
   ============================ */
/* 返回按钮（简化hover） */
.back-btn {
  display: inline-block;
  padding: 10px 25px;
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  border: 2px solid rgba(230, 33, 60, 0.5);
  border-radius: 12px;
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(230,33,60,0.3);
}

.back-btn:hover {
  background: linear-gradient(135deg, rgba(230,33,60,0.5), rgba(230,33,60,0.2));
  border-color: #e6213c;
  transform: scale(1.05);
  box-shadow: 0 0 20px #e6213c;
}

/* 标题样式（移除无限脉冲） */
h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  margin-bottom: 8px;
  color: #e6213c;
  text-shadow: 0 0 10px rgba(230,33,60,0.5);
  line-height: 1.2;
  overflow: hidden;
  display: block;
  width: 100%;
  white-space: normal;
}

h1 .jp-title {
  font-size: calc(clamp(1.8rem, 6vw, 3rem) - 2px);
  opacity: 0.8;
  display: block;
  margin-top: 5px;
}

/* 登录状态（移除无限淡入） */
.login-status {
  font-size: clamp(1rem, 4vw, 1.2rem);
  color: #e6213c;
  margin: 0 0 30px 0;
  display: block;
  border: none;
  background: none;
  padding: 0;
  font-family: 'FashionBitmap', sans-serif;
}

/* 筛选排序组（简化） */
.filter-sort-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-btn-group { 
  display: flex; 
  gap: 15px; 
}

.filter-btn {
  padding: 8px 20px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(230, 33, 60, 0.5);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'FashionBitmap', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background: rgba(230,33,60,0.3);
  border-color: #e6213c;
  box-shadow: 0 0 10px rgba(230,33,60,0.3);
}

.filter-btn:hover {
  background: rgba(230,33,60,0.2);
  border-color: #e6213c;
  transform: translateY(-2px);
}

/* 下拉排序（简化） */
.sort-dropdown { 
  position: relative; 
  display: inline-block; 
}

.sort-dropdown-btn {
  padding: 8px 20px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(230, 33, 60, 0.5);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'FashionBitmap', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 120px;
}

.sort-dropdown-btn::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.sort-dropdown-btn.open::after { transform: rotate(180deg); }

.sort-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background: rgba(0,0,0,0.95);
  border: 2px solid #e6213c;
  border-radius: 8px;
  width: 100%;
  list-style: none;
  padding: 5px 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 99;
}

.sort-dropdown-menu.show { display: flex; }

.sort-dropdown-item {
  padding: 8px 20px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.sort-dropdown-item:hover {
  background: rgba(230,33,60,0.3);
  transform: translateX(3px);
}

.sort-dropdown-item.active {
  background: rgba(230,33,60,0.5);
  color: #ffffff;
}

/* 活动卡片区域（简化） */
.activity-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  align-items: stretch;
}

.activity-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(230,33,60,0.3);
  border-radius: 15px;
  padding: 30px 25px;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  animation: cardEnter 0.5s ease forwards;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.activity-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  z-index: 2;
}

.tag-future {
  background: rgba(0, 180, 0, 0.3);
  border: 1px solid #00ff00;
  color: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.2);
}

.tag-past {
  background: rgba(180, 0, 0, 0.3);
  border: 1px solid #ff0000;
  color: #ff0000;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
}

.activity-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(230,33,60,0.6);
  border-color: #ff0022;
  border-width: 2px;
}

.activity-title {
  font-size: 1.5rem;
  color: #e6213c;
  margin-bottom: 15px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(230,33,60,0.3);
}

.activity-time {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.activity-jp {
  font-size: calc(1.5rem - 2px);
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
  display: block;
}

.activity-content {
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 1.8;
  padding: 15px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(230,33,60,0.4);
  position: relative;
  z-index: 2;
}

/* 分页样式（简化） */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.page-btn {
  padding: 8px 15px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(230, 33, 60, 0.5);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn.active {
  background: rgba(230,33,60,0.3);
  border-color: #e6213c;
  box-shadow: 0 0 10px rgba(230,33,60,0.3);
  transform: translateY(-2px);
}

.page-btn:hover:not(:disabled) {
  background: rgba(230,33,60,0.2);
  border-color: #e6213c;
  transform: translateY(-2px);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255,255,255,0.05);
  border-color: rgba(230,33,60,0.2);
}

/* ============================
   滚动条美化
   ============================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(230,33,60,0.5);
  border-radius: 4px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(230,33,60,0.8);
}

/* ============================
   移动端适配（简化）
   ============================ */
@media (max-width: 768px) {
  .filter-sort-group { 
    flex-direction: column; 
    align-items: center; 
  }
  
  .activity-section { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  
  .activity-card {
    padding: 20px 15px;
    min-height: 220px;
  }
  
  .activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230,33,60,0.5);
  }
  
  .back-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #e6213c;
  }
}