:root{
  --bg:#FFFCF7;
  --surface:#FFFFFF;
  --primary:#F58A1F;
  --accent:#E05A1A;
  --text:#1F1B16;
  --muted:#8C8278;
  --radius:20px;
  --radius-sm:12px;
  --shadow:0 8px 24px rgba(245,138,31,.12);
  --shadow-hover:0 14px 32px rgba(224,90,26,.20);
  --line:#F0E8DE;
  --font-head:'Helvetica Neue',Helvetica,Arial,'PingFang SC','Microsoft YaHei',sans-serif;
  --font-body:'Inter','PingFang SC','Microsoft YaHei','Helvetica Neue',sans-serif;
}

*{box-sizing:border-box;}
html,body{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;
}
img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;transition:color .2s;}
a:hover{color:var(--primary);}
h1,h2,h3,h4{font-family:var(--font-head);margin:0;font-weight:700;letter-spacing:-.01em;}

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

/* ===== Header ===== */
.header{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:100;
}
.header .wrap{
  display:flex;
  align-items:center;
  gap:24px;
  height:68px;
}
.logo{
  font-family:var(--font-head);
  font-size:22px;
  font-weight:800;
  color:var(--text);
  white-space:nowrap;
  flex-shrink:0;
}
.logo:hover{color:var(--accent);}
.nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex:1;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none;}
.nav a{
  padding:8px 14px;
  border-radius:999px;
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
  transition:all .2s;
}
.nav a:hover,.nav a.active{
  background:rgba(245,138,31,.10);
  color:var(--accent);
}
.search-box{
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 6px 6px 16px;
  flex-shrink:0;
  transition:border-color .2s,box-shadow .2s;
}
.search-box:focus-within{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(245,138,31,.12);
}
.search-box input{
  border:none;
  background:transparent;
  outline:none;
  font-size:14px;
  color:var(--text);
  width:150px;
  font-family:var(--font-body);
}
.search-box input::placeholder{color:var(--muted);}
.search-box button{
  border:none;
  background:var(--primary);
  color:#fff;
  border-radius:999px;
  padding:7px 16px;
  font-size:13px;
  cursor:pointer;
  font-family:var(--font-body);
  transition:background .2s;
}
.search-box button:hover{background:var(--accent);}

/* ===== Hero ===== */
.hero{
  position:relative;
  margin:28px 0;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface);
  box-shadow:var(--shadow);
  aspect-ratio:16/7;
  max-height:460px;
}
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .8s ease;
  animation:heroFade 12s infinite;
}
.hero-slide:nth-child(1){animation-delay:0s;}
.hero-slide:nth-child(2){animation-delay:4s;}
.hero-slide:nth-child(3){animation-delay:8s;}
.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-info{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:60px 40px 32px;
  background:linear-gradient(to top,rgba(31,27,22,.85),rgba(31,27,22,0));
  color:#fff;
}
.hero-info h2{
  font-size:30px;
  margin-bottom:8px;
  color:#fff;
}
.hero-info p{
  margin:0 0 16px;
  font-size:14px;
  color:rgba(255,255,255,.82);
  max-width:560px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
@keyframes heroFade{
  0%,28%{opacity:1;}
  33%,100%{opacity:0;}
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--primary);
  color:#fff;
  border-radius:999px;
  padding:10px 24px;
  font-size:14px;
  font-weight:600;
  transition:all .2s;
  border:none;
  cursor:pointer;
}
.btn:hover{background:var(--accent);color:#fff;transform:translateY(-2px);box-shadow:var(--shadow-hover);}

/* ===== Section ===== */
.sec{margin:44px 0;}
.sec-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.sec-title{
  font-size:22px;
  font-weight:800;
  position:relative;
  padding-left:16px;
}
.sec-title::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:6px;
  height:22px;
  border-radius:3px;
  background:linear-gradient(to bottom,var(--primary),var(--accent));
}
.sec-more{
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
}
.sec-more:hover{color:var(--accent);}

