/* 基础色与排版 */
:root {
  --bg: #f7f8fa;
  --text: #1f2d3d;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --shadow: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-strong: 0 12px 40px rgba(0,0,0,0.10);
  --blur-bg: rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.35);
}

html, body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0.2px;
}

/* 顶部导航 */
.navbar {
  font-size: 15px;
}
.navbar-brand {
  letter-spacing: 0.3px;
}

/* 导航栏上传按钮 - 毛玻璃风格 */
.navbar .btn-outline-primary {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #3b82f6;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.navbar .btn-outline-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

.navbar .btn-outline-primary:hover::before {
  left: 100%;
}

.navbar .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(59, 130, 246, 0.4);
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.navbar .btn-outline-primary:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.5);
  color: #1d4ed8;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* Hero 区域与搜索框 */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 40%, #f9fafb 100%);
}

/* 全新搜索框设计 - 毛玻璃风格 */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-wrap {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.search-wrap:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transform: translateY(-2px);
}

.search-wrap:focus-within {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 0 0 3px rgba(37, 99, 235, 0.15),
    0 25px 50px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  transform: translateY(-2px);
}

.search-wrap .input-group {
  display: flex;
  align-items: center;
  padding: 8px;
}

.search-wrap .input-group-text {
  background: transparent;
  border: none;
  padding: 0 20px 0 24px;
  color: #6b7280;
  font-size: 18px;
}

.search-wrap .form-control {
  background: transparent;
  border: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: #1f2937;
  box-shadow: none !important;
  flex: 1;
}

.search-wrap .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.search-wrap .form-control:focus {
  box-shadow: none !important;
  background: transparent;
}

.search-wrap .btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 16px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  color: white;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-right: 8px;
  position: relative;
  overflow: hidden;
}

.search-wrap .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.search-wrap .btn:hover::before {
  left: 100%;
}

.search-wrap .btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* 搜索图标 - 现代化设计 */
.search-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-block;
}

.search-icon::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-icon::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  width: 8px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.search-wrap:focus-within .search-icon {
  color: #3b82f6;
}

.search-wrap:focus-within .search-icon::before {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* 搜索提示文字 */
.search-hint {
  text-align: center;
  margin-top: 16px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

/* 卡片网格 - 毛玻璃风格 */
.card-logo {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.card-logo:hover::after {
  opacity: 1;
}

.card-logo:hover { 
  transform: translateY(-6px); 
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.logo-box {
  /* 透明 SVG 要有白色衬底，避免看不清 */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  z-index: 2;
}

.logo-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.06) 20%, 
    rgba(0, 0, 0, 0.08) 50%, 
    rgba(0, 0, 0, 0.06) 80%, 
    transparent 100%);
}
.logo-box img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
}

