:root{
  --bg:#F7F0E6;
  --surface:#FFF9F0;
  --primary:#C85A3A;
  --accent:#E8B04B;
  --text:#3D2C24;
  --muted:#A69282;
  --radius:16px;
  --font-heading:"Noto Serif SC","Songti SC",serif;
  --font-body:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --shadow-light:rgba(255,255,255,.85);
  --shadow-dark:rgba(61,44,36,.12);
  --line:rgba(166,146,130,.28);
}

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

html{-webkit-text-size-adjust:100%}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:15px;
  line-height:1.7;
  background-image:radial-gradient(rgba(61,44,36,.035) 1px,transparent 1px);
  background-size:4px 4px;
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
ul,ol{list-style:none}
button,input{font-family:inherit}

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

/* ============ header ============ */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,240,230,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}

.header .wrap{
  display:flex;
  align-items:center;
  gap:20px;
  min-height:64px;
  flex-wrap:wrap;
}

.logo{
  font-family:var(--font-heading);
  font-size:22px;
  font-weight:700;
  letter-spacing:1px;
  color:var(--primary);
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:8px;
}

.logo::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 4px rgba(232,176,75,.22);
}

.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:6px 12px;
  border-radius:999px;
  font-size:14px;
  color:var(--muted);
  white-space:nowrap;
  transition:.25s;
}

.nav a:hover,
.nav a.active{
  color:var(--primary);
  background:var(--surface);
  box-shadow:2px 2px 6px var(--shadow-dark),-2px -2px 6px var(--shadow-light);
}

.search-box{
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--surface);
  border-radius:999px;
  padding:4px 4px 4px 14px;
  box-shadow:inset 2px 2px 5px var(--shadow-dark),inset -2px -2px 5px var(--shadow-light);
}

.search-box input{
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:14px;
  width:150px;
  padding:6px 0;
}
.search-box input::placeholder{color:var(--muted)}

.search-box button{
  border:0;
  cursor:pointer;
  background:var(--primary);
  color:#fff;
  font-size:13px;
  padding:7px 16px;
  border-radius:999px;
  transition:.25s;
}
.search-box button:hover{background:#b04a2d}

/* ============ hero ============ */
.hero{
  position:relative;
  margin:26px 0;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface);
  box-shadow:8px 8px 20px var(--shadow-dark),-8px -8px 20px var(--shadow-light);
}

.hero-slide{
  position:relative;
  display:block;
  aspect-ratio:16/7;
  overflow:hidden;
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s ease;
}
.hero-slide:hover img{transform:scale(1.04)}

.hero-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(61,44,36,.78) 0%,rgba(61,44,36,.35) 45%,transparent 75%);
}

.hero-info{
  position:absolute;
  left:0;
  bottom:0;
  z-index:2;
  padding:28px 32px;
  max-width:60%;
  color:#fff;
}

.hero-info h2{
  font-family:var(--font-heading);
  font-size:30px;
  line-height:1.3;
  margin-bottom:8px;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
}

.hero-info p{
  font-size:14px;
  color:rgba(255,249,240,.82);
  margin-bottom:14px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.btn{
  display:inline-block;
  padding:9px 22px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-size:14px;
  font-weight:500;
  border:0;
  cursor:pointer;
  transition:.25s;
  box-shadow:3px 3px 8px rgba(61,44,36,.28);
}
.btn:hover{
  background:#b04a2d;
  transform:translateY(-2px);
  box-shadow:5px 6px 14px rgba(61,44,36,.32);
}

/* ============ section ============ */
.sec{margin:36px 0}

.sec-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding-bottom:12px;
  margin-bottom:20px;
  border-bottom:1px dashed var(--line);
}

.sec-title{
  font-family:var(--font-heading);
  font-size:22px;
  font-weight:700;
  letter-spacing:.5px;
  position:relative;
  padding-left:14px;
}
.sec-title::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:5px;
  height:20px;
  border-radius:3px;
  background:var(--primary);
}

.sec-more{
  font-size:13px;
  color:var(--muted);
  transition:.2s;
  white-space:nowrap;
}
.sec-more:hover{color:var(--primary)}

/* ============ grid & card ============ */
.grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:18px;
}

