/* ============================================================
   工作打卡 - 移动端样式
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --primary: #4f8cff;
  --primary-dark: #2e6fdb;
  --success: #34c759;
  --warning: #ff9500;
  --danger: #ff3b30;
  --rest: #ff9500;
  --bg: #f0f2f7;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #6b6b6b;
  --text-3: #9b9b9b;
  --border: #ececec;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

/* ==================== 视图切换 ==================== */
.view { display: none; min-height: 100vh; }
.view.active { display: block; }

/* ==================== 登录页（多色清晰渐变 / 暖色+淡蓝）==================== */
#view-login {
  /* 4 色线性渐变：淡蓝 → 浅金 → 暖橙 → 桃粉，清晰不模糊，颜色丰富不单调 */
  background: linear-gradient(135deg, #c8e2f2 0%, #ffe5c0 35%, #ffcfa0 65%, #ffb8c8 100%);
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(60px + var(--safe-top));
  padding-bottom: calc(40px + var(--safe-bottom));
  position: relative;
  overflow: hidden;
}

/* 登录页显示时用 flex 居中（ID+类选择器优先级高于 .view.active） */
#view-login.active {
  display: flex;
}

.login-wrapper {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.login-logo {
  margin-bottom: 20px;
}

.logo-circle {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 22px;
  background: linear-gradient(135deg, #5aa3ff 0%, #4a90ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 30px rgba(74, 144, 255, 0.40);
}

.login-title {
  color: #3d2817;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.login-subtitle {
  color: #8a6b56;
  font-size: 14px;
  margin-bottom: 36px;
}

.login-form {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 16px 40px rgba(180, 90, 40, 0.18);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  color: var(--text);
  background: #fafafa;
  transition: all 0.2s;
  outline: none;
}

.field input:focus {
  border-color: #4a90ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 144, 255, 0.15);
}

.btn {
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
  font-family: inherit;
}

.btn-block {
  width: 100%;
  height: 48px;
  margin-top: 4px;
}

.btn-primary {
  background: linear-gradient(135deg, #5aa3ff 0%, #4a90ff 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(74, 144, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(74, 144, 255, 0.30);
}

.login-hint {
  text-align: center;
  font-size: 13px;
  color: var(--danger);
  margin-top: 12px;
  min-height: 18px;
}

/* ==================== 每日加油打气 ==================== */
.daily-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
  border: 1px solid rgba(255, 149, 0, 0.18);
  border-radius: 14px;
  font-size: 14px;
  color: #8a5a00;
  text-align: center;
  animation: fadeUp 0.4s ease;
}

.quote-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.quote-text {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ==================== 顶部 Header ==================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: calc(12px + var(--safe-top)) 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.header-user { line-height: 1.3; }

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

.header-date {
  font-size: 12px;
  color: var(--text-3);
}

.icon-btn {
  background: none;
  border: none;
  color: var(--text-2);
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.icon-btn:active {
  background: var(--border);
}

/* ==================== 主内容区 ==================== */
.app-main {
  padding: 16px;
  padding-bottom: calc(90px + var(--safe-bottom));
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp 0.25s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 时钟卡片 ==================== */
.clock-card {
  background: linear-gradient(145deg, #4f8cff 0%, #6a5bff 100%);
  border-radius: 24px;
  padding: 32px 20px 28px;
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(79, 140, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.clock-card.status-working {
  background: linear-gradient(145deg, #34c759 0%, #2aa84a 100%);
  box-shadow: 0 12px 30px rgba(52, 199, 89, 0.3);
}

.clock-card.status-done {
  background: linear-gradient(145deg, #8e8e93 0%, #636366 100%);
  box-shadow: 0 12px 30px rgba(142, 142, 147, 0.3);
}

.clock-card.status-rest {
  background: linear-gradient(145deg, #ff9500 0%, #ff7a00 100%);
  box-shadow: 0 12px 30px rgba(255, 149, 0, 0.3);
}

.clock-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.clock-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.clock-time {
  font-size: 52px;
  font-weight: 200;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
  margin-bottom: 4px;
}

.clock-date {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.clock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ==================== 详情卡片 ==================== */
.detail-card {
  background: var(--card);
  border-radius: 20px;
  padding: 6px 18px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}

.detail-row {
  display: flex;
  align-items: center;
  padding: 14px 0;
}

.detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.detail-icon.in { background: rgba(52, 199, 89, 0.12); color: var(--success); }
.detail-icon.out { background: rgba(79, 140, 255, 0.12); color: var(--primary); }
.detail-icon.dur { background: rgba(255, 149, 0, 0.12); color: var(--warning); }

.detail-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-2);
}

.detail-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.detail-divider {
  height: 1px;
  background: var(--border);
}

/* ==================== 操作按钮组 ==================== */
.action-group {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
  font-family: inherit;
}

.action-btn:active {
  transform: translateY(2px);
}

.action-btn.primary {
  background: linear-gradient(135deg, #5aa3ff 0%, #4a90ff 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 144, 255, 0.35);
}

.action-btn.success {
  background: linear-gradient(135deg, #5aa3ff 0%, #4a90ff 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 144, 255, 0.35);
}

.action-btn.warning {
  background: linear-gradient(135deg, #5aa3ff 0%, #4a90ff 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 144, 255, 0.35);
}

.action-btn.ghost {
  background: var(--card);
  color: var(--text-2);
  border: 1.5px solid var(--border);
  height: 48px;
  font-size: 14px;
}

/* ==================== 本月小结 ==================== */
.summary-card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.summary-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.summary-month {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.summary-item {
  text-align: center;
  padding: 10px 4px;
  background: var(--bg);
  border-radius: 12px;
}

.summary-num {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.summary-num.work { color: var(--success); }
.summary-num.rest { color: var(--warning); }
.summary-num.total { color: var(--primary); }

.summary-label {
  font-size: 11px;
  color: var(--text-3);
}

/* ==================== 底部 Tab ==================== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  padding-bottom: var(--safe-bottom);
  z-index: 100;
}

.tab-item {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}

.tab-item.active {
  color: var(--primary);
}

.tab-item:active {
  background: rgba(0, 0, 0, 0.03);
}

/* ==================== 月历 ==================== */
.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.cal-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.cal-export {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 14px;
  border: none;
  background: linear-gradient(135deg, #5aa3ff 0%, #4a90ff 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(74, 144, 255, 0.30);
  font-family: inherit;
  transition: all 0.15s;
}

.cal-export:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(74, 144, 255, 0.25);
}

.cal-nav {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--card);
  border-radius: 12px;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.cal-nav:active { transform: scale(0.94); }

.calendar {
  background: var(--card);
  border-radius: 18px;
  padding: 14px 10px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-weekday {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  padding: 6px 0;
}

.cal-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  position: relative;
  cursor: default;
  padding: 2px;
}

.cal-cell.empty { visibility: hidden; }

.cal-cell.today {
  background: rgba(79, 140, 255, 0.1);
  font-weight: 700;
}

.cal-cell.today::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary);
  border-radius: 10px;
  pointer-events: none;
}

.cal-day {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 3px;
}

.cal-cell.done { background: rgba(52, 199, 89, 0.12); color: #2aa84a; }
.cal-cell.working { background: rgba(79, 140, 255, 0.12); color: var(--primary); }
.cal-cell.rest { background: rgba(255, 149, 0, 0.12); color: var(--warning); }
.cal-cell.future { color: var(--text-3); opacity: 0.5; }

.cal-mark {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.cal-cell.done .cal-mark { background: var(--success); }
.cal-cell.working .cal-mark { background: var(--primary); }
.cal-cell.rest .cal-mark { background: var(--warning); }
.cal-cell:not(.done):not(.working):not(.rest) .cal-mark { background: transparent; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  padding: 0 4px;
  font-size: 12px;
  color: var(--text-2);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-dot.done { background: rgba(52, 199, 89, 0.5); }
.legend-dot.working { background: rgba(79, 140, 255, 0.5); }
.legend-dot.rest { background: rgba(255, 149, 0, 0.5); }
.legend-dot.none { background: var(--border); }

/* ==================== 记录列表 ==================== */
.record-list {
  margin-top: 16px;
}

.record-list-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
  padding: 0 4px;
}

.record-item {
  background: var(--card);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.record-date {
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.record-day {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.record-weekday {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

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

.record-times {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.record-dur {
  font-size: 12px;
  color: var(--text-3);
}

.record-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.record-badge.done { background: rgba(52, 199, 89, 0.12); color: var(--success); }
.record-badge.working { background: rgba(79, 140, 255, 0.12); color: var(--primary); }
.record-badge.rest { background: rgba(255, 149, 0, 0.12); color: var(--warning); }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-3);
  font-size: 13px;
}

/* ==================== 设置 ==================== */
.settings-card {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.settings-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings-row {
  margin-bottom: 14px;
}

.settings-row label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}

.settings-row input {
  width: 100%;
  height: 44px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  background: #fafafa;
  outline: none;
  font-family: inherit;
}

.settings-row input:focus {
  border-color: var(--primary);
  background: #fff;
}

.color-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-opt {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
}

.color-opt.active {
  border-color: var(--text);
  transform: scale(1.1);
}

.about-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-2);
}

.about-row span:last-child {
  color: var(--text-3);
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  top: calc(20px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 14px;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  max-width: 90%;
  text-align: center;
  backdrop-filter: blur(20px);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error { background: rgba(255, 59, 48, 0.92); }
.toast.success { background: rgba(52, 199, 89, 0.92); }

/* ==================== Loading ==================== */
.loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(79, 140, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 自定义 Modal 弹窗 ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f8cff, #6a5bff, #ff6b9d);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 149, 0, 0.35);
}

.modal-icon.warning {
  background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  box-shadow: 0 8px 20px rgba(255, 149, 0, 0.35);
}

.modal-icon.danger {
  background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.35);
}

.modal-icon.info {
  background: linear-gradient(135deg, #4f8cff 0%, #2e6fdb 100%);
  box-shadow: 0 8px 20px rgba(79, 140, 255, 0.35);
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.modal-message {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 22px;
  padding: 0 4px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  outline: none;
}

.modal-btn:active {
  transform: scale(0.97);
}

.modal-btn-cancel {
  background: #f0f2f7;
  color: var(--text);
}

.modal-btn-cancel:active {
  background: #e0e3eb;
}

.modal-btn-confirm {
  background: linear-gradient(135deg, #4f8cff 0%, #2e6fdb 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 140, 255, 0.3);
}

.modal-btn-confirm.danger {
  background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.modal-btn-confirm.warning {
  background: linear-gradient(135deg, #ff9500 0%, #ff6b00 100%);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

/* ==================== 响应式（小屏微调）==================== */
@media (max-width: 360px) {
  .clock-time { font-size: 44px; }
  .summary-num { font-size: 22px; }
  .action-btn { height: 52px; font-size: 15px; }
}

/* 大屏（平板/桌面）居中显示，两侧留白 */
@media (min-width: 481px) {
  #app {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  }
  body {
    background: #e8ebf2;
  }
}
