* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light dark;
  --primary: #2563eb;
  --bg: #f5f7fb;
  --card: #fff;
  --text: #1f2937;
  --sub: #6b7280;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #fff;
  color: var(--text);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* 启动加载画面 */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.splash-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  animation: splashPulse 2s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.splash-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  position: relative;
}

/* 头部 */
header {
  padding: 8px 16px;
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 3px;
}

.logo-divider {
  font-size: 28px;
  color: #d1d5db;
  font-weight: 200;
  margin: 0 10px;
  user-select: none;
  line-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand h1 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.brand p {
  font-size: 11px;
  color: var(--sub);
  line-height: 1.3;
}

/* 底部导航 Dock */
.dock {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.92);
  border-top: 1px solid rgba(0,0,0,0.06);
  z-index: 20;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 16px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.2s;
  color: #9ca3af;
  font-size: 10px;
  font-weight: 600;
}

.dock-item.active {
  color: #2563eb;
  background: #eef2ff;
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dock-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

[data-tab="ranking"] .dock-icon svg {
  width: 19px;
  height: 19px;
}

[data-tab="links"] .dock-icon svg {
  width: 19px;
  height: 19px;
}

[data-tab="feedback"] .dock-icon svg {
  width: 20px;
  height: 20px;
}

.dock-label {
  line-height: 1;
}

/* 面板 */
.panel {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
}

.panel.active {
  display: flex;
}

/* 公告卡片 */
.announce-card {
  cursor: pointer;
  margin: 10px 14px 0;
  padding: 14px 16px;
  background: rgba(255,255,255,.8);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 16px rgba(0,0,0,.03);
}

/* 公告弹窗列表 */
.announce-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(128,128,128,.25);
}

.announce-item:last-child {
  border-bottom: none;
}

.announce-item-title {
  font-weight: 600;
  font-size: 14px;
}

.announce-item-date {
  font-size: 11px;
  color: #9ca3af;
  margin: 4px 0;
}

.announce-item-content {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}

/* 搜索 */
.search-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 14px 14px;
  background: transparent;
}

.search-bar input {
  flex: 1;
  width: auto;
  height: 40px;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  background: rgba(255,255,255,.8);
  color: #1f2937;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-bar input:focus {
  border-color: #2563eb;
  background: #fff;
}

.search-bar input::placeholder {
  color: #9ca3af;
}

/* 城市列表 */
.city-list {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.province-header {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  padding: 8px 6px 4px;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.city-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.8);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.city-card:active {
  transform: scale(0.98);
  background: #f8faff;
}

.city-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2ff;
  display: grid;
  place-items: center;
  color: #4338ca;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
}

.city-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.city-name {
  font-weight: 600;
  font-size: 16px;
}

.city-count {
  font-size: 12px;
  color: var(--sub);
}

/* 排行榜 */
.ranking-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ranking-list .footer-info {
  text-align: center;
  padding-top: 8px;
}

.ranking-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.8);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 16px rgba(0,0,0,0.03);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s;
}

.ranking-card:active {
  transform: scale(0.98);
}

.ranking-icon {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  background: #eef2ff;
  padding: 6px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 36px;
  text-align: center;
}

.ranking-info {
  flex: 1;
}

.ranking-title {
  font-weight: 600;
  font-size: 16px;
}

.ranking-desc {
  font-size: 12px;
  color: var(--sub);
  margin-top: 2px;
}

.ranking-arrow {
  font-size: 16px;
  color: #cbd5e1;
}

/* 链接页 */
.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 20px;
}

.links-grid .footer-info {
  grid-column: 1 / -1;
  text-align: center;
}

/* 更多页 */
.more-panel {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.more-section {
  background: rgba(255,255,255,.7);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 2px 16px rgba(0,0,0,.03);
  padding: 16px;
}

.more-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
  text-align: center;
}

.more-brand-img {
  width: 150px;
  height: auto;
  max-height: 150px;
  border-radius: 26px;
  object-fit: contain;
}

.more-brand-img-sm {
  width: 100px;
  max-height: 100px;
}