.card{
  position:relative;
  background:var(--surface);
  border-radius:var(--radius);
  padding:10px;
  box-shadow:5px 5px 14px var(--shadow-dark),-5px -5px 14px var(--shadow-light);
  transition:transform .28s ease,box-shadow .28s ease;
  display:flex;
  flex-direction:column;
}

.card:hover{
  transform:translateY(-5px);
  box-shadow:8px 10px 22px var(--shadow-dark),-6px -6px 18px var(--shadow-light);
}

.card-cover{
  position:relative;
  aspect-ratio:2/3;
  border-radius:calc(var(--radius) - 6px);
  overflow:hidden;
  background:var(--bg);
}

.card-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}
.card:hover .card-cover img{transform:scale(1.05)}

.card-score{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  background:rgba(200,90,58,.94);
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
  box-shadow:0 2px 6px rgba(61,44,36,.3);
}

.card-info{
  padding:10px 4px 4px;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.card-title{
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:1;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:.2s;
}
.card:hover .card-title{color:var(--primary)}

.card-meta{
  font-size:12px;
  color:var(--muted);
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.card-meta span{white-space:nowrap}

/* ============ cat list ============ */
.cat-list{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
}

.cat-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  padding:16px 8px;
  background:var(--surface);
  border-radius:var(--radius);
  text-align:center;
  box-shadow:4px 4px 10px var(--shadow-dark),-4px -4px 10px var(--shadow-light);
  transition:.25s;
  border:1px solid transparent;
}
.cat-item:hover{
  transform:translateY(-3px);
  border-color:rgba(200,90,58,.3);
  color:var(--primary);
}

.cat-item .cat-name{font-size:14px;font-weight:600}
.cat-count{
  font-size:12px;
  color:var(--muted);
  background:rgba(232,176,75,.18);
  padding:0 10px;
  border-radius:999px;
}

/* ============ rank list ============ */
.rank-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 28px;
}

.rank-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  border-bottom:1px dashed var(--line);
  transition:.22s;
}
.rank-item:hover{
  background:var(--surface);
  box-shadow:3px 3px 8px var(--shadow-dark),-3px -3px 8px var(--shadow-light);
}

