/* ================= 基础 ================= */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #fafbfe;
  --text: #141b2e;
  --text-2: #5b6b8c;
  --text-3: #94a2ba;
  --primary: #4f6bff;
  --primary-2: #7b5cff;
  --primary-soft: #edf1ff;
  --accent: #0fbfae;
  --accent-soft: #e2f8f5;
  --warn: #f59f0b;
  --warn-soft: #fdf3e3;
  --danger: #f04438;
  --danger-soft: #fdeceb;
  --border: #e9eef8;
  --shadow: 0 12px 32px rgba(22, 38, 84, 0.07);
  --shadow-sm: 0 4px 14px rgba(22, 38, 84, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-w: 216px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 8% -10%, rgba(79, 107, 255, 0.1), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(15, 191, 174, 0.09), transparent 38%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
}

/* ================= 布局 ================= */
.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  padding: 26px 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 107, 255, 0.32);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--text-2);
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.75;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(79, 107, 255, 0.12), rgba(123, 92, 255, 0.09));
  color: var(--primary);
  font-weight: 600;
}

.nav-item.active svg {
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--text-3);
  padding: 0 10px;
  line-height: 1.9;
}

.page {
  flex: 1;
  min-width: 0;
  padding: 30px 34px 44px;
}

.page-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.topbar .sub {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 4px;
}

/* ================= 通用卡片 ================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

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

/* ================= 按钮 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(79, 107, 255, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, #10b5a5, #14c9a6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(15, 191, 174, 0.26);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(240, 68, 56, 0.18);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

/* ================= 首页 Hero ================= */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 26px 28px;
  color: #fff;
  background: linear-gradient(135deg, #5566f6 0%, #7358fb 45%, #9b57f2 100%);
  box-shadow: 0 18px 44px rgba(83, 92, 240, 0.32);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -90px;
}

.hero::after {
  width: 140px;
  height: 140px;
  right: 110px;
  bottom: -110px;
  background: rgba(255, 255, 255, 0.09);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-greet {
  font-size: 13px;
  opacity: 0.82;
  letter-spacing: 1px;
}

.hero-date {
  font-size: 19px;
  font-weight: 650;
  margin-top: 2px;
}

.hero-clock {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hero-time {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 1px;
}

.hero-seconds {
  font-size: 16px;
  opacity: 0.75;
  margin-left: 2px;
}

.hero-today {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 6px;
  letter-spacing: 0.4px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
  backdrop-filter: blur(4px);
}

.hero-status .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7df5c4;
  box-shadow: 0 0 0 0 rgba(125, 245, 196, 0.6);
  animation: pulse 1.9s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 245, 196, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(125, 245, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(125, 245, 196, 0);
  }
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.punch-btn {
  flex: 1 1 200px;
  min-height: 74px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #3b49c9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 14px 20px;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s;
  box-shadow: 0 10px 26px rgba(41, 30, 120, 0.22);
}

.punch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(41, 30, 120, 0.28);
}

.punch-btn:active {
  transform: translateY(0);
}

.punch-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.punch-btn .pb-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.punch-btn .pb-label svg {
  width: 18px;
  height: 18px;
}

.punch-btn .pb-hint {
  font-size: 12px;
  color: #7b85c4;
}

.punch-btn.ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(4px);
}

.punch-btn.ghost .pb-hint {
  color: rgba(255, 255, 255, 0.76);
}

.punch-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

.punch-btn.done {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.punch-btn.done .pb-hint {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Hero 轮播（签到 / 工资） ---------- */
.hero-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 1;
}
.hero-carousel::-webkit-scrollbar {
  display: none;
}
.hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
  padding-right: 0;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.hero-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
  cursor: pointer;
}
.hero-dots span.on {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* ---------- 工资估算卡 ---------- */
.salary-slide {
  display: flex;
  flex-direction: column;
}
.salary-amount {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  color: #fff;
}
.salary-currency {
  font-size: 18px;
  opacity: 0.85;
  margin-right: 2px;
}
#salaryTotal {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.salary-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  position: relative;
  z-index: 1;
}
.sb-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sb-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.sb-value {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.sb-value.ot {
  color: #7ff0e2;
}
.salary-params {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 1;
}
.salary-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}
.salary-link:hover {
  text-decoration: underline;
}

.salary-deduct {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  position: relative;
  z-index: 1;
}
.sd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.sd-row .minus {
  color: #ffb4b4;
}

/* ================= 今日时间线 ================= */
.timeline {
  display: grid;
  gap: 2px;
}

.tl-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--border);
}

