/* ============================================
   粮仓页样式 - 参考小程序设计
   ============================================ */

/* 导航栏固定在顶部 */
.custom-nav {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* 重置 body padding - 导航栏已fixed，内容从顶部开始 */
body {
  padding-top: 44px !important;
  padding-bottom: 0 !important;
}

.can-fridge-page {
  height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #BFB6A7 0%, #CFCEB6 100%);
  overflow: hidden;
}

/* 内容区域 */
.content-fixed {
  padding: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* 头部固定区域 - 在月历视图中固定不滚动 */
.header-fixed {
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

/* 统计卡片 */
.stats-card {
  background: #FFFAE6;
  border-radius: 12px;
  padding: 6px;
  margin: 0 auto 12px;
  box-shadow: 0 2px 8px rgba(51, 52, 47, 0.08);
  max-width: 100%;
}

.stats-row {
  display: flex;
  justify-content: space-around;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #33342F;
  font-family: 'DIN Alternate', 'Roboto Mono', monospace;
}

.stat-label {
  font-size: 11px;
  color: rgba(51, 52, 47, 0.6);
  margin-top: 2px;
}

/* 控制面板容器 */
.control-panel {
  background: #FFFAE6;
  border: 1px solid rgba(51, 52, 47, 0.12);
  border-radius: 12px;
  padding: 8px 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(51, 52, 47, 0.06);
}

/* 行内统计 - 本月新增 */
.stat-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  background: rgba(51, 52, 47, 0.06);
  border-radius: 8px;
  white-space: nowrap;
}

.stat-value-inline {
  font-size: 16px;
  font-weight: 700;
  color: #33342F;
  line-height: 1.2;
}

.stat-label-inline {
  font-size: 10px;
  color: rgba(51, 52, 47, 0.6);
}

.search-submit-btn {
  padding: 8px 12px;
  background: #33342F;
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(51, 52, 47, 0.25);
  line-height: 1.2;
  white-space: nowrap;
  margin-right: -14px;
}

.search-submit-btn:active {
  transform: scale(0.98);
  box-shadow: 0 1px 4px rgba(51, 52, 47, 0.15);
}

.date-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.date-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(51, 52, 47, 0.08);
  border: none;
  border-radius: 6px;
  padding: 6px 24px 6px 10px;
  font-size: 13px;
  color: #33342F;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  min-width: 80px;
}

.select-arrow {
  position: absolute;
  right: 8px;
  font-size: 9px;
  color: rgba(51, 52, 47, 0.5);
  pointer-events: none;
}

/* 年月选择条 */
.year-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.year-nav {
  font-size: 12px;
  color: #33342F;
  cursor: pointer;
  padding: 6px 12px;
  user-select: none;
  transition: all 0.3s ease;
}

.year-nav:active {
  opacity: 0.7;
}

.year-display {
  position: relative;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.year-display:hover {
  background: rgba(51, 52, 47, 0.08);
}

.year-text {
  font-size: 16px;
  font-weight: 600;
  color: #33342F;
}

.year-input {
  font-size: 16px;
  font-weight: 600;
  color: #33342F;
  background: #fff;
  border: 2px solid #33342F;
  border-radius: 6px;
  padding: 4px 8px;
  width: 80px;
  text-align: center;
  outline: none;
}

.year-input:focus {
  border-color: #33342F;
}

.year-age {
  font-size: 11px;
  color: #33342F;
  font-weight: 500;
  background: rgba(51, 52, 47, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
}

/* 月份选择条 */
.month-scroll {
  margin-bottom: 6px;
  overflow-x: hidden;
}

.month-list {
  display: flex;
  gap: 2px;
  padding: 4px 0;
  justify-content: space-between;
}

.month-item {
  flex: 0 0 auto;
  width: calc((100% - 22px) / 12);
  min-width: 20px;
  text-align: center;
  padding: 4px 0;
  font-size: 11px;
  color: rgba(51, 52, 47, 0.5);
  background: rgba(51, 52, 47, 0.06);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 有事件的月份 - 浅灰色阴影 */
.month-item.has-event {
  color: #33342F;
  background: rgba(51, 52, 47, 0.15);
  font-weight: 500;
}

/* 选中的月份 - 深灰色 */
.month-item.active {
  background: #33342F !important;
  color: #fff !important;
}



/* 类型筛选标签 */
.filter-bar {
  display: flex;
  background: rgba(51, 52, 47, 0.06);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(51, 52, 47, 0.1);
}

.filter-item {
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  color: rgba(51, 52, 47, 0.7);
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  background: transparent;
}

.filter-item.active {
  color: #FFFFFF;
  font-weight: 600;
  background: #33342F;
}

/* 时间轴滚动区域 */
.timeline-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  margin: 0 -8px;
  padding: 0 8px;
}

/* 时间轴列表 */
.timeline-list {
  position: relative;
  padding: 20px 12px 20px;
}

/* 中间时间线 */
.timeline-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(51, 52, 47, 0.15);
  transform: translateX(-50%);
}

/* 时间轴项目 - 参考小程序 timeline-item */
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
}

/* 有日期标签的时间轴项目需要顶部间距 - 参考小程序 margin-top: 100rpx */
.timeline-item.has-date {
  margin-top: 50px;
}

/* 左侧布局 - 比赛/荣誉在时间线左侧，flex-direction: row 使卡片在左 */
.timeline-item.left {
  flex-direction: row-reverse;
}

/* 右侧布局 - 日常/商务/社会活动在时间线右侧，flex-direction: row 使卡片在右 */
.timeline-item.right {
  flex-direction: row;
}

/* 日期胶囊 - 绝对定位在中间线旁边，参考小程序 top: 18rpx */
.timeline-date-pill {
  position: absolute;
  top: -28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 10px;
  font-weight: 500;
  white-space: nowrap;
  background: #33342F;
  color: #fff;
  box-shadow: 0 1px 4px rgba(51, 52, 47, 0.25);
  z-index: 2;
}

/* 左侧卡片（比赛/荣誉）在时间线左侧，日期标签在时间线左边（卡片对面） */
.timeline-item.left .timeline-date-pill {
  right: calc(50% + 3px);
}

/* 右侧卡片（日常/商务/社会活动）在时间线右侧，日期标签在时间线右边（卡片对面） */
.timeline-item.right .timeline-date-pill {
  left: calc(50% + 3px);
}

/* 卡片容器 - 参考小程序 max-width: calc(50% - 40rpx) */
.timeline-card-wrapper {
  flex: 1;
  max-width: calc(50% - -0px);
  display: flex;
  flex-direction: column;
  gap: 0px;
}

/* 左侧卡片（比赛/荣誉）- 在时间线左侧 */
.timeline-item.left .timeline-card-wrapper {
  align-items: flex-end;
  margin-right: auto;
  margin-left: 0;
}

/* 右侧卡片（日常/商务/社会活动）- 在时间线右侧 */
.timeline-item.right .timeline-card-wrapper {
  align-items: flex-start;
  margin-left: auto;
  margin-right: 0;
}

/* 卡片样式 - 参考小程序 event-card */
.can-card {
  background: #FFFAE6;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(51, 52, 47, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(51, 52, 47, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  margin-top: 32px;
}

/* 有日期标签的时间轴项目内的卡片，顶部间距为0 */
.timeline-item.has-date .can-card {
  margin-top: 0;
}

.can-card:active {
  transform: scale(0.98);
}

/* 类型指示条 - 参考小程序 top: 12rpx; bottom: 12rpx; width: 6rpx */
.can-type-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 3px;
}

