.home-page {
  padding: var(--space-3) var(--space-4) var(--space-6);
}

/* 问候头部：政务蓝渐变横幅 */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding: var(--space-4) var(--space-4);
  color: #fff;
  background: linear-gradient(120deg, #1a5cff 0%, #4d86ff 60%, #6ba0ff 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.home-hero__inner {
  min-width: 0;
}

.home-hero__greeting {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.home-hero__sub {
  margin: var(--space-1) 0 0;
  color: rgb(255 255 255 / 82%);
  font-size: 12px;
}

.home-hero__profile {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-2);
  padding: 4px 12px;
  color: #fff;
  background: rgb(255 255 255 / 18%);
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 14px;
  font-size: 12px;
}

.home-hero__profile:active {
  background: rgb(255 255 255 / 30%);
}

.home-hero__actions {
  display: flex;
  flex: none;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  align-self: flex-start;
  margin-top: -4px;
}

.home-hero__bell,
.home-hero__mine {
  position: relative;
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #fff;
  background: rgb(255 255 255 / 16%);
  border: none;
  border-radius: 50%;
  place-items: center;
}

.home-hero__bell:active,
.home-hero__mine:active {
  background: rgb(255 255 255 / 28%);
}

.home-hero__dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #ffd166;
  border: 1.5px solid #3a72ff;
  border-radius: 50%;
}

/* 卡片通用 */
.home-card {
  margin-bottom: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-surface);
}

.home-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.home-card__title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.home-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.home-card__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 9px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.home-card__more {
  padding: 0;
  color: var(--color-text-tertiary);
  background: transparent;
  border: none;
  font-size: 13px;
}

.home-card__more:active {
  color: var(--color-primary);
}

/* 待开始会议（单条紧凑卡片） */
.home-meeting {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) 0;
  text-align: left;
  background: transparent;
  border: none;
}

.home-meeting__icon {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  place-items: center;
}

.home-meeting__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.home-meeting__title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-meeting__meta {
  overflow: hidden;
  color: var(--color-text-tertiary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-meeting__chip {
  flex: none;
  padding: 1px 6px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 4px;
  font-size: 11px;
}

/* 快捷宫格（常用功能：2 列） */
.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-4);
}

.home-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-2);
  color: var(--color-text);
  background: var(--color-page);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.home-grid__item:active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.home-grid__item:active .home-grid__label {
  color: var(--color-primary);
}

.home-grid__icon {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  place-items: center;
}

.home-grid__label {
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

/* 待办中心（紧凑版） */
.home-card__head--compact {
  margin-bottom: var(--space-2);
}

.home-todo-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.home-todo-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) 0 var(--space-1);
  color: var(--color-text);
  background: var(--color-page);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.home-todo-type:active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.home-todo-type__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-light);
}

.home-todo-type:nth-child(1) .home-todo-type__icon {
  background: #e9efff;
}

.home-todo-type:nth-child(2) .home-todo-type__icon {
  background: #e9efff;
}

.home-todo-type:nth-child(3) .home-todo-type__icon {
  background: #fdf0e4;
}

.home-todo-type:nth-child(4) .home-todo-type__icon {
  background: #fdf0e4;
}

.home-todo-type:nth-child(5) .home-todo-type__icon {
  background: #efeaff;
}

.home-todo-type:nth-child(6) .home-todo-type__icon {
  background: #eaf7ef;
}

.home-todo-type__name {
  font-size: 12px;
}

.home-todo-type__count {
  position: absolute;
  top: 4px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  color: #fff;
  background: var(--color-danger);
  border-radius: 8px;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.home-todo {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-todo__item + .home-todo__item {
  border-top: 1px solid var(--color-border);
}

.home-todo__row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) 0;
  text-align: left;
  background: transparent;
  border: none;
}

.home-todo__mark {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  place-items: center;
}

.home-todo__mark--warning {
  color: var(--color-danger);
  background: #fdecea;
}

.home-todo__mark--task {
  color: var(--color-success);
  background: #eaf7ef;
}

.home-todo__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-todo__time {
  flex: none;
  color: var(--color-text-tertiary);
  font-size: 12px;
}

.home-todo__empty {
  padding: var(--space-3) 0;
  color: var(--color-text-tertiary);
  font-size: 13px;
  text-align: center;
}

.home-page__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: var(--space-4) 0 var(--space-2);
  color: var(--color-text-tertiary);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.home-page__footer--ver,
.home-page__footer--tech {
  display: block;
}