:root {
  --bg: #F5F2EC;
  --surface: #FFFFFF;
  --primary: #FF6B1A;
  --accent: #2E8B57;
  --text: #1E1E1E;
  --muted: #6B6B6B;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(30, 30, 30, 0.08);
  --shadow-hover: 0 14px 36px rgba(30, 30, 30, 0.14);
  --border: rgba(30, 30, 30, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
}

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

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

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  width: 420px; height: 420px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(255, 107, 26, 0.55), transparent 70%);
}
body::after {
  width: 480px; height: 480px;
  bottom: -160px; right: -140px;
  background: radial-gradient(circle, rgba(46, 139, 87, 0.45), transparent 70%);
}

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

h1, h2, h3, h4, .sec-title, .logo {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.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);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(30, 30, 30, 0.05);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}
.logo {
  font-size: 22px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(255, 107, 26, 0.15);
}
.logo img { max-height: 38px; 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: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(255, 107, 26, 0.1);
  transform: translateY(-1px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  min-width: 220px;
  box-shadow: inset 0 1px 2px rgba(30, 30, 30, 0.04);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: filter 0.2s, transform 0.2s;
}
.search-box button:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), #ff8c47);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 26, 0.32);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 26, 0.42);
  filter: brightness(1.05);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
  color: #fff;
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.28); }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin: 28px 0 10px;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background: #2a2a2a;
  box-shadow: var(--shadow);
}
.hero-slide {
  position: relative;
  display: block;
  min-height: 380px;
  background-size: cover;
  background-position: center;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.88) 0%, rgba(20, 20, 20, 0.55) 45%, rgba(20, 20, 20, 0.05) 100%);
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-info {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 56px 48px;
  color: #fff;
}
.hero-info h2 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}
.hero-info p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-info .btn { margin-right: 10px; }

/* ===== Section ===== */
.sec { margin: 44px 0; }
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sec-title {
  font-size: 24px;
  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(180deg, var(--primary), var(--accent));
}
.sec-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 26, 0.1);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.sec-more:hover { background: rgba(255, 107, 26, 0.2); transform: translateX(2px); }

/* ===== Grid & Card ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e9e4dc, #d8d2c8);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-cover img { transform: scale(1.06); }
.card-score {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), #ff8c47);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 107, 26, 0.4);
}
.card-info { padding: 12px 14px 16px; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.card-meta span { white-space: nowrap; }

/* ===== Categories ===== */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.cat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 107, 26, 0.4);
}
.cat-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(46, 139, 87, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ===== Rank list ===== */
.rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rank-item:hover { transform: translateX(4px); box-shadow: var(--shadow-hover); }
.rank-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  background: rgba(30, 30, 30, 0.05);
}
.rank-item:nth-child(1) .rank-num { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.rank-item:nth-child(2) .rank-num { background: linear-gradient(135deg, #C0C0C0, #9E9E9E); color: #fff; }
.rank-item:nth-child(3) .rank-num { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.rank-title {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-score {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 14px;
  color: var(--primary);
}

/* ===== Detail ===== */
.detail { margin: 28px 0; }
.detail-head {
  display: flex;
  gap: 32px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.detail-cover {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e9e4dc, #d8d2c8);
  box-shadow: 0 10px 26px rgba(30, 30, 30, 0.16);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { flex: 1; min-width: 0; }
.detail-meta h1 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.detail-meta p { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.detail-meta p strong { color: var(--text); font-weight: 600; }
.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0 16px;
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--primary);
  line-height: 1;
}
.detail-score small { font-size: 14px; color: var(--muted); font-weight: 600; }
.detail-body {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  line-height: 1.8;
}
.detail-body h2 {
  font-size: 20px;
  margin: 22px 0 12px;
  padding-left: 14px;
  position: relative;
}
.detail-body h2::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 18px;
  border-radius: 3px;
  background: var(--primary);
}
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 12px; color: #333; }
.detail-body a { color: var(--primary); font-weight: 600; }

/* ===== Tags ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(46, 139, 87, 0.1);
  border: 1px solid rgba(46, 139, 87, 0.22);
  transition: background 0.2s, color 0.2s;
}
.tag:hover { background: var(--accent); color: #fff; }

/* ===== Pager ===== */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 36px 0;
}
.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(30, 30, 30, 0.05);
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.pg:hover {
  transform: translateY(-2px);
  color: var(--primary);
  border-color: rgba(255, 107, 26, 0.4);
  box-shadow: 0 6px 16px rgba(255, 107, 26, 0.16);
}
.pg.current {
  background: linear-gradient(135deg, var(--primary), #ff8c47);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 107, 26, 0.4);
}
.pg.disabled {
  color: var(--muted);
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

/* ===== Links ===== */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.link-item {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.04);
  transition: color 0.2s, background 0.2s;
}
.link-item:hover { color: var(--primary); background: rgba(255, 107, 26, 0.1); }

/* ===== Crumbs ===== */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 4px;
}
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--text); font-weight: 600; }

/* ===== Highlight ===== */
.hl {
  color: var(--primary);
  background: rgba(255, 107, 26, 0.14);
  border-radius: 4px;
  padding: 0 3px;
  font-weight: 700;
}

/* ===== Footer ===== */
.footer {
  margin-top: 56px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.95));
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.footer a { color: var(--muted); transition: color 0.2s; }
.footer a:hover { color: var(--primary); }
.footer p { margin: 6px 0; }
.footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .wrap { padding: 0 14px; }
  .header .wrap {
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: auto;
  }
  .logo { font-size: 19px; }
  .nav {
    order: 3;
    width: 100%;
    flex: 0 0 100%;
    padding-bottom: 4px;
    gap: 2px;
  }
  .nav a { padding: 7px 12px; font-size: 13px; }
  .search-box { flex: 1; min-width: 0; }
  .search-box button { padding: 8px 12px; }

  .hero, .hero-slide { min-height: 300px; }
  .hero-info { padding: 34px 22px; max-width: 100%; }
  .hero-info p { -webkit-line-clamp: 2; }

  .sec { margin: 32px 0; }
  .sec-title { font-size: 20px; }

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

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

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

  .detail-head {
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    align-items: center;
    text-align: center;
  }
  .detail-cover { width: 60%; max-width: 220px; }
  .detail-meta h1 { font-size: 22px; }
  .detail-body { padding: 20px; }

  .pager { gap: 6px; margin: 28px 0; }
  .pg { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }

  .links { padding: 16px; }
  .footer { margin-top: 40px; padding: 28px 0 22px; }
}