:root{
  --bg:#FDF6E9;
  --surface:#FFFDF7;
  --primary:#FF5D73;
  --accent:#3AA6A0;
  --text:#2B2624;
  --muted:#8C8178;
  --radius:18px;
  --shadow:0 6px 18px rgba(43,38,36,.08),0 2px 6px rgba(43,38,36,.05);
  --shadow-hover:0 12px 28px rgba(43,38,36,.14),0 4px 10px rgba(43,38,36,.08);
  --font-heading:"Noto Serif SC","Songti SC",Georgia,serif;
  --font-body:"Noto Sans SC","PingFang SC","Hiragino Sans GB",system-ui,sans-serif;
  --line:rgba(43,38,36,.12);
}

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

html{scroll-behavior:smooth}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:15px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  background-image:radial-gradient(rgba(43,38,36,.035) 1px,transparent 1px);
  background-size:22px 22px;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
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(253,246,233,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header .wrap{
  display:flex;
  align-items:center;
  gap:20px;
  height:66px;
  flex-wrap:wrap;
}
.logo{
  font-family:var(--font-heading);
  font-size:22px;
  font-weight:700;
  color:var(--text);
  letter-spacing:.5px;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:8px;
}
.logo::before{
  content:"";
  width:14px;
  height:14px;
  background:var(--primary);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(-12deg);
}
.logo img{height:32px;width:auto}

.nav{
  display:flex;
  align-items:center;
  gap:4px;
  flex:1;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none}
.nav a{
  display:inline-block;
  padding:7px 14px;
  border-radius:999px;
  font-size:14px;
  color:var(--text);
  white-space:nowrap;
  transition:all .2s ease;
  border:1.5px solid transparent;
}
.nav a:hover,.nav a.active{
  background:var(--primary);
  color:#fff;
  border-color:var(--text);
  box-shadow:2px 2px 0 var(--text);
  transform:translateY(-1px);
}

.search-box{
  display:flex;
  align-items:center;
  background:var(--surface);
  border:1.5px solid var(--text);
  border-radius:999px;
  padding:4px 4px 4px 16px;
  box-shadow:2px 2px 0 rgba(43,38,36,.15);
  min-width:200px;
}
.search-box input{
  flex:1;
  border:0;
  background:transparent;
  outline:none;
  font-family:var(--font-body);
  font-size:14px;
  color:var(--text);
  min-width:0;
}
.search-box input::placeholder{color:var(--muted)}
.search-box button{
  border:0;
  background:var(--accent);
  color:#fff;
  border-radius:999px;
  padding:6px 16px;
  font-family:var(--font-body);
  font-size:13px;
  cursor:pointer;
  transition:background .2s;
}
.search-box button:hover{background:var(--primary)}

/* ===== Hero ===== */
.hero{
  position:relative;
  margin:26px 0;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface);
  box-shadow:var(--shadow);
  border:1.5px solid var(--text);
}
.hero-track{
  display:flex;
  transition:transform .5s ease;
}
.hero-slide{
  position:relative;
  flex:0 0 100%;
  min-height:340px;
  display:flex;
  align-items:flex-end;
  background-size:cover;
  background-position:center;
}
.hero-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(43,38,36,.85) 0%,rgba(43,38,36,.15) 55%,transparent 100%);
}
.hero-info{
  position:relative;
  z-index:2;
  padding:32px;
  color:#fff;
  max-width:640px;
}
.hero-info h2{
  font-family:var(--font-heading);
  font-size:30px;
  line-height:1.25;
  margin-bottom:10px;
  text-shadow:0 2px 10px rgba(0,0,0,.3);
}
.hero-info p{
  font-size:14px;
  color:rgba(255,255,255,.85);
  margin-bottom:16px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.hero-info .meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
  font-size:13px;
}
.hero-info .meta span{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.35);
  padding:2px 10px;
  border-radius:999px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--primary);
  color:#fff;
  font-family:var(--font-body);
  font-size:14px;
  font-weight:600;
  padding:10px 26px;
  border-radius:999px;
  border:1.5px solid var(--text);
  box-shadow:3px 3px 0 var(--text);
  cursor:pointer;
  transition:all .2s ease;
}
.btn:hover{
  transform:translate(-1px,-1px);
  box-shadow:5px 5px 0 var(--text);
}
.btn.ghost{
  background:var(--surface);
  color:var(--text);
}

