:root{
  --bg:#FBF3E4;
  --surface:#FFF9F0;
  --primary:#F2632B;
  --accent:#2E4CD8;
  --text:#221E1A;
  --muted:#9A8B78;
  --radius:26px;
  --shadow-soft:6px 6px 16px rgba(154,139,120,.22), -6px -6px 16px rgba(255,255,255,.9);
  --shadow-hard:4px 4px 0 rgba(34,30,26,.85);
  --font-head:'Arial Black','PingFang SC','Microsoft YaHei',sans-serif;
  --font-body:'PingFang SC','Hiragino Sans GB','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);
  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:50;
  background:var(--surface);
  border-bottom:3px solid var(--text);
  box-shadow:0 4px 0 rgba(242,99,43,.25);
}
.header .wrap{
  display:flex;
  align-items:center;
  gap:22px;
  height:70px;
}
.logo{
  font-family:var(--font-head);
  font-size:22px;
  letter-spacing:.5px;
  color:var(--text);
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:8px;
}
.logo::before{
  content:"";
  width:16px;height:16px;
  background:var(--primary);
  border:3px solid var(--text);
  border-radius:5px;
  display:inline-block;
}
.nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex:1;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none}
.nav a{
  padding:7px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  color:var(--text);
  white-space:nowrap;
  border:2px solid transparent;
  transition:all .2s ease;
}
.nav a:hover{
  background:var(--primary);
  color:#fff;
  border-color:var(--text);
  transform:translateY(-2px);
}
.search-box{
  display:flex;
  align-items:center;
  background:var(--bg);
  border:2px solid var(--text);
  border-radius:999px;
  padding:4px 6px 4px 14px;
  box-shadow:var(--shadow-hard);
  flex-shrink:0;
}
.search-box input{
  border:none;
  outline:none;
  background:transparent;
  font-family:var(--font-body);
  font-size:14px;
  width:150px;
  color:var(--text);
}
.search-box input::placeholder{color:var(--muted)}
.search-box button{
  border:none;
  cursor:pointer;
  background:var(--primary);
  color:#fff;
  font-family:var(--font-body);
  font-weight:700;
  font-size:13px;
  padding:6px 14px;
  border-radius:999px;
  border:2px solid var(--text);
}

/* ===== Hero ===== */
.hero{
  position:relative;
  margin:26px 0;
  border-radius:var(--radius);
  overflow:hidden;
  border:3px solid var(--text);
  box-shadow:var(--shadow-soft),var(--shadow-hard);
  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;right:0;bottom:0;
  padding:60px 30px 26px;
  background:linear-gradient(to top,rgba(34,30,26,.92),rgba(34,30,26,.55) 55%,transparent);
  color:#fff;
}
.hero-info h2{
  font-family:var(--font-head);
  font-size:28px;
  line-height:1.25;
  margin-bottom:8px;
}
.hero-info p{
  font-size:14px;
  color:rgba(255,255,255,.82);
  max-width:640px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:14px;
  padding:9px 22px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:14px;
  border-radius:999px;
  border:3px solid var(--text);
  box-shadow:var(--shadow-hard);
  transition:transform .18s ease;
}
.btn:hover{transform:translateY(-3px) rotate(-1.5deg)}

/* ===== Section ===== */
.sec{margin:34px 0}
.sec-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.sec-title{
  position:relative;
  font-family:var(--font-head);
  font-size:21px;
  padding-left:16px;
}
.sec-title::before{
  content:"";
  position:absolute;
  left:0;top:50%;
  transform:translateY(-50%);
  width:8px;height:22px;
  background:var(--accent);
  border:2px solid var(--text);
  border-radius:4px;
}
.sec-more{
  font-size:13px;
  font-weight:700;
  color:var(--primary);
  border:2px solid var(--text);
  border-radius:999px;
  padding:5px 14px;
  background:var(--surface);
  box-shadow:3px 3px 0 rgba(34,30,26,.85);
  transition:transform .18s ease;
}
.sec-more:hover{transform:translateY(-2px)}

/* ===== Grid & Card ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:20px;
}
.card{
  background:var(--surface);
  border:3px solid var(--text);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-soft),var(--shadow-hard);
  transition:transform .22s ease,box-shadow .22s ease;
}
.card:hover{
  transform:translateY(-6px) rotate(-.8deg);
  box-shadow:8px 8px 20px rgba(154,139,120,.3),-6px -6px 16px rgba(255,255,255,.9),5px 5px 0 rgba(34,30,26,.9);
}
.card-cover{
  position:relative;
  aspect-ratio:2/3;
  overflow:hidden;
  background:var(--bg);
  border-bottom:3px solid var(--text);
}
.card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.card:hover .card-cover img{transform:scale(1.05)}
.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-radius:999px;
  border:2px solid var(--text);
  box-shadow:2px 2px 0 rgba(34,30,26,.85);
}
.card-info{padding:10px 12px 13px}
.card-title{
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.card-meta{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* ===== Cat list ===== */
.cat-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:14px;
}
.cat-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:14px 16px;
  background:var(--surface);
  border:3px solid var(--text);
  border-radius:18px;
  font-weight:700;
  font-size:14px;
  box-shadow:var(--shadow-soft),3px 3px 0 rgba(34,30,26,.85);
  transition:transform .18s ease;
}
.cat-item:hover{transform:translateY(-4px) rotate(-1deg)}
.cat-count{
  font-size:12px;
  font-weight:700;
  color:#fff;
  background:var(--accent);
  border:2px solid var(--text);
  border-radius:999px;
  padding:1px 9px;
}

