.hidden { display: none !important; }

/* ========== 禁止选中/复制/右键 ========== */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img, .card-image img, .thumb img, .detail-main-image img {
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  pointer-events: auto; /* 允许点击，但禁止拖拽 */
}

/* 防止图片被另存为 */
img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff4655;
  --primary-dark: #bd3944;
  --bg-dark: #0f1923;
  --bg-card: #1a2734;
  --bg-header: rgba(15, 25, 35, 1);
  --text-primary: #ece8e1;
  --text-secondary: #8b98a5;
  --accent: #ffd700;
  --border: rgba(255, 70, 85, 0.3);
  --glow: 0 0 20px rgba(255, 70, 85, 0.5);
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: auto;
}


/* 自定义光标 */
.cursor-glow {
  position: fixed;
  left: 0px;
  top: 0px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 70, 85, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  will-change: left, top;
}


/* ========== 粒子画布 ========== */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  }

/* ========== 开场动画 ========== */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0f14 0%, #1a1f2e 50%, #0a0f14 100%);
  z-index: 1000;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-screen.fade-out {
  opacity: 0;
  transform: scale(1.1);
  }

.intro-content {
  text-align: center;
  z-index: 2;
}

.title-glitch {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(255, 70, 85, 0.8), 0 0 40px rgba(255, 70, 85, 0.4);
  animation: glitch 2s infinite, fadeInUp 1s ease;
  position: relative;
}

.title-glitch::before,
.title-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.title-glitch::before {
  animation: glitchTop 2s infinite;
  color: #0ff;
  clip-path: inset(0 0 60% 0);
}

.title-glitch::after {
  animation: glitchBottom 2s infinite;
  color: #f0f;
  clip-path: inset(60% 0 0 0);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 1rem 0 2rem;
  animation: fadeInUp 1s ease 0.3s both;
}

.start-btn {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 8px;
  
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease 0.6s both, pulse 2s infinite;
  transition: transform 0.3s, box-shadow 0.3s;
}

.start-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--glow), 0 10px 30px rgba(255, 70, 85, 0.4);
}

.start-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

/* ========== 主界面 ========== */
.main-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.main-app.hidden {
  display: none;
}

/* 顶部导航 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

.logo {
  display: flex;
  flex-direction: column;
  
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s;
  
  position: relative;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 80%;
}

/* ========== 快速模式按钮 ========== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* 统一的头部按钮样式 */
.header-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  background: rgba(255, 70, 85, 0.1);
  backdrop-filter: blur(10px);
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 70, 85, 0.3);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.header-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 70, 85, 0.2), transparent);
  transition: left 0.5s;
}

.header-btn:hover::before {
  left: 100%;
}

.header-btn:hover {
  background: rgba(255, 70, 85, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 70, 85, 0.3);
}

.header-btn:active {
  transform: translateY(0);
}

.header-btn .btn-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.header-btn .btn-text {
  font-weight: 600;
}

/* 快速模式按钮 - 特殊样式 */
.fast-mode-btn {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.15), rgba(189, 57, 68, 0.15));
  border-color: var(--primary);
}

.fast-mode-btn:hover {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.3), rgba(189, 57, 68, 0.3));
  box-shadow: 0 4px 16px rgba(255, 70, 85, 0.5);
}

.fast-mode-btn .btn-icon {
  animation: pulse 2s ease-in-out infinite;
}

/* 安装按钮 - 特殊样式 */
.install-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
  border-color: rgba(16, 185, 129, 0.5);
  color: #10b981;
}

.install-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
  border-color: #10b981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

/* 缓存信息按钮 */
.cache-info-btn .btn-text {
  display: none; /* 默认只显示图标 */
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

/* 旧样式保留用于兼容 */
.fast-mode-icon {
  font-size: 1.2rem;
}

.cache-info-icon {
  font-size: 1.2rem;
}

/* ========== 缓存信息弹窗 ========== */
.cache-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.cache-modal.hidden {
  display: none;
}

.cache-modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.2rem;
  max-width: 360px;
  width: 85%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 70, 85, 0.3);
  position: relative;
}