/* 左侧卡片（比赛/荣誉）在时间线左侧，指示条在卡片右侧（靠近时间线） */
.timeline-item.left .can-type-indicator {
  right: 0;
  left: auto;
  border-radius: 0 3px 3px 0;
}

/* 右侧卡片（日常/商务/社会活动）在时间线右侧，指示条在卡片左侧（靠近时间线） */
.timeline-item.right .can-type-indicator {
  left: 0;
  right: auto;
  border-radius: 3px 0 0 3px;
}

/* 类型指示器颜色 - 与小程序 all-events 页面一致 */
.can-type-indicator.type-competition {
  background: #800020;
}

.can-type-indicator.type-daily {
  background: #228b22;
}

.can-type-indicator.type-business {
  background: #1e3a8a;
}

.can-type-indicator.type-honor {
  background: #b48c32;
}

.can-type-indicator.type-social {
  background: #d2691e;
}

.can-type-indicator.type-other {
  background: #666666;
}

.can-header {
  display: flex;
  align-items: center;
}

.can-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  align-self: flex-start;
}

/* 类型标签颜色 - 与小程序 all-events 页面一致 */
/* 比赛 - 勃艮第红 */
.can-tag.competition {
  background: rgba(128, 0, 32, 0.15);
  color: #800020;
}