/* ===== Rank list ===== */
.rank-list{display:flex;flex-direction:column;gap:12px}
.rank-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  background:var(--surface);
  border:3px solid var(--text);
  border-radius:18px;
  box-shadow:var(--shadow-soft),3px 3px 0 rgba(34,30,26,.85);
  transition:transform .18s ease;
}
.rank-item:hover{transform:translateX(4px)}
.rank-num{
  flex-shrink:0;
  width:30px;height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-head);
  font-size:14px;
  color:#fff;
  background:var(--primary);
  border:2px solid var(--text);
  border-radius:9px;
}
.rank-item:nth-child(1) .rank-num{background:#F2B01E}
.rank-item:nth-child(2) .rank-num{background:var(--accent)}
.rank-item:nth-child(3) .rank-num{background:#3FA34D}
.rank-title{
  flex:1;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rank-score{
  flex-shrink:0;
  font-family:var(--font-head);
  font-size:14px;
  color:var(--primary);
}

/* ===== Detail ===== */
.detail{margin:30px 0}
.detail-head{
  display:flex;
  gap:26px;
  background:var(--surface);
  border:3px solid var(--text);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow-soft),var(--shadow-hard);
}
.detail-cover{
  flex-shrink:0;
  width:220px;
  aspect-ratio:2/3;
  border-radius:18px;
  overflow:hidden;
  border:3px solid var(--text);
  background:var(--bg);
}
.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:26px;
  line-height:1.3;
  margin-bottom:12px;
}
.detail-score{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-family:var(--font-head);
  font-size:20px;
  color:#fff;
  background:var(--primary);
  border:3px solid var(--text);
  border-radius:14px;
  padding:3px 14px;
  box-shadow:3px 3px 0 rgba(34,30,26,.85);
  margin-bottom:14px;
}
.detail-meta p{
  font-size:14px;
  color:var(--muted);
  margin-bottom:6px;
}
.detail-meta p b{color:var(--text);font-weight:700;margin-right:4px}
.detail-body{
  margin-top:22px;
  background:var(--surface);
  border:3px solid var(--text);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow-soft),var(--shadow-hard);
  font-size:15px;
  line-height:1.85;
}
.detail-body h2{
  font-family:var(--font-head);
  font-size:18px;
  margin:18px 0 10px;
  padding-left:14px;
  position:relative;
}
.detail-body h2::before{
  content:"";
  position:absolute;
  left:0;top:50%;
  transform:translateY(-50%);
  width:7px;height:18px;
  background:var(--primary);
  border:2px solid var(--text);
  border-radius:4px;
}

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

/* ===== Pager ===== */
.pager{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:9px;
  margin:32px 0;
}
.pg{
  min-width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  font-size:14px;
  font-weight:700;
  background:var(--surface);
  border:3px solid var(--text);
  border-radius:13px;
  box-shadow:3px 3px 0 rgba(34,30,26,.85);
  transition:transform .16s ease;
}
.pg:hover{transform:translateY(-3px)}
.pg.current{
  background:var(--primary);
  color:#fff;
  box-shadow:3px 3px 0 rgba(34,30,26,.9);
}
.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;
  padding:5px 14px;
  background:var(--surface);
  border:2px solid var(--text);
  border-radius:999px;
  color:var(--muted);
  transition:all .18s ease;
}
.link-item:hover{color:var(--primary);border-color:var(--primary)}

/* ===== Footer ===== */
.footer{
  margin-top:44px;
  background:var(--surface);
  border-top:3px solid var(--text);
  padding:30px 0 26px;
  font-size:13px;
  color:var(--muted);
  text-align:center;
  line-height:1.9;
}
.footer a{color:var(--primary);font-weight:700}
.footer .wrap{display:flex;flex-direction:column;gap:6px;align-items:center}

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

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

/* ===== Responsive ===== */
@media (max-width:768px){
  .header .wrap{
    flex-wrap:wrap;
    height:auto;
    padding:10px 16px;
    gap:10px;
  }
  .logo{font-size:19px}
  .nav{
    order:3;
    width:100%;
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
    border-top:2px dashed rgba(154,139,120,.4);
    padding-top:8px;
  }
  .nav a{padding:6px 12px;font-size:13px}
  .search-box{margin-left:auto;padding:3px 4px 3px 12px}
  .search-box input{width:110px;font-size:13px}

  .hero-slide{aspect-ratio:4/3}
  .hero-info{padding:44px 18px 18px}
  .hero-info h2{font-size:20px}
  .hero-info p{font-size:13px;-webkit-line-clamp:2}

  .sec{margin:26px 0}
  .sec-title{font-size:18px}

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

  .cat-list{grid-template-columns:repeat(2,1fr);gap:10px}
  .cat-item{padding:11px 13px;font-size:13px}

  .detail-head{
    flex-direction:column;
    gap:16px;
    padding:16px;
  }
  .detail-cover{width:150px;margin:0 auto}
  .detail-meta h1{font-size:21px;text-align:center}
  .detail-score{font-size:17px}
  .detail-meta p{font-size:13px}
  .detail-body{padding:16px;font-size:14px}

  .pg{min-width:36px;height:36px;font-size:13px;padding:0 10px}
  .footer{margin-top:30px;padding:24px 0 20px}
}