* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --neon-cyan: #00d4ff;
  --neon-cyan-soft: #4de0ff;
  --neon-purple: #a855f7;
  --neon-pink: #ff4d8d;
  --neon-gold: #ffd29b;
  --bg-deep: #050b1a;
  --bg-mid: #0a1a35;
  --bg-up: #0e2849;
  --panel-bg: rgba(10, 26, 53, 0.72);
  --panel-border: rgba(0, 212, 255, 0.25);
  --text-main: #e8f6ff;
  --text-mute: #7fa8c4;
  --text-dim: #5a7891;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  /* 深空蓝渐变 + 径向光晕 */
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 212, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(168, 85, 247, 0.10), transparent 55%),
    linear-gradient(135deg, #050b1a 0%, #0a1a35 50%, #0e2849 100%);
}

/* 全局背景:网格线 + 星点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 1;
}

/* ============== 顶部栏 ============== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: linear-gradient(180deg, rgba(10, 26, 53, 0.85), rgba(10, 26, 53, 0.55));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.22);
  z-index: 10;
  position: relative;
}

/* 顶栏底部霓虹扫描线 */
.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan) 50%, transparent);
  box-shadow: 0 0 10px var(--neon-cyan), 0 0 4px var(--neon-cyan);
  opacity: 0.7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.45);
}

.brand-icon {
  color: var(--neon-cyan);
  font-size: 22px;
  filter: drop-shadow(0 0 8px var(--neon-cyan));
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 8px var(--neon-cyan)); }
  50%      { opacity: 0.55; transform: scale(0.82); filter: drop-shadow(0 0 14px var(--neon-cyan)); }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mute);
}

.crumb {
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 14px;
  transition: all 0.25s ease;
  user-select: none;
  border: 1px solid transparent;
}

.crumb:hover {
  color: #fff;
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.25);
}

.crumb-root {
  font-weight: 500;
}

.crumb-sep {
  color: rgba(127, 168, 196, 0.4);
  cursor: default;
}

.crumb.active {
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.10);
  border-color: rgba(0, 212, 255, 0.4);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

/* 顶栏右侧操作区 */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-btn {
  appearance: none;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-main);
  font-size: 13px;
  letter-spacing: 1.5px;
  padding: 7px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  white-space: nowrap;
}

.action-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.35), inset 0 0 10px rgba(0, 212, 255, 0.1);
  transform: translateY(-1px);
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-color: transparent;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.45), 0 4px 14px rgba(168, 85, 247, 0.3);
}

.action-btn.primary:hover {
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.7), 0 6px 22px rgba(168, 85, 247, 0.45);
  transform: translateY(-1px);
}

/* ============== 更多操作下拉菜单 ============== */
.more-menu-wrapper {
  position: relative;
}

.more-trigger {
  min-width: 64px;
  text-align: center;
}

.more-trigger.open {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--neon-cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.4);
}

.more-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: rgba(8, 18, 38, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 212, 255, 0.12);
  padding: 6px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.more-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.more-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  text-align: left;
}

.more-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 8px rgba(0, 212, 255, 0.08);
}

.more-item.danger {
  color: #ff7b9c;
}

.more-item.danger:hover {
  background: rgba(255, 77, 141, 0.12);
  box-shadow: inset 0 0 8px rgba(255, 77, 141, 0.15);
}

.more-item .more-icon {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  font-size: 14px;
  opacity: 0.75;
}

.more-divider {
  height: 1px;
  margin: 4px 10px;
  background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.22), transparent);
}

.stats {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 1px;
}

.stats .num {
  color: var(--neon-cyan);
  font-weight: 600;
  margin: 0 4px;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.55);
}

/* 相册弹窗"添加日记"按钮 */
.album-add-diary {
  margin: 0 28px 18px;
  padding: 12px 20px;
  border: 1px dashed rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.06);
  color: #d9b3ff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: center;
  transition: all 0.22s ease;
  font-family: inherit;
}

.album-add-diary:hover {
  background: rgba(168, 85, 247, 0.16);
  border-color: var(--neon-purple);
  color: #fff;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
}

/* ============== 打卡表单弹窗 ============== */
.checkin-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkin-modal.open {
  opacity: 1;
  visibility: visible;
}

.checkin-mask {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.checkin-panel {
  position: relative;
  width: min(560px, 92vw);
  max-height: 88vh;
  background: linear-gradient(160deg, rgba(14, 40, 73, 0.96), rgba(10, 26, 53, 0.96));
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 212, 255, 0.18);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 弹窗顶部霓虹扫描线 */
.checkin-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
  box-shadow: 0 0 12px var(--neon-cyan);
  z-index: 4;
}

