:root {
  --bg: #F6EBDD;
  --surface: #FFF6EA;
  --primary: #1F5FBF;
  --accent: #E63B2E;
  --text: #1A1A1A;
  --muted: #7A6A58;
  --radius: 14px;
  --border: 3px solid #1A1A1A;
  --shadow: 5px 5px 0 #1A1A1A;
  --shadow-sm: 4px 4px 0 #1A1A1A;
  --font-head: 'Arial Black', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Trebuchet MS', 'PingFang SC', 'Microsoft YaHei', 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;
  background-image: radial-gradient(rgba(26,26,26,.04) 1px, transparent 1px);
  background-size: 6px 6px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { 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: 20px;
  height: 72px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--accent);
  border: var(--border);
  transform: rotate(45deg);
  display: inline-block;
}
.nav {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: var(--text);
  transition: all .18s ease;
}
.nav a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--text);
  transform: translateY(-2px) rotate(-1.5deg);
  box-shadow: var(--shadow-sm);
}
.search-box {
  display: flex;
  align-items: center;
  border: var(--border);
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  width: 150px;
  color: var(--text);
}
.search-box button {
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  border-left: var(--border);
  transition: background .18s;
}
.search-box button:hover { background: var(--primary); }

/* ===== Hero Carousel ===== */
.hero {
  position: relative;
  margin: 28px 0;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  min-height: 340px;
}
.hero-slide {
  position: relative;
  display: none;
  aspect-ratio: 16 / 7;
  min-height: 340px;
}
.hero-slide:first-child,
.hero-slide.active { display: block; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-info {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(26,26,26,.92), rgba(26,26,26,.55) 55%, transparent);
  color: #fff;
}
.hero-info h2 {
  font-family: var(--font-head);
  font-size: 30px;
  margin-bottom: 8px;
  text-shadow: 2px 2px 0 var(--accent);
}
.hero-info p {
  font-size: 14px;
  color: #f0e6d6;
  max-width: 640px;
  margin-bottom: 14px;
}
.hero-info .btn { margin-top: 4px; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all .18s ease;
}
.btn:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0 #1A1A1A;
  background: var(--primary);
}

/* ===== Section ===== */
.sec { margin: 40px 0; }
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.sec-title {
  font-family: var(--font-head);
  font-size: 24px;
  position: relative;
  padding-left: 18px;
  letter-spacing: .5px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 2px solid var(--text);
}
.sec-more {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: transform .18s;
}
.sec-more:hover { transform: translateX(4px) rotate(-2deg); }

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.card:hover {
  transform: translate(-3px, -5px) rotate(-1deg);
  box-shadow: 8px 9px 0 #1A1A1A;
}
.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(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  padding: 3px 9px;
  border: 2px solid var(--text);
  border-radius: 999px;
  transform: rotate(4deg);
  box-shadow: 2px 2px 0 #1A1A1A;
}
.card-info { padding: 12px 12px 14px; }
.card-title {
  font-family: var(--font-head);
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

/* ===== Category List ===== */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface);
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-size: 15px;
  transition: all .18s ease;
}
.cat-item:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px) rotate(-2deg);
}
.cat-count {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 2px solid var(--text);
}

/* ===== Rank List ===== */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}
.rank-item:hover {
  transform: translate(-2px, -3px) rotate(-.6deg);
  box-shadow: 7px 7px 0 #1A1A1A;
}
.rank-num {
  font-family: var(--font-head);
  font-size: 22px;
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: var(--border);
  border-radius: 10px;
  transform: rotate(-3deg);
}
.rank-item:nth-child(1) .rank-num { background: var(--accent); }
.rank-item:nth-child(2) .rank-num { background: #E6A12E; }
.rank-item:nth-child(3) .rank-num { background: #2E9E6B; }
.rank-title {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-score {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--accent);
}

/* ===== Detail ===== */
.detail { margin: 28px 0; }
.detail-head {
  display: flex;
  gap: 28px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  flex-wrap: wrap;
}
.detail-cover {
  width: 240px;
  flex-shrink: 0;
  aspect-ratio: 2 / 3;
  border: var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { flex: 1; min-width: 260px; }
.detail-meta h1 {
  font-family: var(--font-head);
  font-size: 30px;
  margin-bottom: 10px;
  line-height: 1.25;
}
.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: 26px;
  color: #fff;
  background: var(--accent);
  padding: 4px 18px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
  margin: 10px 0;
}
.detail-body {
  margin-top: 24px;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  font-size: 15px;
  line-height: 1.9;
}
.detail-body h2 {
  font-family: var(--font-head);
  font-size: 20px;
  margin: 18px 0 10px;
  border-left: 6px solid var(--primary);
  padding-left: 12px;
}
.detail-body h2:first-child { margin-top: 0; }

/* ===== Tag List ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: all .18s ease;
}
.tag:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(-3deg) translateY(-2px);
  box-shadow: 3px 3px 0 #1A1A1A;
}

/* ===== Pager ===== */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0;
}
.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background: var(--surface);
  border: var(--border);
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 14px;
  box-shadow: 3px 3px 0 #1A1A1A;
  transition: all .18s ease;
}
.pg:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.pg.current {
  background: var(--accent);
  color: #fff;
  transform: rotate(-2deg);
}
.pg.disabled {
  opacity: .45;
  pointer-events: none;
  box-shadow: none;
}

/* ===== Links & Footer ===== */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
}
.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 12px;
  border: 2px dashed var(--muted);
  border-radius: 999px;
  transition: all .18s ease;
}
.link-item:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: rotate(-2deg);
}
.footer {
  margin-top: 50px;
  background: var(--text);
  color: #F6EBDD;
  border-top: 4px solid var(--accent);
  padding: 32px 0;
  font-size: 13px;
  text-align: center;
}
.footer a { color: #F6EBDD; border-bottom: 1px dotted var(--accent); }
.footer a:hover { color: var(--accent); }
.footer p { margin: 6px 0; color: #c9b9a6; }

/* ===== Breadcrumbs ===== */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 0 4px;
}
.crumbs a { color: var(--primary); font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .header .wrap { height: auto; padding: 12px 16px; gap: 12px; }
  .logo { font-size: 20px; }
  .nav {
    order: 3;
    width: 100%;
    flex: none;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .search-box { margin-left: auto; }
  .search-box input { width: 110px; }

  .hero { min-height: 240px; margin: 18px 0; }
  .hero-slide { aspect-ratio: 4 / 3; min-height: 240px; }
  .hero-info { padding: 18px; }
  .hero-info h2 { font-size: 22px; }
  .hero-info p { font-size: 13px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sec-title { font-size: 20px; }
  .rank-list { grid-template-columns: 1fr; }

  .detail-head { flex-direction: column; padding: 16px; gap: 16px; }
  .detail-cover { width: 140px; }
  .detail-meta h1 { font-size: 22px; }
  .detail-body { padding: 16px; }

  .cat-item { padding: 9px 16px; font-size: 14px; }
  .pg { min-width: 36px; height: 36px; font-size: 13px; }
}