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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 渐变背景 - 模仿原站 */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 15% 85%, rgba(15, 70, 45, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(90, 65, 15, 0.4) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 90%, rgba(45, 20, 65, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(20, 20, 20, 1) 0%, #080808 100%);
  z-index: -1;
}

/* 前台粉嫩背景 */
.frontend .bg-gradient {
  background:
    radial-gradient(ellipse at 15% 15%, rgba(255, 150, 180, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 25%, rgba(255, 180, 200, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 75%, rgba(255, 170, 195, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(255, 200, 220, 0.25) 0%, transparent 45%),
    linear-gradient(160deg, #fff0f3 0%, #ffe8ee 25%, #fff5f7 55%, #ffeef2 80%, #fff8fa 100%);
}

/* 前台白粉主题 */
.frontend {
  color: #333;
}

.frontend .login-title,
.frontend .gallery-header h1,
.frontend .detail-title,
.frontend .card-title {
  color: #333;
}

.frontend .photo-card {
  background: #fff;
  border-color: rgba(255, 150, 180, 0.3);
  box-shadow: 0 2px 12px rgba(255, 150, 180, 0.08);
}

.frontend .photo-card:hover {
  border-color: rgba(255, 150, 180, 0.6);
  box-shadow: 0 8px 25px rgba(255, 150, 180, 0.15);
}

.frontend .card-location {
  color: #888;
}

.frontend .login-input {
  background: #fff;
  border-color: rgba(255, 150, 180, 0.3);
  color: #333;
}

.frontend .login-input::placeholder {
  color: #bbb;
}

.frontend .login-input:focus {
  border-color: rgba(255, 150, 180, 0.7);
}

.frontend .category-avatar {
  border-color: rgba(255, 150, 180, 0.3);
  background: #fff;
}

.frontend .category-name {
  color: #666;
}

.frontend .album-info-card {
  background: #fff;
  border-color: rgba(255, 150, 180, 0.2);
  box-shadow: 0 2px 12px rgba(255, 150, 180, 0.08);
}

.frontend .detail-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(255, 150, 180, 0.2);
}

.frontend .back-btn {
  color: #666;
}

.frontend .empty-state {
  color: #aaa;
}

.frontend .loading {
  color: #999;
}

.frontend .detail-photo-item {
  background: #fff;
  box-shadow: 0 2px 12px rgba(255, 150, 180, 0.08);
}

.frontend .detail-photo-desc {
  color: #666;
}

.frontend .nav-placeholder {
  color: #ccc;
}

/* 前台登录页蓝色主题 */
.frontend .login-btn {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.frontend .login-btn:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.frontend .login-error {
  color: #ef4444;
}

/* 顶部自定义文字 */
.top-banner {
  text-align: center;
  padding: 28px 20px 10px;
}

.top-line {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, #ffd700 30%, #ff6b9d 60%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.frontend .top-line {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff8fa3 25%, #d946ef 50%, #ff6b9d 75%, #ff8fa3 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(255, 107, 157, 0.2));
}

/* 导航区 */
.nav-section {
  position: relative;
  padding: 16px 0;
  overflow: hidden;
}

.nav-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}

.nav-bg.has-bg {
  opacity: 0.35;
}

.nav-content {
  position: relative;
  z-index: 1;
}

.nav-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 3px;
  background: linear-gradient(135deg, #fff 0%, #ffd700 25%, #ff6b9d 50%, #c084fc 75%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  text-shadow: 0 0 30px rgba(255, 107, 157, 0.4);
}

.frontend .nav-title {
  background: linear-gradient(135deg, #ff6b9d 0%, #ec4899 30%, #d946ef 60%, #ff6b9d 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 3px rgba(255, 107, 157, 0.2));
}

/* ========== 登录页 ========== */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
}

.login-lock {
  font-size: 64px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.3));
}

.frontend .login-lock {
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.25));
}