.checkin-modal.open .checkin-panel {
  transform: translateY(0) scale(1);
}

/* 已有日记列表 */
.existing-diaries {
  padding: 0 28px;
  margin-bottom: 8px;
}

.existing-diaries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.existing-diaries-title {
  font-size: 13px;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.existing-diaries-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.existing-empty {
  font-size: 12px;
  color: var(--text-mute);
  padding: 14px 10px;
  text-align: center;
  letter-spacing: 1px;
  border: 1px dashed rgba(0, 212, 255, 0.25);
  border-radius: 8px;
}

.existing-diary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.existing-diary-row:hover {
  border-color: rgba(0, 212, 255, 0.45);
  background: rgba(0, 212, 255, 0.1);
}

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

.existing-diary-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--neon-gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.existing-diary-meta {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.existing-diary-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.existing-action-btn {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: transparent;
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.18s ease;
}

.existing-action-btn:hover {
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.existing-action-btn.danger {
  border-color: rgba(255, 100, 100, 0.35);
  color: #ff9999;
}

.existing-action-btn.danger:hover {
  background: rgba(255, 100, 100, 0.15);
  box-shadow: 0 0 8px rgba(255, 100, 100, 0.3);
}

.existing-sample-tag {
  font-size: 10px;
  color: #a855f7;
  padding: 2px 6px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.08);
  letter-spacing: 0.5px;
}

.existing-diaries-divider {
  display: flex;
  align-items: center;
  margin: 14px 0 10px;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-mute);
}

.existing-diaries-divider::before,
.existing-diaries-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

/* 笔记列表视图的"+ 新建打卡"按钮(右上角) */
.existing-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  color: #d9b3ff;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.existing-add-btn:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: var(--neon-purple);
  color: #fff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.45), inset 0 0 8px rgba(168, 85, 247, 0.15);
  transform: translateY(-1px);
}

.existing-add-icon {
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.6));
}

.checkin-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-main);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.checkin-close:hover {
  background: rgba(255, 77, 141, 0.65);
  border-color: var(--neon-pink);
  transform: rotate(90deg);
  box-shadow: 0 0 14px rgba(255, 77, 141, 0.55);
}

.checkin-title {
  padding: 20px 24px 14px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 3px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06), transparent);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.45);
}

.checkin-form {
  padding: 18px 24px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkin-form::-webkit-scrollbar {
  width: 8px;
}

.checkin-form::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: 4px;
}

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

.form-label {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  appearance: none;
  width: 100%;
  background: rgba(5, 11, 26, 0.7);
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: var(--text-main);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--neon-cyan);
  background: rgba(5, 11, 26, 0.9);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.25), inset 0 0 8px rgba(0, 212, 255, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.form-select option {
  background: #0a1a35;
  color: var(--text-main);
}

.form-hint {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.form-hint.error {
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 77, 141, 0.4);
}

.form-hint.ok {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* 照片上传 */
.photo-uploader {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-add {
  width: 64px;
  height: 64px;
  border: 1px dashed rgba(0, 212, 255, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-cyan);
  font-size: 26px;
  cursor: pointer;
  transition: all 0.22s ease;
  flex-shrink: 0;
  background: rgba(0, 212, 255, 0.04);
}

.upload-add:hover {
  border-color: var(--neon-cyan);
  color: #fff;
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
}

.upload-preview-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-preview-item {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(5, 11, 26, 0.6);
}

.upload-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-preview-item.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 26, 0.6);
}

.upload-preview-item.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  z-index: 2;
}

.upload-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 77, 141, 0.92);
  color: #fff;
  border: none;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 212, 255, 0.14);
}

/* ============== 地图舞台 ============== */
.map-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 100%;
}

/* ============== 粒子层 ============== */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

/* 地图舞台径向光晕 */
.map-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08), transparent 60%);
  z-index: 2;
}

/* ============== 图例 ============== */
.legend {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(10, 26, 53, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.4), inset 0 0 12px rgba(0, 212, 255, 0.05);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend .dot.cyan {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan), 0 0 14px var(--neon-cyan);
}

.legend .dot.gold {
  background: var(--neon-gold);
  box-shadow: 0 0 8px var(--neon-gold), 0 0 14px rgba(255, 210, 155, 0.6);
}

.legend .dot.purple {
  background: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple), 0 0 14px var(--neon-purple);
}

.legend .dot.sea-purple {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.7), 0 0 14px rgba(168, 85, 247, 0.4);
}

.legend .dot.dim {
  background: #1d4b7a;
  box-shadow: none;
}

