/* 用户信息行 */
.user-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.user-bar-left { display: flex; align-items: center; gap: 8px; }
.user-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-avatar-text { font-size: 15px; font-weight: 700; color: #FFF; }
.user-bar-info { display: flex; flex-direction: column; gap: 2px; }
.user-bar-name { font-size: 14px; font-weight: 600; color: var(--c-text-1); }
.user-bar-dept { font-size: 11px; color: var(--c-text-3); }

.work-status-chip {
  font-size: 11px;
  color: var(--c-text-3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 3px 10px;
  background: var(--c-surface-mid);
  white-space: nowrap;
}
.work-chip-in { color: #006E2C; border-color: #6ddd81; background: #e8f5e9; }

/* 时钟区 */
.clock-area { background: var(--c-bg); padding: 16px 16px 12px; text-align: center; }
.clock-time {
  font-size: 56px;
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.clock-date { font-size: 13px; color: var(--c-text-2); margin-top: 4px; }

/* 地点 chips */
.loc-scroll { white-space: nowrap; padding: 0 12px; margin-bottom: 8px; overflow-x: auto; }
.loc-scroll-inner { display: inline-flex; gap: 6px; padding: 4px 0; }
.loc-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  background: var(--c-surface);
  white-space: nowrap;
  cursor: pointer;
}
.loc-chip-active { background: var(--c-primary-light); border-color: var(--c-primary); }
.loc-chip-name { font-size: 13px; color: var(--c-text-2); }
.loc-chip-active .loc-chip-name { color: var(--c-primary); font-weight: 600; }
.loc-chip-dist { font-size: 10px; color: var(--c-text-3); margin-top: 1px; }

/* 地点卡片 */
.loc-card { padding: 12px; }
.loc-addr-row { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.loc-pin-img { width: 20px; height: 20px; flex-shrink: 0; }
.loc-addr-text { flex: 1; font-size: 13px; color: var(--c-text-1); font-weight: 500; }
.gps-dot-wrap { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.gps-indicator { width: 7px; height: 7px; border-radius: 50%; }
.gps-ok { background: var(--c-secondary); }
.gps-wait { background: var(--c-text-3); }
.gps-label { font-size: 10px; color: var(--c-text-3); }

/* 简化距离指示图 */
.range-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}
.range-visual svg circle:first-child { stroke: var(--c-border); }
.range-dist-text { font-size: 12px; color: var(--c-text-2); }

.range-hint { padding: 6px 8px; border-radius: var(--r-sm); margin-top: 4px; }
.range-in { background: var(--c-secondary-light); }
.range-out { background: var(--c-warn-light); }
.range-text { font-size: 12px; }
.range-in .range-text { color: var(--c-secondary); }
.range-out .range-text { color: var(--c-warn); }

/* 打卡按钮区 */
.punch-area { display: flex; flex-direction: column; align-items: center; padding: 12px 16px 4px; }
.today-status-row {
  display: flex; align-items: center;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 10px 0;
  width: 100%;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.status-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.status-sep { width: 1px; height: 20px; background: var(--c-divider); }
.status-val { font-size: 15px; font-weight: 600; color: var(--c-border); font-variant-numeric: tabular-nums; }
.status-done { color: var(--c-secondary); }
.status-lbl { font-size: 10px; color: var(--c-text-3); }

.punch-btn-wrap { display: flex; gap: 24px; margin-bottom: 12px; }
.punch-circle {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--c-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 88, 189, 0.35);
  color: #FFFFFF;
  gap: 3px;
  cursor: pointer;
  user-select: none;
}
.punch-circle-out { background: var(--c-primary-dark); box-shadow: 0 4px 16px rgba(0, 68, 148, 0.35); }
.punch-done { background: var(--c-primary-light); color: var(--c-primary); box-shadow: var(--shadow-sm); }
.punch-disabled { background: var(--c-surface-mid); color: var(--c-text-3); box-shadow: none; cursor: not-allowed; }
.punch-icon-img { width: 28px; height: 28px; }
.punch-circle-label { font-size: 11px; font-weight: 600; }
.punch-circle-time { font-size: 9px; font-variant-numeric: tabular-nums; opacity: 0.85; }

/* 底部导航 */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  display: flex;
  background: var(--c-surface);
  border-top: 1px solid var(--c-divider);
}
.nav-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  color: var(--c-text-3);
  text-decoration: none;
}
.nav-item-active { color: var(--c-primary); font-weight: 600; }