.login-title {
  font-size: 22px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.login-input {
  width: 260px;
  height: 46px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.login-input:focus {
  border-color: rgba(212, 184, 106, 0.5);
}

.login-btn {
  margin-top: 20px;
  width: 120px;
  height: 42px;
  background: linear-gradient(135deg, #d4b86a, #b89a4a);
  border: none;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 184, 106, 0.35);
}

.login-btn:active {
  transform: translateY(0);
}

.login-error {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}

/* ========== 相册主页 ========== */
.gallery-header {
  text-align: center;
  padding: 30px 20px 10px;
}

.gallery-header h1 {
  font-size: 20px;
  font-weight: 500;
  color: #e8e8e8;
  margin-bottom: 8px;
}

.gallery-header p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

/* 分类导航 */
.category-nav {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  overflow-x: auto;
  justify-content: center;
  flex-wrap: wrap;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.category-item:hover {
  transform: translateY(-2px);
}

.category-item.active .category-avatar {
  border-color: rgba(212, 184, 106, 0.7);
  box-shadow: 0 0 12px rgba(212, 184, 106, 0.3);
}

.frontend .category-item.active .category-avatar {
  border-color: #ff6b9d;
  box-shadow: 0 0 12px rgba(255, 107, 157, 0.3);
}

.category-avatar {
  width: 100px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.category-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.4);
}

.category-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 6px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(255, 215, 0, 0.4);
  letter-spacing: 1px;
}

/* 导航项文字允许两行显示 */
.category-item {
  flex-shrink: 0;
}

.category-empty {
  opacity: 0.3;
  cursor: default;
}

.category-empty:hover {
  transform: none;
}

/* 图片网格 */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.photo-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid rgba(0, 210, 180, 0.25);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 210, 180, 0.15), 0 0 15px rgba(0, 210, 180, 0.1);
  border-color: rgba(0, 230, 200, 0.5);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.photo-card-info {
  padding: 12px 14px;
}