/* ===== Section ===== */
.sec{margin:38px 0}
.sec-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
  padding-bottom:12px;
  border-bottom:2px dashed var(--line);
}
.sec-title{
  font-family:var(--font-heading);
  font-size:22px;
  font-weight:700;
  position:relative;
  padding-left:18px;
  display:flex;
  align-items:center;
  gap:10px;
}
.sec-title::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%) rotate(-12deg);
  width:10px;
  height:18px;
  background:var(--primary);
  clip-path:polygon(50% 0,100% 100%,0 100%);
}
.sec-more{
  font-size:13px;
  color:var(--muted);
  border:1.5px solid var(--line);
  padding:4px 14px;
  border-radius:999px;
  transition:all .2s;
  white-space:nowrap;
}
.sec-more:hover{
  color:#fff;
  background:var(--accent);
  border-color:var(--accent);
}

/* ===== Grid & Card ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
}
.card{
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  border:1.5px solid rgba(43,38,36,.08);
  transition:transform .25s ease,box-shadow .25s ease;
  display:flex;
  flex-direction:column;
}
.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-hover);
}
.card-cover{
  position:relative;
  aspect-ratio:2/3;
  overflow:hidden;
  background:linear-gradient(135deg,#f0e6d6,#e6d9c4);
}
.card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s ease;
}
.card:hover .card-cover img{transform:scale(1.06)}
.card-score{
  position:absolute;
  top:10px;
  right:10px;
  background:var(--primary);
  color:#fff;
  font-family:var(--font-heading);
  font-size:13px;
  font-weight:700;
  padding:3px 10px;
  border-radius:999px;
  border:1.5px solid var(--text);
  box-shadow:2px 2px 0 var(--text);
}
.card-info{
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}
.card-title{
  font-family:var(--font-heading);
  font-size:15px;
  font-weight:700;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:color .2s;
}
.card:hover .card-title{color:var(--primary)}
.card-meta{
  font-size:12px;
  color:var(--muted);
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:auto;
}
.card-meta span{
  background:rgba(58,166,160,.12);
  color:var(--accent);
  padding:1px 8px;
  border-radius:999px;
}

/* ===== Category list ===== */
.cat-list{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.cat-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:var(--surface);
  border:1.5px solid var(--text);
  border-radius:var(--radius);
  padding:14px 18px;
  box-shadow:3px 3px 0 rgba(43,38,36,.12);
  transition:all .2s ease;
  font-family:var(--font-heading);
  font-weight:700;
  font-size:15px;
}
.cat-item:hover{
  background:var(--accent);
  color:#fff;
  transform:translate(-2px,-2px);
  box-shadow:5px 5px 0 var(--text);
}
.cat-count{
  font-family:var(--font-body);
  font-size:12px;
  font-weight:400;
  background:var(--primary);
  color:#fff;
  padding:1px 9px;
  border-radius:999px;
  border:1px solid var(--text);
}
.cat-item:hover .cat-count{background:#fff;color:var(--accent)}

/* ===== Rank list ===== */
.rank-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rank-item{
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--surface);
  border-radius:var(--radius);
  padding:10px 16px 10px 10px;
  box-shadow:var(--shadow);
  border:1.5px solid rgba(43,38,36,.08);
  transition:all .2s ease;
}
.rank-item:hover{
  transform:translateX(4px);
  box-shadow:var(--shadow-hover);
}
.rank-num{
  flex:0 0 34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-heading);
  font-weight:700;
  font-size:15px;
  color:#fff;
  background:var(--muted);
  border-radius:10px;
  border:1.5px solid var(--text);
}
.rank-item:nth-child(1) .rank-num{background:var(--primary)}
.rank-item:nth-child(2) .rank-num{background:var(--accent)}
.rank-item:nth-child(3) .rank-num{background:#E8A33D}
.rank-title{
  flex:1;
  font-size:14px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rank-score{
  font-family:var(--font-heading);
  font-weight:700;
  color:var(--primary);
  font-size:15px;
}

/* ===== Detail ===== */
.detail{
  margin:26px 0;
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1.5px solid rgba(43,38,36,.08);
  padding:28px;
}
.detail-head{
  display:flex;
  gap:28px;
  margin-bottom:26px;
  padding-bottom:26px;
  border-bottom:2px dashed var(--line);
}
.detail-cover{
  flex:0 0 240px;
  aspect-ratio:2/3;
  border-radius:var(--radius);
  overflow:hidden;
  border:1.5px solid var(--text);
  box-shadow:4px 4px 0 rgba(43,38,36,.15);
}
.detail-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.detail-meta{
  flex:1;
  min-width:0;
}
.detail-meta h1{
  font-family:var(--font-heading);
  font-size:28px;
  line-height:1.3;
  margin-bottom:14px;
}
.detail-meta .info{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  font-size:14px;
  color:var(--muted);
  margin-bottom:16px;
}
.detail-meta .info b{color:var(--text);font-weight:600}
.detail-score{
  display:inline-flex;
  align-items:baseline;
  gap:6px;
  background:var(--primary);
  color:#fff;
  font-family:var(--font-heading);
  font-size:26px;
  font-weight:700;
  padding:6px 20px;
  border-radius:999px;
  border:1.5px solid var(--text);
  box-shadow:3px 3px 0 var(--text);
  margin-bottom:18px;
}
.detail-score small{font-size:12px;font-weight:400}
.detail-body{
  font-size:15px;
  line-height:1.9;
  color:var(--text);
}
.detail-body p{margin-bottom:14px}
.detail-body h2,.detail-body h3{
  font-family:var(--font-heading);
  margin:22px 0 12px;
  font-size:19px;
}

/* ===== Tags ===== */
.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0;
}
.tag{
  font-size:12px;
  padding:4px 14px;
  border-radius:999px;
  background:rgba(58,166,160,.12);
  color:var(--accent);
  border:1px solid rgba(58,166,160,.3);
  transition:all .2s;
}
.tag:hover{
  background:var(--accent);
  color:#fff;
}

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

/* ===== Links ===== */
.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:20px 0;
}
.link-item{
  font-size:13px;
  color:var(--muted);
  padding:5px 14px;
  border:1px dashed var(--line);
  border-radius:999px;
  transition:all .2s;
}
.link-item:hover{
  color:var(--accent);
  border-color:var(--accent);
  border-style:solid;
}

