/* 技术版本发布追踪页面样式 - Enhanced Version */

/* 全局样式增强 */
.md-content article {
  max-width: 100%;
}

/* 版本价值展示 - 增强版 */
.release-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.value-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.value-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.value-card p {
  margin: 0;
  opacity: 0.95;
  font-size: 1rem;
  line-height: 1.6;
}

/* 技术分类样式 - 增强版 */
.tech-category {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 5px solid #007bff;
  box-shadow: 0 2px 15px rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
}

.tech-category:hover {
  box-shadow: 0 4px 25px rgba(0, 123, 255, 0.15);
  transform: translateX(4px);
}

.latest-releases {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.release-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(0, 123, 255, 0.1);
  overflow: hidden;
}

.release-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.release-item:hover::before {
  transform: scaleY(1);
}

.release-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.3);
}

.release-item.featured {
  border: 2px solid #007bff;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
}

.release-item.featured::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 50px 50px 0;
  border-color: transparent #007bff transparent transparent;
  opacity: 0.1;
}

.release-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: badge-pulse 2s infinite;
}

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

.release-badge.new {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.release-badge.hot {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.release-badge.experimental {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #333;
}

.release-item h4 {
  margin: 0 0 0.8rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.release-item h4 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.release-item h4 a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  transition: width 0.3s ease;
}

.release-item h4 a:hover::after {
  width: 100%;
}

.release-item h4 a:hover {
  color: #007bff;
}
/* 发布详情信息 - 增强版 */
.release-desc {
  color: #555;
  margin: 0.8rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
}

.release-date {
  color: #888;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.release-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.tag {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.view-all-link::after {
  content: ' →';
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.view-all-link:hover {
  color: #0056b3;
}

.view-all-link:hover::after {
  transform: translateX(4px);
}

/* 生态系统时间线 - 增强版 */
.ecosystem-timeline {
  position: relative;
  padding-left: 3rem;
  margin: 3rem 0;
}

.ecosystem-timeline::before {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #007bff, #00d4ff, #6c757d);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(8px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: 4px solid white;
  box-shadow: 0 0 0 3px #007bff, 0 2px 8px rgba(0, 123, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 1;
}

.timeline-item:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px #007bff, 0 4px 16px rgba(0, 123, 255, 0.6);
}

.timeline-date {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  letter-spacing: 0.5px;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
}

.timeline-content h4 {
  margin: 0.5rem 0 1rem 0;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.15rem;
}

.version-list {
  display: grid;
  gap: 0.8rem;
}

.version-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  border: 1px solid #e9ecef;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.version-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #007bff, #0056b3);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.version-link:hover::before {
  transform: scaleY(1);
}

.version-link:hover {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-color: #007bff;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

.version {
  font-weight: 700;
  font-size: 1rem;
  color: #007bff;
  font-family: 'JetBrains Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
}

.highlights {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

/* 版本选择建议 - 增强版 */
.version-advice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.advice-card {
  padding: 2rem;
  border-radius: 16px;
  border: 3px solid;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.advice-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.advice-card:hover::before {
  transform: scale(1);
}

.advice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.advice-card.production {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #28a745;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.advice-card.testing {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border-color: #17a2b8;
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

.advice-card.experimental {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #ffc107;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.advice-card h4 {
  margin: 0 0 1.5rem 0;
  color: #1a1a1a;
  font-size: 1.3rem;
  font-weight: 700;
}

.advice-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advice-card li {
  padding: 0.6rem 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.advice-card li:hover {
  padding-left: 0.5rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.advice-card li:last-child {
  border-bottom: none;
}

.advice-card strong {
  color: #1a1a1a;
  font-weight: 700;
}

.warning {
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #856404;
  font-weight: 600;
  border-left: 4px solid #ffc107;
}

/* 发布统计 - 增强版 */
.release-stats {
  display: flex;
  justify-content: space-around;
  gap: 2.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-width: 180px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.3);
}

.stat-item h4 {
  margin: 0 0 1rem 0;
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 700;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #007bff; /* Fallback color for browsers that don't support gradient text */
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1rem 0;
  font-family: 'JetBrains Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
  text-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.stat-item p {
  margin: 0;
  color: #555;
  font-size: 1rem;
  font-weight: 600;
}

/* 订阅区域 - 增强版 */
.subscription-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem;
  border-radius: 20px;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.subscription-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.subscription-section > * {
  position: relative;
  z-index: 1;
}

.subscription-section h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subscription-section > p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.subscription-options {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.tech-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.tech-option:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.tech-option input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.tech-option span {
  font-weight: 600;
  font-size: 1rem;
}

.subscribe-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  letter-spacing: 0.5px;
}

.subscribe-btn:hover {
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.subscribe-btn:active {
  transform: translateY(-2px);
}

.subscribe-note {
  margin-top: 1.5rem;
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

/* 响应式设计 - 增强版 */
@media (max-width: 768px) {
  .release-value-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .version-advice-grid {
    grid-template-columns: 1fr;
  }

  .release-stats {
    flex-direction: column;
    align-items: center;
  }

  .subscription-options {
    flex-direction: column;
    align-items: center;
  }

  .ecosystem-timeline {
    padding-left: 2rem;
  }

  .ecosystem-timeline::before {
    left: 0.8rem;
  }

  .timeline-item::before {
    left: -1.45rem;
  }

  .version-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tech-category {
    padding: 1.5rem;
  }

  .release-item {
    padding: 1.2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .subscription-section {
    padding: 2rem 1.5rem;
  }

  .subscription-section h3 {
    font-size: 1.5rem;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .tech-category {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border-left-color: #4a9eff;
  }

  .release-item {
    background: #2d2d2d;
    border-color: rgba(74, 158, 255, 0.2);
  }

  .release-item h4 a {
    color: #e0e0e0;
  }

  .release-item.featured {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a3a52 100%);
    border-color: #4a9eff;
  }

  .timeline-content {
    background: #2d2d2d;
    border-color: rgba(74, 158, 255, 0.2);
  }

  .timeline-content h4 {
    color: #e0e0e0;
  }

  .version-link {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border-color: #444;
    color: #e0e0e0;
  }

  .version-link:hover {
    background: linear-gradient(135deg, #1a3a52 0%, #2d2d2d 100%);
    border-color: #4a9eff;
  }

  .stat-item {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
  }

  .stat-item h4 {
    color: #e0e0e0;
  }
}