/* ============== 加载提示 ============== */
.loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(5, 11, 26, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 6;
  transition: opacity 0.4s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 双环旋转加载动画 */
.spinner {
  width: 44px;
  height: 44px;
  position: relative;
}

.spinner::before,
.spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.spinner::before {
  border-top-color: var(--neon-cyan);
  border-right-color: var(--neon-cyan);
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.spinner::after {
  inset: 6px;
  border-top-color: var(--neon-purple);
  border-left-color: var(--neon-purple);
  animation: spin 1.4s linear reverse infinite;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

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

.loading-text {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

/* ============== 相册弹窗 ============== */
.album-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.album-modal.open {
  opacity: 1;
  visibility: visible;
}

.album-mask {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.album-panel {
  position: relative;
  width: min(880px, 92vw);
  max-height: 88vh;
  background: linear-gradient(160deg, rgba(14, 40, 73, 0.96), rgba(10, 26, 53, 0.96));
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 212, 255, 0.18);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 相册弹窗顶部霓虹扫描线 */
.album-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan) 30%, var(--neon-purple) 70%, transparent);
  box-shadow: 0 0 14px var(--neon-cyan);
  z-index: 4;
}

.album-modal.open .album-panel {
  transform: translateY(0) scale(1);
}

.album-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-main);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.album-close:hover {
  background: rgba(255, 77, 141, 0.6);
  border-color: var(--neon-pink);
  transform: rotate(90deg);
  box-shadow: 0 0 14px rgba(255, 77, 141, 0.55);
}

.album-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.16);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06), transparent);
}

.album-city {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.45);
}

.album-city::before {
  content: "✦";
  color: var(--neon-cyan);
  font-size: 18px;
  filter: drop-shadow(0 0 6px var(--neon-cyan));
}

.album-count {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 1px;
}

.album-count .num {
  color: var(--neon-cyan);
  font-weight: 600;
  margin: 0 2px;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

/* ============== 日记列表 ============== */
.diary-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.diary-list::-webkit-scrollbar {
  width: 8px;
}

.diary-list::-webkit-scrollbar-track {
  background: transparent;
}

.diary-list::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.25);
  border-radius: 4px;
}

.diary-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.45);
}

.diary-item {
  animation: diaryIn 0.5s ease backwards;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.06), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.32);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.12), inset 0 0 12px rgba(0, 212, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.diary-item:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.35), inset 0 0 14px rgba(0, 212, 255, 0.08);
}

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

.diary-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--neon-gold);
  margin-bottom: 4px;
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(255, 210, 155, 0.35);
}

.diary-date {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
}

.diary-date::before {
  content: "◷";
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 4px var(--neon-cyan));
}

.diary-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.diary-header .diary-title {
  margin-bottom: 0;
}

.diary-header .diary-date {
  margin-bottom: 0;
}

.diary-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.diary-action-btn {
  padding: 3px 10px;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.08);
  color: #00d4ff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diary-action-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.35);
}

.diary-action-btn.danger {
  border-color: rgba(255, 120, 120, 0.4);
  background: rgba(255, 120, 120, 0.08);
  color: #ff9999;
}

.diary-action-btn.danger:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: #ff6060;
  color: #ffcccc;
  box-shadow: 0 0 10px rgba(255, 80, 80, 0.35);
}

.diary-sample-tag {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 1px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c879ff;
}

.diary-text {
  font-size: 14px;
  line-height: 1.85;
  color: #cfe6ee;
  margin-bottom: 14px;
  letter-spacing: 0.4px;
}

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

.photo-cell {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: rgba(5, 11, 26, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.photo-cell:hover {
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), 0 0 18px rgba(0, 212, 255, 0.4);
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.photo-cell:hover img {
  transform: scale(1.06);
}

.photo-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.photo-cell .photo-zoom-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

.photo-cell:hover .photo-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

/* 图片加载占位 */
.photo-cell img.loading-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.photo-cell img.loaded {
  opacity: 1;
}

.photo-cell .img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 1px;
}

/* ============== 大图查看器 ============== */
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.photo-viewer.open {
  opacity: 1;
  visibility: visible;
}

.viewer-img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 212, 255, 0.18);
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.viewer-img.show {
  transform: scale(1);
  opacity: 1;
}

.viewer-close,
.viewer-prev,
.viewer-next {
  position: absolute;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
}

.viewer-prev,
.viewer-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 38px;
  line-height: 1;
}

.viewer-prev { left: 24px; }
.viewer-next { right: 24px; }

.viewer-close:hover,
.viewer-prev:hover,
.viewer-next:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.5);
}

.viewer-prev:hover,
.viewer-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.viewer-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--text-main);
  font-size: 13px;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============== 足迹汇总弹窗 ============== */
.footprint-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.footprint-modal.open {
  opacity: 1;
  visibility: visible;
}

