/* t_novel_ink — 小说_墨韵 · Ink Editorial
   layout:editorial-feature
   sexmap-style theme tokens + full layout table
*/
:root {
  --bg: #f6f1e8;
  --bg-subtle: #efe8dc;
  --bg-card: #fffdf8;
  --bg-card-hover: #f4ebe0;
  --bg-input: #efe8dc;
  --ink: #161412;
  --ink-secondary: #3f3a34;
  --muted: #6b645b;
  --line: rgba(40,28,18,0.12);
  --line-light: rgba(40,28,18,0.12);
  --primary: #c23b22;
  --primary-hover: #8b2e1f;
  --primary-glow: #c23b2266;
  --primary-light: #c23b2222;
  --accent: #8b2e1f;
  --accent-glow: #8b2e1f55;
  --comic-color: #0f766e;
  --novel-color: #c23b22;
  --radius: 12px;
  --radius-lg: calc(12px + 8px);
  --radius-sm: calc(12px - 4px);
}
html { color-scheme: light; }
body::before { display:none; }
body{background-image:radial-gradient(ellipse at 8% 0%,#fff 0%,transparent 46%),linear-gradient(180deg,transparent,rgba(194,59,34,.04));}

/* layout:editorial-feature magazine feature + serif */
html[data-layout="editorial-feature"] .nav-extra {
  display: inline-flex;
  gap: 4px;
}
html[data-layout="editorial-feature"] .layout-block.cat-wall {
  display: block;
}
html[data-layout="editorial-feature"] .feature-spot {
  display: grid;
}
html[data-layout="editorial-feature"] .card-blurb, .feature-blurb {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[data-layout="editorial-feature"] .feature-spot {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0 8px;
  order: 1;
}
html[data-layout="editorial-feature"] .cat-wall {
  order: 2;
}
html[data-layout="editorial-feature"] .home-primary {
  order: 3;
}
html[data-layout="editorial-feature"] .home-ranks {
  order: 4;
}
html[data-layout="editorial-feature"] .top10-block {
  order: 5;
}
html[data-layout="editorial-feature"] .home-stack {
  display: flex;
  flex-direction: column;
}
html[data-layout="editorial-feature"] .rail-head h2, .feature-title {
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
html[data-layout="editorial-feature"] .work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
html[data-layout="editorial-feature"] .work-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
html[data-layout="editorial-feature"] .work-card .cover {
  aspect-ratio: 3 / 4;
  width: 132px;
  flex-shrink: 0;
}
html[data-layout="editorial-feature"] .nav a {
  border-radius: 4px;
}
html[data-layout="editorial-feature"] .feature-cta {
  background: var(--primary);
  border-radius: 4px;
}
html[data-layout="editorial-feature"] .channel-cat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

