/* ========================================
   活动频道页样式 events.css
   对齐智库频道审美：全宽深色Hero + 卡片化布局 + 色块强调
   ======================================== */

/* =========================================
   Hero Banner — 全宽深色科技风（与智库一致）
   ========================================= */
.ev-hero {
  background: linear-gradient(150deg, #061a0e 0%, #0d3d21 35%, #1a6b3a 70%, #0f4d2a 100%);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.ev-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45,155,90,0.12) 0%, transparent 65%);
  border-radius: 50%;
}
.ev-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(240,165,0,0.06) 0%, transparent 65%);
  border-radius: 50%;
}
.ev-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ev-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,155,90,0.18);
  border: 1px solid rgba(45,155,90,0.4);
  color: #7fcc9a;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.ev-hero-content h1 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  font-family: "Noto Serif SC", serif;
  letter-spacing: -0.3px;
}
.ev-hero-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 32px;
}
.ev-hero-stats {
  display: flex;
  gap: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.ev-hero-stat {
  text-align: center;
  padding: 0 32px 0 0;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.ev-hero-stat:last-child { border-right: none; }
.ev-hero-stat strong {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  font-family: "Noto Sans SC", sans-serif;
}
.ev-hero-stat strong em {
  font-size: 18px;
  font-style: normal;
  color: rgba(255,255,255,0.7);
}
.ev-hero-stat span {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
  display: block;
}
.ev-hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  opacity: 0.9;
}
@media (max-width: 1024px) {
  .ev-hero-visual { display: none; }
  .ev-hero-inner { grid-template-columns: 1fr; }
}

/* =========================================
   主体区域
   ========================================= */
.main-content { padding: 36px 0 0; }

/* 活动区段通用 */
.events-section {
  margin-bottom: 48px;
}
.events-section .section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f4f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* =========================================
   精选活动 — 全宽大卡片（强化视觉）
   ========================================= */
.featured-event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.featured-event:hover {
  box-shadow: 0 12px 40px rgba(26,107,58,0.12), 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.fe-image {
  height: 380px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fe-img-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.fe-badge {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  letter-spacing: 0.5px;
}
.fe-badge.hot-event {
  background: rgba(229,57,53,0.92);
  color: white;
  box-shadow: 0 2px 8px rgba(229,57,53,0.3);
}
.fe-badge.type-summit {
  background: rgba(255,255,255,0.18);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
}
.fe-img-date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.65);
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(8px);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.1);
}
.fe-img-date .fei-month {
  font-size: 10px;
  opacity: 0.6;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.fe-img-date .fei-day {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  display: block;
}
.fe-info {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.fe-info h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 14px;
  font-family: "Noto Serif SC", serif;
}
.featured-event:hover .fe-info h3 { color: var(--primary); }
.fe-info .fe-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fe-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: #f8fafb;
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}
.fe-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
}
.fe-detail svg { color: var(--primary); flex-shrink: 0; }
.fe-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.btn-register {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(26,107,58,0.2);
}
.btn-register:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0d3d21);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,107,58,0.32);
}
.btn-detail {
  background: transparent;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}
.btn-detail:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-pale);
}

/* =========================================
   近期活动列表 — 卡片网格
   ========================================= */
.events-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 18px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-pale);
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,107,58,0.25);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.event-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.3s ease;
}
.event-card:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.ec-cover {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.65);
  color: white;
  padding: 7px 14px;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
}
.ec-date-badge .ecb-month {
  font-size: 10px;
  opacity: 0.65;
  display: block;
  letter-spacing: 1px;
}
.ec-date-badge .ecb-day {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
  display: block;
}
.ec-type {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
}
.ec-info {
  padding: 20px 20px 18px;
}
.ec-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Noto Serif SC", serif;
}
.event-card:hover .ec-info h4 { color: var(--primary); }
.ec-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.ec-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-light);
}
.ec-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--primary); opacity: 0.7; }
.ec-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f2f4f2;
}
.ec-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
}
.ec-status.open { background: #e8f5e9; color: #2e7d32; }
.ec-status.coming { background: #fff8e1; color: #f57c00; }
.ec-status.ended { background: #f5f5f5; color: #999; }
.ec-count {
  font-size: 11px;
  color: var(--text-light);
}

/* =========================================
   往期活动回顾
   ========================================= */
.past-events-list {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
}
.past-event-item {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 24px;
  border-bottom: 1px solid #f5f7f5;
  cursor: pointer;
  transition: all 0.2s ease;
}
.past-event-item:last-child { border-bottom: none; }
.past-event-item:hover { background: #f8fbf9; }
.pe-date {
  width: 64px;
  text-align: center;
  flex-shrink: 0;
  padding: 10px 8px;
  background: linear-gradient(135deg, var(--primary-pale), #d8f0e4);
  border-radius: 10px;
  border: 1px solid rgba(26,107,58,0.12);
}
.pe-date .pe-month {
  font-size: 10px;
  color: var(--primary);
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pe-date .pe-day {
  font-size: 24px;
  color: var(--text-main);
  font-weight: 900;
  line-height: 1.2;
  display: block;
  font-family: "Noto Sans SC", sans-serif;
}
.pe-info { flex: 1; }
.pe-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 6px;
  font-family: "Noto Serif SC", serif;
}
.past-event-item:hover .pe-info h4 { color: var(--primary); }
.pe-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-light);
}
.pe-thumb {
  width: 148px;
  height: 92px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pe-thumb-play {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  transition: all 0.25s ease;
}
.past-event-item:hover .pe-thumb-play {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}
.pe-thumb-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* =========================================
   合作咨询 CTA — 升级版
   ========================================= */
.events-cta {
  background: linear-gradient(150deg, #061a0e 0%, #0d3d21 40%, #1a6b3a 80%, #2d9b5a 100%);
  border-radius: 16px;
  padding: 52px 48px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.events-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  border-radius: 50%;
}
.events-cta h2 {
  font-size: 28px;
  color: white;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: "Noto Serif SC", serif;
  position: relative;
  z-index: 1;
}
.events-cta > p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.events-cta .cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.btn-primary-lg {
  background: white;
  color: var(--primary);
  border: none;
  padding: 13px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.btn-primary-lg:hover {
  background: #f5faf7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-outline-lg {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 13px 36px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-outline-lg:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}
.events-cta .cta-contact {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.events-cta .cta-contact span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* =========================================
   响应式
   ========================================= */
@media (max-width: 1024px) {
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-event { grid-template-columns: 1fr; }
  .fe-image { height: 270px; }
}
@media (max-width: 768px) {
  .ev-hero { padding: 40px 0 36px; }
  .ev-hero-content h1 { font-size: 24px; }
  .ev-hero-stats { flex-wrap: wrap; gap: 16px; }
  .ev-hero-stat { padding: 0 16px 0 0; margin-right: 16px; }
  .events-grid { grid-template-columns: 1fr; }
  .pe-thumb { display: none; }
  .events-cta { padding: 36px 24px; }
}
