/* t_photo_matte — 美图_雾面 · Matte Lookbook
   layout:collection-shelves
   sexmap-style theme tokens + full layout table
*/
:root {
  --bg: #efebe6;
  --bg-subtle: #e4ddd4;
  --bg-card: #faf7f2;
  --bg-card-hover: #efe8de;
  --bg-input: #e4ddd4;
  --ink: #3f3a34;
  --ink-secondary: #57534e;
  --muted: #78716c;
  --line: rgba(63,58,52,0.12);
  --line-light: rgba(63,58,52,0.12);
  --primary: #78716c;
  --primary-hover: #a8a29e;
  --primary-glow: #78716c66;
  --primary-light: #78716c22;
  --accent: #a8a29e;
  --accent-glow: #a8a29e55;
  --comic-color: #57534e;
  --novel-color: #a8a29e;
  --radius: 16px;
  --radius-lg: calc(16px + 8px);
  --radius-sm: calc(16px - 4px);
}
html { color-scheme: light; }
body::before { display:none; }
body{background-image:linear-gradient(180deg,#f4f0ea,#efebe6);}

/* layout:collection-shelves featured / daily / collection shelves */
html[data-layout="collection-shelves"] .layout-block.cat-wall {
  display: block;
}
html[data-layout="collection-shelves"] .home-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
html[data-layout="collection-shelves"] .work-grid {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
}
html[data-layout="collection-shelves"] .work-card {
  flex: 0 0 170px;
  flex-direction: column;
}
html[data-layout="collection-shelves"] .work-card .cover {
  aspect-ratio: 3 / 4;
}
html[data-layout="collection-shelves"] .home-ranks {
  display: flex;
  flex-direction: column;
}
html[data-layout="collection-shelves"] .two-col-rails.home-ranks {
  display: flex;
  flex-direction: column;
}
html[data-layout="collection-shelves"] .feature-spot, .top10-block, .nav-extra {
  display: none;
}
html[data-layout="collection-shelves"] .channel-cat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

html[data-layout="collection-shelves"] .channel-cat-bar .cat-pill {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-secondary);
}

html[data-layout="collection-shelves"] .filter-panel {
  border-radius: var(--radius);
  background: var(--bg-card);
  border-color: var(--line);
}

html[data-layout="collection-shelves"] .filter-item.active {
  background: var(--primary);
  color: #fff;
}

html[data-layout="collection-shelves"] .search-hero {
  margin-top: 8px;
}

html[data-layout="collection-shelves"] .big-search-form input {
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink);
}

html[data-layout="collection-shelves"] .work-card .card-body h3 {
  color: var(--ink);
  white-space: normal;
}

html[data-layout="collection-shelves"] .card-cat {
  color: var(--primary);
}

html[data-layout="collection-shelves"] .card-meta, .card-extra {
  color: var(--muted);
}

html[data-layout="collection-shelves"] .rail-head h2 {
  color: var(--ink);
}

html[data-layout="collection-shelves"] .more-link {
  color: var(--primary);
}

html[data-layout="collection-shelves"] .topbar {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

html[data-layout="collection-shelves"] .brand {
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: var(--ink);
}

html[data-layout="collection-shelves"] .nav a {
  color: var(--muted);
}

html[data-layout="collection-shelves"] .nav a.active, .nav a:hover {
  color: var(--ink);
  background: var(--primary-light);
  border-color: var(--line);
  box-shadow: none;
}

html[data-layout="collection-shelves"] .tabbar {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-color: var(--line);
}

html[data-layout="collection-shelves"] .footer-links a {
  color: var(--muted);
}

html[data-layout="collection-shelves"] .compact-rank-item {
  border-color: var(--line);
}

html[data-layout="collection-shelves"] .compact-rank-item h4 {
  color: var(--ink);
}

html[data-layout="collection-shelves"] .pagination .page-btn {
  border-color: var(--line);
  color: var(--ink);
}

html[data-layout="collection-shelves"] .empty, .empty-box {
  color: var(--muted);
}

@media (max-width: 860px) {
  html[data-layout="collection-shelves"] .page-shell {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
  }
  html[data-layout="collection-shelves"] .layout-sidebar {
    display: none !important;
  }
  html[data-layout="collection-shelves"] .home-stack {
    display: flex;
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-layout="collection-shelves"] .feature-spot {
    grid-template-columns: minmax(0, 1fr);
  }
}

html[data-site-kind="photo"] .photo-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
html[data-site-kind="photo"] .photo-thumb {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
html[data-site-kind="photo"] .photo-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