/* ===== Grid & Card ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:22px;
}
.card{
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .25s ease,box-shadow .25s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-hover);
}
.card-cover{
  position:relative;
  aspect-ratio:2/3;
  overflow:hidden;
  background:#f4ede4;
}
.card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}
.card:hover .card-cover img{transform:scale(1.05);}
.card-score{
  position:absolute;
  top:10px;
  right:10px;
  background:rgba(245,138,31,.94);
  color:#fff;
  font-size:13px;
  font-weight:700;
  padding:3px 10px;
  border-radius:999px;
  backdrop-filter:blur(4px);
}
.card-info{
  padding:12px 14px 16px;
}
.card-title{
  font-size:15px;
  font-weight:600;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-bottom:6px;
}
.card-meta{
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* ===== Cat list ===== */
.cat-list{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.cat-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:16px 20px;
  font-weight:600;
  transition:all .2s;
}
.cat-item:hover{
  border-color:var(--primary);
  color:var(--accent);
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.cat-count{
  font-size:12px;
  color:var(--muted);
  background:var(--bg);
  border-radius:999px;
  padding:2px 10px;
}

/* ===== Rank list ===== */
.rank-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.rank-item{
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--surface);
  border-radius:var(--radius-sm);
  padding:12px 16px;
  box-shadow:var(--shadow);
  transition:transform .2s;
}
.rank-item:hover{transform:translateY(-2px);}
.rank-num{
  flex-shrink:0;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:var(--bg);
  color:var(--muted);
  font-weight:800;
  font-size:14px;
}
.rank-item:nth-child(1) .rank-num{background:var(--accent);color:#fff;}
.rank-item:nth-child(2) .rank-num{background:var(--primary);color:#fff;}
.rank-item:nth-child(3) .rank-num{background:#F5B71F;color:#fff;}
.rank-title{
  flex:1;
  font-size:14px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rank-score{
  font-size:13px;
  font-weight:700;
  color:var(--accent);
}

/* ===== Detail ===== */
.detail{
  margin:32px 0;
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:32px;
}
.detail-head{
  display:flex;
  gap:32px;
  margin-bottom:28px;
}
.detail-cover{
  flex-shrink:0;
  width:240px;
  aspect-ratio:2/3;
  border-radius:var(--radius-sm);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.detail-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.detail-meta{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.detail-meta h1{
  font-size:28px;
  line-height:1.3;
}
.detail-meta p{
  margin:0;
  font-size:14px;
  color:var(--muted);
}
.detail-meta p b{color:var(--text);font-weight:600;}
.detail-score{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(245,138,31,.12);
  color:var(--accent);
  font-weight:800;
  font-size:20px;
  padding:6px 18px;
  border-radius:999px;
  align-self:flex-start;
}
.detail-body{
  font-size:15px;
  line-height:1.9;
  color:#3a3530;
  border-top:1px solid var(--line);
  padding-top:24px;
}
.detail-body h3{
  font-size:17px;
  margin:20px 0 10px;
}

/* ===== Tags ===== */
.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}
.tag{
  font-size:12px;
  color:var(--muted);
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 14px;
  transition:all .2s;
}
.tag:hover{
  color:var(--accent);
  border-color:var(--primary);
}

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

/* ===== Links ===== */
.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 20px;
  padding:20px 0;
}
.link-item{
  font-size:13px;
  color:var(--muted);
}
.link-item:hover{color:var(--accent);}

/* ===== Footer ===== */
.footer{
  background:var(--surface);
  border-top:1px solid var(--line);
  margin-top:60px;
  padding:36px 0 28px;
  font-size:13px;
  color:var(--muted);
}
.footer .wrap{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
  text-align:center;
}
.footer a{color:var(--muted);}
.footer a:hover{color:var(--accent);}

/* ===== Crumbs ===== */
.crumbs{
  font-size:13px;
  color:var(--muted);
  padding:20px 0 0;
}
.crumbs a{color:var(--muted);}
.crumbs a:hover{color:var(--accent);}
.crumbs span{color:var(--text);}

/* ===== Highlight ===== */
.hl{
  background:rgba(245,138,31,.28);
  color:var(--accent);
  border-radius:4px;
  padding:0 2px;
  font-weight:600;
}

/* ===== Responsive ===== */
@media(max-width:1100px){
  .grid{grid-template-columns:repeat(4,1fr);}
  .cat-list{grid-template-columns:repeat(3,1fr);}
}
@media(max-width:768px){
  .header .wrap{
    height:auto;
    flex-wrap:wrap;
    padding:12px 16px;
    gap:10px;
  }
  .logo{font-size:19px;}
  .nav{
    order:3;
    width:100%;
    flex:1 0 100%;
    padding-bottom:4px;
  }
  .nav a{padding:6px 12px;font-size:13px;}
  .search-box{flex:1;min-width:0;}
  .search-box input{width:100%;}
  .hero{
    aspect-ratio:4/3;
    max-height:none;
    margin:16px 0;
  }
  .hero-info{padding:40px 20px 20px;}
  .hero-info h2{font-size:20px;}
  .hero-info p{font-size:13px;}
  .grid{grid-template-columns:repeat(2,1fr);gap:14px;}
  .cat-list{grid-template-columns:repeat(2,1fr);gap:10px;}
  .rank-list{grid-template-columns:1fr;}
  .sec{margin:28px 0;}
  .sec-title{font-size:18px;}
  .detail{padding:20px;margin:20px 0;}
  .detail-head{flex-direction:column;gap:20px;}
  .detail-cover{width:100%;max-width:220px;margin:0 auto;}
  .detail-meta h1{font-size:22px;}
  .detail-body{font-size:14px;}
  .card-info{padding:10px 12px 12px;}
  .card-title{font-size:14px;}
  .pg{min-width:34px;height:34px;padding:0 10px;font-size:13px;}
}
@media(max-width:400px){
  .grid{grid-template-columns:1fr 1fr;gap:10px;}
}