/* ====================================================
   📅 更新列表頁專用樣式（獨立 class，不受 combined.css 干擾）
   ==================================================== */
#update_container {
  padding: 0 0 20px;
}

.update-date-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.update-date-header::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #3097fd;
  border-radius: 2px;
  flex-shrink: 0;
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 10px 16px;
  margin: 0;
  box-sizing: border-box;
}
.update-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-width: 0;
}
.update-card-cover {
  position: relative;
  width: 100%;
  padding-top: 133.33%; /* 3:4 比例 = 4/3*100% */
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f0;
}
.update-card-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.update-card-title {
  font-size: 12px;
  color: #333;
  line-height: 1.3;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-card-cover .update-sn-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 4px 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  z-index: 2;
}

.update-loading {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #999;
  display: none;
}

/* ====================================================
   💻 平板 (768px+)：4 欄
   ==================================================== */
@media screen and (min-width: 768px) {
  html { font-size: 16px !important; }
  body { background: #eef0f4 !important; }

  .wrapper {
    max-width: 960px !important;
    margin: 0 auto !important;
    background: #fff !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: 100vh;
    overflow-x: hidden !important;
  }

  .update-date-header {
    font-size: 18px;
    padding: 16px 16px 10px;
  }
  .update-date-header::before {
    width: 5px;
    height: 22px;
  }

  .update-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 0 16px 20px;
  }

  .update-card-cover {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .update-card:hover .update-card-cover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  }

  .update-card-sn {
    font-size: 12px;
    margin-top: 6px;
  }
  .update-card-title {
    font-size: 14px;
    margin-top: 3px;
  }
}

.update-card-cover .update-sn-overlay {
    font-size: 12px;
    padding: 5px 8px;
  }

/* ====================================================
   💻 小桌面 (1024px+)：5 欄
   ==================================================== */
@media screen and (min-width: 1024px) {
  .wrapper { max-width: 1200px !important; }

  .update-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0 20px 24px;
  }
}

/* ====================================================
   💻 大桌面 (1440px+)：6 欄
   ==================================================== */
@media screen and (min-width: 1440px) {
  .wrapper { max-width: 1400px !important; }

  .update-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 0 24px 28px;
  }
}