/* 合集专区 / 首页合集卡 —— 与站点既有视觉语言一致 (paper + Playfair + 暗色海报) */

/* ============ 合集列表页 ============ */
.col-page {
  padding: 44px 0 84px;
}

.col-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.col-intro h1 {
  margin: 10px 0 12px;
  font: 500 clamp(30px, 3.4vw, 46px)/1.1 'Playfair Display', serif;
  letter-spacing: -1px;
}

.col-intro h1 em {
  color: var(--accent);
  font-style: italic;
}

.col-deck {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.col-stat {
  flex: 0 0 auto;
  text-align: right;
}

.col-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.col-stat strong {
  display: block;
  margin: 2px 0 0;
  color: var(--accent);
  font: 700 42px/1 'DM Sans', sans-serif;
}

.col-stat small {
  color: var(--muted);
  font-size: 11px;
}

.col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.col-card {
  display: block;
  overflow: hidden;
  border: 1px solid #e4dfd6;
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(62, 52, 39, .07);
  transition: transform .22s ease, box-shadow .22s ease;
}

.col-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(62, 52, 39, .16);
}

.col-card-poster {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #292b28;
}

.col-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  opacity: .88;
  transition: transform .45s ease;
}

.col-card:hover .col-card-poster img {
  transform: scale(1.05);
}

.col-card-poster > span:not(.col-card-badge) {
  display: grid;
  height: 100%;
  place-items: center;
  color: #ded6c9;
  font: 64px 'Playfair Display', serif;
}

.col-card-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 6px 10px;
  background: rgba(246, 244, 239, .95);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.col-card-copy {
  display: grid;
  gap: 7px;
  padding: 18px 18px 20px;
}

.col-card-meta {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .4px;
}

.col-card-copy strong {
  font: 500 22px/1.2 'Playfair Display', serif;
  letter-spacing: -.4px;
}

.col-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #6f706a;
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.col-card-open {
  margin-top: 4px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .6px;
}

.col-empty {
  grid-column: 1 / -1;
  padding: 60px 0;
  color: var(--muted);
  text-align: center;
}

/* ============ 合集详情页 ============ */
.col-crumb {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .5px;
}

.col-crumb a {
  color: var(--accent);
  text-decoration: none;
}

.col-crumb span[aria-hidden] {
  margin: 0 8px;
}

.col-hero {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.col-hero-poster {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 3px;
  background: #292b28;
  box-shadow: 0 14px 34px rgba(62, 52, 39, .18);
}

.col-hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.col-hero-poster > span {
  display: grid;
  height: 100%;
  place-items: center;
  color: #ded6c9;
  font: 80px 'Playfair Display', serif;
}

.col-hero-copy h1 {
  margin: 10px 0 14px;
  font: 500 clamp(30px, 3.2vw, 44px)/1.12 'Playfair Display', serif;
  letter-spacing: -1px;
}

.col-hero-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.col-hero-meta strong {
  color: var(--accent);
  font: 700 18px 'DM Sans', sans-serif;
}

.col-hero-desc {
  max-width: 640px;
  margin: 0;
  color: #6f706a;
  font-size: 13px;
  line-height: 1.9;
}

.col-items {
  padding: 40px 0 0;
}

.col-items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.col-items-head h2 {
  margin: 0;
  font: 500 26px/1.2 'Playfair Display', serif;
}

.col-items-head span {
  color: var(--muted);
  font-size: 12px;
}

.col-item-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.col-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 15px 6px;
  border-bottom: 1px solid #e9e4da;
  color: var(--ink);
  text-decoration: none;
  transition: background .16s ease, padding-left .16s ease;
}

.col-item-linked:hover {
  padding-left: 12px;
  background: #efece4;
}

.col-item-no {
  color: #b3aca0;
  font: 500 13px 'DM Sans', sans-serif;
  letter-spacing: 1px;
}

.col-item-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.col-item-main strong {
  overflow: hidden;
  font: 500 17px/1.25 'Playfair Display', serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-item-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.col-item-sub i {
  font-style: normal;
}

.col-item-sub i + i:before {
  margin-right: 10px;
  color: #cdc7bb;
  content: '·';
}

.col-item-score {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.col-item-score b {
  color: var(--accent);
  font: 700 14px 'DM Sans', sans-serif;
}

.col-item-size {
  color: #a09a8f;
  font-size: 11px;
  white-space: nowrap;
}

.col-item-open {
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}

/* ============ 首页合集区 ============ */
.home-collections {
  padding: 28px 0 76px;
  border-top: 1px solid var(--line);
}

.home-col-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-col-card {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
  border: 1px solid #e4dfd6;
  border-radius: 3px;
  background: #292b28;
  color: #fffefa;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(40, 37, 31, .1);
  transition: transform .22s ease, box-shadow .22s ease;
}

.home-col-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 32px rgba(62, 52, 39, .16);
}

.home-col-poster {
  position: absolute;
  inset: 0;
}

.home-col-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  opacity: .78;
  transition: transform .45s ease;
}

.home-col-card:hover .home-col-poster img {
  transform: scale(1.04);
}

.home-col-poster > span:not(.home-col-badge) {
  display: grid;
  height: 100%;
  place-items: center;
  color: #ded6c9;
  font: 66px 'Playfair Display', serif;
}

.home-col-card:after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 21, 19, .05) 5%, rgba(20, 21, 19, .12) 34%, rgba(20, 21, 19, .9) 100%);
  content: '';
}

.home-col-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: rgba(246, 244, 239, .94);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.home-col-copy {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 15px;
  left: 16px;
  display: grid;
  gap: 6px;
}

.home-col-copy strong {
  overflow: hidden;
  font: 500 19px/1.25 'Playfair Display', serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-col-meta {
  color: #e6d4bc;
  font-size: 11px;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .col-grid,
  .home-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .col-hero {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 20px;
  }

  .col-hero-poster {
    height: 210px;
  }
}

@media (max-width: 620px) {
  .col-page {
    padding: 26px 0 56px;
  }

  .col-intro {
    display: block;
  }

  .col-stat {
    margin-top: 18px;
    text-align: left;
  }

  .col-stat strong {
    font-size: 30px;
  }

  .col-grid,
  .home-col-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .col-card-poster {
    height: 200px;
  }

  .home-col-card {
    height: 168px;
  }

  .col-hero {
    display: block;
  }

  .col-hero-poster {
    width: 140px;
    height: 196px;
    margin-bottom: 18px;
  }

  .col-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 4px;
  }

  .col-item-size,
  .col-item-open {
    display: none;
  }

  .col-item-main strong {
    font-size: 15px;
  }
}