/* ==================== Releases 页面样式 ==================== */
.releases-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 30px 0;
}

.releases-container {
  max-width: 850px;
  margin: 0 auto;
}

.release-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-bottom: 25px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.release-card.featured-release {
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.release-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.release-card.featured-release:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.release-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 22px 28px;
}

.release-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.release-date {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  margin-top: 6px;
}

.release-body {
  padding: 28px;
}

.release-section {
  margin-bottom: 18px;
}

.release-section:last-child {
  margin-bottom: 0;
}

.release-section h4 {
  color: #2d3748;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
  display: inline-block;
}

.release-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.release-section ul li {
  padding: 7px 0;
  padding-left: 24px;
  position: relative;
  color: #4a5568;
  line-height: 1.6;
  font-size: 0.95rem;
}

.release-section ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 1rem;
}

.release-section ul li.bug-fix:before {
  content: "🐛";
  font-size: 0.95rem;
}

.release-section ul li.improvement:before {
  content: "⚡";
  font-size: 0.95rem;
}

.release-section ul li.feature:before {
  content: "✨";
  font-size: 0.95rem;
}

.download-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 22px;
  margin-top: 22px;
  text-align: center;
  border: 1px solid #dee2e6;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  color: white;
  text-decoration: none;
}

.download-btn:active {
  transform: translateY(0);
}

.download-info {
  margin-top: 12px;
  color: #6c757d;
  font-size: 0.85rem;
}

.file-size {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 历史版本按钮 */
.history-btn {
  background: white;
  border: 2px solid transparent;
  color: #667eea;
  font-weight: 600;
  transition: all 0.3s ease;
}

.history-btn:hover {
  background: #f8f9fa;
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

.back-link {
  text-align: center;
  margin-top: 25px;
}

.back-link a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 22px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
}

.back-link a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  color: white;
  text-decoration: none;
}

/* 历史版本弹窗样式 */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px 16px 0 0;
  padding: 20px 24px;
}

.modal-title {
  color: #2d3748;
  font-size: 1.25rem;
}

.modal-body {
  padding: 20px 24px;
  max-height: 60vh;
}

.version-list {
  margin-top: 5px;
}

.version-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.version-item:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateX(3px);
}

.version-main {
  padding: 16px 18px;
  background: #f8f9fa;
}

.version-number {
  font-weight: 700;
  color: #2d3748;
  font-size: 1.1rem;
  margin-right: 12px;
}

.version-date {
  color: #718096;
  font-size: 0.85rem;
}

.file-size-badge {
  display: inline-block;
  background: #edf2f7;
  color: #4a5568;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-download-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-download-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.version-details {
  padding: 16px 18px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.version-changes {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.version-changes li {
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
}

.version-changes li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1;
}

.modal-footer {
  background: #f8f9fa;
  border-radius: 0 0 16px 16px;
  padding: 16px 24px;
}

/* 深色主题支持 */
body.dark-theme .release-card {
  background: #2d3748;
}

body.dark-theme .release-body {
  background: #2d3748;
}

body.dark-theme .release-section h4 {
  color: #f7fafc;
  border-bottom-color: #667eea;
}

body.dark-theme .release-section ul li {
  color: #e2e8f0;
}

body.dark-theme .download-section {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  border-color: #4a5568;
}

body.dark-theme .file-size {
  background: rgba(255, 255, 255, 0.15);
  color: #f7fafc;
}

body.dark-theme .version-item {
  border-color: #4a5568;
  background: #2d3748;
}

body.dark-theme .version-main {
  background: #4a5568;
}

body.dark-theme .version-number {
  color: #f7fafc;
}

body.dark-theme .version-date {
  color: #cbd5e0;
}

body.dark-theme .file-size-badge {
  background: #4a5568;
  color: #e2e8f0;
}

body.dark-theme .version-details {
  background: #2d3748;
  border-top-color: #4a5568;
}

body.dark-theme .version-changes li {
  color: #e2e8f0;
}

body.dark-theme .modal-content {
  background: #2d3748;
}

body.dark-theme .modal-header {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

body.dark-theme .modal-title {
  color: #f7fafc;
}

body.dark-theme .modal-footer {
  background: #4a5568;
}

/* 响应式 */
@media (max-width: 768px) {
  .releases-page {
    padding: 20px 0;
  }
  
  .releases-container {
    padding: 0 15px;
  }
  
  .release-header {
    padding: 18px 20px;
  }
  
  .release-header h2 {
    font-size: 1.6rem;
  }
  
  .release-body {
    padding: 20px;
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .history-btn {
    width: 100%;
    padding: 12px 20px;
  }
  
  .modal-dialog {
    margin: 10px;
  }
  
  .modal-body {
    max-height: 55vh;
    padding: 16px;
  }
  
  .version-main {
    padding: 14px 16px;
  }
  
  .version-details {
    padding: 14px 16px;
  }
  
  .version-number {
    font-size: 1rem;
  }
  
  .version-date {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .release-header h2 {
    font-size: 1.4rem;
  }
  
  .release-section h4 {
    font-size: 0.95rem;
  }
  
  .release-section ul li {
    font-size: 0.9rem;
  }
}