/* 更新日志页 - 页面专属样式 */
.updates-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.updates-page-head {
  text-align: center;
  margin-bottom: 36px;
}
.updates-page-title {
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}
.updates-page-sub {
  font-size: 15px;
  color: #64748b;
}

/* 系统切换 Tab */
.updates-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.updates-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155 !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s;
}
.updates-tab:hover {
  color: #0d9488 !important;
  background: #ecfdf5;
  border-color: #99f6e4;
}
.updates-tab.active {
  background: #0d9488;
  color: #fff !important;
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13,148,136,.25);
}
.updates-tab .ut-ver {
  font-size: 12px;
  background: rgba(13,148,136,.10);
  color: #0d9488 !important;
  border-radius: 6px;
  padding: 2px 8px;
}
.updates-tab.active .ut-ver {
  background: rgba(255,255,255,.22);
  color: #fff !important;
}

/* 正式版 / 内测版 子切换 */
.updates-channels {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -10px 0 24px;
}
.updates-channel {
  display: inline-block;
  padding: 6px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b !important;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all .2s;
}
.updates-channel:hover {
  color: #0d9488 !important;
  border-color: #99f6e4;
  background: #ecfdf5;
}
.updates-channel.active {
  color: #fff !important;
  background: #0d9488;
  border-color: #0d9488;
  box-shadow: 0 3px 10px rgba(13,148,136,.22);
}

/* 当前系统信息卡片 */
.updates-sysinfo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-radius: 14px;
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.usi-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.usi-desc {
  font-size: 13px;
  opacity: .85;
  line-height: 1.6;
  max-width: 560px;
}
.usi-right {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.usi-item {
  text-align: center;
}
.usi-label {
  display: block;
  font-size: 12px;
  opacity: .7;
  margin-bottom: 4px;
}
.usi-val {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255,255,255,.18);
  border-radius: 8px;
  padding: 4px 14px;
}

/* 更新记录列表 */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.updates-item {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  transition: box-shadow .2s, border-color .2s;
}
.updates-item:hover {
  border-color: #99f6e4;
  box-shadow: 0 6px 18px rgba(15,118,110,.08);
}
.ui-left {
  flex: 0 0 auto;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}
.ui-ver {
  font-size: 14px;
  font-weight: 700;
  color: #0d9488;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 4px 12px;
  white-space: nowrap;
}
.ui-time {
  font-size: 12px;
  color: #94a3b8;
}
.ui-body {
  flex: 1;
  min-width: 0;
}
.ui-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.5;
}
.ui-content {
  font-size: 13px;
  color: #64748b;
  line-height: 1.8;
  white-space: pre-line;
  word-break: break-word;
}

/* 空状态 */
.updates-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.ue-icon {
  font-size: 44px;
  margin-bottom: 12px;
}
.ue-text {
  font-size: 16px;
  color: #475569;
  font-weight: 500;
  margin-bottom: 6px;
}
.ue-sub {
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .updates-page { padding: 28px 16px 60px; }
  .updates-tabs { gap: 8px; }
  .updates-tab { padding: 8px 14px; font-size: 14px; }
  .updates-channels { margin: -6px 0 20px; }
  .updates-channel { padding: 5px 18px; font-size: 13px; }
  .updates-sysinfo { flex-direction: column; align-items: flex-start; padding: 20px; }
  .usi-right { width: 100%; justify-content: space-between; }
  .updates-item { flex-direction: column; gap: 10px; padding: 16px; }
  .ui-left { width: auto; flex-direction: row; justify-content: flex-start; }
}