/* SVG 角标（卡片左上角） */
.badge-svg {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, 
    rgba(17, 24, 39, 0.9) 0%, 
    rgba(17, 24, 39, 0.8) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.card-body { 
  padding: 18px 18px 22px; 
  background: transparent;
  position: relative;
  z-index: 2;
}
.title { font-size: 15.5px; font-weight: 700; margin: 0 0 4px 0; line-height: 1.3; }
.subtitle { color: #7a8190; font-size: 12.5px; margin: 0; line-height: 1.35; }
.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.badge-category {
  background: linear-gradient(135deg, 
    rgba(243, 244, 246, 0.9) 0%, 
    rgba(243, 244, 246, 0.8) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #374151;
  font-weight: 600;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  letter-spacing: .5px;
  text-transform: uppercase; /* 分类字母大写 */
}

/* 元信息动作区（图标按钮） */
.meta-actions .icon {
  color: #6b7280;
  transition: color .15s ease, transform .15s ease;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(255, 255, 255, 0.6) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}
.icon-btn:hover { 
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15) 0%, 
    rgba(59, 130, 246, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}
.icon-btn:hover .icon { 
  color: var(--primary); 
  transform: scale(1.1);
}

/* 骨架屏 */
.skeleton {
  animation: shimmer 1.2s infinite linear;
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.skeleton-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.skeleton-thumb { height: 180px; }
.skeleton-line { height: 14px; margin-top: 10px; border-radius: 8px; }

/* 空状态 */
.empty-illustration {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e5e7eb 0, #eef2f7 60%, transparent 61%),
              radial-gradient(circle at 70% 40%, #e5e7eb 0, #eef2f7 60%, transparent 61%),
              linear-gradient(#eef2f7, #eef2f7);
}

/* 软件开发按钮 */
#software-dev-btn.software-dev-btn {
  position: fixed !important;
  right: 24px !important;
  bottom: 80px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #3b82f6 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  overflow: hidden !important;
  z-index: 1000 !important;
  cursor: pointer !important;
  display: block !important;
}

#software-dev-btn.software-dev-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s;
}

#software-dev-btn.software-dev-btn:hover::before {
  left: 100%;
}

#software-dev-btn.software-dev-btn:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

#software-dev-btn.software-dev-btn:focus {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  color: #1d4ed8 !important;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: none;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  color: #3b82f6;
  font-size: 18px;
  transition: all 0.3s ease;
}

.back-to-top.show { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
}

.back-to-top:hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(255, 255, 255, 0.9) 100%);
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 页脚 */
.footer { font-size: 14px; background: #fff; }

/* 玻璃质感顶部导航 */
.glass-nav {
  backdrop-filter: saturate(170%) blur(10px);
  -webkit-backdrop-filter: saturate(170%) blur(10px);
  background: var(--blur-bg);
  border-bottom: 1px solid var(--glass-border) !important;
}

/* 粘性滤镜条（可扩展分类/排序控件） */
.filters-bar {
  position: sticky;
  top: 64px; /* 紧随导航栏 */
  z-index: 1010;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(229,231,235,.8);
}

/* 上传区域细节优化 */
#upload-form .form-control,
#upload-form .form-control-file {
  font-size: 14px;
}
#upload-form .btn {
  padding: 6px 12px;
}

/* 响应式微调 */
@media (min-width: 576px) {
  .logo-box { height: 180px; }
}
@media (min-width: 992px) {
  .logo-box { height: 190px; }
}

/* 移动端优化 */
@media (max-width: 767px) {
  /* 移动端卡片布局 - 一行一个 */
  .card-logo {
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  
  /* 移动端图片容器 */
  .logo-box {
    height: 200px;
    padding: 20px;
    border-radius: 12px 12px 0 0;
  }
  
  /* 移动端图片 */
  .logo-box img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
  }
  
  /* 移动端卡片内容 */
  .card-body {
    padding: 16px 20px 20px;
  }
  
  /* 移动端标题 */
  .title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
  }
  
  /* 移动端副标题 */
  .subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  /* 移动端元信息 */
  .meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* 移动端分类标签 */
  .badge-category {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
  }
  
  /* 移动端下载次数 */
  .meta .text-muted {
    font-size: 12px;
    color: #9ca3af;
  }
  
  /* 移动端操作按钮 */
  .meta-actions {
    margin-top: 8px;
    gap: 12px;
  }
  
  .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
  }
  
  /* 移动端搜索框优化 */
  .search-wrap {
    margin: 20px 0;
    border-radius: 16px;
  }
  
  .search-wrap .form-control {
    font-size: 16px;
    padding: 14px 16px;
  }
  
  .search-wrap .btn {
    padding: 14px 20px;
    font-size: 14px;
  }
  
  /* 移动端导航栏优化 */
  .navbar {
    padding: 12px 16px;
  }
  
  .navbar-brand {
    font-size: 18px;
  }
  
  .navbar .btn-outline-primary {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* 移动端统计条优化 */
  .filters-bar {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
  }
  
  .filters-bar .text-muted {
    font-size: 12px;
  }
  
  /* 移动端骨架屏优化 */
  .skeleton-card {
    border-radius: 16px;
    margin-bottom: 20px;
  }
  
  .skeleton-thumb {
    height: 200px;
    border-radius: 12px 12px 0 0;
  }
  
  /* 移动端空状态优化 */
  .empty-state {
    padding: 40px 20px;
  }
  
  .empty-illustration {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }
  
  /* 移动端加载状态优化 */
  .spinner-border {
    width: 2rem;
    height: 2rem;
  }
  
  /* 移动端按钮优化 */
  #software-dev-btn.software-dev-btn {
    right: 16px;
    bottom: 80px;
    padding: 10px 16px;
    font-size: 12px;
    border-radius: 10px;
  }
  
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  /* 移动端页脚优化 */
  .footer {
    padding: 20px 16px;
    text-align: center;
  }
  
  /* 移动端容器间距优化 */
  .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* 移动端网格间距优化 */
  .row {
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .col-6, .col-sm-4, .col-md-3, .col-lg-2 {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* 图片预览弹窗 */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.show {
  opacity: 1;
  visibility: visible;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.image-modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.image-modal.show .image-modal-container {
  transform: translate(-50%, -50%) scale(1);
}

.image-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(29, 78, 216, 0.05) 100%);
  flex-shrink: 0;
}

.image-modal-info {
  flex: 1;
  margin-right: 20px;
}

.image-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.image-modal-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.image-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.image-modal-category {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.image-modal-downloads {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.image-modal-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.image-modal-close:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  transform: scale(1.05);
}

.image-modal-body {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 50vh;
  flex: 1;
}

.image-modal-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.image-modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  /* 限制图片最大尺寸，防止过大图片挤压其他元素 */
  max-width: 400px;
  max-height: 300px;
}

.image-modal-image:hover {
  transform: scale(1.02);
}

.image-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(29, 78, 216, 0.02) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.image-modal-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #3b82f6;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.image-modal-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  text-decoration: none;
}

