:root {
  --bg: #f5faf7;
  --bg-2: #eef6f1;
  --ink: #18231f;
  --muted: #5f6f68;
  --brand: #2e7d62;
  --brand-2: #dff3eb;
  --brand-3: #439775;
  --line: #d8e5df;
  --warn: #f4a340;
  --warn-bg: #fff6e8;
  --danger: #d65c5c;
  --danger-bg: #fdeaea;
  --success: #2e7d62;
  --card: #ffffff;
  --gold: #c9a962;
  --shadow: 0 8px 24px rgba(45, 88, 72, .08);
  --shadow-lg: 0 16px 40px rgba(45, 88, 72, .14);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #e9f2ec;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, .06);
}

/* 视图切换 */
.view {
  display: none;
  min-height: 100vh;
  flex-direction: column;
}

.view.active {
  display: flex;
}

/* ===== 启动页 ===== */
.view-launch {
  background:
    linear-gradient(160deg, #2e7d62 0%, #3d9577 60%, #4ba884 100%);
  color: #fff;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
}

.launch-content {
  width: 100%;
  max-width: 360px;
}

.launch-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  backdrop-filter: blur(6px);
}

.launch-title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
}

.launch-slogan {
  margin: 0 0 18px;
  font-size: 16px;
  color: rgba(255, 255, 255, .92);
  line-height: 1.6;
}

.launch-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 13px;
  margin-bottom: 36px;
}

.launch-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.launch-note {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
}

/* Demo 亮点 */
.launch-highlights {
  margin: 22px 0 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
}

.highlights-title {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hl-item {
  font-size: 13px;
  color: #fff;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .14);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
}

/* ===== 通用按钮 ===== */
.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:active {
  transform: scale(.98);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 125, 98, .28);
}

.btn-secondary {
  background: var(--brand-2);
  color: var(--brand);
}

.btn-text {
  background: transparent;
  color: rgba(255, 255, 255, .9);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
}

.btn-large {
  padding: 18px;
  font-size: 18px;
  border-radius: 16px;
}

.btn-sm {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* ===== 顶栏 ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.topbar-tag {
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--brand);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ===== 页面容器 ===== */
.page {
  padding: 18px 16px 40px;
  flex: 1;
}

.center-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 60px;
}

/* ===== 吃药端 ===== */
.date-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.date-bar .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

.med-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  border: 1px solid var(--line);
}

.med-time {
  font-size: 14px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.med-name {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.med-dose {
  font-size: 20px;
  color: var(--brand-3);
  font-weight: 700;
  margin-bottom: 10px;
}

.med-note {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--bg-2);
  border-radius: 10px;
}

/* 家属录音卡片 */
.record-card {
  background: var(--warn-bg);
  border: 1px solid #f5d7a6;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.record-label {
  font-size: 12px;
  color: #8c5b13;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.record-text {
  font-size: 17px;
  color: #5a3d0e;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
}

.btn-record {
  background: #fff;
  color: #8c5b13;
  border: 1px solid #f0d294;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.play-icon {
  font-size: 12px;
}

.record-hint {
  font-size: 12px;
  color: #b08a4a;
  margin-top: 8px;
}

/* 三个大按钮 */
.action-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.btn-action {
  padding: 20px;
  font-size: 20px;
  border-radius: 16px;
  width: 100%;
}

.btn-success {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(46, 125, 98, .28);
}

.btn-warn {
  background: var(--warn-bg);
  color: #8c5b13;
  border: 1px solid #f0d294;
}

.btn-danger {
  background: var(--danger-bg);
  color: #a03838;
  border: 1px solid #f0c0c0;
}

.status-tip {
  background: var(--brand-2);
  color: var(--brand);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  display: none;
}

.status-tip.show {
  display: block;
}

.ad-free {
  text-align: center;
  font-size: 13px;
  color: var(--brand);
  background: var(--brand-2);
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
}

/* 监护人更新提示 */
.med-updated {
  display: none;
  font-size: 13px;
  color: var(--gold);
  background: #fffdf3;
  border: 1px dashed var(--gold);
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 600;
}

.med-updated.show {
  display: block;
}

/* 下一次提醒卡片 */
.next-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(46, 125, 98, .25);
}

.next-time {
  font-size: 14px;
  font-weight: 700;
  opacity: .9;
  margin-bottom: 8px;
}