.more-brand p {
  font-size: 12px;
  color: #9ca3af;
  letter-spacing: 1px;
  margin-top: 2px;
}

.more-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.more-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.8);
  border-radius: 12px;
  text-decoration: none;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,.04);
  transition: background 0.15s;
}

.more-link-card:active {
  background: #f0f4ff;
}

.more-link-icon {
  font-size: 20px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.more-arrow {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 16px;
  background: rgba(255,255,255,0.65);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.link-card:active {
  transform: scale(0.95);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.link-icon {
  font-size: 40px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.copyright {
  text-align: center;
  padding: 16px 16px 4px;
  color: var(--sub);
  font-size: 12px;
  line-height: 1.4;
}

.footer-info {
  text-align: center;
  padding-bottom: 12px;
}

.icp {
  display: inline-block;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  padding: 4px 0 4px;
}

.beian {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  padding: 4px 0 8px;
}

.beian-icon {
  width: 13px;
  height: 14px;
  flex-shrink: 0;
}

/* 缩放提示气泡 */
.zoom-hint {
  position: absolute;
  top: 54px;
  right: 14px;
  background: rgba(37,99,235,.92);
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 20;
  pointer-events: none;
  animation: hintFade 3.2s ease forwards;
}

@keyframes hintFade {
  0%, 65% { opacity: 1; }
  100% { opacity: 0; }
}

/* 缩放加载遮罩 */
.zoom-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.55);
  z-index: 15;
  pointer-events: none;
}

/* 预览页 */
#previewPanel {
  position: relative;
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
  z-index: 5;
}

.back-btn {
  background: #f3f4f6;
  border: none;
  font-size: 13px;
  color: #374151;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.2s;
}

.back-btn:active {
  background: #e5e7eb;
}

#previewTitle {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.zoom-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  touch-action: manipulation;
}

.zoom-btn:active {
  background: #f3f4f6;
}

.download-float {
  position: absolute;
  bottom: 72px;
  right: 16px;
  height: 36px;
  padding: 0 18px;
  border-radius: 18px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
}

.download-float:active {
  background: #1d4ed8;
  transform: scale(0.95);
}

#zoomLevel {
  font-size: 12px;
  color: var(--sub);
  min-width: 36px;
  text-align: center;
  cursor: pointer;
}

/* 预览区 */
.preview-area {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  position: relative;
  -webkit-overflow-scrolling: touch;
  touch-action: none;
}

.preview-area img {
  max-width: 100%;
  transition: opacity 0.4s ease;
  pointer-events: auto;
  opacity: 1;
}

.empty-state {
  color: var(--sub);
  font-size: 15px;
  position: absolute;
}

/* 缩略图列表 */
.image-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid #eee;
  -webkit-overflow-scrolling: touch;
}

