/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2A2A2A;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #FF6B6B;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e05555;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
  color: #2A2A2A;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

h4 {
  font-size: 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

details summary {
  cursor: pointer;
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.375rem;
  font-weight: 800;
  color: #2A2A2A;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: #FF6B6B;
}

.brand-name {
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #555;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  color: #FF6B6B;
  background-color: #FFF5F5;
}

.nav-list a.is-current {
  color: #FF6B6B;
  font-weight: 700;
  background-color: #FFF0F0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2A2A2A;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

.site-footer {
  background-color: #F7F7F7;
  border-top: 1px solid #eee;
  padding: 48px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-slogan {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-group h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 12px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul a {
  font-size: 0.875rem;
  color: #666;
}

.footer-group ul a:hover {
  color: #FF6B6B;
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 20px 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: #999;
}

/* 内页通用布局 */

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #888;
}

.breadcrumb a {
  color: #FF6B6B;
}

.breadcrumb a:hover {
  color: #e05555;
}

.breadcrumb-sep {
  color: #ccc;
}

.breadcrumb-current {
  color: #555;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #2A2A2A;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #666;
  max-width: 720px;
  margin-bottom: 0;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 章节标题 */

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.9375rem;
  color: #777;
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 8px;
}

.section-heading p {
  font-size: 0.9375rem;
  color: #777;
  margin-bottom: 0;
}

.section-intro {
  font-size: 0.9375rem;
  color: #777;
  margin-bottom: 24px;
}

.more-link {
  margin-top: 24px;
  text-align: right;
}

.more-link a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FF6B6B;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.more-link a:hover {
  color: #e05555;
}

/* 按钮 */

.btn-primary,
.btn-secondary,
.btn-back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: #FF6B6B;
  color: #FFFFFF;
  border: 2px solid #FF6B6B;
}

.btn-primary:hover {
  background-color: #e05555;
  border-color: #e05555;
  color: #FFFFFF;
}

.btn-secondary {
  background-color: transparent;
  color: #2A2A2A;
  border: 2px solid #ddd;
}

.btn-secondary:hover {
  border-color: #FF6B6B;
  color: #FF6B6B;
}

.btn-back-home {
  background-color: #FF6B6B;
  color: #FFFFFF;
  border: 2px solid #FF6B6B;
  margin: 16px 0;
}

.btn-back-home:hover {
  background-color: #e05555;
  border-color: #e05555;
  color: #FFFFFF;
}

/* 首页 hero */

.hero-section {
  position: relative;
  background-color: #F7F7F7;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
  max-width: 640px;
}

.hero-lead {
  font-size: 1.125rem;
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* 首页题材标签 */

.genre-tags {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 20px;
  background-color: #F7F7F7;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag-item:hover {
  background-color: #FFF0F0;
  border-color: #FF6B6B;
  color: #FF6B6B;
}

/* 首页更新列表 */

.update-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.update-group {
  margin-bottom: 32px;
}

.update-date {
  font-size: 1rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F7F7F7;
}

.update-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.update-item:hover {
  border-color: #FF6B6B;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
}

.update-link {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.update-link img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-info strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #2A2A2A;
}

.update-info span {
  font-size: 0.8125rem;
  color: #999;
}

/* 首页榜单预览 */

.rank-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 0;
}

.rank-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rank-item {
  list-style: none;
}

.rank-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background-color: #F7F7F7;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.rank-link:hover {
  border-color: #FF6B6B;
  background-color: #FFF5F5;
}

.rank-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FF6B6B;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 800;
  border-radius: 6px;
}

.rank-link img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-info strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #2A2A2A;
}

.rank-reason {
  font-size: 0.8125rem;
  color: #777;
  margin-bottom: 0;
}

/* 首页指南入口 */

.guide-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  padding: 32px;
  background-color: #F7F7F7;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  border-color: #FF6B6B;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.08);
}

.guide-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FF6B6B;
}

.card-link:hover {
  color: #e05555;
}

/* 题材分类页 */

.genre-grid {
  margin-bottom: 48px;
}

.genre-grid .section-title {
  margin-bottom: 24px;
}

.genre-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
  border-color: #FF6B6B;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.08);
}

.genre-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.genre-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.genre-card:hover .genre-card-media img {
  transform: scale(1.03);
}

.genre-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.genre-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 0;
}

.genre-card-desc {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 0;
  flex: 1;
}

.genre-card-note {
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

.genre-guide {
  background-color: #F7F7F7;
  border-radius: 8px;
  padding: 32px;
}

.genre-guide .section-title {
  margin-bottom: 16px;
}

.genre-guide p {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 0;
}

.genre-guide p + p {
  margin-top: 12px;
}

/* 阅读指南页 */

.guide-section {
  margin-bottom: 48px;
}

.guide-media {
  width: 100%;
  max-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 32px;
}

.guide-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background-color: #F7F7F7;
  border-radius: 8px;
  border: 1px solid #eee;
}

.step-number {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FF6B6B;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 6px;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 0;
}

.step-content p {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tip-card {
  padding: 24px;
  background-color: #FFFFFF;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
  border-color: #FF6B6B;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.08);
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #FFFFFF;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary:hover {
  color: #FF6B6B;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: #999;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

/* 相关链接 */

.related-links {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  padding: 24px;
  background-color: #F7F7F7;
  border-radius: 8px;
  border: 1px solid #eee;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.related-card:hover {
  border-color: #FF6B6B;
  background-color: #FFF5F5;
}

.related-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 8px;
}

.related-card p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

/* 最近更新页 */

.update-section {
  margin-bottom: 48px;
}

.update-section > h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F7F7F7;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.update-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: #FFFFFF;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.update-item:hover {
  border-color: #FF6B6B;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.08);
}

