:root {
  --bg: #FBF6EE;
  --surface: #FFFDF8;
  --primary: #F2994A;
  --accent: #C0392B;
  --text: #3A322C;
  --muted: #9C948B;
  --radius: 26px;
  --radius-sm: 14px;
  --font-heading: 'Noto Serif SC','Songti SC',Georgia,serif;
  --font-body: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  --glass: rgba(255,253,248,0.62);
  --glass-border: rgba(255,255,255,0.75);
  --shadow: 0 10px 30px rgba(194,150,90,0.14);
  --shadow-hover: 0 18px 42px rgba(194,150,90,0.24);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(242,153,74,0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(192,57,43,0.10), transparent 40%),
    radial-gradient(circle at 70% 92%, rgba(242,153,74,0.12), transparent 46%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; margin: 0; }

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(194,150,90,0.08);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(192,57,43,0.15);
  vertical-align: middle;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  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 .25s ease;
}
.nav a:hover,
.nav a.active {
  color: var(--accent);
  background: rgba(242,153,74,0.14);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(194,150,90,0.22);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  box-shadow: inset 0 1px 3px rgba(194,150,90,0.06);
}
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  width: 150px;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  border: 0;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  transition: background .25s ease;
}
.search-box button:hover { background: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 28px 0 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-slide {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(58,50,44,0.78) 0%, rgba(58,50,44,0.32) 46%, transparent 78%);
}

.hero-info {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  padding: 40px;
  max-width: 560px;
  color: #fff;
}
.hero-info h2 {
  font-size: 30px;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-info p {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(242,153,74,0.4);
  transition: all .25s ease;
}
.btn:hover {
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(192,57,43,0.4);
  transform: translateY(-2px);
}

/* ---------- Section ---------- */
.sec { margin: 46px 0; }

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.sec-title {
  position: relative;
  font-size: 22px;
  color: var(--text);
  padding-left: 16px;
}
.sec-title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.sec-more {
  font-size: 13px;
  color: var(--muted);
  transition: color .25s ease;
}
.sec-more:hover { color: var(--accent); }

/* ---------- Grid & Card ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

.card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.9);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #efe6d8;
}
.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;
  z-index: 2;
  min-width: 38px;
  padding: 3px 8px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(192,57,43,0.4);
}

.card-info { padding: 12px 14px 16px; }

.card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Categories ---------- */
.cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cat-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid rgba(194,150,90,0.18);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all .25s ease;
}
.cat-item:hover {
  border-color: var(--primary);
  color: var(--accent);
  transform: translateY(-3px);
}
.cat-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(242,153,74,0.14);
  padding: 1px 9px;
  border-radius: 999px;
}

/* ---------- Rank ---------- */
.rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.rank-num {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  border-radius: 50%;
  background: rgba(242,153,74,0.12);
}
.rank-item:nth-child(1) .rank-num,
.rank-item:nth-child(2) .rank-num,
.rank-item:nth-child(3) .rank-num {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.rank-title {
  flex: 1 1 auto;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-score {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Detail ---------- */
.detail {
  margin: 34px 0 50px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.detail-head {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
}

.detail-cover {
  flex: 0 0 220px;
  width: 220px;
  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 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-meta h1 {
  font-size: 28px;
  line-height: 1.3;
  color: var(--text);
}
.detail-meta p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.detail-meta p strong { color: var(--text); font-weight: 600; }

.detail-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 18px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(192,57,43,0.3);
}

.detail-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
}
.detail-body p { margin: 0 0 14px; }
.detail-body img { border-radius: var(--radius-sm); }

/* ---------- Tags ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--accent);
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.16);
  border-radius: 999px;
  transition: all .25s ease;
}
.tag:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- Pager ---------- */
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}
.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(194,150,90,0.2);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all .25s ease;
}
.pg:hover {
  border-color: var(--primary);
  color: var(--accent);
}
.pg.current {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(242,153,74,0.35);
}
.pg.disabled {
  color: var(--muted);
  opacity: .55;
  pointer-events: none;
  box-shadow: none;
}

/* ---------- Links ---------- */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.link-item {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid rgba(194,150,90,0.16);
  border-radius: 999px;
  transition: all .25s ease;
}
.link-item:hover {
  color: var(--accent);
  border-color: var(--primary);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 60px;
  padding: 36px 0 40px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.footer a { color: var(--muted); transition: color .25s ease; }
.footer a:hover { color: var(--accent); }
.footer p { margin: 6px 0; }

/* ---------- Crumbs ---------- */
.crumbs {
  margin: 22px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); transition: color .25s ease; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; }

/* ---------- Highlight ---------- */
.hl {
  color: var(--accent);
  background: rgba(242,153,74,0.22);
  border-radius: 4px;
  padding: 0 2px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .wrap { padding: 0 14px; }

  .header .wrap {
    gap: 12px;
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .logo { font-size: 18px; }
  .nav {
    order: 3;
    flex: 1 1 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .nav a { padding: 6px 12px; font-size: 13px; }
  .search-box { flex: 1 1 auto; }
  .search-box input { width: 100%; min-width: 0; }

  .hero { margin: 18px 0 26px; border-radius: var(--radius-sm); }
  .hero-slide { aspect-ratio: 3 / 4; }
  .hero-info { padding: 22px; max-width: 100%; }
  .hero-info h2 { font-size: 22px; }
  .hero-info p { font-size: 13px; }

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

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

  .rank-list { grid-template-columns: 1fr; }

  .detail { padding: 18px; border-radius: var(--radius-sm); }
  .detail-head { flex-direction: column; gap: 18px; }
  .detail-cover { width: 150px; flex: 0 0 auto; }
  .detail-meta h1 { font-size: 22px; }
  .detail-score { font-size: 17px; }

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