/* CYDO · 主页 */

/* ===================== 主页 ===================== */
.hero {
  position: relative;
  border-radius: 22px;
  padding: 28px 30px;
  color: #fff;
  background: linear-gradient(130deg, #5a47a0 0%, #6d5ae6 60%, #8e7bf0 100%);
  box-shadow: 0 16px 36px rgba(107, 91, 210, 0.26);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.hero-kick { font-size: 13px; font-weight: 600; opacity: 0.85; letter-spacing: 2px; }
.hero-date { margin: 8px 0 0; font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; letter-spacing: -0.5px; }
.hero-meta { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}
.hero-pills { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-pill {
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-pill .n { font-size: 24px; font-weight: 800; }
.hero-pill .t { font-size: 12px; opacity: 0.82; margin-top: 2px; }

.home-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 22px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title { margin: 0; font-size: 17px; font-weight: 800; }
.section-hint { font-size: 12px; color: var(--text-3); }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.empty {
  padding: 26px 18px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

/* 课程行 */
.course-row {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  border-left: none;
  border-right: none;
  border-top: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.course-row:hover { background: var(--surface-2); }
.course-row:last-child { border-bottom: none; }
.course-bar { width: 4px; border-radius: 4px; flex: none; background: var(--accent); }
.course-row-main { min-width: 0; flex: 1; }
.course-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-meta { margin-top: 3px; font-size: 13px; color: var(--text-2); display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
}
.pill.time { color: var(--accent); background: rgba(107, 91, 210, 0.1); }

/* 事项行 */
.event-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.event-row:last-child { border-bottom: none; }
.event-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--orange); }
.event-main { flex: 1; min-width: 0; }
.event-title { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-sub { margin-top: 2px; font-size: 12px; color: var(--text-2); }