/* 日常 - 森林绿 */
.can-tag.daily {
  background: rgba(34, 139, 34, 0.15);
  color: #228b22;
}

/* 商务 - 深蓝 */
.can-tag.business {
  background: rgba(30, 58, 138, 0.15);
  color: #1e3a8a;
}

/* 荣誉 - 金色 */
.can-tag.honor {
  background: rgba(180, 140, 50, 0.2);
  color: #8b6914;
}

/* 社会活动 - 巧克力色 */
.can-tag.social {
  background: rgba(210, 105, 30, 0.15);
  color: #d2691e;
}

/* 其他 - 灰色 */
.can-tag.other {
  background: rgba(100, 100, 100, 0.15);
  color: #666666;
}

.can-title {
  font-size: 14px;
  font-weight: 600;
  color: #33342F;
  line-height: 1.4;
}

/* 比赛结果列表 */
.results-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(51, 52, 47, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.result-event {
  color: #33342F;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-stage {
  flex-shrink: 0;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

/* 预赛 - 灰色 */
.result-stage.stage-heat {
  background: rgba(51, 52, 47, 0.1);
  color: #33342F;
}

/* 半决赛 - 绿色 */
.result-stage.stage-semi {
  background: rgba(107, 142, 35, 0.15);
  color: #556B2F;
}

/* 决赛 - 金色 */
.result-stage.stage-final {
  background: rgba(240, 218, 90, 0.2);
  color: #B8860B;
}

.result-more {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(51, 52, 47, 0.5);
  text-align: center;
}

/* 底部统计 */
.bottom-stats {
  text-align: center;
  padding: 16px;
  margin-top: 8px;
}

.stats-text {
  font-size: 13px;
  color: rgba(51, 52, 47, 0.6);
}

.stats-text span {
  color: #33342F;
  font-weight: 600;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-text {
  font-size: 14px;
  color: rgba(51, 52, 47, 0.5);
}

/* 加载状态 */
.loading-state {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(51, 52, 47, 0.1);
  border-top-color: #33342F;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 14px;
  color: rgba(51, 52, 47, 0.6);
}

/* 重试按钮 */
.retry-btn {
  margin-top: 16px;
  padding: 10px 24px;
  background: #33342F;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.retry-btn:active {
  opacity: 0.8;
}

/* ============================================
   跨天事件样式
   ============================================ */

/* 跨天事件卡片 */
.can-card.multi-day {
  /* 移除整体卡片的左侧边框，改为内部每个事件项显示自己的类型标识 */
}

/* 日期范围显示 */
.can-date-range {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(51, 52, 47, 0.6);
  font-weight: 500;
}

/* 并列事件列表 */
.parallel-events-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(51, 52, 47, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 并列事件项 */
.parallel-event-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(51, 52, 47, 0.03);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 3px solid #666666;
}

/* 并列事件类型标识条颜色 */
.parallel-event-item.type-competition {
  border-left-color: #800020;
}

.parallel-event-item.type-daily {
  border-left-color: #228b22;
}

.parallel-event-item.type-business {
  border-left-color: #1e3a8a;
}

.parallel-event-item.type-honor {
  border-left-color: #b48c32;
}

.parallel-event-item.type-social {
  border-left-color: #d2691e;
}

.parallel-event-item.type-other {
  border-left-color: #666666;
}

.parallel-event-item:hover {
  background: rgba(51, 52, 47, 0.06);
}

.parallel-event-item:active {
  background: rgba(51, 52, 47, 0.1);
}

/* 并列事件日期 */
.parallel-event-date {
  font-size: 11px;
  color: rgba(51, 52, 47, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

/* 并列事件标题 */
.parallel-event-title {
  font-size: 12px;
  color: #33342F;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   视图切换按钮样式
   ============================================ */

.view-toggle-btn {
  margin-right: 8px;
}

.view-toggle-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.view-toggle-btn:hover .view-toggle-icon {
  opacity: 1;
}

/* 视图锁定状态 - 按钮背景变为深灰色 */
.view-toggle-btn.view-locked {
  background: #33342F;
}

.view-toggle-btn.view-locked .view-toggle-icon {
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

/* ============================================
   月历视图样式
   ============================================ */

.calendar-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  margin: 0 -8px;
  padding: 0 8px;
  position: relative;
}

/* 事件面板头部（日期标题 + 跳转按钮） */
.calendar-events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

/* 月历头部 - 滚动时固定在顶部 */
.calendar-header {
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: transparent;
}

/* 星期标题 */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  background: #33342F;
  border-radius: 8px;
  padding: 6px 0;
}

.calendar-weekdays span {
  font-size: 12px;
  color: #fff;
  font-weight: 500;
  padding: 4px 0;
}

.calendar-weekdays:hover span {
  color: rgba(255, 255, 255, 0.8);
}

/* 月历网格 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 8px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 周视图模式 - 上滑收缩后仅显示选中日期所在周 */
.calendar-grid.week-mode {
  gap: 2px;
  padding: 4px 0;
}

.calendar-grid.week-mode .calendar-day {
  aspect-ratio: auto;
  min-height: 48px;
  max-height: 60px;
  padding-top: 6px;
  border-radius: 8px;
}

.calendar-grid.week-mode .day-number {
  font-size: 15px;
}

.calendar-grid.week-mode .day-events {
  margin-top: 1px;
}

.calendar-grid.week-mode .day-event-dot {
  width: 4px;
  height: 4px;
}

/* 日期单元格 */
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  min-height: 44px;
}

.calendar-day:hover {
  background: rgba(51, 52, 47, 0.05);
}

.calendar-day.selected {
  background: #33342F;
}

.calendar-day.selected .day-number {
  color: #fff;
}

.calendar-day.other-month {
  opacity: 0.3;
}

.calendar-day.today {
  background: rgba(107, 142, 35, 0.15);
}

.calendar-day.today .day-number {
  color: #6B8E23;
  font-weight: 600;
}

/* 日期数字 */
.day-number {
  font-size: 14px;
  color: #33342F;
  font-weight: 500;
}

.calendar-day.selected .day-number {
  color: #fff;
}

/* 事件标记 */
.day-events {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.day-event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #228b22;
}

/* 比赛 - 勃艮第红 */
.day-event-dot.type-competition {
  background: #800020;
}

/* 荣誉 - 金色 */
.day-event-dot.type-honor {
  background: #B8860B;
}

/* 商务 - 深蓝 */
.day-event-dot.type-business {
  background: #1e3a8a;
}

/* 社会活动 - 巧克力色 */
.day-event-dot.type-social {
  background: #d2691e;
}

/* 其他 - 灰色 */
.day-event-dot.type-other {
  background: #666666;
}

/* 选中日期的事件标记点 - 使用亮色 */
.calendar-day.selected .day-event-dot {
  background: rgba(255, 255, 255, 0.9) !important;
}

/* 选中日期的事件面板 */
.calendar-events-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(51, 52, 47, 0.08);
}

/* 跳转今日按钮（与日期标题同行） */
.today-float-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #33342F;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.today-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.today-float-btn:active {
  transform: scale(0.95);
}

.today-btn-text {
  font-size: 14px;
  font-weight: 600;
}

/* 按钮组 */
.calendar-header-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 月/周视图切换按钮 */
.calendar-view-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #33342F;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.calendar-view-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.calendar-view-toggle-btn:active {
  transform: scale(0.95);
}

.calendar-view-toggle-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.calendar-view-toggle-text {
  font-size: 12px;
  font-weight: 600;
}

.calendar-events-date {
  font-size: 16px;
  font-weight: 600;
  color: #33342F;
}

.calendar-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 月历中的事件卡片 - 使用米色背景，标题在左，封面在右 */
.calendar-event-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  background: #FFFAE6;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(51, 52, 47, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.calendar-event-card:active {
  transform: translateY(0);
}