.tl-row:last-child {
  border-bottom: none;
}

.tl-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
}

.tl-name i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dbe3f2;
  display: inline-block;
}

.tl-row.filled .tl-name i {
  background: var(--primary);
}

.tl-row.filled.ot .tl-name i {
  background: var(--accent);
}

.tl-time {
  font-size: 16px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.tl-time.empty {
  color: var(--text-3);
  font-weight: 500;
  font-size: 14px;
}

.tl-dur {
  font-size: 12px;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ================= 统计小卡 ================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-tile .st-label {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-tile .st-value {
  font-size: 27px;
  font-weight: 720;
  margin-top: 6px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.stat-tile .st-value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 3px;
  letter-spacing: 0;
}

.stat-tile .st-extra {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.stat-tile.tint-blue {
  background: linear-gradient(160deg, #fff, #f4f6ff);
}

.stat-tile.tint-teal {
  background: linear-gradient(160deg, #fff, #f1fbf9);
}

.stat-tile.tint-amber {
  background: linear-gradient(160deg, #fff, #fffaf0);
}

.stat-tile.tint-violet {
  background: linear-gradient(160deg, #fff, #f8f3ff);
}

/* ================= 记录列表 ================= */
.rec-list {
  display: flex;
  flex-direction: column;
}

.rec-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}

.rec-item:last-child {
  border-bottom: none;
}

.rec-date {
  font-size: 13.5px;
  font-weight: 600;
}

.rec-date span {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 400;
}

.rec-times {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.rec-times b {
  font-weight: 600;
  color: var(--text);
}

.rec-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tag.tag-ot {
  background: var(--accent-soft);
  color: #08958a;
}

.tag.tag-empty {
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ================= 日历 ================= */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cal-month {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-month .m-label {
  font-size: 19px;
  font-weight: 700;
  min-width: 128px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.cal-week {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 0 8px;
  font-weight: 600;
  letter-spacing: 1px;
}

.cal-week.weekend {
  color: #c0c9da;
}

.cal-cell {
  min-height: 78px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: var(--surface-2);
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  transition: transform 0.14s, border-color 0.14s, background 0.14s, box-shadow 0.14s;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.cal-cell:hover {
  border-color: rgba(79, 107, 255, 0.32);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cal-cell.out-month {
  opacity: 0;
  pointer-events: none;
}

.cal-cell.weekend {
  background: #f7f9fd;
}

.cal-cell.has-data {
  background: #fff;
  border-color: var(--border);
}

.cal-cell.is-work {
  background: linear-gradient(165deg, #ffffff, #eef2ff);
  border-color: rgba(79, 107, 255, 0.2);
}

.cal-cell.today {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 107, 255, 0.14);
}

.cal-cell.selected {
  border-color: var(--primary);
  background: linear-gradient(165deg, #fff, #e9edff);
}

.cal-daynum {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-daynum .today-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 6px;
  border-radius: 999px;
}

.cal-cell.weekend .cal-daynum {
  color: var(--text-3);
}

.cal-hours {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin-top: auto;
}

.cal-cell.weekend .cal-hours {
  color: #8ea0c6;
}

.cal-ot {
  font-size: 11px;
  color: #08958a;
  font-variant-numeric: tabular-nums;
}

.cal-ot.empty {
  color: transparent;
}

.cal-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.cal-bar {
  height: 3px;
  border-radius: 2px;
  background: #e3e8f5;
  overflow: hidden;
}

.cal-bar i {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.cal-bar.ot i {
  background: linear-gradient(90deg, #14c4b4, #08958a);
}

.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ================= 底部弹层 ================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 26, 48, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  z-index: 40;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  z-index: 41;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 22px 0 0 0;
  box-shadow: -20px 0 60px rgba(15, 25, 60, 0.18);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.32, 1);
  padding: 22px;
}

@media (max-width: 760px) {
  .sheet {
    width: 100%;
    border-radius: 22px 22px 0 0;
    transform: translateY(105%);
    max-height: 88vh;
  }
}

.sheet.show {
  transform: translate(0, 0);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.sheet-title {
  font-size: 18px;
  font-weight: 700;
}

.sheet-sub {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 600;
}

.field input,
.field select {
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 0 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  width: 100%;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.12);
}

.field.full {
  grid-column: 1 / -1;
}

.sheet-summary {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.sheet-summary .tag {
  font-size: 13px;
  padding: 6px 13px;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.sheet-actions .btn {
  flex: 1;
}

/* 签到开关卡片 */
.sheet-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: left;
  transition: background 0.16s, border-color 0.16s;
}

.toggle-card.on {
  background: var(--primary-soft);
  border-color: rgba(79, 107, 255, 0.35);
}

.toggle-card.on.ot {
  background: var(--accent-soft);
  border-color: rgba(15, 191, 174, 0.4);
}

.tc-info h4 {
  font-size: 15px;
  font-weight: 650;
  margin: 0;
}

.toggle-card.on .tc-info h4 {
  color: var(--primary);
}

.toggle-card.on.ot .tc-info h4 {
  color: #08958a;
}

.tc-info p {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 2px 0 0;
}

.switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #e2e8f4;
  position: relative;
  flex: 0 0 46px;
  transition: background 0.18s;
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(20, 30, 60, 0.18);
  transition: left 0.18s;
}

.toggle-card.on .switch {
  background: var(--primary);
}

.toggle-card.on.ot .switch {
  background: var(--accent);
}

.toggle-card.on .switch i {
  left: 23px;
}

/* ================= 分段控件 / 图表 ================= */
.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  flex-wrap: wrap;
}

.seg button {
  padding: 7px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}

.seg button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 5px 14px rgba(79, 107, 255, 0.26);
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 190px;
  padding: 12px 4px 0;
  overflow-x: auto;
}

.chart-col {
  flex: 1 0 22px;
  min-width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1 1 auto;
  width: 100%;
  justify-content: center;
}

.chart-bar {
  width: 46%;
  min-width: 7px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, var(--primary), #7b5cff);
  min-height: 2px;
  transition: height 0.35s ease;
}

.chart-bar.ot {
  background: linear-gradient(180deg, #16c7b4, #0fa99a);
}

.chart-x {
  font-size: 10.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chart-x.weekend {
  color: #c2cade;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 12px;
}

.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), #7b5cff);
}

.chart-legend i.ot {
  background: linear-gradient(180deg, #16c7b4, #0fa99a);
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: #eef1f9;
  overflow: hidden;
  margin-top: 10px;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.4s ease;
  width: 0;
}

.progress.teal i {
  background: linear-gradient(90deg, #16c7b4, #0fa99a);
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}

.kv:last-child {
  border-bottom: none;
}

.kv .k {
  color: var(--text-2);
}

.kv .v {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.kv .v.up {
  color: var(--accent);
}

.kv .v.down {
  color: var(--danger);
}

/* ================= 设置页 ================= */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-info h3 {
  font-size: 14.5px;
  font-weight: 650;
}

.setting-info p {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px;
}

.stepper button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  font-size: 17px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}

.stepper button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.stepper input {
  width: 58px;
  height: 32px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.stepper .unit {
  font-size: 12px;
  color: var(--text-3);
  padding-right: 8px;
}

.select-wrap select {
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  padding: 0 32px 0 14px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.select-wrap select:focus {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.12);
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.15s;
}

.chip.on {
  background: var(--primary-soft);
  border-color: rgba(79, 107, 255, 0.35);
  color: var(--primary);
}

.api-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text-2);
  word-break: break-all;
  line-height: 1.8;
}

.api-box b {
  color: var(--primary);
  font-weight: 600;
}

/* ================= 提示 ================= */
.toast-wrap {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.toast {
  padding: 10px 18px;
  border-radius: 11px;
  background: rgba(20, 27, 46, 0.92);
  color: #fff;
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(10, 18, 40, 0.28);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  max-width: 86vw;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.ok {
  background: linear-gradient(135deg, #12b8a4, #0fa08f);
}

.toast.err {
  background: linear-gradient(135deg, #f0574c, #e03a2f);
}

/* ================= 空状态 ================= */
.empty {
  text-align: center;
  padding: 34px 12px;
  color: var(--text-3);
  font-size: 13px;
}

.empty .emoji {
  font-size: 30px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.65;
}

/* ================= 底部导航（移动端） ================= */
.tabbar {
  display: none;
}

/* ================= 响应式 ================= */
@media (max-width: 1000px) {
  :root {
    --sidebar-w: 196px;
  }
  .page {
    padding: 26px 20px 40px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .page {
    padding: 18px 16px 92px;
  }
  .page-inner {
    gap: 16px;
  }
  .topbar h1 {
    font-size: 20px;
  }
  .hero {
    padding: 22px 20px;
    border-radius: 20px;
  }
  .hero-time {
    font-size: 30px;
  }
  .hero-date {
    font-size: 16px;
  }
  .hero-actions {
    margin-top: 18px;
    gap: 10px;
  }
  .punch-btn {
    flex: 1 1 100%;
    min-height: 68px;
  }
  #salaryTotal {
    font-size: 30px;
  }
  .hero-dots {
    margin-top: 14px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-tile {
    padding: 14px;
  }
  .stat-tile .st-value {
    font-size: 23px;
  }
  .cal-grid {
    gap: 5px;
  }
  .cal-cell {
    min-height: 56px;
    padding: 6px;
    border-radius: 10px;
  }
  .cal-hours {
    font-size: 11px;
  }
  /* 移动端加班不显示文字，用绿色指示条表达 */
  .cal-ot {
    display: none;
  }
  .cal-daynum {
    font-size: 12.5px;
  }
  .cal-daynum .today-badge {
    display: none;
  }
  .card {
    padding: 16px;
    border-radius: 16px;
  }
  .timeline .tl-row {
    grid-template-columns: 78px 1fr auto;
  }
  .rec-item {
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }
  .rec-times {
    grid-column: 1 / -1;
    order: 3;
  }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    color: var(--text-3);
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 10px;
  }
  .tab-item svg {
    width: 21px;
    height: 21px;
  }
  .tab-item.active {
    color: var(--primary);
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chart {
    height: 160px;
  }
}

/* ================= 通用 ================= */
.hidden {
  display: none !important;
}

.field-label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
/* 登录/注册、弹窗、设置页表单的字段间距（复用日历弹层的 .field 布局，仅补间距） */
.auth-card .field,
.modal .field,
.card .field {
  margin-bottom: 14px;
}

/* ================= 登录 / 注册页 ================= */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.auth-wrap {
  display: flex;
  width: 100%;
  max-width: 860px;
  min-height: 520px;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.auth-side {
  flex: 1;
  padding: 44px 40px;
  color: #fff;
  background: linear-gradient(150deg, var(--primary) 0%, var(--primary-2) 100%);
  display: flex;
  flex-direction: column;
}
.auth-side .brand-name { color: #fff; }
.auth-side .brand-sub { color: rgba(255,255,255,.65); }
.auth-side .brand-mark { background: rgba(255,255,255,.16); color: #fff; }
.auth-slogan {
  margin-top: auto;
  font-size: 30px;
  line-height: 1.4;
}
.auth-desc {
  margin-top: 16px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.9;
}
.auth-card {
  flex: 1;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.auth-tab {
  flex: 1;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-2);
  transition: all .18s;
}
.auth-tab.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.auth-tip {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}
@media (max-width: 720px) {
  .auth-side { display: none; }
}

/* ================= 侧边栏用户区 ================= */
.su-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.su-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.su-info {
  min-width: 0;
  flex: 1;
}
.su-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.su-role {
  font-size: 11px;
  color: var(--text-3);
}
.su-logout {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all .18s;
  flex: none;
}
.su-logout:hover {
  background: var(--danger-soft);
  color: var(--danger);
}
.su-logout svg {
  width: 16px;
  height: 16px;
}

/* ================= 后台管理 ================= */
.admin-search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-search .field-input {
  width: 200px;
  padding: 7px 10px;
}
.table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-3);
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.admin-table td b { color: var(--text); }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table .empty {
  text-align: center;
  color: var(--text-3);
  padding: 28px 0;
}
.tag-on {
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-off {
  background: var(--danger-soft);
  color: var(--danger);
}
.ops {
  display: flex;
  gap: 6px;
}
.op-btn {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: all .16s;
}
.op-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.op-btn.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 27, 46, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.modal-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .admin-search .field-input { width: 130px; }
}

/* ================= 站点首页 ================= */
.land-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.land-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.land-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.land-nav-link {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.16s, color 0.16s;
}
.land-nav-link:hover {
  background: var(--surface-2);
  color: var(--primary);
}
.land-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.land-user {
  display: flex;
  align-items: center;
  gap: 9px;
}
.land-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.land-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.land-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.land-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}
.land-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.land-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.land-hero h1 {
  margin-top: 18px;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -1.2px;
}
.land-hero-copy > p {
  margin-top: 16px;
  max-width: 540px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.95;
}
.land-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.land-hero-actions .btn {
  padding: 12px 22px;
}
.land-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 13px;
}
.land-points li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.land-points li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}
.land-preview {
  padding: 28px;
}
.land-preview .hero-time {
  font-size: 34px;
}
.land-preview .salary-link {
  font-size: 13px;
  font-weight: 600;
}
.land-preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 22px;
}
.land-mini {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.land-mini span {
  display: block;
  font-size: 11px;
  opacity: 0.74;
  white-space: nowrap;
}
.land-mini b {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.land-mini b small {
  margin-left: 2px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.72;
}

.land-section-head {
  margin-bottom: 28px;
  text-align: center;
}
.land-section-head h2 {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.4px;
}
.land-section-head p {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13.5px;
}
.land-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.land-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.land-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 107, 255, 0.3);
  box-shadow: var(--shadow);
}
.land-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
}
.land-feature-icon svg {
  width: 21px;
  height: 21px;
}
.land-feature-icon.teal {
  background: var(--accent-soft);
  color: #08958a;
}
.land-feature-icon.violet {
  background: #f3eeff;
  color: #7b5cff;
}
.land-feature-icon.amber {
  background: var(--warn-soft);
  color: #c47c05;
}
.land-feature-icon.slate {
  background: #eef2f9;
  color: var(--text-2);
}
.land-feature h3 {
  font-size: 15.5px;
  font-weight: 700;
}
.land-feature p {
  flex: 1;
  color: var(--text-3);
  font-size: 12.8px;
  line-height: 1.8;
}
.land-feature-foot {
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
}
.land-feature-lock {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 11px;
}

.land-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.land-step {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.land-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(79, 107, 255, 0.28);
}
.land-step h3 {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 700;
}
.land-step p {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12.8px;
  line-height: 1.8;
}

.land-footer {
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border);
}
.land-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-3);
  font-size: 12.5px;
}
.land-footer-links {
  display: flex;
  gap: 16px;
}
.land-footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 980px) {
  .land-main {
    padding: 36px 20px 48px;
    gap: 46px;
  }
  .land-hero {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .land-hero h1 {
    font-size: 34px;
  }
  .land-preview {
    max-width: 560px;
  }
  .land-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .land-nav-inner {
    padding: 11px 16px;
    gap: 12px;
  }
  .land-nav-links {
    display: none;
  }
  .land-user-name {
    display: none;
  }
  .land-main {
    padding: 24px 16px 40px;
    gap: 38px;
  }
  .land-hero h1 {
    font-size: 28px;
    letter-spacing: -0.6px;
  }
  .land-hero-copy > p {
    font-size: 14px;
  }
  .land-hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .land-points {
    gap: 8px 16px;
    font-size: 12.5px;
  }
  .land-preview {
    padding: 22px 20px;
  }
  .land-preview .hero-time {
    font-size: 28px;
  }
  .land-section-head {
    margin-bottom: 20px;
  }
  .land-section-head h2 {
    font-size: 22px;
  }
  .land-feature-grid,
  .land-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .land-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ================= 首页分享 ================= */
.btn-share {
  gap: 6px;
}
.btn-share svg {
  width: 16px;
  height: 16px;
}

.share-card {
  position: relative;
  max-width: 380px;
  max-height: calc(100vh - 32px);
  margin: auto;
  overflow-y: auto;
}
.modal-mask:not(.hidden) .share-card {
  animation: share-pop 0.18s ease-out;
}
@keyframes share-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.share-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}
.share-close:hover {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(79, 107, 255, 0.28);
}
.share-close svg {
  width: 15px;
  height: 15px;
}
.share-sub {
  margin: -10px 0 18px;
  padding-right: 22px;
  color: var(--text-3);
  font-size: 12.8px;
  line-height: 1.7;
}
.share-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.share-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.share-qr-fallback {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.share-scan-tip {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
}
.share-copy {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.share-input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
}
.share-input:focus {
  outline: none;
  border-color: rgba(79, 107, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.12);
}
.share-copy .btn {
  flex: none;
}
.share-feedback {
  min-height: 18px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
}
.share-feedback.ok {
  color: #0c9a8b;
}
.share-feedback.err {
  color: var(--danger);
}
.share-guide {
  padding-top: 30px;
  text-align: center;
}
.share-guide-arrow {
  width: 54px;
  height: 54px;
  margin: 4px auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(79, 107, 255, 0.28);
}
.share-guide-arrow svg {
  width: 26px;
  height: 26px;
}
.share-guide-text {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.85;
}
.share-dots {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1px;
}
.share-guide .btn {
  margin-top: 20px;
}

@media (max-width: 420px) {
  .share-card {
    padding: 22px 18px;
  }
  .share-qr {
    width: 180px;
    height: 180px;
  }
  .share-copy {
    flex-direction: column;
  }
  .share-copy .btn {
    width: 100%;
  }
  .share-sub {
    padding-right: 18px;
  }
}
