#activities-page {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.activities-content {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* --- 板块卡片 --- */
.activity-section-card {
  width: 100%;
  background: var(--glass);
  border: 2px solid;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-section-card.ongoing {
  border-color: #7F4DAE;
}

.activity-section-card.upcoming {
  border-color: #C55DB5;
}

.activity-section-card.ended {
  border-color: #FDBDBD;
}

/* --- 板块标题 --- */
.section-header {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.section-header.ongoing {
  color: #7F4DAE;
  border-color: rgba(127, 77, 174, 0.3);
}

.section-header.upcoming {
  color: #C55DB5;
  border-color: rgba(197, 93, 181, 0.3);
}

.section-header.ended {
  color: #FDBDBD;
  border-color: rgba(253, 189, 189, 0.3);
}

/* --- 活动行 --- */
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}

.activity-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 仅活动名称保留主题色，其余文本统一灰色 */
.activity-row.ongoing .activity-name {
  color: #7F4DAE;
}

.activity-row.upcoming .activity-name {
  color: #C55DB5;
}

.activity-row.ended .activity-name {
  color: #FDBDBD;
}

.activity-time,
.activity-meta-item {
  color: var(--subtext);
}

.activity-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.activity-time {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.3;
  font-weight: 500;
}

.activity-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.3;
}

.activity-meta-item i {
  font-size: 11px;
  width: 14px;
  text-align: center;
  opacity: 0.8;
}

/* --- 操作按钮列 --- */
.activity-actions-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.activity-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  padding: 4px;
  font-family: inherit;
}

.activity-action-btn:active {
  transform: scale(0.92);
  background: rgba(128, 128, 128, 0.15);
}

.activity-action-btn i {
  font-size: 18px;
}

.activity-action-btn span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.activity-action-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 按钮边框主题色 */
.activity-section-card.ongoing .activity-action-btn {
  border-color: rgba(127, 77, 174, 0.4);
  color: #7F4DAE;
}

.activity-section-card.ongoing .activity-action-btn:hover {
  background: rgba(127, 77, 174, 0.1);
}

.activity-section-card.upcoming .activity-action-btn {
  border-color: rgba(197, 93, 181, 0.4);
  color: #C55DB5;
}

.activity-section-card.upcoming .activity-action-btn:hover {
  background: rgba(197, 93, 181, 0.1);
}

.activity-section-card.ended .activity-action-btn {
  border-color: rgba(253, 189, 189, 0.4);
  color: #FDBDBD;
}

.activity-section-card.ended .activity-action-btn:hover {
  background: rgba(253, 189, 189, 0.1);
}

/* --- 分割线 --- */
.activity-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  opacity: 0.5;
}

.activity-divider.ongoing {
  background: rgba(127, 77, 174, 0.25);
}

.activity-divider.upcoming {
  background: rgba(197, 93, 181, 0.25);
}

.activity-divider.ended {
  background: rgba(253, 189, 189, 0.25);
}

/* --- 社团页顶部标题与返回按钮颜色覆盖 --- */
#activities-page .sub-page-title {
  color: #7F4DAE;
}
#activities-page .sub-page-back {
  color: #7F4DAE;
  border-color: rgba(127, 77, 174, 0.3);
}
#activities-page .sub-page-back:hover {
  background: rgba(127, 77, 174, 0.08);
}



