/* ── 更新日志页 ── */
.updates-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.updates-title {
  font-size: 2rem;
  margin-bottom: .5rem;
}
.updates-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary, #64748b);
  margin-bottom: 2rem;
}

/* 布局：日历 + 列表 */
.updates-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.updates-sidebar {
  flex-shrink: 0;
  width: 300px;
  position: sticky;
  top: 80px;
}
.updates-main {
  flex: 1;
  min-width: 0;
}

/* 月历 */
.calendar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.calendar-nav button {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
  transition: border-color .2s;
}
.calendar-nav button:hover {
  border-color: #2563eb;
  color: #2563eb;
}
.calendar-month {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.calendar-grid .dow {
  font-size: 11px;
  color: #94a3b8;
  padding: 4px 0;
  font-weight: 500;
}
.calendar-grid .day {
  font-size: 12px;
  padding: 6px 2px;
  border-radius: 6px;
  color: #475569;
  cursor: default;
  transition: background .15s;
}
.calendar-grid .day.empty {
  color: transparent;
}
.calendar-grid .day.has-update {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 600;
  cursor: pointer;
}
.calendar-grid .day.has-update:hover {
  background: #bfdbfe;
}
.calendar-grid .day.selected {
  background: #2563eb;
  color: #fff;
}
.calendar-grid .day.today {
  border: 1px solid #94a3b8;
}

/* 月统计 */
.calendar-stats {
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}
.calendar-stats strong {
  color: #2563eb;
}

/* 更新列表 */
.updates-list {
  border-left: 3px solid #e2e8f0;
  padding-left: 1.5rem;
}
.update-item {
  margin-bottom: 2rem;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.update-date {
  font-size: .85rem;
  color: var(--color-text-muted, #94a3b8);
  margin-bottom: .25rem;
}
.update-item h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  color: #1e293b;
}
.update-item h3 a {
  color: inherit;
  text-decoration: none;
}
.update-item h3 a:hover {
  color: #2563eb;
}
.update-item p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.7;
  color: #64748b;
}

/* 空状态 */
.updates-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
  font-size: .95rem;
}

/* 回到全部 */
.show-all-btn {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: #2563eb;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.show-all-btn:hover {
  text-decoration: underline;
}

/* noscript 回退（爬虫 & 无 JS） */
.ns-wrap {
  border-left: 3px solid #e2e8f0;
  padding-left: 1.5rem;
  margin-top: 2rem;
}
[dir="rtl"] .ns-wrap {
  border-left: none;
  border-right: 3px solid #e2e8f0;
  padding-left: 0;
  padding-right: 1.5rem;
}
/* RTL（阿语）：翻转日历导航箭头（上一月/下一月指向随阅读方向） */
[dir="rtl"] .calendar-nav button {
  transform: scaleX(-1);
}
/* RTL：主列表时间线竖线改到右侧 */
[dir="rtl"] .updates-list {
  border-left: none;
  border-right: 3px solid #e2e8f0;
  padding-left: 0;
  padding-right: 1.5rem;
}
.ns-item {
  margin-bottom: 2rem;
}
.ns-date {
  font-size: .85rem;
  color: #94a3b8;
  margin-bottom: .25rem;
}
.ns-item h3 {
  margin: 0 0 .5rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .updates-layout {
    flex-direction: column;
  }
  .updates-sidebar {
    width: 100%;
    position: static;
  }
}
