/* =====================================================================
 * 日历卡片样式（AnZhiYu 主题适配版 - 单卡片垂直布局）
 * ===================================================================== */

/* 卡片容器 */
.card-widget-calendar-custom {
  padding: 18px 20px !important;
  position: relative;
  border-radius: 12px;
}

/* 卡片标题 */
.card-widget-calendar-custom .item-headline {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--anzhiyu-secondtext);
  letter-spacing: 0.5px;
}

.card-widget-calendar-custom .item-headline .anzhiyufont {
  margin-right: 6px;
  font-size: 15px;
  color: var(--anzhiyu-main);
}

/* ===== 顶部日期区 ===== */
#calendar-header {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--anzhiyu-card-border);
}

#calendar-header .cal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.1;
}

#calendar-date {
  font-size: 34px;
  font-weight: 700;
  color: var(--anzhiyu-main);
  letter-spacing: 1px;
  line-height: 1;
  font-family: 'DIN', 'Inter', -apple-system, sans-serif;
}

#calendar-week {
  font-size: 14px;
  font-weight: 600;
  color: var(--anzhiyu-fontcolor);
  line-height: 1.3;
}

#calendar-solar {
  font-size: 12px;
  color: var(--anzhiyu-secondtext);
  margin-top: 2px;
  line-height: 1.3;
}

#calendar-lunar {
  font-size: 12px;
  color: var(--anzhiyu-secondtext);
  margin-top: 6px;
  line-height: 1.4;
}

#calendar-year-day {
  font-size: 11px;
  color: var(--anzhiyu-thirdtext);
  margin-top: 3px;
  line-height: 1.4;
}

/* ===== 月历网格 ===== */
#calendar-main {
  width: 100%;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--anzhiyu-card-border);
}

#calendar-main .calendar-weekdays {
  display: flex;
  margin-bottom: 4px;
}

#calendar-main .calendar-weekday {
  width: calc(100% / 7);
  text-align: center;
  font-size: 11px;
  color: var(--anzhiyu-thirdtext);
  font-weight: 500;
}

.calendar-r0,
.calendar-r1,
.calendar-r2,
.calendar-r3,
.calendar-r4,
.calendar-r5 {
  display: flex;
}

.calendar-d0,
.calendar-d1,
.calendar-d2,
.calendar-d3,
.calendar-d4,
.calendar-d5,
.calendar-d6 {
  width: calc(100% / 7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 0;
}

#calendar-main a {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 22px;
  text-align: center;
  color: var(--anzhiyu-fontcolor);
  text-decoration: none;
  transition: all 0.2s ease;
}

#calendar-main a.now {
  background: var(--anzhiyu-main);
  color: #fff;
  font-weight: 700;
}

/* ===== 除夕倒计时 ===== */
#schedule-countdown {
  text-align: center;
  margin-bottom: 16px;
  padding: 10px;
  background: var(--anzhiyu-secondbg);
  border-radius: 8px;
}

#schedule-countdown .countdown-label {
  font-size: 12px;
  color: var(--anzhiyu-secondtext);
  margin-bottom: 2px;
}

#schedule-countdown .countdown-days {
  font-size: 24px;
  font-weight: 800;
  color: var(--anzhiyu-main);
  line-height: 1;
}

#schedule-countdown .countdown-unit {
  font-size: 12px;
  color: var(--anzhiyu-secondtext);
  margin-left: 2px;
}

/* ===== 进度条区 ===== */
#schedule-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-row .schedule-label {
  font-size: 12px;
  color: var(--anzhiyu-secondtext);
  width: 36px;
  flex-shrink: 0;
  font-weight: 500;
}

.schedule-row .schedule-bar-wrap {
  flex: 1;
  position: relative;
  height: 16px;
}

.schedule-row progress {
  width: 100%;
  height: 6px;
  border: none;
  border-radius: 3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}

/* Webkit 进度条 */
progress::-webkit-progress-bar {
  background: var(--anzhiyu-secondbg);
  border-radius: 3px;
  overflow: hidden;
}

progress::-webkit-progress-value {
  background: var(--anzhiyu-main);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Firefox 进度条 */
progress::-moz-progress-bar {
  background: var(--anzhiyu-main);
  border-radius: 3px;
}

.schedule-row .schedule-percent {
  font-size: 11px;
  color: var(--anzhiyu-fontcolor);
  font-weight: 600;
  width: 38px;
  text-align: right;
  flex-shrink: 0;
}

.schedule-row .schedule-remain {
  font-size: 10px;
  color: var(--anzhiyu-thirdtext);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}
