@charset "UTF-8";
/* ===========================
   Layer 3: Archive 仓库页面专用样式
   Hero / GitHub 热力图 / 项目卡片网格 / 底部
   仅在 archive.html 中引入
   =========================== */


/* ========== Hero Section ========== */
.archive-hero {
  background:
    linear-gradient(135deg, rgba(249, 189, 221, 0.25) 0%, rgba(180, 223, 251, 0.2) 50%, rgba(249, 189, 221, 0.15) 100%),
    url(../assets/backgrounds/checker.gif);
  background-size: auto, 200px;
  border-bottom: 2px solid #000;
  padding: 32px 24px 24px;
  position: relative;
  overflow: hidden;
}

.archive-hero::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(249, 189, 221, 0.45) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.archive-hero-title {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 30px;
  font-weight: bold;
  color: #000;
  margin: 0 0 6px;
  text-shadow: 2px 2px 0 rgba(249, 189, 221, 0.5);
}

.archive-hero-sub {
  font-family: "MS PGothic", "Unifont", sans-serif;
  font-size: 13px;
  color: #5a3e4b;
  margin: 0 0 14px;
  line-height: 1.6;
}

.archive-hero-deco {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 140px;
}

.archive-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c44569;
  flex-shrink: 0;
}

.archive-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, #c44569, #f9bddd, #b4dffb);
}


/* ========== GitHub 热力图区域 ========== */
.archive-heatmap {
  padding: 20px 24px;
  border-bottom: 1px dashed #e0cfd6;
}

.archive-heatmap-label {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 13px;
  color: #5a3e4b;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-heatmap-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #f5a5c4;
  flex-shrink: 0;
}

.archive-heatmap-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

/* 自定义横向滚动条 (与 base.css 风格匹配) */
.archive-heatmap-scroll::-webkit-scrollbar {
  height: 6px;
}

.archive-heatmap-scroll::-webkit-scrollbar-track {
  background: #fef6f9;
  border-radius: 3px;
}

.archive-heatmap-scroll::-webkit-scrollbar-thumb {
  background: #e8a0b4;
  border-radius: 3px;
}

.archive-heatmap-scroll::-webkit-scrollbar-thumb:hover {
  background: #c44569;
}

.archive-heatmap-img {
  display: block;
  min-width: 680px;
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid #f0dce4;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(196, 69, 105, 0.06);
  padding: 10px;
  background: #fff;
}


/* ========== 项目网格区域 ========== */
.archive-section {
  padding: 20px 24px 8px;
}

.archive-section-title {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 15px;
  color: #2a1a2e;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.archive-section-title::before {
  content: "📦";
  font-size: 16px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 10px;
}


/* ========== 项目卡片 ========== */
.archive-card {
  background: #fff;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

  /* 入场动画 */
  animation: archiveCardIn 0.4s ease both;
}

@keyframes archiveCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 20px rgba(196, 69, 105, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ---- 卡片标题 ---- */
.archive-card-title {
  font-family: "MS PGothic", "Unifont", sans-serif;
  font-size: 15px;
  font-weight: bold;
  color: #2a1a2e;
  margin: 0;
  line-height: 1.3;
  transition: color 0.2s;
}

.archive-card:hover .archive-card-title {
  color: #c44569;
}

/* ---- 技术栈标签 ---- */
.archive-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.archive-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 8px;
  border: 1px solid #e8a0b4;
  border-radius: 10px;
  background: transparent;
  color: #c44569;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---- 描述 ---- */
.archive-card-desc {
  font-size: 12px;
  color: #5a3e4b;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ---- 操作区 ---- */
.archive-card-action {
  margin-top: auto;
  padding-top: 4px;
}

.archive-card-link {
  font-family: "PC98", "MS PGothic", "Unifont", monospace;
  font-size: 11px;
  color: #d46493;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.2s, border-color 0.2s;
}

.archive-card-link:hover {
  color: #c44569;
  border-bottom-color: #c44569;
}


/* ========== 底部结尾装饰 ========== */
.archive-end {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 32px;
}

.archive-end-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0cfd6, transparent);
}

.archive-end-text {
  font-family: "MS PGothic", "Unifont", sans-serif;
  font-size: 11px;
  color: #bba3ad;
  white-space: nowrap;
}


/* ========== 空状态 ========== */
.archive-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.archive-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
  color: #d3a6b4;
  animation: archiveEmptyBob 3s ease-in-out infinite;
}

@keyframes archiveEmptyBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.archive-empty p {
  font-size: 13px;
  color: #bba3ad;
  line-height: 1.6;
}


/* ========== 响应式 ========== */

@media (max-width: 768px) {
  /* 隐藏左栏 */
  .left-col {
    display: none;
  }

  .col.right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border: none;
  }

  /* Hero */
  .archive-hero {
    padding: 24px 16px 20px;
  }

  .archive-hero-title {
    font-size: 24px;
  }

  /* 热力图: 允许横向滑动 */
  .archive-heatmap {
    padding: 16px 12px;
  }

  .archive-heatmap-img {
    min-width: 600px;
  }

  /* 项目网格: 单列 */
  .archive-section {
    padding: 16px 12px 8px;
  }

  .archive-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .archive-card {
    padding: 14px 16px;
  }

  /* 底部 */
  .archive-end {
    padding: 12px 12px 28px;
  }
}
