/* ============================================================
   首页考试倒计时
   桌面：与“备考进度看板”等宽，高度固定 140
   移动端：撑满内容宽度，高度 140
   ============================================================ */

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-width: 0;
}
.hero-side .hero-panel { width: 100%; }

.exam-countdown {
  position: relative;
  flex: none;
  width: 100%;
  height: 140px;
  padding: 14px 20px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfdff 56%, #eef4fb 100%);
  box-shadow:
    0 6px 0 -2px #dbe6f1,
    0 18px 34px -22px rgba(0, 0, 0, .58),
    0 4px 10px -8px rgba(16, 36, 58, .3),
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(16, 36, 58, .05);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.exam-countdown:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 164, 65, .55);
  box-shadow:
    0 9px 0 -2px #dbe6f1,
    0 24px 46px -24px rgba(0, 0, 0, .62),
    0 8px 18px -12px rgba(16, 36, 58, .3),
    inset 0 1px 0 #ffffff;
}
.exam-countdown::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
}
.exam-countdown::after {
  content: "";
  position: absolute;
  right: -54px;
  top: 50%;
  width: 230px;
  height: 230px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 43, .12);
  background: radial-gradient(circle, rgba(217, 164, 65, .1), transparent 64%);
  pointer-events: none;
}

.ec-top,
.ec-days,
.ec-sub,
.ec-foot {
  position: relative;
  z-index: 1;
}

.ec-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6b7c93;
  font-size: 11px;
  letter-spacing: .2px;
  white-space: nowrap;
}
.ec-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, .13);
}
.ec-title {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
  color: var(--navy-800);
}
.ec-tag {
  margin-left: auto;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: #8a99ad;
  font-size: 9px;
  letter-spacing: .5px;
}

.ec-days {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  line-height: 1;
}
.ec-pre {
  font-size: 11px;
  color: #8a99ad;
}
.ec-days strong {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: .95;
  letter-spacing: -1px;
  color: var(--gold-600);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 #ffffff;
}
.ec-unit {
  font-size: 11.5px;
  color: #6b7c93;
}
.ec-sub {
  margin-top: 4px;
  overflow: hidden;
  color: #96a4b7;
  font-size: 10.5px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ec-sub b {
  color: var(--navy-800);
  font-weight: 700;
}
.ec-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: #96a4b7;
  font-size: 9px;
  white-space: nowrap;
}
.ec-foot #ecStatus {
  color: var(--gold-600);
  font-weight: 600;
}

.ec-year-mark {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 0;
  transform: translateY(-50%);
  color: rgba(14, 43, 76, .045);
  font-family: var(--font-serif);
  font-size: 84px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -5px;
  pointer-events: none;
  user-select: none;
}

.exam-countdown.is-expired {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-color: var(--line);
  box-shadow:
    0 6px 0 -2px #e6edf5,
    0 16px 30px -22px rgba(0, 0, 0, .45),
    inset 0 1px 0 #ffffff;
}
.exam-countdown.is-expired .ec-days strong { color: #96a4b7; }
.exam-countdown.is-expired .ec-foot #ecStatus { color: #96a4b7; }
.exam-countdown.is-expired .ec-year-mark { color: rgba(14, 43, 76, .03); }

@media (max-width: 1080px) {
  .exam-countdown { width: 100%; }
}

@media (max-width: 640px) {
  .hero-side { gap: 12px; }
  .exam-countdown {
    width: 100%;
    height: 140px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .ec-year-mark { display: none; }
  .ec-title { max-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .exam-countdown { transition: none; }
  .exam-countdown:hover { transform: none; }
}
