.xima-download-page {
  min-height: 100vh;
  padding: 32px 20px;
}
.xima-download-container {
  max-width: 1280px;
  margin: 0 auto;
}
.xima-download-head {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.xima-download-head__icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(22, 160, 133, 0.1);
  color: #16a085;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.xima-download-head h1 {
  margin: 0;
  color: #18181b;
  font-size: 24px;
  font-weight: 900;
}
.xima-download-head p {
  margin: 4px 0 0;
  color: #71717a;
  font-size: 14px;
  line-height: 2;
}
.xima-download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.xima-download-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  border-radius: 24px;
  background: #fff;
  padding: 16px;
  color: inherit;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(18px);
  animation: ximaDownloadCardFade 0.7s ease forwards;
  transition:
    transform 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease;
}
.xima-download-card:hover {
  transform: translateY(-8px);
  border-color: rgba(22, 160, 133, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}
.xima-download-card__top-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to left, #16a085, #32bcad, #d7f7f2);
}
.xima-download-card__meta {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.xima-download-card__type,
.xima-download-card__size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
}
.xima-download-card__type {
  background: #f4f4f5;
  color: #52525b;
}
.xima-download-card__size {
  background: rgba(22, 160, 133, 0.1);
  color: #12836d;
}
.xima-download-card__image-box {
  position: relative;
  width: 100%;
  height: 144px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(to bottom right, #fafafa, #f4f4f5);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xima-download-card__radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(22, 160, 133, 0.08),
    transparent 55%
  );
}
.xima-download-card__image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.xima-download-card:hover .xima-download-card__image {
  transform: scale(1.1);
}
.xima-download-card__sparkle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: #fff;
  color: #16a085;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease;
}
.xima-download-card:hover .xima-download-card__sparkle {
  transform: rotate(12deg) scale(1.1);
}
.xima-download-card__content {
  margin-top: 20px;
  min-height: 92px;
}
.xima-download-card__content h2 {
  margin: 0;
  color: #27272a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.8;
  transition: color 0.3s ease;
}
.xima-download-card:hover .xima-download-card__content h2 {
  color: #12836d;
}
.xima-download-card__content p {
  margin: 8px 0 0;
  color: #71717a;
  font-size: 14px;
  line-height: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.xima-download-card__footer {
  margin-top: 20px;
  border-top: 1px solid #f4f4f5;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.xima-download-card__ready {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 800;
}
.xima-download-card__button {
  height: 40px;
  border-radius: 12px;
  background: #007c6d;
  color: #fff;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(22, 160, 133, 0.2);
  transition: background 0.3s ease;
}
.xima-download-card:hover .xima-download-card__button {
  background: #12836d;
}
.xima-download-empty {
  border: 1px dashed #d4d4d8;
  border-radius: 18px;
  background: #fff;
  padding: 32px;
  text-align: center;
  color: #71717a;
}
.xima-download-section {
  margin-bottom: 32px;
}
.xima-download-section:last-child {
  margin-bottom: 0;
}
.xima-download-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.xima-download-section__title {
  white-space: nowrap;
  color: #16a085;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
}
.xima-download-section__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, #16a085, transparent);
}
.xima-download-row {
  margin-bottom: 52px;
}
.xima-download-row:last-child {
  margin-bottom: 0;
}
@keyframes ximaDownloadCardFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 640px) {
  .xima-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .xima-download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .xima-download-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .xima-download-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
  }
  .xima-download-row .xima-download-section {
    grid-column: span var(--xima-section-cols, 4);
    margin-bottom: 0;
  }
  .xima-download-row .xima-download-grid {
    grid-template-columns: repeat(var(--xima-section-cols, 4), minmax(0, 1fr));
  }
}