.rank-num{
  flex:0 0 28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  font-family:var(--font-heading);
  font-weight:700;
  font-size:14px;
  color:var(--muted);
  background:var(--bg);
  box-shadow:inset 2px 2px 4px var(--shadow-dark),inset -2px -2px 4px var(--shadow-light);
}
.rank-item:nth-child(1) .rank-num{color:#fff;background:var(--primary)}
.rank-item:nth-child(2) .rank-num{color:#fff;background:var(--accent)}
.rank-item:nth-child(3) .rank-num{color:#fff;background:#c9974a}

.rank-title{
  flex:1;
  font-size:14px;
  font-weight:500;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.rank-item:hover .rank-title{color:var(--primary)}

.rank-score{
  font-size:13px;
  font-weight:700;
  color:var(--primary);
  font-family:var(--font-heading);
}

/* ============ detail ============ */
.detail{
  margin:28px 0;
  background:var(--surface);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:8px 8px 20px var(--shadow-dark),-8px -8px 20px var(--shadow-light);
  position:relative;
}

.detail::before,
.detail::after{
  content:"";
  position:absolute;
  top:50%;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--bg);
  transform:translateY(-50%);
  box-shadow:inset 2px 2px 4px var(--shadow-dark);
}
.detail::before{left:-9px}
.detail::after{right:-9px}

.detail-head{
  display:flex;
  gap:26px;
  padding-bottom:22px;
  border-bottom:1px dashed var(--line);
}

.detail-cover{
  flex:0 0 200px;
  aspect-ratio:2/3;
  border-radius:12px;
  overflow:hidden;
  box-shadow:5px 5px 14px var(--shadow-dark);
}
.detail-cover img{width:100%;height:100%;object-fit:cover}

.detail-meta{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.detail-meta h1{
  font-family:var(--font-heading);
  font-size:26px;
  line-height:1.35;
  color:var(--text);
}

.detail-meta p{
  font-size:14px;
  color:var(--muted);
  line-height:1.9;
}
.detail-meta p b{color:var(--text);font-weight:600}

.detail-score{
  display:inline-flex;
  align-items:baseline;
  gap:4px;
  font-family:var(--font-heading);
  font-size:30px;
  font-weight:700;
  color:var(--primary);
}
.detail-score small{font-size:13px;color:var(--muted);font-weight:400}

.detail-body{
  padding-top:22px;
  font-size:15px;
  line-height:1.95;
  color:var(--text);
}
.detail-body p{margin-bottom:14px}
.detail-body h2,
.detail-body h3{
  font-family:var(--font-heading);
  margin:20px 0 10px;
  font-size:18px;
}

/* ============ tag list ============ */
.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}

.tag{
  display:inline-block;
  font-size:12px;
  padding:4px 12px;
  border-radius:999px;
  color:var(--muted);
  background:var(--bg);
  box-shadow:2px 2px 5px var(--shadow-dark),-2px -2px 5px var(--shadow-light);
  transition:.2s;
}
.tag:hover{color:var(--primary);box-shadow:inset 2px 2px 5px var(--shadow-dark)}

/* ============ pager ============ */
.pager{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:34px 0;
}

.pg{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  height:38px;
  padding:0 12px;
  border-radius:10px;
  font-size:14px;
  color:var(--text);
  background:var(--surface);
  box-shadow:3px 3px 8px var(--shadow-dark),-3px -3px 8px var(--shadow-light);
  transition:.22s;
}
.pg:hover{color:var(--primary);transform:translateY(-2px)}

.pg.current{
  color:#fff;
  background:var(--primary);
  box-shadow:3px 3px 10px rgba(200,90,58,.4);
}

.pg.disabled{
  color:var(--muted);
  opacity:.5;
  pointer-events:none;
  box-shadow:none;
  background:var(--bg);
}

/* ============ links ============ */
.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  padding:18px 0;
}

.link-item{
  font-size:13px;
  color:var(--muted);
  padding:4px 10px;
  border-radius:8px;
  border:1px solid var(--line);
  transition:.22s;
}
.link-item:hover{
  color:var(--primary);
  border-color:rgba(200,90,58,.4);
  background:var(--surface);
}

/* ============ footer ============ */
.footer{
  margin-top:44px;
  padding:28px 0 34px;
  border-top:1px dashed var(--line);
  text-align:center;
  font-size:13px;
  color:var(--muted);
  line-height:2;
}
.footer a{color:var(--muted);transition:.2s}
.footer a:hover{color:var(--primary)}

/* ============ crumbs ============ */
.crumbs{
  font-size:13px;
  color:var(--muted);
  padding:18px 0 0;
  line-height:1.8;
}
.crumbs a{color:var(--muted);transition:.2s}
.crumbs a:hover{color:var(--primary)}
.crumbs span{margin:0 6px;opacity:.6}

/* ============ hl ============ */
.hl{
  color:var(--primary);
  background:rgba(232,176,75,.28);
  padding:0 2px;
  border-radius:3px;
  font-style:normal;
}

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

@media(max-width:768px){
  body{font-size:14px}

  .wrap{padding:0 14px}

  .header .wrap{
    gap:10px;
    min-height:auto;
    padding-top:10px;
    padding-bottom:10px;
  }

  .logo{font-size:19px;flex:1}

  .nav{
    order:3;
    width:100%;
    flex:0 0 100%;
    padding-bottom:2px;
    -webkit-overflow-scrolling:touch;
  }
  .nav a{padding:5px 10px;font-size:13px}

  .search-box{flex:0 0 auto}
  .search-box input{width:110px}

  .hero{margin:16px 0}
  .hero-slide{aspect-ratio:4/3}
  .hero-info{
    max-width:100%;
    padding: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}
  .sec-more{font-size:12px}

  .grid{
    grid-template-columns:repeat(3,1fr);
    gap:12px;
  }
  .card{padding:8px;border-radius:12px}
  .card-title{font-size:13px}
  .card-meta{font-size:11px}

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

  .rank-list{grid-template-columns:1fr;gap:6px}
  .rank-item{padding:8px 10px}

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

  .pg{min-width:34px;height:34px;font-size:13px}

  .footer{margin-top:30px;padding:22px 0 28px;font-size:12px}
}

@media(max-width:380px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .cat-list{grid-template-columns:repeat(2,1fr)}
}
</style>