.next-name {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.next-info {
  font-size: 16px;
  opacity: .9;
  margin-bottom: 8px;
}

.next-note {
  font-size: 13px;
  opacity: .8;
  padding: 6px 10px;
  background: rgba(255, 255, 255, .15);
  border-radius: 8px;
  margin-bottom: 14px;
}

.next-all-done {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 30px;
}

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

.next-actions .btn {
  flex: 1;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
}

.next-actions .btn-success {
  background: rgba(255, 255, 255, .95);
  color: var(--brand);
}

/* 吃药端今日用药列表 */
.med-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.med-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.med-item-time {
  font-size: 14px;
  color: var(--brand);
  font-weight: 700;
}

.med-item-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.med-item-info {
  font-size: 14px;
  color: var(--muted);
}

.med-item-right {
  text-align: right;
  margin-bottom: 10px;
}

.med-item-actions {
  display: flex;
  gap: 8px;
}

.med-item-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
}

/* 空状态 */
.empty-tip {
  text-align: center;
  color: var(--muted);
  padding: 30px;
  font-size: 14px;
}

/* 切换到监护端查看按钮 */
.btn-switch-guard {
  display: none;
  width: 100%;
  margin: 4px 0 16px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
}

/* ===== 遇到问题页 ===== */
.page-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 8px 0 20px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all .12s ease;
}

.problem-item:active {
  background: var(--brand-2);
  border-color: var(--brand);
  color: var(--brand);
}

/* ===== 成功页 ===== */
.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(46, 125, 98, .3);
}

.success-title {
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 12px;
}

.success-time {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
}

.success-info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 28px;
  width: 100%;
  text-align: left;
  font-size: 15px;
  color: var(--muted);
}

.success-info div {
  margin: 6px 0;
}

.success-info span {
  color: var(--ink);
  font-weight: 600;
}

.center-page .btn {
  width: 100%;
  margin-bottom: 10px;
}

/* ===== 监护端 ===== */
.family-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(46, 125, 98, .22);
}

.family-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.family-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 8px;
}

.family-update {
  font-size: 12px;
  color: rgba(255, 255, 255, .78);
}

/* 状态总览 */
.status-overview {
  background: var(--brand-2);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px dashed var(--brand);
}

.overview-title {
  font-size: 13px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}

.overview-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  color: var(--ink);
}

.overview-stat {
  text-align: center;
  flex: 1;
  min-width: 70px;
}

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.overview-item {
  font-weight: 600;
}

.overview-pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.overview-pill.status-pending {
  background: #f0f0f0;
  color: #666;
}

.overview-pill.status-taken {
  background: var(--brand-2);
  color: var(--brand);
}

.overview-pill.status-later {
  background: var(--warn-bg);
  color: #8c5b13;
}

.overview-pill.status-problem {
  background: var(--danger-bg);
  color: #a03838;
}

.block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--brand);
  border-radius: 2px;
}

.block-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}

/* 状态行 */
.status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-pill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.status-pending {
  background: #f0f0f0;
  color: #666;
}

.status-taken {
  background: var(--brand-2);
  color: var(--brand);
}

.status-later {
  background: var(--warn-bg);
  color: #8c5b13;
}

.status-problem {
  background: var(--danger-bg);
  color: #a03838;
}

.status-med {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

/* 异常提醒 */
.alert-card {
  background: var(--danger-bg);
  border: 1px solid #f0c0c0;
  border-radius: 14px;
  padding: 16px;
}

.alert-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.alert-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.alert-title {
  font-size: 16px;
  font-weight: 700;
  color: #a03838;
}

.alert-type,
.alert-time {
  font-size: 14px;
  color: #8a4040;
  margin: 4px 0;
}

.alert-notified {
  font-size: 13px;
  color: #8a4040;
  margin: 4px 0;
  padding: 6px 10px;
  background: rgba(214, 92, 92, .1);
  border-radius: 8px;
  font-weight: 600;
}

.alert-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

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

/* 时间线 mini */
.timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-mini .tm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}

.timeline-mini .tm-time {
  font-weight: 700;
  color: var(--brand);
  min-width: 48px;
}

/* 漏服升级时间线 */
.timeline {
  border-left: 3px solid var(--brand);
  padding-left: 16px;
  margin: 4px 0 0 8px;
}