/* ===== Footer ===== */
.footer{
  margin-top:40px;
  padding:30px 0 40px;
  border-top:2px dashed var(--line);
  text-align:center;
  font-size:13px;
  color:var(--muted);
  line-height:2;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--primary)}

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

/* ===== Highlight ===== */
.hl{
  background:linear-gradient(transparent 55%,rgba(255,93,115,.35) 55%);
  color:inherit;
  padding:0 2px;
  border-radius:2px;
  font-weight:600;
}

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

@media(max-width:768px){
  .wrap{padding:0 14px}
  .header .wrap{
    height:auto;
    padding-top:10px;
    padding-bottom:10px;
    gap:10px;
  }
  .logo{font-size:19px}
  .nav{
    order:3;
    width:100%;
    flex:0 0 100%;
    gap:6px;
    padding-bottom:2px;
  }
  .nav a{padding:6px 12px;font-size:13px}
  .search-box{
    order:2;
    flex:1;
    min-width:0;
  }
  .hero{margin:16px 0}
  .hero-slide{min-height:240px}
  .hero-info{padding:20px}
  .hero-info h2{font-size:21px}
  .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:12px;
  }
  .cat-list{grid-template-columns:repeat(2,1fr);gap:10px}
  .cat-item{padding:11px 14px;font-size:14px}
  .detail{padding:18px}
  .detail-head{
    flex-direction:column;
    gap:18px;
  }
  .detail-cover{
    flex:0 0 auto;
    width:150px;
    align-self:center;
  }
  .detail-meta h1{font-size:21px}
  .detail-score{font-size:22px;padding:5px 16px}
  .rank-item{padding:8px 12px 8px 8px}
  .rank-title{font-size:13px}
  .pager{gap:6px;margin:24px 0}
  .pg{min-width:34px;height:34px;font-size:13px}
}

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