:root {
  --xlh-page-bg: #f4f8ff;
  --xlh-card-bg: #ffffff;
  --xlh-primary: #123e7c;
  --xlh-primary-soft: #edf5ff;
  --xlh-text-main: #111827;
  --xlh-text-sub: #6b7280;
  --xlh-text-muted: #9ca3af;
  --xlh-line: #d7e2f1;
  --xlh-shadow: 0 10rpx 24rpx rgba(18, 62, 124, 0.06);
  --xlh-radius-xl: 24rpx;
  --xlh-radius-card: 28rpx;
}

page {
  background: var(--xlh-page-bg);
  color: var(--xlh-text-main);
  font-size: 28rpx;
  line-height: 1.4;
}

view,
text,
button {
  box-sizing: border-box;
}

.page-shell {
  min-height: 100vh;
  background: var(--xlh-page-bg);
}

.app-root {
  min-height: 100vh;
}

.admin-guard-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48rpx;
  background: var(--xlh-page-bg);
  color: var(--xlh-text-sub);
  font-size: 26rpx;
}

.page-body {
  padding: 32rpx;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: 700;
  color: var(--xlh-text-main);
}

.section-link {
  font-size: 24rpx;
  color: var(--xlh-text-sub);
}

.card-surface {
  background: var(--xlh-card-bg);
  border-radius: var(--xlh-radius-card);
  box-shadow: var(--xlh-shadow);
}

/* 管理端紧凑密度：只收口 admin-* / knowledge-admin / agent-debug 页面 */
.admin-dashboard__body,
.admin-review-detail__body,
.admin-content-create__body,
.admin-change-pwd__body,
.agent-debug__body {
  gap: 20rpx;
  padding-top: 20rpx;
  padding-bottom: 96rpx;
}

.admin-dashboard__header-name,
.admin-review-detail__title,
.admin-change-pwd__title,
.agent-debug__title,
.knowledge-admin__title {
  font-size: 34rpx;
  line-height: 1.25;
}

.admin-dashboard__header-role,
.admin-login-page__subtitle,
.admin-login-page__desc,
.agent-debug__subtitle,
.knowledge-admin__subtitle,
.admin-review-detail__info Text {
  font-size: 22rpx;
}

.admin-dashboard__logout,
.admin-announcement__create-btn {
  padding: 10rpx 22rpx;
  border-radius: 12rpx;
}

.admin-dashboard__logout Text,
.admin-announcement__create-btn Text {
  font-size: 22rpx;
}

.admin-dashboard__stats,
.admin-dashboard__grid,
.admin-announcement__tabs,
.admin-content-list__tabs,
.agent-debug__metric-grid,
.knowledge-admin__filters {
  gap: 16rpx;
}

.admin-stat-card,
.admin-entry-card,
.admin-dashboard__action-row,
.admin-dashboard__recent,
.admin-pending-card,
.admin-content-card,
.admin-announcement-card,
.admin-review-detail__rich-content,
.agent-debug__panel,
.agent-debug-result,
.agent-debug-row,
.agent-debug-metric,
.knowledge-admin-card,
.knowledge-admin-detail,
.knowledge-admin-revisions,
.knowledge-admin-revision {
  padding: 22rpx;
  border-radius: 16rpx;
  box-shadow: 0 4rpx 12rpx rgba(18, 62, 124, 0.04);
}

.admin-entry-card {
  gap: 12rpx;
  padding: 28rpx 20rpx;
}

.admin-entry-card__icon-wrap {
  width: 76rpx;
  height: 76rpx;
  border-radius: 16rpx;
}

.admin-entry-card__icon {
  font-size: 36rpx;
}

.admin-entry-card__icon--text,
.admin-entry-card__icon--knowledge {
  font-size: 28rpx;
}

.admin-entry-card__label,
.admin-dashboard__action-text,
.admin-pending-card__title,
.admin-content-card__title,
.admin-announcement-card__title {
  font-size: 25rpx;
}

.admin-stat-card__number {
  font-size: 40rpx;
}

.admin-stat-card__label,
.admin-pending-card__meta,
.admin-content-card__time,
.admin-announcement-card__time,
.admin-activity-item__meta,
.agent-debug__label,
.agent-debug__field-label,
.knowledge-admin__summary,
.knowledge-admin-card__meta {
  font-size: 22rpx;
}

.admin-dashboard__recent-title,
.admin-review-detail__section-title,
.agent-debug__panel-title,
.knowledge-admin-detail__title,
.knowledge-admin-revisions__title {
  font-size: 26rpx;
  margin-bottom: 12rpx;
}

.admin-pending__tabs,
.admin-content-list__tabs-scroll,
.admin-announcement__header {
  margin: 18rpx 24rpx;
  padding: 0;
}

.admin-pending__list,
.admin-content-list__list,
.admin-announcement__list {
  padding: 0 24rpx 24rpx;
}

.admin-pending__tab,
.admin-content-list__tab,
.admin-announcement__tab {
  height: 52rpx;
  padding: 0 20rpx;
  border-radius: 12rpx;
  font-size: 22rpx;
}

.admin-pending-card,
.admin-content-card,
.admin-announcement-card {
  margin-bottom: 16rpx;
}

.admin-pending-card__top,
.admin-content-card__top,
.admin-announcement-card__top {
  margin-bottom: 10rpx;
}

.admin-pending-card__type,
.admin-pending-card__stage,
.admin-content-card__type,
.admin-content-card__status,
.admin-review-detail__type,
.admin-review-detail__status,
.knowledge-admin-badge {
  padding: 4rpx 12rpx;
  border-radius: 10rpx;
  font-size: 20rpx;
}

.admin-change-pwd__form,
.admin-announcement__form,
.admin-content-create__body .acc-field,
.agent-debug__field,
.knowledge-admin-form {
  gap: 16rpx;
}

.admin-change-pwd__label,
.admin-announcement__form .acc-label,
.acc-label,
.knowledge-admin-form__row {
  font-size: 23rpx;
}

.admin-change-pwd__input,
.admin-change-pwd__submit,
.admin-login-page__input-wrap,
.admin-login-page__input,
.admin-login-page__submit,
.acc-input,
.acc-picker,
.agent-debug__input,
.agent-debug__selector,
.agent-debug__primary-button,
.agent-debug__secondary-button,
.agent-debug__mini-button,
.agent-debug__ghost-button,
.knowledge-admin__filter,
.knowledge-admin__filter-button,
.knowledge-admin-card__action,
.knowledge-admin__primary-button,
.knowledge-admin-form__input {
  min-height: 72rpx;
  height: 72rpx;
  border-radius: 12rpx;
  font-size: 24rpx;
}

.admin-login-page {
  padding: 44rpx 36rpx 36rpx;
}

.admin-login-page__hero {
  margin-bottom: 34rpx;
}

.admin-login-page__brand {
  font-size: 40rpx;
}

.admin-login-page__card {
  padding: 36rpx 30rpx;
  border-radius: 22rpx;
}

.admin-login-page__form {
  gap: 20rpx;
  margin-top: 28rpx;
}

.admin-review-detail__rich-content,
.agent-debug__panel,
.knowledge-admin__list {
  gap: 14rpx;
}

.admin-review-detail__body-text,
.agent-debug-row__body,
.agent-debug__code,
.knowledge-admin-form__textarea,
.knowledge-admin-revision__body {
  font-size: 24rpx;
  line-height: 1.55;
}
