:root {
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.22);
  --text: rgba(255, 255, 255, 1);
  --muted: rgba(255, 255, 255, 1);
  --shadow: rgba(0, 0, 0, 0.18);
  --danger: rgb(255, 59, 48);
  --safe: rgba(20, 20, 20, 0.6);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: #000;
  color: var(--text);
  overflow: hidden;
}

.lockscreen {
  height: var(--app-height, 100vh);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  background-image: url("./image.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lockscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px 10px;
}

.hero-date {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.6px;
  word-spacing: 6px;
  white-space: nowrap;
  line-height: 1.1;
  color: rgba(255, 255, 255, 1);
  cursor: pointer;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-time {
  margin-top: 6px;
  font-size: 96px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  transform: scaleY(1.14);
  transform-origin: center;
}

.glass-text {
  position: relative;
  display: inline-block;
}

.glass-text-base {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.26);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.10);
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.glass-text-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: transparent;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.16) 45%,
    rgba(255, 255, 255, 0.06) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(0.15px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
}

.time {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.signal-img {
  width: 22px;
  height: 18px;
  transform: translate(8px, 2px);
}

.wifi-img {
  transform: translateX(12px);
}

.pill {
  width: 48px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.signal {
  width: 18px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 3px;
  clip-path: polygon(0 100%, 0 60%, 20% 60%, 20% 40%, 40% 40%, 40% 25%, 60% 25%, 60% 10%,
      80% 10%, 80% 0, 100% 0, 100% 100%);
}

.battery {
  --battery-level: 0.72;
  width: 52px;
  height: 22px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  height: 10px;
  width: calc((100% - 26px) * var(--battery-level));
  background: rgba(255, 255, 255, 0.96);
  border-radius: 3px;
}

.battery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./fRTqhy4eh.jpeg") center / contain no-repeat;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.sheet {
  position: relative;
  z-index: 2;
  margin: 4px 14px 88px;
  max-width: 520px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 10px 6px;
}

.sheet-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sheet-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 0.2px;
  font-weight: 700;
}

.ghost {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 1);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ghost-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-0.5px);
}

.ghost-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ghost-text {
  font-weight: 400;
}

.glass-close {
  appearance: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-close:active {
  transform: translateY(1px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-panel {
  position: relative;
  width: min(420px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 20, 20, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 14px;
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 0.2px;
  padding: 6px 6px 10px;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal-field {
  display: grid;
  gap: 6px;
  padding: 0 6px;
}

.modal-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 1);
}

.modal-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 1);
  padding: 10px 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
  resize: none;
}

.modal-input::placeholder {
  color: rgba(255, 255, 255, 1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 2px 6px 4px;
}

.modal-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.20);
  color: rgba(255, 255, 255, 1);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-btn-primary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
}

.modal-btn:active {
  transform: translateY(1px);
}

.ghost:active {
  transform: translateY(1px);
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 2px 4px 6px;
  overscroll-behavior: contain;
}

.notification-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.item {
  position: relative;
  height: 86px;
}

.item.is-collapsing {
  height: 0;
  margin: 0;
  overflow: hidden;
  transition: height 180ms ease, margin 180ms ease;
}

.actions {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.action-btn {
  width: 92px;
  border: 0;
  background: var(--danger);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.front {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  transition: transform 190ms ease;
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.front.dragging {
  transition: none;
  cursor: grabbing;
}

.card {
  height: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 12px 12px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.icon.has-img {
  background: transparent;
  border: 0;
}

.icon-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 90, 255, 0.95);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
}

.icon-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
}

.content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.app {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
}

.when {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.msg {
  margin-top: 6px;
  line-height: 1.15;
  color: rgba(255, 255, 255, 1);
  font-size: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dock {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  pointer-events: none;
}

.dock-btn {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.26);
  color: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.dock-icon {
  font-size: 20px;
}

.dock-img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  filter: brightness(1.05) contrast(1.05);
  transform: translateX(-1px);
}

.dock-btn[aria-label="相机"] .dock-img {
  transform: translateX(0px);
}

@media (min-width: 560px) {
  .sheet {
    margin-left: auto;
    margin-right: auto;
  }
}