.update-cover {
  width: 88px;
  height: 118px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.update-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 0;
}

.update-title a {
  color: #2A2A2A;
}

.update-title a:hover {
  color: #FF6B6B;
}

.update-meta {
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 0;
}

.update-desc {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.update-resources {
  margin-bottom: 48px;
}

.update-resources > h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 16px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.resource-card {
  padding: 24px;
  background-color: #F7F7F7;
  border-radius: 8px;
  border: 1px solid #eee;
}

.resource-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 8px;
}

.resource-card p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 12px;
}

.resource-card a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FF6B6B;
}

.resource-card a:hover {
  color: #e05555;
}

.copyright-note {
  background-color: #F7F7F7;
  border-radius: 8px;
  padding: 32px;
}

.copyright-note h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 12px;
}

.copyright-note p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

/* 人气榜单页 */

.rank-section {
  margin-bottom: 48px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  list-style: none;
}

.rank-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background-color: #FFFFFF;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  border-color: #FF6B6B;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.08);
}

.rank-card .rank-number {
  width: 40px;
  height: 40px;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.rank-cover {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 0;
}

.rank-tags {
  font-size: 0.8125rem;
  color: #FF6B6B;
  margin-bottom: 0;
}

.rank-reason {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

.rank-meta {
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 0;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.editor-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background-color: #F7F7F7;
  border-radius: 8px;
  border: 1px solid #eee;
}

.editor-cover {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.editor-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editor-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 0;
}

.editor-desc {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

.editor-reason {
  font-size: 0.8125rem;
  color: #FF6B6B;
  margin-bottom: 0;
}

.rank-note {
  background-color: #F7F7F7;
  border-radius: 8px;
  padding: 32px;
}

.rank-note .section-title {
  margin-bottom: 12px;
}

.rank-note p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0;
}

.rank-note p + p {
  margin-top: 12px;
}

.rank-note a {
  color: #FF6B6B;
  font-weight: 600;
}

.rank-note a:hover {
  color: #e05555;
}

/* 追更技巧页 */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.article-section {
  margin-bottom: 40px;
}

.article-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 12px;
}

.article-section p {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 1em;
}

.article-figure {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 12px 16px;
  background-color: #F7F7F7;
  font-size: 0.8125rem;
  color: #888;
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.related-box {
  padding: 24px;
  background-color: #F7F7F7;
  border-radius: 8px;
}

.related-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 12px;
}

.related-list li {
  margin-bottom: 8px;
}

.related-list a {
  font-size: 0.875rem;
  color: #666;
}

.related-list a:hover {
  color: #FF6B6B;
}

/* 404 页 */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: 60vh;
}

.error-panel {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 4rem;
  font-weight: 800;
  color: #FF6B6B;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 1.5rem;
  color: #2A2A2A;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 24px;
}

.error-help {
  font-size: 0.875rem;
  color: #999;
  margin-top: 16px;
}

.error-help a {
  color: #FF6B6B;
  font-weight: 600;
}

.error-help a:hover {
  color: #e05555;
}

/* ==========================================================================
   pages
   ========================================================================== */

/* 首页特定样式 */

.site-home .hero-section {
  margin-bottom: 0;
}

/* 题材分类页网格 */

.page-genre .genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .update-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-genre .genre-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .nav-list a.is-current {
    background-color: #FFF0F0;
  }

  .hero-content {
    padding: 64px 16px;
    min-height: 360px;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .genre-tags,
  .update-list,
  .rank-preview,
  .guide-entry {
    padding-left: 16px;
    padding-right: 16px;
  }

  .update-items {
    grid-template-columns: 1fr;
  }

  .rank-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .rank-link img {
    height: 140px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .inner-main {
    padding: 16px 16px 48px;
  }

  .breadcrumb {
    margin-bottom: 16px;
    font-size: 0.8125rem;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-genre .genre-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .genre-guide {
    padding: 24px;
  }

  .steps-list {
    gap: 12px;
  }

  .step-item {
    padding: 16px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .update-cover {
    width: 72px;
    height: 96px;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .copyright-note {
    padding: 24px;
  }

  .rank-card {
    flex-wrap: wrap;
    gap: 12px;
  }

  .rank-card .rank-number {
    width: 32px;
    height: 32px;
    font-size: 0.9375rem;
  }

  .rank-cover {
    width: 64px;
    height: 84px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-card {
    flex-direction: column;
    padding: 20px;
  }

  .editor-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .rank-note {
    padding: 24px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-aside {
    order: 2;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }

  .footer-group {
    margin-bottom: 8px;
  }

  .footer-bottom {
    padding: 16px 0;
  }
}

@media (max-width: 480px) {
  .rank-items {
    grid-template-columns: 1fr;
  }

  .rank-link {
    flex-direction: row;
    align-items: center;
  }

  .rank-link img {
    width: 72px;
    height: 96px;
    flex-shrink: 0;
  }

  .rank-number {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
  }

  .rank-link {
    position: relative;
  }

  .rank-info {
    flex: 1;
  }

  .update-item {
    padding: 12px;
  }

  .update-cover {
    width: 64px;
    height: 84px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8125rem;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 0.875rem;
  }

  .faq-item p {
    padding: 0 16px 14px;
  }

  .rank-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .tag-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .tag-item {
    flex-shrink: 0;
  }
}
