/* 首页：头像/名字/在线状态 + 三条杠(加联系人) + 时钟 + 假搜索框 + 联系人列表 */
.hv-home-page {
  height: 100%;
  overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top)) 18px 16px;
}

.hv-home-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hv-self-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.hv-self-avatar:active { transform: scale(0.88); }

.hv-home-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 7px;
}

.hv-home-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.hv-home-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-soft);
}

.hv-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  flex-shrink: 0;
}

.hv-home-menu-wrap {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}

.hv-home-menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  padding: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hv-home-menu-btn:active { transform: scale(0.88); }

.hv-home-menu-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 三条杠点开的小卡片，里面就放"新建联系人" */
.hv-home-menu-card {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 150px;
  padding: 6px;
  background: var(--card-tint);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.hv-home-menu-card[hidden] { display: none; }

.hv-home-menu-card-item {
  width: 100%;
  border: none;
  background: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.hv-home-menu-card-item:active { background: rgba(0, 0, 0, 0.05); }

/* 首页时钟：固定显示北京时间，纯前端 Intl 算，跟设备本地时区无关 */
.hv-clock-widget {
  margin: 22px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hv-clock-time {
  font-size: 56px;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hv-clock-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-clock-weekday {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.hv-clock-mmdd {
  font-size: 11.5px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

/* 假搜索框：点开先占位，还没接真搜索 */
.hv-search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 16px;
  padding: 7px 16px;
  border: none;
  background: var(--card-tint);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.hv-search-bar svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* "联系人"收放折叠栏：默认展开，点了收起/展开下面那一串联系人 */
.hv-contact-toggle {
  margin-top: 16px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  font-size: 12px;
  color: var(--text-soft);
  font-family: inherit;
}

.hv-contact-caret {
  width: 13px;
  height: 13px;
  transition: transform 0.25s ease;
}

.hv-contact-toggle.expanded .hv-contact-caret { transform: rotate(180deg); }

.hv-contact-list-wrap {
  margin-top: 4px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.hv-contact-list-wrap.expanded { max-height: 2000px; }

.hv-contact-row {
  position: relative;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.hv-contact-row:active { background: rgba(0, 0, 0, 0.04); }

.hv-contact-info {
  flex: 1;
  min-width: 0;
}

.hv-contact-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.hv-contact-preview {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hv-contact-del {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-soft);
  opacity: 0.5;
  padding: 4px;
}

.hv-contact-del:hover { opacity: 1; }

.hv-contact-empty {
  padding: 30px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-soft);
}