.t-item {
  position: relative;
  padding: 10px 14px;
  background: var(--bg-2);
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.t-item b {
  display: inline-block;
  color: var(--brand);
  margin-right: 8px;
  font-size: 14px;
  font-weight: 700;
}

.t-item::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--brand);
}

/* 权限 */
.role-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.role-pill {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.role-pill.role-normal {
  background: var(--brand-2);
  color: var(--brand);
}

.role-desc {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  line-height: 1.5;
}

/* 订阅 */
.plan-card {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}

.plan-card.plan-featured {
  background: #fffdf3;
  border: 1px solid var(--gold);
}

.plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 13px;
  color: var(--muted);
}

.plan-note {
  font-size: 12px;
  color: var(--brand);
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

.footer-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 18px 0 8px;
  line-height: 1.6;
}

/* 导出选项 */
.export-options {
  margin-bottom: 14px;
}

.export-item {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0;
  padding-left: 8px;
}

/* 计划卡片 */
.plan-item {
  background: var(--bg-2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.plan-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.plan-duration {
  font-size: 12px;
  color: var(--brand);
  background: var(--brand-2);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.plan-doses {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-meal {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.plan-note {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  background: rgba(255, 255, 255, .6);
  border-radius: 8px;
  margin-bottom: 12px;
}

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

.plan-actions .btn {
  flex: 1;
  padding: 10px;
}

/* 多剂量表单 */
.dose-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.dose-row input {
  flex: 1;
}

.dose-row .btn-danger {
  flex-shrink: 0;
  padding: 0 14px;
}

/* ===== 弹窗 ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 25, .5);
  backdrop-filter: blur(2px);
}

.modal-box {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp .25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}

.modal-foot .btn {
  flex: 1;
}

/* 表单 */
.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

/* 体验指引 */
.guide-hint {
  font-size: 14px;
  color: var(--brand);
  background: var(--brand-2);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
}

.guide-item {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.guide-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guide-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--brand-2);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-tag-b {
  background: var(--warn-bg);
  color: #8c5b13;
}

.guide-tag-c {
  background: #eef0ff;
  color: #4a5bd4;
}

.guide-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.guide-item ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.guide-item li {
  margin: 4px 0;
}

/* 锁屏提醒模拟 */
.view-lockscreen {
  background: #000;
}

.lockscreen-bg {
  min-height: 100vh;
  background: linear-gradient(180deg, #1a3a2e 0%, #2d5a47 40%, #3d7a5f 100%);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lockscreen-status {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

.lock-time {
  display: block;
  font-size: 72px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 2px;
}

.lock-date {
  display: block;
  font-size: 18px;
  color: rgba(255, 255, 255, .8);
  margin-top: 8px;
}

.lockscreen-badge {
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .9);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, .25);
}

.lockscreen-card {
  background: rgba(255, 255, 255, .95);
  border-radius: 24px;
  padding: 28px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.lock-app-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.lock-app-name {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.lock-med-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.lock-med-info {
  font-size: 17px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 16px;
}

.lock-record {
  font-size: 16px;
  color: #5a3d0e;
  font-weight: 600;
  line-height: 1.5;
  padding: 12px;
  background: #fffdf3;
  border-radius: 12px;
  margin-bottom: 16px;
}

.lock-play-btn {
  margin-bottom: 0;
}

.lockscreen-actions {
  display: flex;
  gap: 14px;
  width: 100%;
  max-width: 340px;
  margin-top: 24px;
}

.btn-lock-taken {
  flex: 1;
  background: var(--brand);
  color: #fff;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 16px;
  border: 0;
  box-shadow: 0 8px 20px rgba(46, 125, 98, .3);
}

.btn-lock-later {
  flex: 1;
  background: rgba(255, 255, 255, .2);
  color: #fff;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, .4);
}

.lockscreen-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  text-align: center;
  margin-top: 30px;
  line-height: 1.6;
  padding: 0 20px;
}

.btn-lock-close {
  margin-top: 40px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

/* 锁屏空状态 */
.lock-empty {
  text-align: center;
}

.lock-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lock-empty-text {
  font-size: 18px;
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}

/* toast */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 35, 31, .92);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
}

/* 桌面适配 */
@media (min-width: 768px) {
  body {
    padding: 20px 0;
  }

  #app {
    border-radius: 24px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
  }
}
