/* ===== 月光森林晚安故事会 6-1 ===== */
.mfn-page {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mfn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.mfn-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mfn-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(60, 50, 160, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 85%, rgba(20, 60, 140, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 16, 60, 0.55) 0%, rgba(8, 12, 48, 0.72) 100%);
  pointer-events: none;
}

.mfn-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 24px 12px;
  overflow-y: auto;
}

/* ===== 顶部主视觉 ===== */
.mfn-hero {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.mfn-hero-text {
  width: 380px;
  flex-shrink: 0;
  justify-content: center;
  padding: 22px 24px;
  position: relative;
}

.mfn-title {
  font-size: 34px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow:
    0 0 22px rgba(120, 150, 255, 0.8),
    0 0 46px rgba(110, 80, 220, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.5);
}

.mfn-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #C8D8FF;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mfn-subtitle .mfn-star {
  color: #FFD166;
  font-size: 12px;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.9);
}

.mfn-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.mfn-tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #C8D8FF;
  background: rgba(100, 120, 220, 0.4);
  border: 1px solid rgba(150, 170, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mfn-tag-gold {
  color: #5C3D05;
  background: linear-gradient(135deg, #FFECB3, #FFD166);
  border-color: rgba(255, 209, 102, 0.6);
  box-shadow: 0 2px 8px rgba(244, 197, 66, 0.35);
}

.mfn-hero-actions {
  display: flex;
  gap: 12px;
}

.mfn-hero-mascot {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(140, 120, 255, 0.55));
  pointer-events: none;
}

.mfn-hero-visual {
  flex: 1;
  min-width: 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(150, 170, 255, 0.22);
  box-shadow:
    0 14px 44px rgba(30, 40, 130, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mfn-hero-visual:hover {
  transform: translateY(-3px);
  box-shadow:
    0 18px 54px rgba(60, 70, 190, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 215, 100, 0.4);
}

.mfn-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mfn-hero-visual-tip {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(15, 20, 70, 0.72);
  border: 1px solid rgba(255, 215, 100, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

/* ===== 玻璃面板 ===== */
.mfn-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(28, 36, 110, 0.74) 0%, rgba(18, 24, 84, 0.8) 100%);
  border: 1px solid rgba(120, 150, 255, 0.18);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}

.mfn-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.mfn-panel-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mfn-panel-icon-text {
  font-size: 20px;
  line-height: 1;
}

.mfn-panel-more {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: rgba(180, 200, 255, 0.8);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mfn-panel-more:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* ===== 报名状态 ===== */
.mfn-join-panel {
  width: 290px;
  flex-shrink: 0;
}

.mfn-join-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #5FC88F, #3BA972);
  box-shadow: 0 2px 8px rgba(60, 180, 110, 0.35);
}

.mfn-countdown {
  text-align: center;
  padding: 6px 0;
}

.mfn-countdown-label {
  font-size: 12px;
  color: rgba(180, 200, 255, 0.8);
  margin-bottom: 10px;
}

.mfn-countdown-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mfn-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mfn-time-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(100, 120, 220, 0.5), rgba(60, 80, 180, 0.6));
  border: 1px solid rgba(150, 170, 255, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mfn-time-unit {
  font-size: 11px;
  color: rgba(180, 200, 255, 0.7);
  font-weight: 600;
}

.mfn-time-sep {
  font-size: 20px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.mfn-joined-count {
  text-align: center;
  font-size: 12px;
  color: rgba(200, 220, 255, 0.8);
  margin-top: 8px;
}

.mfn-joined-count strong {
  color: #FFD166;
  font-size: 16px;
}

/* ===== 中部三列 ===== */
.mfn-main {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.mfn-highlights-panel,
.mfn-info-panel,
.mfn-flow-panel {
  flex: 1;
  min-width: 0;
}

/* 活动亮点 */
.mfn-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mfn-highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(120, 150, 255, 0.12);
  cursor: pointer;
  transition: all 0.25s ease;
}

.mfn-highlight-item:hover {
  background: rgba(100, 120, 220, 0.2);
  transform: translateY(-3px);
  border-color: rgba(150, 170, 255, 0.3);
  box-shadow: 0 6px 16px rgba(80, 60, 180, 0.3);
}

.mfn-highlight-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mfn-highlight-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mfn-highlight-name {
  font-size: 12px;
  font-weight: 700;
  color: #E0E8FF;
  text-align: center;
}

/* 活动信息 */
.mfn-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfn-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 150, 255, 0.1);
  transition: all 0.2s ease;
}

.mfn-info-item:hover {
  background: rgba(100, 120, 220, 0.14);
  transform: translateX(3px);
}

.mfn-info-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.mfn-info-label {
  font-size: 12px;
  color: rgba(180, 200, 255, 0.75);
  width: 34px;
  flex-shrink: 0;
}

.mfn-info-value {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.mfn-info-reward {
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
}

.mfn-info-reward .mfn-info-value {
  color: #FFD166;
}

/* 活动流程 */
.mfn-flow-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mfn-flow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 150, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.mfn-flow-item:hover {
  background: rgba(100, 120, 220, 0.16);
  transform: translateX(4px);
  border-color: rgba(150, 170, 255, 0.25);
}

.mfn-flow-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.mfn-flow-time {
  font-size: 13px;
  font-weight: 900;
  color: #FFD166;
  width: 46px;
  flex-shrink: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mfn-flow-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

/* ===== 下部三列 ===== */
.mfn-row {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.mfn-mentor-panel {
  flex: 1.2;
  min-width: 0;
}

.mfn-moments-panel {
  flex: 1.4;
  min-width: 0;
}

.mfn-reviews-panel {
  flex: 1.4;
  min-width: 0;
}

/* 导师介绍 */
.mfn-mentor-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mfn-mentor-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 215, 100, 0.45);
  box-shadow: 0 4px 16px rgba(100, 60, 180, 0.45);
}

.mfn-mentor-info {
  flex: 1;
  min-width: 0;
}

.mfn-mentor-name {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mfn-mentor-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  color: #5C3D05;
  background: linear-gradient(135deg, #FFECB3, #FFD166);
}

.mfn-mentor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: rgba(220, 230, 255, 0.85);
  line-height: 1.7;
}

.mfn-mentor-list li::before {
  content: '✦ ';
  color: #FFD166;
  font-size: 10px;
}

/* 往期精彩瞬间 */
.mfn-moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mfn-moment-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(120, 150, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mfn-moment-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(255, 215, 100, 0.4);
  box-shadow: 0 10px 24px rgba(80, 60, 180, 0.4);
}

.mfn-moment-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

/* 温馨评价 */
.mfn-review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfn-review-item {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 150, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
}

.mfn-review-item:hover {
  background: rgba(100, 120, 220, 0.14);
  transform: translateX(3px);
  border-color: rgba(150, 170, 255, 0.22);
}

.mfn-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(150, 170, 255, 0.3);
}

.mfn-review-body {
  flex: 1;
  min-width: 0;
}

.mfn-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.mfn-review-name {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
}

.mfn-review-stars {
  font-size: 11px;
  color: #FFD166;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.6);
}

.mfn-review-text {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.85);
  line-height: 1.55;
}

/* ===== 按钮 ===== */
.mfn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 20px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.mfn-btn-lg {
  width: 100%;
  height: 46px;
  border-radius: 24px;
  font-size: 16px;
}

.mfn-btn-primary {
  background: linear-gradient(180deg, #FFECB3 0%, #FFD166 35%, #F4C542 65%, #E8A838 100%);
  color: #5C3D05;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  box-shadow:
    0 4px 0 #C97D20,
    0 6px 16px rgba(244, 197, 66, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mfn-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #C97D20,
    0 10px 22px rgba(244, 197, 66, 0.5);
}

.mfn-btn-primary:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #C97D20,
    0 3px 8px rgba(244, 197, 66, 0.3);
}

.mfn-btn-secondary {
  background: linear-gradient(180deg, rgba(100, 130, 255, 0.8) 0%, rgba(70, 100, 230, 0.88) 50%, rgba(50, 75, 200, 0.92) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 4px 0 rgba(30, 50, 140, 0.9),
    0 6px 16px rgba(60, 90, 220, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mfn-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 rgba(30, 50, 140, 0.9),
    0 10px 22px rgba(60, 90, 220, 0.45);
}

.mfn-btn-icon {
  font-size: 16px;
}

/* ===== 底部栏 ===== */
.mfn-bottom-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(150, 170, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mfn-bottom-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mfn-bottom-mascot {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(140, 120, 255, 0.5));
}

.mfn-bottom-text {
  font-size: 13px;
  font-weight: 800;
  color: #E8EEFF;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.mfn-bottom-reward-line {
  color: #FFD166;
  font-size: 13px;
}

.mfn-bottom-benefits {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mfn-benefits-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(220, 230, 255, 0.85);
}

.mfn-benefit-item {
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #E8EEFF;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.25s ease;
}

.mfn-benefit-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 209, 102, 0.16);
  border-color: rgba(255, 209, 102, 0.4);
}

.mfn-back-link {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: all 0.25s ease;
}

.mfn-back-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-3px);
}

.mfn-back-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
  color: #E8EEFF;
}

.mfn-back-icon {
  font-size: 16px;
}

.mfn-back-link p {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.8);
  line-height: 1.4;
  font-weight: 600;
}

/* ===== Toast 提示 ===== */
.mfn-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 40, 120, 0.95), rgba(50, 30, 100, 0.95));
  border: 1px solid rgba(255, 215, 100, 0.3);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(120, 100, 220, 0.2);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}

.mfn-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1300px) {
  .mfn-hero-text {
    width: 330px;
  }

  .mfn-title {
    font-size: 28px;
  }

  .mfn-join-panel {
    width: 260px;
  }
}

@media (max-width: 1100px) {
  .mfn-hero {
    flex-wrap: wrap;
  }

  .mfn-hero-text {
    width: 100%;
  }

  .mfn-hero-visual {
    min-height: 220px;
  }

  .mfn-join-panel {
    width: 100%;
  }

  .mfn-main,
  .mfn-row {
    flex-direction: column;
  }

  .mfn-title {
    font-size: 26px;
  }

  .mfn-benefits-title {
    display: none;
  }
}