.image-modal-btn-download {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.image-modal-btn-download:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

/* 图片点击效果 */
.preview-image {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.preview-image:hover {
  transform: scale(1.05);
}

/* 弹窗打开时禁止页面滚动 */
body.modal-open {
  overflow: hidden;
}

/* 软件开发弹窗 */
.software-dev-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.software-dev-modal.show {
  opacity: 1;
  visibility: visible;
}

.software-dev-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.software-dev-modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.software-dev-modal.show .software-dev-modal-container {
  transform: translate(-50%, -50%) scale(1);
}

.software-dev-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(29, 78, 216, 0.05) 100%);
  flex-shrink: 0;
}

.software-dev-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}

.software-dev-modal-close {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.software-dev-modal-close:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  transform: scale(1.05);
}

.software-dev-modal-body {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 50vh;
  flex: 1;
}

.software-dev-modal-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.software-dev-modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  max-width: 400px;
  max-height: 300px;
}

.software-dev-modal-image:hover {
  transform: scale(1.02);
}

.software-dev-modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(29, 78, 216, 0.02) 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.software-dev-modal-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  text-align: center;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .image-modal-container {
    width: 95%;
    max-height: 95vh;
  }
  
  .image-modal-header {
    padding: 16px 16px 0;
  }
  
  .image-modal-title {
    font-size: 18px;
  }
  
  .image-modal-body {
    padding: 16px;
    min-height: 200px;
    max-height: 40vh;
  }
  
  .image-modal-image {
    max-width: 300px;
    max-height: 200px;
  }
  
  .image-modal-footer {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .image-modal-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .image-modal-container {
    width: 98%;
    max-height: 98vh;
  }
  
  .image-modal-body {
    padding: 12px;
    min-height: 150px;
    max-height: 35vh;
  }
  
  .image-modal-image {
    max-width: 250px;
    max-height: 150px;
  }
  
  .image-modal-header {
    padding: 12px 12px 0;
  }
  
  .image-modal-footer {
    padding: 12px;
  }
  
  .software-dev-modal-container {
    width: 98%;
    max-height: 98vh;
  }
  
  .software-dev-modal-body {
    padding: 12px;
    min-height: 150px;
    max-height: 35vh;
  }
  
  .software-dev-modal-image {
    max-width: 250px;
    max-height: 150px;
  }
  
  .software-dev-modal-header {
    padding: 12px 12px 0;
  }
  
  .software-dev-modal-footer {
    padding: 12px;
  }
}


