:root{
  --bg:#F2EEE6;
  --surface:#FFFFFF;
  --primary:#E8452B;
  --accent:#1E4FD8;
  --text:#141414;
  --muted:#7A746B;
  --radius:14px;
  --font-heading:'Noto Serif SC','Songti SC',Georgia,serif;
  --font-body:'Noto Sans SC','PingFang SC','Helvetica Neue',sans-serif;
  --border:2px solid #141414;
  --shadow:6px 6px 0 #141414;
  --shadow-sm:4px 4px 0 #141414;
}

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

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:15px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

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{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(242,238,230,.82);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:var(--border);
}
.header .wrap{
  display:flex;
  align-items:center;
  gap:20px;
  height:68px;
}
.logo{
  font-family:var(--font-heading);
  font-size:24px;
  font-weight:800;
  letter-spacing:1px;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:8px;
}
.logo::before{
  content:"";
  width:18px;
  height:18px;
  background:var(--primary);
  border:2px solid var(--text);
  border-radius:50%;
  display:inline-block;
}
.nav{
  display:flex;
  align-items:center;
  gap:6px;
  overflow-x:auto;
  flex:1;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none;}
.nav a{
  padding:6px 12px;
  border-radius:999px;
  font-size:14px;
  white-space:nowrap;
  transition:.2s;
}
.nav a:hover{
  background:var(--accent);
  color:#fff;
}
.search-box{
  display:flex;
  align-items:center;
  border:var(--border);
  border-radius:999px;
  background:var(--surface);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  flex-shrink:0;
}
.search-box input{
  border:0;
  outline:0;
  background:transparent;
  padding:8px 14px;
  font-size:14px;
  width:150px;
  font-family:var(--font-body);
}
.search-box button{
  border:0;
  background:var(--primary);
  color:#fff;
  padding:8px 16px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}

