:root {
  --bg: #FFF6E8;
  --surface: #FFFDF7;
  --primary: #F04E3E;
  --accent: #2C6FE0;
  --text: #1C1A17;
  --muted: #7A6F62;
  --radius: 18px;
  --border: 2px solid var(--text);
  --shadow: 5px 5px 0 var(--text);
  --shadow-sm: 3px 3px 0 var(--text);
  --font-head: 'Arial Black', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-body: 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(28,26,23,.04) 1px, transparent 1px);
  background-size: 6px 6px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.logo {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: var(--border);
  margin-right: 8px;
  vertical-align: middle;
}
.nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.nav a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--text);
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}
.search-box {
  display: flex;
  align-items: center;
  border: var(--border);
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 16px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  width: 160px;
}
.search-box button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  border-left: var(--border);
}
.search-box button:hover { background: var(--accent); }

/* Hero */
.hero {
  position: relative;
  margin: 28px 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  min-height: 320px;
}
.hero-slide {
  position: relative;
  display: block;
  aspect-ratio: 21 / 8;
  min-height: 320px;
  background: var(--surface);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,23,.82) 0%, rgba(28,26,23,.15) 60%, transparent 100%);
}
.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 28px;
  z-index: 2;
  color: #fff;
  max-width: 70%;
}
.hero-info h2 {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.4);
}
.hero-info p {
  font-size: 14px;
  opacity: .92;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
  background: var(--accent);
}

/* Section */
.sec { margin: 40px 0; }
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: var(--border);
  padding-bottom: 12px;
}
.sec-title {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::before {
  content: "";
  width: 12px;
  height: 24px;
  background: var(--primary);
  border: var(--border);
  border-radius: 4px;
}
.sec-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 14px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  transition: all .2s ease;
}
.sec-more:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Grid & Card */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--text);
}
.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg);
  border-bottom: var(--border);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.card:hover .card-cover img { transform: scale(1.06); }
.card-score {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  padding: 2px 9px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--text);
}
.card-info { padding: 10px 12px 14px; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Cat list */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--surface);
  border: var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.cat-item:hover {
  background: var(--primary);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
}
.cat-count {
  font-size: 12px;
  background: var(--accent);
  color: #fff;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--text);
}

/* Rank list */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
.rank-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
}
.rank-num {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--primary);
  min-width: 32px;
  text-align: center;
  flex-shrink: 0;
}
.rank-item:nth-child(-n+3) .rank-num { color: var(--accent); }
.rank-title {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-score {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Detail */
.detail { margin: 32px 0; }
.detail-head {
  display: flex;
  gap: 28px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 28px;
}
.detail-cover {
  width: 240px;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { flex: 1; min-width: 0; }
.detail-meta h1 {
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.detail-meta p { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.detail-meta p strong { color: var(--text); }
.detail-score {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 22px;
  color: #fff;
  background: var(--primary);
  padding: 4px 16px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin: 10px 0 16px;
}
.detail-body {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.detail-body h2 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 20px 0 10px;
}
.detail-body p { margin-bottom: 12px; }

/* Tag list */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all .18s ease;
}
.tag:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}

/* Pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 36px 0;
}
.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--surface);
  border: var(--border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}
.pg:hover {
  background: var(--accent);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
}
.pg.current {
  background: var(--primary);
  color: #fff;
  cursor: default;
}
.pg.disabled {
  opacity: .4;
  pointer-events: none;
  box-shadow: none;
}

/* Links */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}
.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 12px;
  border: 1.5px dashed var(--muted);
  border-radius: 999px;
  transition: all .18s ease;
}
.link-item:hover {
  color: var(--accent);
  border-color: var(--accent);
  border-style: solid;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: var(--border);
  margin-top: 48px;
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer a { color: var(--accent); font-weight: 600; }
.footer p { margin-bottom: 6px; }

/* Crumbs */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0 0;
}
.crumbs a { color: var(--accent); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }

/* Highlight */
.hl {
  background: var(--primary);
  color: #fff;
  padding: 0 3px;
  border-radius: 3px;
}

/* Mobile */
@media (max-width: 768px) {
  .header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }
  .logo { font-size: 19px; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .nav a { font-size: 14px; padding: 5px 12px; }
  .search-box { margin-left: auto; }
  .search-box input { width: 110px; padding: 6px 12px; }

  .hero { margin: 18px 0; min-height: 220px; }
  .hero-slide { aspect-ratio: 4 / 3; min-height: 220px; }
  .hero-info { max-width: 100%; padding: 18px; }
  .hero-info h2 { font-size: 22px; }
  .hero-info p { -webkit-line-clamp: 2; font-size: 13px; }

  .sec { margin: 28px 0; }
  .sec-title { font-size: 19px; }
  .sec-title::before { height: 19px; width: 10px; }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .card-info { padding: 8px 10px 12px; }
  .card-title { font-size: 14px; }

  .rank-list { grid-template-columns: 1fr; }

  .detail-head {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .detail-cover { width: 100%; max-width: 220px; margin: 0 auto; }
  .detail-meta h1 { font-size: 22px; }
  .detail-body { padding: 16px; font-size: 14px; }

  .cat-list { gap: 8px; }
  .cat-item { padding: 6px 14px; font-size: 13px; }

  .pg { min-width: 34px; height: 34px; font-size: 13px; }
}