.calendar-event-content {
  flex: 1;
  min-width: 0;
}

.calendar-event-cover {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(51, 52, 47, 0.1);
  flex-shrink: 0;
}

.calendar-event-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.calendar-event-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* 类型标签颜色 - 与时间轴视图统一 */
/* 比赛 - 勃艮第红 */
.calendar-event-tag.type-competition {
  background: rgba(128, 0, 32, 0.15);
  color: #800020;
}

/* 日常 - 森林绿 */
.calendar-event-tag.type-daily {
  background: rgba(34, 139, 34, 0.15);
  color: #228b22;
}

/* 商务 - 深蓝 */
.calendar-event-tag.type-business {
  background: rgba(30, 58, 138, 0.15);
  color: #1e3a8a;
}

/* 荣誉 - 金色 */
.calendar-event-tag.type-honor {
  background: rgba(180, 140, 50, 0.2);
  color: #8b6914;
}

/* 社会活动 - 巧克力色 */
.calendar-event-tag.type-social {
  background: rgba(210, 105, 30, 0.15);
  color: #d2691e;
}

/* 其他 - 灰色 */
.calendar-event-tag.type-other {
  background: rgba(100, 100, 100, 0.15);
  color: #666666;
}

.calendar-event-title {
  font-size: 14px;
  font-weight: 600;
  color: #33342F;
}

.calendar-event-date-range {
  font-size: 12px;
  color: rgba(51, 52, 47, 0.5);
  margin-top: 4px;
}

/* 单条成绩卡片详情样式 */
.result-detail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.result-event {
  font-size: 13px;
  font-weight: 500;
  color: #33342F;
}

.result-stage {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(51, 52, 47, 0.1);
  color: #33342F;
}

/* 预赛 - 与成绩详情页面统一 */
.result-stage.stage-heat {
  background: rgba(51, 52, 47, 0.1);
  color: #33342F;
}

/* 半决赛 - 与成绩详情页面统一 */
.result-stage.stage-semi {
  background: rgba(107, 142, 35, 0.15);
  color: #556B2F;
}

/* 决赛 - 与成绩详情页面统一 */
.result-stage.stage-final {
  background: rgba(240, 218, 90, 0.2);
  color: #B8860B;
  font-weight: 500;
}

.result-relay-order {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(51, 52, 47, 0.08);
  color: #33342F;
}

.result-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.result-time {
  font-size: 14px;
  font-weight: 600;
  color: #33342F;
  font-family: 'Roboto Mono', monospace;
}

.result-rank {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(180, 140, 50, 0.15);
  color: #8b6914;
  font-weight: 500;
}