/* ===== Hero ===== */
.hero{
  position:relative;
  margin:28px 0;
  border-radius:var(--radius);
  overflow:hidden;
  border:var(--border);
  box-shadow:var(--shadow);
  background:var(--surface);
}
.hero-slide{
  position:relative;
  display:block;
  aspect-ratio:16/7;
  overflow:hidden;
}
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-info{
  position:absolute;
  left:0;
  bottom:0;
  right:0;
  padding:40px 32px 28px;
  background:linear-gradient(to top,rgba(20,20,20,.85),transparent);
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hero-info h2{
  font-family:var(--font-heading);
  font-size:clamp(22px,3vw,38px);
  font-weight:800;
  line-height:1.2;
  text-shadow:2px 2px 0 rgba(0,0,0,.4);
}
.hero-info p{
  font-size:14px;
  opacity:.85;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:640px;
}

/* ===== Button ===== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 22px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:14px;
  border:var(--border);
  border-radius:999px;
  box-shadow:var(--shadow-sm);
  cursor:pointer;
  transition:.18s ease;
  align-self:flex-start;
}
.btn:hover{
  transform:translate(-2px,-2px) rotate(-1deg);
  box-shadow:6px 6px 0 #141414;
}

/* ===== Section ===== */
.sec{
  margin:36px 0;
}
.sec-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  gap:16px;
}
.sec-title{
  font-family:var(--font-heading);
  font-size:clamp(20px,2.4vw,28px);
  font-weight:800;
  letter-spacing:.5px;
  position:relative;
  padding-left:16px;
}
.sec-title::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:8px;
  height:70%;
  background:var(--primary);
  border-radius:4px;
}
.sec-more{
  font-size:14px;
  color:var(--muted);
  border:2px solid var(--text);
  border-radius:999px;
  padding:4px 14px;
  transition:.2s;
  white-space:nowrap;
}
.sec-more:hover{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

/* ===== 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:.2s ease;
  display:flex;
  flex-direction:column;
}
.card:hover{
  transform:translate(-3px,-3px) rotate(-.6deg);
  box-shadow:8px 8px 0 #141414;
}
.card-cover{
  position:relative;
  aspect-ratio:2/3;
  overflow:hidden;
  background:#ddd;
}
.card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:.3s;
}
.card:hover .card-cover img{
  transform:scale(1.05);
}
.card-score{
  position:absolute;
  top:8px;
  right:8px;
  background:var(--primary);
  color:#fff;
  font-weight:800;
  font-size:13px;
  padding:2px 8px;
  border:2px solid var(--text);
  border-radius:8px;
  box-shadow:2px 2px 0 #141414;
}
.card-info{
  padding:10px 12px 14px;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.card-title{
  font-family:var(--font-heading);
  font-weight:700;
  font-size:15px;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card-meta{
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:8px;
  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 16px;
  background:var(--surface);
  border:var(--border);
  border-radius:999px;
  font-weight:600;
  font-size:14px;
  box-shadow:var(--shadow-sm);
  transition:.18s;
}
.cat-item:hover{
  background:var(--accent);
  color:#fff;
  transform:translate(-2px,-2px);
}
.cat-count{
  font-size:12px;
  background:var(--primary);
  color:#fff;
  border-radius:999px;
  padding:0 7px;
  font-weight:700;
}

/* ===== Rank list ===== */
.rank-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rank-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:10px 16px;
  background:var(--surface);
  border:var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:.18s;
}
.rank-item:hover{
  transform:translate(-2px,-2px);
  box-shadow:6px 6px 0 #141414;
}
.rank-num{
  font-family:var(--font-heading);
  font-size:22px;
  font-weight:800;
  color:var(--primary);
  min-width:36px;
  text-align:center;
  -webkit-text-stroke:1px var(--text);
}
.rank-title{
  flex:1;
  font-weight:600;
  font-size:15px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rank-score{
  font-weight:800;
  color:var(--accent);
  font-size:15px;
}

/* ===== 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:220px;
  flex-shrink:0;
  aspect-ratio:2/3;
  overflow:hidden;
  border:var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.detail-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.detail-meta{
  flex:1;
  min-width:240px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.detail-meta h1{
  font-family:var(--font-heading);
  font-size:clamp(22px,3vw,34px);
  font-weight:800;
  line-height:1.2;
}
.detail-score{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:26px;
  font-weight:800;
  color:var(--primary);
  -webkit-text-stroke:1px var(--text);
  align-self:flex-start;
}
.detail-body{
  margin-top:24px;
  background:var(--surface);
  border:var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:24px;
  line-height:1.8;
}
.detail-body h2{
  font-family:var(--font-heading);
  font-size:20px;
  margin-bottom:12px;
}

/* ===== Tag list ===== */
.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tag{
  display:inline-block;
  padding:4px 12px;
  font-size:13px;
  background:var(--bg);
  border:2px solid var(--text);
  border-radius:999px;
  transition:.18s;
}
.tag:hover{
  background:var(--primary);
  color:#fff;
}

/* ===== Pager ===== */
.pager{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin:32px 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:10px;
  font-weight:700;
  font-size:14px;
  box-shadow:3px 3px 0 #141414;
  transition:.18s;
}
.pg:hover{
  background:var(--accent);
  color:#fff;
  transform:translate(-2px,-2px);
}
.pg.current{
  background:var(--primary);
  color:#fff;
  transform:none;
  box-shadow:3px 3px 0 #141414;
}
.pg.disabled{
  opacity:.4;
  pointer-events:none;
  box-shadow:none;
}

/* ===== Links ===== */
.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.link-item{
  font-size:13px;
  color:var(--muted);
  padding:4px 12px;
  border:2px solid var(--muted);
  border-radius:999px;
  transition:.18s;
}
.link-item:hover{
  color:var(--text);
  border-color:var(--text);
  background:var(--surface);
}

/* ===== Footer ===== */
.footer{
  margin-top:48px;
  padding:32px 0;
  border-top:var(--border);
  background:var(--surface);
  text-align:center;
  color:var(--muted);
  font-size:13px;
  line-height:1.9;
}
.footer a{
  color:var(--text);
  font-weight:600;
}
.footer a:hover{
  color:var(--primary);
}

/* ===== Crumbs ===== */
.crumbs{
  font-size:13px;
  color:var(--muted);
  padding:16px 0;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}
.crumbs a{
  color:var(--text);
  font-weight:600;
}
.crumbs a:hover{
  color:var(--primary);
}

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

/* ===== Responsive ===== */
@media (max-width:768px){
  .header .wrap{
    height:auto;
    flex-wrap:wrap;
    padding:12px 16px;
    gap:10px;
  }
  .logo{font-size:20px;}
  .nav{
    order:3;
    width:100%;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .search-box{
    margin-left:auto;
  }
  .search-box input{width:110px;}
  .hero-slide{aspect-ratio:4/3;}
  .hero-info{padding:24px 18px 18px;}
  .grid{
    grid-template-columns:repeat(2,1fr);
    gap:14px;
  }
  .detail-head{
    flex-direction:column;
    padding:16px;
  }
  .detail-cover{
    width:100%;
    max-width:220px;
    margin:0 auto;
  }
  .sec{margin:24px 0;}
  .rank-item{padding:8px 12px;gap:10px;}
  .rank-num{font-size:18px;min-width:28px;}
  .detail-body{padding:16px;}
}

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