.cache-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s;
}

.cache-modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* 弹窗滚动条样式 */
.cache-modal-content::-webkit-scrollbar {
  width: 8px;
}

.cache-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.cache-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.cache-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.cache-modal-title {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

.cache-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.cache-info-item {
  background: rgba(255, 70, 85, 0.05);
  border: 1px solid rgba(255, 70, 85, 0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.cache-info-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.cache-info-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary);
}

.storage-info {
  background: rgba(255, 70, 85, 0.05);
  border: 1px solid rgba(255, 70, 85, 0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.storage-bar {
  width: 100%;
  height: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.storage-used {
  height: 100%;
  background: linear-gradient(90deg, #28a745 0%, #ffd700 70%, #ff4655 100%);
  transition: width 0.5s ease;
  border-radius: 10px;
}

.storage-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.storage-text strong {
  color: var(--primary);
}

.cache-info-tip {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cache-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.clean-cache-btn,
.clear-all-cache-btn {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
}

.clean-cache-btn {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #333;
}

.clean-cache-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.clear-all-cache-btn {
  background: linear-gradient(135deg, #ff4655 0%, #bd3944 100%);
  color: white;
}

.clear-all-cache-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
}

/* ========== 安装指南样式 ========== */
.install-guide {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.guide-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(26, 39, 52, 0.5);
  border-radius: 12px;
  border: 1px solid rgba(255, 70, 85, 0.2);
}

.guide-section h3 {
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-steps {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.guide-steps p {
  margin: 1rem 0 0.5rem 0;
}

.guide-steps p:first-child {
  margin-top: 0;
}

.guide-steps ol {
  margin: 0.8rem 0 1.2rem 1.5rem;
  padding: 0;
}

.guide-steps li {
  margin: 0.6rem 0;
  color: var(--text-primary);
}

.guide-steps strong {
  color: var(--primary);
  font-weight: 600;
}

.guide-tip {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.1), rgba(255, 70, 85, 0.05));
  border-left: 4px solid var(--primary);
  padding: 1.2rem 1.5rem;
  margin-top: 2rem;
  border-radius: 8px;
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.guide-tip strong {
  color: var(--primary);
  font-weight: 600;
}

/* 安装指南弹窗特殊样式 */
#installGuideModal .cache-modal-content {
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
}

#installGuideModal .cache-modal-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* ========== 快速模式弹窗 ========== */
.fast-mode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.3s ease;
}

.fast-mode-modal.hidden {
  display: none;
}

.fast-mode-modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 340px;
  width: 85%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 70, 85, 0.4);
  text-align: center;
  position: relative;
}

/* 最小化按钮 */
.fm-minimize-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-minimize-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* 最小化浮窗 */
.fast-mode-minimized {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 2px solid rgba(255, 70, 85, 0.4);
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  z-index: 10002;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: slideInRight 0.3s ease;
}

.fast-mode-minimized.hidden {
  display: none;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fm-mini-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.fm-mini-icon {
  font-size: 1.2rem;
}

.fm-mini-text {
  color: var(--text-primary);
  white-space: nowrap;
}

.fm-mini-percent {
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
}

.fm-mini-expand {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 70, 85, 0.2);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fm-mini-expand:hover {
  background: rgba(255, 70, 85, 0.4);
  transform: scale(1.1);
}

.fast-mode-modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.fast-mode-modal-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.fast-mode-modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.fast-mode-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.fast-mode-stat-item {
  background: rgba(255, 70, 85, 0.08);
  border: 1px solid rgba(255, 70, 85, 0.25);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  min-width: 90px;
}

.fast-mode-stat-value {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.fast-mode-stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fast-mode-modal-tip {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.fast-mode-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.fm-btn {
  flex: 1;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  max-width: 160px;
}

.fm-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fm-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.fm-btn-start {
  background: linear-gradient(135deg, #ff4655 0%, #bd3944 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
}

.fm-btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 70, 85, 0.6);
}

.fm-progress-bar-wrap {
  width: 100%;
  height: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0 0.8rem;
}

.fm-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4655, #ffd700);
  border-radius: 12px;
  transition: width 0.3s ease;
}

.fm-progress-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* 响应式：手机端 */
@media (max-width: 768px) {
  /* ========== 顶部按钮 ========== */
  .header-actions {
    gap: 0.5rem;
  }

  .header-btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
  }

  .header-btn .btn-text {
    display: none; /* 手机上只显示图标 */
  }

  .header-btn .btn-icon {
    width: 20px;
    height: 20px;
  }

  .cache-info-btn .btn-text {
    display: none;
  }

  /* ========== 缓存信息弹窗 ========== */
  .cache-modal-content {
    width: 95%;
    padding: 1rem; /* 从2rem缩小到1rem */
    max-width: none;
  }

  .cache-modal-title {
    font-size: 1.3rem; /* 从1.8rem缩小 */
    margin-bottom: 1rem; /* 从1.5rem缩小 */
  }

  .cache-info-grid {
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 0.75rem; /* 从1rem缩小 */
  }

  .cache-info-item {
    padding: 0.75rem; /* 从1rem缩小 */
  }

  .cache-info-label {
    font-size: 0.8rem; /* 从0.85rem缩小 */
  }

  .cache-info-value {
    font-size: 1.4rem; /* 从1.8rem缩小 */
  }

  .cache-modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cache-modal-actions button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .storage-info {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }

  .cache-info-tip {
    padding: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  /* ========== 快速模式弹窗 ========== */
  .fast-mode-modal-content {
    width: 95%;
    padding: 1.5rem; /* 从2.5rem缩小 */
    max-width: none;
  }

  .fast-mode-modal-icon {
    font-size: 2.5rem; /* 从3.5rem缩小 */
    margin-bottom: 0.75rem;
  }

  .fast-mode-modal-title {
    font-size: 1.4rem; /* 从1.8rem缩小 */
    margin-bottom: 0.6rem;
  }

  .fast-mode-modal-desc {
    font-size: 0.85rem; /* 从0.95rem缩小 */
    margin-bottom: 1rem;
  }

  .fast-mode-stats {
    flex-wrap: wrap; /* 允许换行 */
    gap: 0.75rem; /* 从1.5rem缩小 */
    margin-bottom: 1rem;
  }

  .fast-mode-stat-item {
    padding: 0.75rem 1rem; /* 从1rem 1.5rem缩小 */
    min-width: 70px; /* 从90px缩小 */
    flex: 1; /* 自适应宽度 */
  }

  .fast-mode-stat-value {
    font-size: 1.3rem; /* 从1.6rem缩小 */
    margin-bottom: 0.25rem;
  }

  .fast-mode-stat-label {
    font-size: 0.75rem; /* 从0.8rem缩小 */
  }

  .fast-mode-modal-tip {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .fast-mode-modal-actions {
    gap: 0.75rem;
  }

  .fast-mode-modal-actions button {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* ========== 快速模式进度 ========== */
  .fast-mode-progress-stats {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .fast-mode-progress-item {
    padding: 0.5rem;
  }

  .fast-mode-progress-value {
    font-size: 1.2rem;
  }

  .fast-mode-progress-label {
    font-size: 0.7rem;
  }

  /* ========== 安装指南弹窗 ========== */
  #installGuideModal .cache-modal-content {
    padding: 1.5rem; /* 从2.5rem缩小 */
    max-width: none;
  }

  #installGuideModal .cache-modal-title {
    font-size: 1.3rem; /* 从1.8rem缩小 */
    margin-bottom: 1rem; /* 从2rem缩小 */
  }

  .guide-section {
    margin-bottom: 1rem; /* 从2rem缩小 */
    padding: 1rem; /* 从1.5rem缩小 */
  }

  .guide-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .guide-steps {
    font-size: 0.85rem;
  }

  .guide-steps ol {
    padding-left: 1.25rem;
  }

  .guide-steps li {
    margin-bottom: 0.5rem;
  }

  .guide-tip {
    padding: 0.75rem; /* 从1rem缩小 */
    font-size: 0.85rem;
    line-height: 1.5;
  }

  /* ========== 筛选区优化 ========== */
  .filter-section {
    padding: 1rem; /* 从2rem缩小 */
    gap: 1rem; /* 从2rem缩小 */
    margin-top: 70px; /* 手机端标题更小 */
  }

  .filter-group {
    min-width: 100%; /* 全宽显示 */
  }

  .filter-group label {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .filter-option {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* ========== 内容网格 ========== */
  .content-grid {
    grid-template-columns: 1fr; /* 单列布局 */
    gap: 1rem; /* 从2rem缩小 */
    padding: 1rem; /* 从2rem缩小 */
  }

  /* ========== 最小化浮窗 ========== */
  .fast-mode-minimized {
    bottom: 10px;
    right: 10px;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .fm-mini-progress {
    font-size: 0.8rem;
  }

  .fm-mini-bar {
    height: 3px;
  }

  /* ========== 详情页优化 ========== */
  .detail-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .detail-nav-prev {
    left: 8px;
  }

  .detail-nav-next {
    right: 8px;
  }

  .detail-image-indicator {
    bottom: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .indicator-current {
    font-size: 1rem;
  }

  .detail-main-image img {
    max-height: 300px;
  }

  .detail-container {
    padding: 1rem;
  }

  .detail-title {
    font-size: 1.5rem;
  }

  .back-btn {
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ========== 筛选区 ========== */
.filter-section {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  background: rgba(26, 39, 52, 0.5);
  backdrop-filter: blur(5px);
  flex-wrap: wrap;
  margin-top: 80px; /* 为固定标题留出空间 */
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-option {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-option:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.5);
}

/* ========== 内容网格 ========== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  min-height: 400px;
}

/* 卡片容器 - 必须始终可见，不受图片加载影响 */
.card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  /* 移除transition，避免快速滚动时卡片消失 */
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* 优化滚动性能：确保卡片独立渲染，始终可见 */
  contain: layout style paint;
  /* 强制保持在文档流中，避免被优化掉 */
  min-height: 350px;
}

.card:hover {
  /* 简化hover效果，只改变边框和阴影，不使用transform避免影响滚动 */
  box-shadow: var(--glow);
  border-color: var(--primary);
}

.card-body {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-type-label {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  width: fit-content;
  color: white;
}

.card-type-label.type-gongji {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.card-type-label.type-fanghou {
  background: linear-gradient(135deg, #4ecdc4, #44bd9e);
}

.card-info {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-map,
.card-hero {
  display: inline-block;
}

.content-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  position: relative;
  /* 优化滚动性能：限制重排范围，提示浏览器优化渲染 */
  contain: layout style paint;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  }

.content-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--glow);
  border-color: var(--primary);
}

.content-card:hover::before {
  opacity: 1;
}

.card-image {
  width: 100%;
  height: 200px;
  /* 背景始终存在，即使图片没加载 */
  background: linear-gradient(135deg, #1a2734, #2a3a4a);
  overflow: hidden;
  position: relative;
  /* 确保图片区域独立渲染，不影响卡片显示 */
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 图片在最上层，背景作为占位 */
  position: absolute;
  top: 0;
  left: 0;
  /* 移除所有动画和过渡 */
  background: transparent;
}

/* 懒加载已移除 - 图片直接显示 */
.lazy-img {
  /* 已废弃，保留样式以防兼容性问题 */
  opacity: 1;
}

.lazy-loaded {
  /* 已废弃，保留样式以防兼容性问题 */
  opacity: 1;
}

.content-card:hover .card-image img {
  /* 移除hover缩放效果，避免影响滚动性能 */
}

.card-image .placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.card-body {
  padding: 1.5rem;
}






.card-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.25rem 0.6rem;
  background: rgba(255, 70, 85, 0.15);
  color: var(--primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-map,
.card-hero {
  display: inline-block;
}

.card-image-placeholder {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #1a2734, #2a3a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 3rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-type {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
}

.card-type.gongji {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
}

.card-type.fangshou {
  background: linear-gradient(135deg, #4ecdc4, #44bd9e);
  color: white;
}

/* ========== 底部 ========== */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
/* ========== 动画 ========== */
@keyframes glitch {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 70, 85, 0.8); }
  25% { text-shadow: -2px 0 #0ff, 2px 0 #f0f; }
  50% { text-shadow: 2px 0 #0ff, -2px 0 #f0f; }
  75% { text-shadow: 0 0 30px rgba(255, 70, 85, 1); }
}

@keyframes glitchTop {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitchBottom {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, -2px); }
  40% { transform: translate(2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(-2px, 2px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 70, 85, 0.4); }
  50% { box-shadow: 0 0 40px rgba(255, 70, 85, 0.8); }
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes cardAppear {
  from { opacity: 0; transform: scale(0.8) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
/* ========== 点位详情页 ========== */
.detail-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: var(--bg-dark);
  padding: 0;
}
.detail-page.hidden { display: none; }
.back-btn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(26, 39, 52, 0.85);
  border: 1px solid rgba(255, 70, 85, 0.4);
  border-radius: 6px;
  color: #ece8e1;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}
.back-btn:hover {
  background: #ff4655;
  border-color: #ff4655;
  color: #fff;
  transform: translateX(-4px);
  box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3);
}
.back-btn:active {
  transform: translateX(-2px) scale(0.98);
}
.detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}
.detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ece8e1;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.detail-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.detail-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 70, 85, 0.12);
  color: #8b98a5;
  border-radius: 4px;
  font-size: 0.85rem;
}
.detail-tag.type-tag { background: rgba(255, 70, 85, 0.2); color: #ff4655; font-weight: 600; }
.detail-tag.type-tag.gongji { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }
.detail-tag.type-tag.fangshou { background: rgba(78, 205, 196, 0.2); color: #4ecdc4; }
.detail-section { margin-bottom: 2.5rem; }
.detail-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ece8e1;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #ff4655;
}
.detail-desc {
  font-size: 1rem;
  color: #8b98a5;
  line-height: 1.8;
  background: #1a2734;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 70, 85, 0.3);
}
.detail-hint {
  font-size: 0.85rem;
  color: #8b98a5;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.detail-images {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 70, 85, 0.3);
}

/* 主图包裹器 - 支持左右切换 */
.detail-main-image-wrapper {
  position: relative;
  width: 100%;
  background: #0a0f14;
}

.detail-main-image {
  width: 100%;
  background: #0a0f14;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  touch-action: pan-y pinch-zoom; /* 允许垂直滚动和双指缩放 */
}

.detail-main-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease, transform 0.15s ease;
  cursor: zoom-in;
  user-select: none;
}

.detail-main-image img:hover {
  transform: scale(1.02);
}

/* 左右切换按钮 - 完全隐藏 */
.detail-nav-btn {
  display: none !important;
}

/* 图片指示器 */
.detail-image-indicator {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 70, 85, 0.5);
  z-index: 10;
}

.indicator-current {
  color: var(--primary);
  font-size: 1.1rem;
}
.detail-thumbs {
  display: flex;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(15, 25, 35, 0.9);
  overflow-x: auto;
}

.detail-thumb {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 70, 85, 0.3);
  cursor: auto;
  transition: all 0.3s;
  opacity: 0.6;
}

.detail-thumb:hover {
  opacity: 1;
  border-color: rgba(255, 70, 85, 0.6);
  transform: scale(1.05);
}

.detail-thumb.active {
  opacity: 1;
  border-color: #ff4655;
  box-shadow: 0 0 20px rgba(255, 70, 85, 0.5);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: auto
  border: 2px solid transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: rgba(255, 70, 85, 0.5); }
.thumb.active { border-color: #ff4655; box-shadow: 0 0 10px rgba(255, 70, 85, 0.3); }


/* ========== 管理后台页面 ========== */
.admin-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f1419 0%, #1a2734 100%);
  z-index: 3000;
  overflow: hidden;
}

.admin-container {
  display: flex;
  height: 100vh;
}

/* 侧边栏 */
.admin-sidebar {
  width: 260px;
  background: rgba(26, 39, 52, 0.8);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 70, 85, 0.2);
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}

.admin-logo {
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(255, 70, 85, 0.2);
  margin-bottom: 2rem;
}

.admin-logo h2 {
  color: #ff4655;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

.admin-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #8b98a5;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: auto;
  font-size: 1rem;
}

.admin-nav-item .nav-icon {
  font-size: 1.5rem;
}

.admin-nav-item:hover {
  background: rgba(255, 70, 85, 0.1);
  color: #ff4655;
}

.admin-nav-item.active {
  background: rgba(255, 70, 85, 0.2);
  color: #ff4655;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
}

.admin-close-btn {
  margin: 2rem 1rem 0;
  padding: 1rem;
  background: rgba(255, 70, 85, 0.1);
  border: 1px solid rgba(255, 70, 85, 0.3);
  border-radius: 8px;
  color: #ff4655;
  font-size: 1rem;
  font-weight: 600;
  cursor: auto;
  transition: all 0.3s;
}

.admin-close-btn:hover {
  background: rgba(255, 70, 85, 0.2);
  box-shadow: 0 0 20px rgba(255, 70, 85, 0.3);
}

/* 主内容区 */
.admin-main {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 3rem;
}

.admin-tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.admin-tab-content.active {
  display: block;
}

.admin-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-tab-header h3 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}

.add-btn {
  padding: 0.8rem 1.5rem;
  background: #ff4655;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: auto;
  transition: all 0.3s;
}

.add-btn:hover {
  background: #bd3944;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 70, 85, 0.5);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(26, 39, 52, 0.6);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 70, 85, 0.2);
}

.admin-table th {
  background: rgba(255, 70, 85, 0.15);
  color: #ff4655;
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-table tbody tr {
  transition: all 0.3s;
}

.admin-table tbody tr:hover {
  background: rgba(255, 70, 85, 0.08);
}

.admin-table td {
  color: #8b98a5;
}

.action-btn {
  padding: 0.4rem 0.8rem;
  margin: 0 0.25rem;
  border: none;
  border-radius: 4px;
  cursor: auto;
  font-size: 0.85rem;
  transition: all 0.3s;
  font-weight: 500;
}

.edit-btn {
  background: rgba(78, 205, 196, 0.2);
  color: #4ecdc4;
}

.edit-btn:hover {
  background: rgba(78, 205, 196, 0.3);
  box-shadow: 0 0 10px rgba(78, 205, 196, 0.4);
}

.delete-btn {
  background: rgba(255, 70, 85, 0.2);
  color: #ff4655;
}

.delete-btn:hover {
  background: rgba(255, 70, 85, 0.3);
  box-shadow: 0 0 10px rgba(255, 70, 85, 0.4);
}

/* 旧版浮窗管理后台样式（保留兼容） */
.admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 2000;
  overflow-y: auto;
  padding: 2rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-header h2 {
  color: #ff4655;
  font-size: 2rem;
}

.close-admin {
  background: none;
  border: none;
  color: #8b98a5;
  font-size: 2rem;
  cursor: auto;
  transition: color 0.3s;
}

.close-admin:hover {
  color: #ff4655;
}

.add-btn {
  padding: 0.8rem 1.5rem;
  background: #ff4655;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: auto;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.add-btn:hover {
  background: #bd3944;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 70, 85, 0.5);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #1a2734;
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 70, 85, 0.3);
}

.admin-table th {
  background: rgba(255, 70, 85, 0.1);
  color: #ff4655;
  font-weight: 700;
}

.admin-table tr:hover {
  background: rgba(255, 70, 85, 0.05);
}

.action-btn {
  padding: 0.4rem 0.8rem;
  margin: 0 0.25rem;
  border: none;
  border-radius: 4px;
  cursor: auto
  font-size: 0.8rem;
  transition: all 0.3s;
}

.edit-btn {
  background: rgba(78, 205, 196, 0.2);
  color: #4ecdc4;
  cursor: auto
}

.delete-btn {
  background: rgba(255, 70, 85, 0.2);
  color: #ff4655;
  cursor: auto
}

.action-btn:hover {
  transform: scale(1.1);
  cursor: auto
}

/* ========== 弹窗 ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.modal-content {
  background: #1a2734;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 70, 85, 0.3);
  margin: 2rem 0;
}

.modal-content h3 {
  color: #ff4655;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #8b98a5;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  background: #0f1923;
  border: 1px solid rgba(255, 70, 85, 0.3);
  border-radius: 6px;
  color: #ece8e1;
  font-size: 1rem;
  cursor: auto;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff4655;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.submit-btn,
.cancel-btn {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: auto;
  transition: all 0.3s;
}

.submit-btn {
  background: #ff4655;
  color: white;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #8b98a5;
}

.submit-btn:hover {
  background: #bd3944;
  transform: translateY(-2px);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========== 图片预览 ========== */
.image-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.image-preview-item {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 70, 85, 0.2);
}

.image-preview-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: rgba(255, 70, 85, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: auto;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.image-preview-item .remove-image:hover {
  background: #ff4655;
  transform: scale(1.1);
}

.form-group input[type="file"] {
  padding: 0.8rem;
  cursor: auto;
}













/* 弹窗内部元素恢复 pointer-events */
.modal *,
.modal-content *,
.modal-content,
.form-group *,
.form-actions *,
.submit-btn,
.cancel-btn {
  pointer-events: auto;
}











/* ========== 登录页样式 ========== */
.login-page, .register-page {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  z-index: 1000;
}
.login-card {
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255, 70, 85, 0.3);
  border-radius: 12px;
  padding: 40px;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 0 40px rgba(255, 70, 85, 0.15);
}
.login-title {
  color: #ff4655;
  font-size: 24px;
  margin: 0 0 30px 0;
  text-align: center;
  font-weight: 700;
}
.login-card .form-group {
  margin-bottom: 20px;
}
.login-card .form-group label {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 6px;
}
.login-card .form-group input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.login-card .form-group input:focus {
  border-color: #ff4655;
}
.login-submit-btn {
  width: 100%;
  padding: 12px;
  background: #ff4655;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}
.login-submit-btn:hover {
  background: #e03543;
}
.login-switch {
  text-align: center;
  margin-top: 20px;
  color: #888;
  font-size: 13px;
}
.login-switch a {
  color: #ff4655;
  text-decoration: none;
  cursor: pointer;
}
.login-switch a:hover {
  text-decoration: underline;
}

/* ========== 用户信息栏 ========== */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.username-display {
  color: #ccc;
  font-size: 13px;
}
.logout-btn {
  background: rgba(255,70,85,0.15);
  color: #ff4655;
  border: 1px solid rgba(255,70,85,0.3);
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}
.logout-btn:hover {
  background: #ff4655;
  color: #fff;
}

/* ========== 图片灯箱 ========== */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: auto;
  animation: fadeIn 0.2s ease-out;
  overflow: hidden;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  display: block;
  cursor: zoom-in;
  transition: transform 0.1s ease-out;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: auto;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s;
  user-select: none;
  z-index: 1;
}

.lightbox-close:hover {
  opacity: 1;
  color: #ff4655;
}

/* 灯箱提示文字 */
.lightbox-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}