:root {
  --bg: #F6F1E7;
  --surface: #FFFCF6;
  --primary: #E07B2A;
  --accent: #B8452F;
  --text: #2A241C;
  --muted: #8A7F6E;
  --radius: 14px;
  --font-heading: 'Songti SC', 'Noto Serif SC', Georgia, serif;
  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --line: rgba(42, 36, 28, 0.1);
  --glass: rgba(255, 252, 246, 0.72);
  --shadow: 0 8px 24px rgba(42, 36, 28, 0.08);
  --shadow-hover: 0 14px 34px rgba(42, 36, 28, 0.14);
}

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

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

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(42, 36, 28, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(42, 36, 28, 0.02) 1px, transparent 1px);
  background-size: 22px 22px, 11px 11px;
  background-position: 0 0, 6px 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary);
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.35;
}

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

/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(42, 36, 28, 0.05);
}

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

.logo {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent);
}

.logo img {
  height: 34px;
  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: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--surface);
  background: var(--primary);
}

.search-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(42, 36, 28, 0.04);
}

.search-box input {
  width: 150px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button {
  flex-shrink: 0;
  padding: 6px 16px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-box button:hover {
  background: var(--accent);
}

/* ============ Hero 轮播 ============ */
.hero {
  position: relative;
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-slide:hover img {
  transform: scale(1.04);
}

.hero-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 36px 30px;
  background: linear-gradient(to top, rgba(42, 36, 28, 0.82), rgba(42, 36, 28, 0));
  color: #fff;
}

.hero-info h2 {
  font-size: 30px;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 640px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 9px 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(224, 123, 42, 0.4);
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 69, 47, 0.4);
}

/* ============ Section ============ */
.sec {
  margin: 40px 0;
}

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

.sec-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  padding-left: 14px;
}

.sec-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(var(--primary), var(--accent));
}

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

.sec-more:hover {
  color: var(--primary);
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e9e2d5;
}

.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;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(42, 36, 28, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #F6C56B;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

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

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

.card:hover .card-title {
  color: var(--accent);
}

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

/* ============ 分类列表 ============ */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  font-size: 14px;
  transition: all 0.2s ease;
}

.cat-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cat-count {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  background: rgba(224, 123, 42, 0.1);
  padding: 1px 8px;
  border-radius: 999px;
}

/* ============ 排行榜 ============ */
.rank-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.rank-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.rank-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(42, 36, 28, 0.06);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.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: #D9A24A;
  color: #fff;
}

.rank-title {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-score {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* ============ 详情页 ============ */
.detail {
  margin: 28px 0;
}

.detail-head {
  display: flex;
  gap: 32px;
  padding: 26px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-cover {
  flex-shrink: 0;
  width: 240px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  flex: 1;
  min-width: 0;
}

.detail-meta h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.detail-meta .sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.detail-meta p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.detail-meta p span {
  color: var(--muted);
  margin-right: 6px;
}

.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.detail-score small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.detail-body {
  margin-top: 24px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.9;
}

.detail-body h2 {
  font-size: 20px;
  margin: 20px 0 12px;
}

.detail-body h2:first-child {
  margin-top: 0;
}

.detail-body p {
  margin-bottom: 12px;
  color: var(--text);
}

/* ============ 标签 ============ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(224, 123, 42, 0.1);
  border: 1px solid rgba(224, 123, 42, 0.22);
  color: var(--primary);
  font-size: 12px;
  transition: all 0.2s ease;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
}

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

.pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  transition: all 0.2s ease;
}

.pg:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pg.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(224, 123, 42, 0.35);
}

.pg.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* ============ 友情链接 ============ */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.link-item {
  font-size: 13px;
  color: var(--muted);
}

.link-item:hover {
  color: var(--primary);
}

/* ============ 面包屑 ============ */
.crumbs {
  margin: 20px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--primary);
}

.crumbs span {
  margin: 0 6px;
  opacity: 0.6;
}

/* ============ 搜索高亮 ============ */
.hl {
  color: var(--accent);
  background: rgba(224, 123, 42, 0.16);
  border-radius: 3px;
  padding: 0 2px;
  font-style: normal;
}

/* ============ 页脚 ============ */
.footer {
  margin-top: 48px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.6);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 2;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--primary);
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .wrap {
    padding: 0 14px;
  }

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

  .logo {
    font-size: 19px;
  }

  .nav {
    order: 3;
    width: 100%;
    flex: none;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    padding: 5px 12px;
    font-size: 13px;
  }

  .search-box {
    margin-left: auto;
    padding-left: 12px;
  }

  .search-box input {
    width: 90px;
    font-size: 13px;
  }

  .search-box button {
    padding: 5px 12px;
  }

  .hero {
    margin: 18px 0;
  }

  .hero-slide {
    aspect-ratio: 4 / 3;
  }

  .hero-info {
    padding: 40px 18px 18px;
  }

  .hero-info h2 {
    font-size: 20px;
  }

  .hero-info p {
    font-size: 13px;
  }

  .sec {
    margin: 28px 0;
  }

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

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-info {
    padding: 10px 10px 12px;
  }

  .card-title {
    font-size: 13px;
  }

  .cat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cat-item {
    padding: 10px 12px;
    font-size: 13px;
  }

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

  .detail-head {
    flex-direction: column;
    align-items: center;
    padding: 18px;
    gap: 18px;
    text-align: center;
  }

  .detail-cover {
    width: 160px;
  }

  .detail-meta h1 {
    font-size: 21px;
  }

  .detail-meta p {
    text-align: left;
  }

  .detail-body {
    padding: 18px;
    font-size: 14px;
  }

  .pg {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    font-size: 13px;
  }
}
</style>