/* ========== 软件列表页样式 ========== */

/* Banner */
.page-banner {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  padding: 80px 20px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-banner h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-banner h1 i {
  margin-right: 12px;
}

.page-banner p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  opacity: 0.95;
  line-height: 1.6;
}

.banner-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.banner-breadcrumb a {
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.banner-breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========== 统计信息 ========== */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: -40px auto 60px;
  max-width: 1000px;
  position: relative;
  z-index: 10;
}

.stat-item {
  background: white;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
  border-color: var(--ai-blue);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--ai-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ========== 分类筛选 ========== */
.filter-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.filter-label i {
  color: var(--ai-blue);
  margin-right: 6px;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-btn {
  background: var(--bg-light);
  border: 2px solid var(--border);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.filter-btn:hover {
  border-color: var(--ai-blue);
  color: var(--ai-blue);
  background: #dbeafe;
}

.filter-btn.active {
  background: var(--ai-gradient);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.filter-btn i {
  margin-right: 6px;
}

/* ========== 软件网格 ========== */
.software-grid {
  max-width: 1300px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

/* ========== 软件卡片 ========== */
.card-software {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.card-software::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ai-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card-software:hover::before {
  transform: scaleX(1);
}

.card-software:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
  border-color: var(--ai-blue);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 标签图标统一样式 */
.card-badge i {
  font-size: 0.85rem;
  margin-right: 2px;
}

/* 免费试用标签 */
.free-trial-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: pulse-trial 2s ease-in-out infinite;
}

.free-trial-badge i {
  font-size: 0.85rem;
}

@keyframes pulse-trial {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: scale(1.05);
  }
}

@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* 推荐标签 - 金色渐变 */
.card-badge.status-推荐 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-badge.status-推荐:hover {
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.7);
}

/* 热门标签 - 红色渐变 + 脉冲动画 */
.card-badge.status-热门 {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulse-hot 2s ease-in-out infinite;
}

.card-badge.status-热门:hover {
  animation-play-state: paused;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.8);
}

/* 置顶标签 - 紫色皇冠VIP渐变 */
.card-badge.status-置顶 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  box-shadow: 
    0 4px 12px rgba(102, 126, 234, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

/* 光束特效 - 细长明亮自然 */
.card-badge.status-置顶::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.8) 50%, 
    rgba(255, 255, 255, 0.3) 80%,
    transparent 100%);
  transform: skewX(-15deg);
  animation: shine-move 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}

@keyframes shine-move {
  0% {
    left: -50%;
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  95% {
    opacity: 0.8;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

.card-badge.status-置顶:hover {
  box-shadow: 
    0 6px 20px rgba(102, 126, 234, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.card-software:hover .card-badge {
  transform: scale(1.1);
}

/* 热门标签脉冲动画 */
@keyframes pulse-hot {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.8);
    transform: scale(1.05);
  }
}

.card-icon {
  font-size: 3.5rem;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px auto 20px;
  color: var(--ai-blue);
  transition: all 0.3s ease;
}

.card-software:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
  padding: 0 20px;
}

.card-desc {
  color: var(--text-gray);
  text-align: center;
  padding: 0 20px;
  margin-bottom: 16px;
  line-height: 1.6;
  flex-grow: 1;
  font-size: 0.95rem;
}

.card-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
  margin-bottom: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 600;
}

.meta-item i {
  color: var(--ai-blue);
}

.card-price {
  font-weight: 800;
  color: var(--success);
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-detail {
  background: var(--ai-gradient);
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 50px;
  padding: 14px 0;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  margin: 0 auto 28px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-detail:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  color: white !important;
  text-decoration: none;
}

.btn-detail i {
  transition: transform 0.3s;
}

.btn-detail:hover i {
  transform: translateX(4px);
}

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-gray);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 24px;
  color: #cbd5e1;
}

.empty-state h3 {
  margin-bottom: 12px;
  color: var(--text-dark);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .page-banner h1 { 
    font-size: 2.2rem; 
  }
  
  .page-banner p {
    font-size: 1rem;
  }
  
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: -30px 20px 40px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-buttons {
    width: 100%;
  }
  
  .filter-btn {
    flex: 1;
    min-width: 120px;
  }
  
  .software-grid { 
    padding: 0 1rem;
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .stats-section {
    grid-template-columns: 1fr;
  }
  
  .filter-btn {
    width: 100%;
  }
}
