/* ===========================================================
   ZERO 日程表 - schedule.html 専用スタイル
   =========================================================== */

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 212, 255, 0.22), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(255, 0, 255, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(0, 5, 20, 0.97), rgba(3, 10, 26, 0.99));
}

/* 主体布局：左侧导航已在 main.css 里，这里从右侧开始 */

.schedule-page {
  margin-left: 240px; /* 为左侧 nav-sidebar 预留 */
  min-height: 100vh;
  padding: 50px 6vw 60px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* 标题区 */

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}

.schedule-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  color: #e8f2ff;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.5);
}

.schedule-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: #b5c5dd;
  max-width: 520px;
}

/* 右侧 legend */

.schedule-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #d2e0ff;
  flex-wrap: wrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.type-meeting {
  background: #00e4ff;
  box-shadow: 0 0 8px rgba(0, 228, 255, 0.7);
}

.legend-dot.type-event {
  background: #ff6bd5;
  box-shadow: 0 0 8px rgba(255, 107, 213, 0.7);
}

.legend-dot.type-other {
  background: #ffc54a;
  box-shadow: 0 0 8px rgba(255, 197, 74, 0.7);
}

/* 主体：左日历 + 右时间线 */

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1.4fr);
  gap: 24px;
}

/* ================== 日历卡片 ================== */

.schedule-calendar-card {
  background: rgba(12, 18, 36, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  padding: 18px 18px 16px;
  box-sizing: border-box;
}

.calendar-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.calendar-month {
  font-size: 18px;
  color: #e0f0ff;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.calendar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  gap: 8px;
}

.calendar-nav-btn {
  border: 1px solid rgba(148, 163, 204, 0.4);
  background: radial-gradient(
      circle at 30% 0%,
      rgba(56, 189, 248, 0.3),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.9);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
}

.calendar-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.45);
  background: radial-gradient(
      circle at 30% 0%,
      rgba(96, 165, 250, 0.6),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.98);
}

.calendar-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}


.calendar-note {
  font-size: 11px;
  color: #92a5c3;
  margin-top: 4px;
}

/* 日历网格 */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.calendar-weekday {
  font-size: 11px;
  color: #9fb3d4;
  text-align: center;
  padding: 4px 0;
  border-radius: 6px;
  background: rgba(9, 14, 30, 0.9);
}

.calendar-day {
  min-height: 32px;
  padding: 6px 4px;
  text-align: center;
  font-size: 12px;
  color: #d5e3ff;
  border-radius: 8px;
  background: rgba(8, 14, 28, 0.9);
  box-sizing: border-box;
  opacity: 0.88;
}

.calendar-day.has-event {
  background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.38), rgba(6, 14, 32, 0.96));
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.4);
  font-weight: 600;
}

/* hover 手感（未来可点击过滤当日事件） */

.calendar-day.has-event:hover {
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.65);
}

/* ================== 时间线卡片 ================== */

.schedule-timeline-card {
  background: rgba(12, 18, 36, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.78);
  padding: 18px 20px 16px;
  box-sizing: border-box;
}

.schedule-timeline-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #e6f2ff;
}

/* 时间线本体 */

.schedule-timeline {
  list-style: none;
  padding: 0;
  margin: 4px 0 10px;
  position: relative;
}

.schedule-timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(0, 212, 255, 0.6),
    rgba(0, 212, 255, 0.05)
  );
}

/* 单个条目 */

.timeline-item {
  position: relative;
  padding-left: 34px;
  padding-bottom: 12px;
}

.timeline-item:last-child {
  padding-bottom: 4px;
}

/* 时间点的小圆点 */

.timeline-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #00d4ff;
  background: #020814;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
}

/* 不同类型的颜色 */

.timeline-item.type-event::before {
  border-color: #ff6bd5;
  box-shadow: 0 0 10px rgba(255, 107, 213, 0.7);
}

.timeline-item.type-other::before {
  border-color: #ffc54a;
  box-shadow: 0 0 10px rgba(255, 197, 74, 0.7);
}

/* 日期 / 文本 */

.timeline-date {
  font-size: 12px;
  color: #9fb3d4;
  margin-bottom: 2px;
}

.timeline-main {
  background: radial-gradient(circle at 0 0, rgba(0, 212, 255, 0.24), rgba(7, 14, 30, 0.95));
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 8px 10px 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.timeline-title {
  font-size: 14px;
  color: #f0f6ff;
  margin-bottom: 2px;
}

.timeline-meta {
  font-size: 12px;
  color: #b8c7e2;
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 12px;
  color: #d2dfff;
  line-height: 1.6;
}

/* 底部说明 */

.schedule-footer-note {
  margin-top: 12px;
  font-size: 11px;
  color: #90a3c0;
}

/* ================== 响应式 ================== */

@media (max-width: 1024px) {
  .schedule-page {
    margin-left: 0;
    padding: 80px 20px 50px;
  }

  .schedule-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .schedule-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-page {
    padding: 76px 16px 40px;
  }

  .schedule-timeline-card,
  .schedule-calendar-card {
    padding: 16px 14px 14px;
  }
}