/* 1. 标题 */
.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 2. 编号和已认证行 */
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.card-no {
  font-size: 12px;
  color: #d4b86a;
  font-weight: 500;
  background: rgba(212, 184, 106, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.card-verified {
  font-size: 11px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* 3. 位置 */
.card-location {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 4. 介绍 - 彩色渐变字体 */
.card-desc-color {
  font-size: 13px;
  line-height: 1.6;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff, #5f27cd);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorShift 6s ease infinite;
  word-break: break-all;
}

@keyframes colorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, 0.3);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

/* ========== 详情页 ========== */
.detail-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.back-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 6px 12px 6px 0;
}

.detail-title {
  font-size: 22px;
  font-weight: 500;
  color: #e8e8e8;
}

/* 详情页相册信息卡片 */
.album-detail-info {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.album-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 8px;
}

.detail-photos {
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.detail-photo-item {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.detail-photo-item img {
  width: 100%;
  display: block;
}

.detail-photo-desc {
  padding: 10px 14px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* ========== 后台管理 ========== */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* 顶部标题栏 */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-topbar h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

/* 标签导航 */
.admin-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 20px;
  overflow-x: auto;
}

.admin-tab {
  padding: 14px 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.admin-tab:hover {
  color: rgba(255, 255, 255, 0.8);
}

.admin-tab.active {
  color: #d4b86a;
  border-bottom-color: #d4b86a;
}

/* 标签内容 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-logout {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.admin-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-section h2 {
  font-size: 16px;
  margin-bottom: 16px;
  color: #e8e8e8;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.form-input, .form-select, .form-textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.form-select option {
  background: #1a1a1a;
  color: #fff;
  padding: 8px;
}

.form-select option:checked {
  background: #d4b86a;
  color: #1a1a1a;
}

.form-input { flex: 1; min-width: 150px; }
.form-select { min-width: 150px; }
.form-textarea { width: 100%; min-height: 60px; resize: vertical; }

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(212, 175, 55, 0.5);
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-primary {
  background: linear-gradient(135deg, #d4b86a, #b89a4a);
  color: #1a1a1a;
}

.btn-danger {
  background: rgba(220, 80, 80, 0.8);
  color: #fff;
}

.btn-small {
  padding: 5px 12px;
  font-size: 12px;
}

/* 相册列表 */
.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.album-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.album-item-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-item-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.album-item-count {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

/* 照片管理列表 */
.photo-manage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.photo-manage-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.photo-manage-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-manage-actions {
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.photo-manage-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  margin-right: 6px;
}

/* 上传区域 */
.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  margin-bottom: 12px;
}

.upload-area:hover, .upload-area.dragover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.05);
}

.upload-area-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.upload-area-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.upload-preview-item {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

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

/* 提示消息 */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 1000;
  animation: fadeIn 0.3s;
}

.toast.success { border-color: rgba(80, 200, 120, 0.4); }
.toast.error { border-color: rgba(220, 80, 80, 0.4); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* 加载中 */
.loading {
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
  .gallery-header h1 {
    font-size: 24px;
  }
  
  .top-banner {
    padding: 20px 16px 12px;
  }
  
  .top-line {
    font-size: 20px !important;
    line-height: 1.5;
  }
  
  .top-line.line2 {
    font-size: 17px !important;
  }
  
  .nav-title {
    font-size: 20px !important;
  }
  
  .category-nav {
    gap: 12px;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .category-avatar {
    width: 80px !important;
    height: 100px !important;
    border-radius: 12px;
  }
  
  .category-label {
    font-size: 12px !important;
    padding: 18px 4px 6px;
    white-space: normal;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .photo-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
    padding: 16px;
  }
  
  .photo-card {
    border-radius: 14px;
  }
  
  .card-title {
    font-size: 16px !important;
  }
  
  .card-no,
  .card-verified {
    font-size: 13px !important;
  }
  
  .card-location {
    font-size: 14px !important;
  }
  
  .card-desc-color {
    font-size: 14px !important;
    line-height: 1.6;
  }
  
  .album-info-card {
    padding: 20px !important;
    margin: 16px !important;
  }
  
  .detail-photo-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 16px;
  }
  
  .detail-photo-item {
    border-radius: 14px;
  }
  
  .detail-photo-desc {
    font-size: 15px !important;
    padding: 14px !important;
  }
  
  .detail-header {
    padding: 14px 16px !important;
  }
  
  .detail-title {
    font-size: 20px !important;
  }
  
  .back-btn {
    font-size: 15px !important;
  }
  
  .empty-state {
    font-size: 16px !important;
    padding: 40px 20px;
  }
  
  .login-title {
    font-size: 24px !important;
  }
  
  .login-input {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }
  
  .login-btn {
    font-size: 16px !important;
    padding: 14px !important;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    gap: 12px;
    padding: 12px;
  }
  
  .category-nav {
    gap: 10px;
  }
  
  .category-avatar {
    width: 76px !important;
    height: 96px !important;
  }
  
  .category-label {
    font-size: 11px !important;
  }
  
  .top-line {
    font-size: 18px !important;
  }
  
  .top-line.line2 {
    font-size: 15px !important;
  }
}

/* 弹窗 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

/* 位置管理 */
.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
}

.location-cover {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.location-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-cover-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 4px;
}

.admin .location-cover-text {
  color: #999;
}

.location-name {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  min-width: 60px;
}

/* ========== 后台灰色主题 ========== */
.admin {
  background: #f0f2f5;
  color: #333;
}

.admin .bg-gradient {
  background: linear-gradient(135deg, #f0f2f5 0%, #e8eaed 50%, #f0f2f5 100%);
}

.admin .login-title {
  color: #333;
}

.admin .login-input {
  background: #fff;
  border: 1px solid #d9d9d9;
  color: #333;
}

.admin .login-input::placeholder {
  color: #999;
}

.admin .login-input:focus {
  border-color: #8c8c8c;
}

.admin .admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.admin .admin-topbar h1 {
  color: #333;
}

.admin .admin-logout {
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
  color: #666;
}

.admin .admin-tabs {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.admin .admin-tab {
  color: #888;
}

.admin .admin-tab:hover {
  color: #555;
}

.admin .admin-tab.active {
  color: #333;
  border-bottom-color: #595959;
}

.admin .admin-section {
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.admin .admin-section h2 {
  color: #333;
}

.admin .form-input,
.admin .form-select,
.admin .form-textarea {
  background: #fff;
  border: 1px solid #d9d9d9;
  color: #333;
}

.admin .form-input::placeholder,
.admin .form-textarea::placeholder {
  color: #bbb;
}

.admin .form-input:focus,
.admin .form-select:focus,
.admin .form-textarea:focus {
  border-color: #8c8c8c;
}

.admin .form-select option {
  background: #fff;
  color: #333;
}

.admin .form-select option:checked {
  background: #595959;
  color: #fff;
}

.admin .upload-area {
  border-color: #d9d9d9;
  background: #fafafa;
}

.admin .upload-area:hover,
.admin .upload-area.dragover {
  border-color: #8c8c8c;
  background: #f5f5f5;
}

.admin .upload-area-text {
  color: #999;
}

.admin .album-item {
  background: #fafafa;
  border: 1px solid #e8e8e8;
}

.admin .album-item-name {
  color: #333;
}

.admin .album-item-count {
  color: #999;
}

.admin .location-item {
  background: #fafafa;
  border: 1px solid #e8e8e8;
}

.admin .location-cover {
  background: #f0f0f0;
  color: #999;
}

.admin .location-name {
  color: #333;
}

.admin .photo-manage-item {
  background: #fafafa;
  border: 1px solid #e8e8e8;
}

.admin .photo-manage-desc {
  color: #666;
}

.admin .toast {
  background: #fff;
  border: 1px solid #e8e8e8;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin .modal-content {
  background: #fff;
  border: 1px solid #e8e8e8;
}

.admin .modal-content h3 {
  color: #333;
}

/* 后台表单标签 */
.form-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.form-file {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

.admin .form-label {
  color: #666;
}

.admin .form-file {
  color: #666;
}

/* 子区域 */
.sub-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin .sub-section {
  border-top-color: #e8e8e8;
}

.sub-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sub-section-title {
  font-size: 15px;
  font-weight: 500;
  color: #e8e8e8;
}

.admin .sub-section-title {
  color: #333;
}

.sub-section-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.admin .sub-section-count {
  color: #999;
}