.image-thumbs .thumb {
  width: 44px;
  height: 34px;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.image-thumbs .thumb.active {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
}

.image-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 加载动画 */
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === 头部链接 === */
.header-links {
  display: flex;
  align-items: center;
}

.partner-tag {
  font-size: 11px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  background: #eef2ff;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 用户按钮 */
.user-btn-text {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.user-btn-text:hover, .user-btn-text:active {
  background: #1d4ed8;
}

.user-btn-text.logged-in {
  background: #eef2ff;
  color: #2563eb;
}

/* 登录弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: 300px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* 小程序二维码弹窗 */
.mp-box { text-align: center; }
.mp-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.mp-qr { width: 210px; height: auto; display: block; margin: 0 auto; border-radius: 12px; }

/* 问题与反馈 */
.feedback-panel { padding: 20px 16px 32px; max-width: 560px; margin: 0 auto; }
.fb-types { display: flex; gap: 8px; margin: 16px 0; }
.fb-type { flex: 1; padding: 10px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer; }
.fb-type.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.fb-textarea { width: 100%; min-height: 140px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; resize: vertical; box-sizing: border-box; font-family: inherit; }
.fb-input { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; margin-top: 10px; box-sizing: border-box; }
.fb-submit { width: 100%; padding: 12px; margin-top: 14px; border: none; border-radius: 12px; background: #2563eb; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.fb-submit:disabled { opacity: 0.6; }
.fb-msg { margin-top: 10px; font-size: 13px; text-align: center; }

.modal-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
}

.modal-tab {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #6b7280;
  transition: all 0.2s;
}

.modal-tab.active {
  background: #fff;
  color: #1f2937;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.modal-box::-webkit-scrollbar{display:none}
.modal-box input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 10px;
  outline: none;
}

.login-msg {
  font-size: 12px;
  color: #dc2626;
  min-height: 18px;
  margin-bottom: 4px;
}

.terms-text {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 4px;
}

.terms-text a {
  color: #2563eb;
  text-decoration: none;
}

.modal-btns {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-outline, .btn-primary {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline {
  background: #f3f4f6;
  color: #374151;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

/* 收藏筛选文字 */
.fav-filter-text {
  padding: 0 14px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.fav-filter-text.active {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #b45309;
}

/* 收藏文字 */
.city-fav {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 12px;
  background: transparent;
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.city-fav[data-city].faved {
  color: #b45309;
  background: #fef3c7;
}

/* === 桌面端布局（>768px）=== */
@media (min-width: 768px) {
  body {
    background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 30%, #f5f7fb 60%, #fef3c7 100%);
  }

  .app {
    display: grid;
    grid-template-columns: 360px 1fr;
    grid-template-rows: auto auto 1fr;
    height: 100vh;
    max-width: 100%;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
  }

  /* 头部跨全宽 */
  header {
    grid-column: 1 / 3;
    grid-row: 1;
    position: static;
    padding: 12px 20px;
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: auto;
  }

  /* 底部导航 → 侧栏标签 */
  .dock {
    grid-column: 1;
    grid-row: 2;
    position: static;
    width: auto;
    flex-direction: row;
    padding: 4px 8px;
    background: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    border-top: none;
    gap: 2px;
    z-index: auto;
  }

  .dock-item {
    flex-direction: row;
    gap: 5px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .dock-icon svg { width: 18px; height: 18px; }
  [data-tab="ranking"] .dock-icon svg { width: 16px; height: 16px; }
  [data-tab="links"] .dock-icon svg { width: 16px; height: 16px; }
  [data-tab="feedback"] .dock-icon svg { width: 17px; height: 17px; }

  /* 左侧面板 */
  .panel {
    display: none !important;
  }
  .panel.active {
    display: flex !important;
    flex-direction: column;
    grid-column: 1;
    grid-row: 3;
    overflow-y: auto;
    border-right: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.5);
  }

  /* 预览区占据右侧两行 */
  #previewPanel {
    display: flex !important;
    flex-direction: column;
    grid-column: 2;
    grid-row: 2 / 4;
    background: #fafbfc;
    border: none;
    overflow: hidden;
  }

  #previewPanel .preview-top {
    flex-shrink: 0;
    padding: 12px 20px;
    background: rgba(255,255,255,0.9);
    border-bottom: 1px solid #eee;
  }

  #previewPanel #backBtn { display: none; }

  .preview-area {
    flex: 1;
    background: #fafbfc;
    padding: 20px;
  }

  .preview-area img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  }

  .empty-state { font-size: 16px; position: static; }

  .image-thumbs {
    flex-shrink: 0;
    justify-content: center;
    padding: 10px 20px;
    border-top: 1px solid #eee;
  }

  .image-thumbs .thumb { width: 50px; height: 38px; font-size: 13px; }

  /* 搜索栏 */
  .search-bar {
    flex-shrink: 0;
    padding: 10px 12px;
    background: transparent;
    position: static;
  }

  .city-list { padding: 0 12px 20px; }
  .ranking-list { padding: 8px 12px; }
  .links-grid { padding: 16px 12px; gap: 12px; }
  .link-card { padding: 20px 12px; font-size: 13px; }
  .link-icon { font-size: 32px; }

  /* 交互效果 */
  .city-card:hover {
    background: #f0f4ff;
    box-shadow: 0 4px 20px rgba(37,99,235,0.08);
    transform: translateX(3px);
  }
  .link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  }
  .ranking-card:hover {
    background: #f0f4ff;
    transform: translateX(3px);
  }

  /* 版权 */
  .footer-info {
    padding: 12px;
    border-top: 1px solid rgba(0,0,0,0.04);
    margin-top: auto;
    flex-shrink: 0;
  }

  /* 滚动条美化 */
  .panel::-webkit-scrollbar { width: 4px; }
  .panel::-webkit-scrollbar-track { background: transparent; }
  .panel::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
  .preview-area::-webkit-scrollbar { width: 6px; }
  .preview-area::-webkit-scrollbar-track { background: transparent; }
  .preview-area::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
}

/* Logo竖杠分隔 */
.logo-divider{font-size:28px;color:#d1d5db;font-weight:200;margin:0 10px;user-select:none;line-height:72px}
.logo-dark{display:none !important}
.logo-light{display:block !important}
#previewArea{cursor:grab}

/* 深色模式 */
@media(prefers-color-scheme:dark){
  body{background:#16213e;color:#e5e7eb}
  .more-section{background:rgba(30,30,60,.7);border-color:rgba(255,255,255,.08)}
  .more-link-card{background:rgba(40,40,70,.8);color:#e5e7eb;border-color:rgba(255,255,255,.06)}
  .more-link-card:active{background:#1e3a5f}
  .logo-dark{display:block !important}
  .logo-light{display:none !important}
  .app{background:#16213e}
  .city-card,.link-card,.ranking-card{background:rgba(30,30,60,.7);border-color:rgba(255,255,255,.08);color:#e5e7eb}
  .city-card:hover{background:#1e1e50}
  .dock{background:rgba(20,20,40,.9)}
  .dock-item.active{background:#1e3a5f;color:#60a5fa}
  .announce-card{background:rgba(30,30,60,.7);border-color:rgba(255,255,255,.08);box-shadow:none}
  .announce-card p{color:#9ca3af}
  .announce-item{border-color:rgba(255,255,255,.08)}
  .announce-item-content{color:#aab3c5}
  .city-avatar{background:#2a2a4a;color:#8b9cf5}
  .ranking-icon{background:#1e3a5f;color:#60a5fa}
  .search-bar input{background:rgba(30,30,60,.7);color:#e5e7eb;border-color:rgba(255,255,255,.1)}
  header{background:rgba(20,20,40,.8);border-color:rgba(255,255,255,.05)}
  .preview-area,.image-thumbs{background:#0f0f23}
  .zoom-loading{background:rgba(15,15,35,.55)}
  .logo-divider{color:#555}
  .back-btn{color:#60a5fa}
  .panel.active{background:rgba(20,20,40,.5)}
  #previewPanel .preview-top{background:rgba(20,20,40,.85)}
  .modal-box{background:#1e1e3a;color:#e5e7eb}
  .modal-box input{background:#2a2a4a;color:#e5e7eb;border-color:#444}
  .modal-tabs{background:#2a2a4a}
  .modal-tab{color:#aaa}
  .modal-tab.active{background:#3a3a5a;color:#fff}
  .btn-outline{background:#2a2a4a;color:#ccc}
  .zoom-btn,.fav-filter-text{background:#2a2a4a;color:#ccc;border-color:#444}
  .thumb{border-color:#444;background:#2a2a4a;color:#aaa}
  .thumb.active{border-color:#60a5fa;background:#1e3a5f;color:#60a5fa}
  .loading-spinner{border-color:#333;border-top-color:#60a5fa}
  .province-header{color:#aaa}
  .footer-info,.copyright,.icp,.beian{color:#888}
  .fb-type{background:#2a2a4a;color:#aaa;border-color:#444}
  .fb-type.active{background:#2563eb;color:#fff;border-color:#2563eb}
  .fb-textarea,.fb-input{background:#2a2a4a;color:#e5e7eb;border-color:#444}
}

/* 视口裁切模式：固定视口，避免滚动条改变可视区域大小 */
.preview-area{overflow:hidden}
