:root {
  --red: #c80000;
  --red-dark: #a50000;
  --text: #333;
  --muted: #888;
  --line: #e5e5e5;
  --bg: #f5f5f5;
  --white: #fff;
  --nav: #c80000;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", SimHei, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { border: 0; max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { width: 1200px; margin: 0 auto; max-width: calc(100% - 24px); }

/* top thin bar */
.topline {
  background: #f0f0f0;
  border-bottom: 1px solid #e8e8e8;
  color: #666;
  font-size: 12px;
}
.topline-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.topline a { margin-left: 14px; color: #666; }
.topline a:hover { color: var(--red); }

/* header */
.header {
  background: var(--white);
  padding: 18px 0 14px;
}
.header-inner {
  display: flex; align-items: center; gap: 28px;
}
.logo {
  display: flex; align-items: center; gap: 10px; min-width: 210px;
}
.logo-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
}
.logo strong { display: block; font-size: 22px; color: #222; line-height: 1.15; }
.logo span { display: block; font-size: 12px; color: #999; }

.searchbox {
  flex: 1;
  display: flex; align-items: stretch;
  border: 2px solid var(--red);
  background: #fff;
  height: 40px;
}
.searchbox select {
  border: 0; outline: none; padding: 0 10px;
  background: #fafafa; color: #555; border-right: 1px solid #eee;
}
.searchbox input {
  flex: 1; border: 0; outline: none; padding: 0 12px; font-size: 14px;
}
.searchbox button {
  width: 72px; border: 0; background: var(--red); color: #fff;
  cursor: pointer; font-size: 16px;
}
.searchbox button:hover { background: var(--red-dark); }
.hotwords { margin-top: 8px; font-size: 12px; color: #999; }
.hotwords a { color: var(--red); margin-right: 12px; }

.header-side { min-width: 160px; text-align: right; }
.header-side .vip {
  display: inline-block; background: var(--red); color: #fff !important;
  padding: 8px 14px; border-radius: 2px; font-size: 13px; font-weight: 700;
}
.header-side .vip:hover { background: var(--red-dark); color: #fff !important; }
.header-side p { margin: 8px 0 0; font-size: 12px; color: #999; }

/* main red nav */
.nav {
  background: var(--nav);
  height: 44px;
}
.nav-inner { display: flex; align-items: stretch; height: 100%; }
.nav-all {
  background: #333; color: #fff; width: 150px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.nav-links { display: flex; flex: 1; }
.nav-links a {
  color: #fff; padding: 0 18px; display: flex; align-items: center;
  font-size: 15px; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.on { background: rgba(0,0,0,.15); color: #fff; }

/* breadcrumb */
.crumb {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 10px 0; font-size: 13px; color: #888;
}
.crumb a { color: #666; }
.crumb em { font-style: normal; color: #bbb; margin: 0 6px; }

/* filter panel */
.filter {
  background: #fff; border: 1px solid var(--line);
  margin: 14px 0 16px; padding: 6px 0;
}
.filter-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 16px; border-bottom: 1px dashed #eee;
}
.filter-row:last-child { border-bottom: 0; }
.filter-label {
  width: 84px; color: #666; padding-top: 3px; flex-shrink: 0;
}
.filter-opts { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.filter-opts a,
.filter-opts button {
  appearance: none; border: 0; background: transparent;
  color: #333; padding: 3px 10px; cursor: pointer; font-size: 13px;
  font-family: inherit;
}
.filter-opts .on {
  background: var(--red); color: #fff !important;
}

/* grid */
.list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.item {
  background: #fff;
  border: 1px solid #ececec;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.item:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.item a.cover {
  display: block; position: relative; overflow: hidden;
  background: #f7f7f7; aspect-ratio: 3 / 4;
}
.thumb-shot {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 10px; gap: 6px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
}
.thumb-bar {
  height: 10px; background: rgba(255,255,255,.85); border-radius: 2px;
  display: flex; gap: 3px; align-items: center; padding: 0 6px;
}
.thumb-bar i { width: 4px; height: 4px; border-radius: 50%; background: #bbb; display: block; }
.thumb-hero {
  flex: 1; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22); border-radius: 3px;
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
  text-align: center; padding: 8px; letter-spacing: .02em;
}
.thumb-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.thumb-rows span {
  height: 28px; background: rgba(255,255,255,.18); border-radius: 2px;
}
.item h3 {
  margin: 0; padding: 10px 10px 8px; font-size: 14px; font-weight: 400;
  color: #333; line-height: 1.45; min-height: 58px;
}
.item:hover h3 { color: var(--red); }
.item .meta {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #f0f0f0; padding: 8px 10px; color: #999; font-size: 12px;
}

.empty {
  grid-column: 1 / -1;
  background: #fff; border: 1px solid var(--line);
  padding: 40px; text-align: center; color: #999;
}

.footer {
  background: #2b2b2b; color: #aaa; padding: 28px 0; font-size: 12px;
}
.footer a { color: #ccc; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* detail */
.detail-box {
  background: #fff; border: 1px solid var(--line);
  margin: 14px 0 30px; padding: 20px;
}
.detail-top {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px;
}
.detail-preview {
  border: 1px solid #eee; background: #fafafa; min-height: 420px;
  aspect-ratio: 3/4; overflow: hidden;
}
.detail-preview .thumb-shot { min-height: 100%; }
.detail-info h1 {
  margin: 0 0 12px; font-size: 22px; font-weight: 700; color: #222; line-height: 1.4;
}
.detail-info .sub { color: #888; margin-bottom: 16px; }
.kv { border-top: 1px solid #f0f0f0; }
.kv-row {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f0f0f0; font-size: 13px;
}
.kv-row b { width: 84px; color: #888; font-weight: 400; flex-shrink: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.tags span {
  background: #fff5f5; color: var(--red); border: 1px solid #ffd6d6;
  padding: 3px 10px; font-size: 12px;
}
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--red);
  color: var(--red); background: #fff; font-size: 14px; cursor: pointer;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); color: #fff; }
.btn:hover { color: var(--red); }
.detail-desc {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid #eee;
}
.detail-desc h2 { margin: 0 0 10px; font-size: 16px; }
.detail-desc p { color: #666; margin: 0; line-height: 1.8; }

@media (max-width: 1200px) {
  .list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .list { grid-template-columns: repeat(3, 1fr); }
  .header-side, .nav-all { display: none; }
  .detail-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .list { grid-template-columns: repeat(2, 1fr); }
  .nav-links a { padding: 0 10px; font-size: 13px; }
  .logo { min-width: auto; }
  .logo span { display: none; }
}