.footprint-mask {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 26, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footprint-panel {
  position: relative;
  width: min(920px, 94vw);
  max-height: 88vh;
  background: linear-gradient(160deg, rgba(14, 40, 73, 0.96), rgba(10, 26, 53, 0.96));
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 212, 255, 0.18);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.36s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.footprint-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan) 30%, var(--neon-purple) 70%, transparent);
  box-shadow: 0 0 14px var(--neon-cyan);
  z-index: 4;
}

.footprint-modal.open .footprint-panel {
  transform: translateY(0) scale(1);
}

.footprint-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-main);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
}

.footprint-close:hover {
  background: rgba(255, 77, 141, 0.6);
  border-color: var(--neon-pink);
  transform: rotate(90deg);
  box-shadow: 0 0 14px rgba(255, 77, 141, 0.55);
}

.footprint-title {
  padding: 22px 28px 16px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 3px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06), transparent);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.45);
}

.footprint-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 16px 28px 14px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.14);
  background: rgba(0, 212, 255, 0.03);
  flex-wrap: wrap;
}

.footprint-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.footprint-filter .form-select {
  min-width: 160px;
  padding: 8px 12px;
}

.footprint-stats {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 1px;
  text-align: right;
  align-self: center;
}

.footprint-stats .num {
  color: var(--neon-cyan);
  font-weight: 600;
  margin: 0 3px;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.footprint-list {
  flex: 1;
  overflow-y: auto;
  padding: 18px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footprint-list::-webkit-scrollbar {
  width: 8px;
}

.footprint-list::-webkit-scrollbar-track {
  background: transparent;
}

.footprint-list::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.25);
  border-radius: 4px;
}

.footprint-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.45);
}

.footprint-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-mute);
  font-size: 14px;
  letter-spacing: 1.5px;
}

.footprint-empty::before {
  content: "✦";
  display: block;
  font-size: 32px;
  margin-bottom: 14px;
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
  opacity: 0.6;
}

/* 足迹日记卡片 */
.footprint-card {
  animation: footprintIn 0.5s ease backwards;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.06), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1), inset 0 0 12px rgba(0, 212, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.footprint-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.32), inset 0 0 14px rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
}

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

.footprint-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.footprint-card-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
}

.footprint-card-loc.sea {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c879ff;
  text-shadow: 0 0 6px rgba(168, 85, 247, 0.4);
}

.footprint-card-loc::before {
  content: "◉";
  font-size: 10px;
}

.footprint-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--neon-gold);
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 210, 155, 0.35);
  flex: 1;
  min-width: 0;
}

.footprint-card-date {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footprint-card-date::before {
  content: "◷";
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 4px var(--neon-cyan));
}

.footprint-card-text {
  font-size: 14px;
  line-height: 1.75;
  color: #cfe6ee;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footprint-card-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footprint-thumb {
  position: relative;
  width: 84px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(5, 11, 26, 0.6);
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footprint-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 12px rgba(0, 212, 255, 0.35);
}

.footprint-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footprint-thumb img.loaded {
  opacity: 1;
}

.footprint-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.footprint-thumb .thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.5px;
}

.footprint-more-photos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 64px;
  border-radius: 8px;
  border: 1px dashed rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
  color: var(--neon-cyan);
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footprint-more-photos:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

/* ============== 响应式 ============== */
@media (max-width: 768px) {
  .topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar-actions {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .stats {
    font-size: 11px;
    flex: 1;
    min-width: 0;
  }
  .action-buttons {
    flex-shrink: 0;
  }
  .action-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .brand-title { font-size: 18px; }
  .legend {
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .album-panel { max-height: 92vh; }
  .album-header { padding: 18px 20px 12px; }
  .album-city { font-size: 20px; }
  .diary-list { padding: 14px 20px 20px; }
  .album-add-diary { margin: 0 20px 16px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .viewer-prev, .viewer-next {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }
  .checkin-panel { max-height: 92vh; }
  .checkin-title { padding: 14px 20px 10px; font-size: 16px; }
  .checkin-form { padding: 14px 20px 18px; }
  .footprint-panel { max-height: 92vh; }
  .footprint-title { padding: 16px 20px 12px; font-size: 17px; }
  .footprint-toolbar { padding: 12px 20px 10px; gap: 10px; }
  .footprint-filter { min-width: 0; flex: 1; }
  .footprint-filter .form-select { min-width: 0; }
  .footprint-stats { margin-left: 0; text-align: left; width: 100%; }
  .footprint-list { padding: 14px 20px 20px; }
  .footprint-card { padding: 14px 16px; }
  .footprint-card-title { font-size: 14px; }
  .footprint-thumb, .footprint-more-photos { width: 72px; height: 56px; }
}
