/* ==========================================================================
   汗汗漫画 · 全站样式表
   版本：1.0
   说明：黑白影像风 · 灰阶层次 · 朱红强调
   ========================================================================== */

/* ==========================================================================
   Base
   ========================================================================== */

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

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

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #111111;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: #e1483e;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  line-height: 1.7;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-header {
  background-color: #111111;
  color: #ffffff;
  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;
  flex-wrap: wrap;
  position: relative;
  min-height: 64px;
}

.site-logo {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 12px 0;
}

.site-logo:hover {
  color: #ffffff;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.is-current {
  color: #ffffff;
  background-color: rgba(225, 72, 62, 0.85);
}

.sub-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: #1a1a1a;
  padding: 6px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-nav-link {
  display: block;
  padding: 6px 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  background-color: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: #111111;
  margin-bottom: 12px;
}

.footer-brand .footer-desc {
  font-size: 14px;
  color: #888888;
  max-width: 280px;
  line-height: 1.8;
}

.footer-title {
  font-size: 15px;
  color: #111111;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #555555;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #e1483e;
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #888888;
}

/* 内页两栏布局 */
.inner-main {
  background-color: #ffffff;
}

.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.main-content,
.content-main,
.content-area {
  min-width: 0;
  min-height: 400px;
}

.sidebar,
.content-side,
.sidebar-area,
.guide-aside {
  min-width: 0;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 12px;
  font-size: 14px;
  color: #888888;
}

.breadcrumb a {
  color: #888888;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #e1483e;
}

.breadcrumb-sep {
  color: #bbbbbb;
}

.breadcrumb-current {
  color: #111111;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  padding: 8px 0 28px;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  color: #111111;
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: #666666;
  max-width: 720px;
  line-height: 1.7;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* 区块标题 */
.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-size: 22px;
  color: #111111;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #e1483e;
  border-radius: 2px;
}

.section-desc {
  font-size: 15px;
  color: #888888;
  line-height: 1.7;
  max-width: 640px;
}

.section {
  padding: 48px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section + .section {
  border-top: 1px solid #f0f0f0;
}

/* 按钮 */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: #e1483e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #c93a30;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background-color: transparent;
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid #111111;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: #e1483e;
  color: #e1483e;
  background-color: rgba(225, 72, 62, 0.04);
}

/* 封面卡通用 */
.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 3 / 4;
  background-color: #f0f0f0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-media:hover img {
  transform: scale(1.03);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 6px;
  color: #111111;
}

.card-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-size: 13px;
  color: #555555;
  font-weight: 500;
}

/* 标签 */
.category-tag {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.category-tag:hover {
  border-color: #e1483e;
  color: #e1483e;
  background-color: #fff5f4;
}

/* 侧栏模块 */
.sidebar-module,
.side-module,
.side-card,
.aside-card {
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-title,
.side-title,
.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111111;
}

.sidebar-list li,
.sidebar-links li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-list li:last-child,
.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-list a,
.sidebar-links a {
  font-size: 15px;
  color: #333333;
  font-weight: 500;
  transition: color 0.2s ease;
}

.sidebar-list a:hover,
.sidebar-links a:hover {
  color: #e1483e;
}

.sidebar-item-desc {
  font-size: 13px;
  color: #888888;
  margin-top: 2px;
  line-height: 1.5;
}

.sidebar-desc,
.side-desc,
.aside-text {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 14px;
}

.sidebar-link,
.side-link,
.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #e1483e;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.sidebar-link:hover,
.side-link:hover,
.text-link:hover {
  border-bottom-color: #e1483e;
}

/* 相关链接条 */
.related-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
}

.related-links-label {
  font-size: 14px;
  color: #888888;
  font-weight: 700;
}

.related-links-item {
  font-size: 14px;
  color: #333333;
  padding: 6px 16px;
  background-color: #f5f5f5;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  background-color: #e1483e;
  color: #ffffff;
}

/* 媒体图容器 */
.media-figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f0f0f0;
}

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

.media-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #888888;
  background-color: #fafafa;
  border-top: 1px solid #eeeeee;
}

/* ==========================================================================
   Pages · 首页
   ========================================================================== */

.hero-section {
  position: relative;
  background-color: #111111;
  color: #ffffff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: grayscale(100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  max-width: 600px;
}

.hero-lead {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-tag {
  display: inline-block;
  padding: 10px 22px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-tag:hover {
  background-color: #e1483e;
  border-color: #e1483e;
  color: #ffffff;
}

/* 分类标签墙 */
.tag-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 主推荐 */
.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background-color: #fafafa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eeeeee;
}

.featured-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter 0.3s ease, transform 0.4s ease;
}

.featured-card:hover .featured-media img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.featured-info {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.featured-name {
  font-size: 26px;
  font-weight: 900;
  color: #111111;
  margin-bottom: 16px;
}

.featured-desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 次推荐 */
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recommend-card {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.recommend-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* 最近更新 */
.update-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.update-card .card-media {
  aspect-ratio: 3 / 4;
}

.update-card .card-title {
  font-size: 14px;
  margin-top: 10px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 编辑推荐榜 */
.ranking-list {
  counter-reset: ranking;
}

.ranking-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item:hover {
  background-color: #fafafa;
}

.ranking-num {
  font-size: 28px;
  font-weight: 900;
  color: #dddddd;
  font-style: italic;
  text-align: center;
}

.ranking-item:nth-child(1) .ranking-num {
  color: #e1483e;
}

.ranking-item:nth-child(2) .ranking-num {
  color: #e1483e;
}

.ranking-item:nth-child(3) .ranking-num {
  color: #e1483e;
}

.ranking-info {
  min-width: 0;
}

.ranking-name {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 4px;
}

.ranking-tag {
  display: inline-block;
  padding: 2px 8px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-size: 12px;
  color: #888888;
  margin-bottom: 4px;
}

.ranking-desc {
  font-size: 14px;
  color: #888888;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-link {
  font-size: 14px;
  font-weight: 700;
  color: #e1483e;
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid #e1483e;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ranking-link:hover {
  background-color: #e1483e;
  color: #ffffff;
}

/* 专题入口 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.3s ease;
}

.topic-card:hover {
  border-color: #e1483e;
  box-shadow: 0 4px 16px rgba(225, 72, 62, 0.08);
}

.topic-title {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 10px;
}

.topic-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 16px;
}

.topic-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #e1483e;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.topic-link:hover {
  border-bottom-color: #e1483e;
}

/* 帮助入口 */
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.help-card {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 32px 28px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.help-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.help-title {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
}

.help-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.help-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #e1483e;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.help-link:hover {
  border-bottom-color: #e1483e;
}

/* ==========================================================================
   Pages · 漫画分类
   ========================================================================== */

.cate-tag-nav {
  margin-bottom: 40px;
}

.tag-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
}

.tag-nav-item {
  display: inline-block;
  padding: 8px 18px;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.tag-nav-item:hover {
  border-color: #e1483e;
  color: #e1483e;
  background-color: #fff5f4;
}

.cate-section-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.cate-block {
  scroll-margin-top: 140px;
}

.cate-block-title {
  font-size: 22px;
  font-weight: 900;
  color: #111111;
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.cate-block-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: #e1483e;
  border-radius: 2px;
}

.cate-block-desc {
  font-size: 14px;
  color: #888888;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cate-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cate-card {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cate-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.cate-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.cate-card:hover .cate-card-img {
  filter: grayscale(0%);
}

.cate-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  padding: 16px 16px 4px;
}

.cate-card-tag {
  display: inline-block;
  font-size: 13px;
  color: #e1483e;
  font-weight: 500;
  padding: 0 16px 16px;
}

/* 分类页侧栏 */
.hot-cate .sidebar-list-item {
  padding: 10px 0;
}

.hot-cate .sidebar-list-item a {
  font-weight: 700;
}

.guide-entry .sidebar-desc,
.collection-entry .sidebar-desc {
  margin-bottom: 16px;
}

/* ==========================================================================
   Pages · 精选合集
   ========================================================================== */

.featured-collection {
  margin-bottom: 48px;
}

.featured-collection-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
}

.featured-collection-media {
  min-height: 300px;
  position: relative;
}

.featured-collection-media .media-figure {
  width: 100%;
  height: 100%;
}

.featured-collection-media .media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.featured-collection-info {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.featured-collection-name {
  font-size: 24px;
  font-weight: 900;
  color: #111111;
  margin-bottom: 12px;
}

.featured-collection-desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.collection-list-section {
  margin-bottom: 24px;
}

.collection-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collection-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.collection-item:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.collection-item-media {
  width: 120px;
  height: 160px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.collection-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.collection-item-name {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
}

.collection-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.collection-tag {
  display: inline-block;
  padding: 2px 8px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-size: 12px;
  color: #888888;
}

.collection-count {
  font-size: 12px;
  color: #bbbbbb;
}

.collection-item-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 合集侧栏 */
.side-updates-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-update-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-update-item img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.side-update-item a {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.side-update-item a:hover {
  color: #e1483e;
}

.side-topic-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.side-topic-list li:last-child {
  border-bottom: none;
}

.side-topic-list a {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  transition: color 0.2s ease;
}

.side-topic-list a:hover {
  color: #e1483e;
}

.side-about-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ==========================================================================
   Pages · 阅读指南
   ========================================================================== */

.guide-section {
  margin-bottom: 56px;
  scroll-margin-top: 140px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 24px;
  align-items: center;
}

.step-content {
  min-width: 0;
}

.step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  margin-bottom: 10px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 8px;
}

.step-text {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.step-figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.step-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.guide-dl {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-dl-item {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.guide-dl-item:hover {
  border-color: #d0d0d0;
}

.guide-dt {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
}

.guide-dd {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 10px;
}

.guide-dl-link {
  font-size: 14px;
  font-weight: 700;
  color: #e1483e;
  transition: border-bottom 0.2s ease;
  border-bottom: 1px solid transparent;
}

.guide-dl-link:hover {
  border-bottom-color: #e1483e;
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-item {
  background-color: #fafafa;
  border-left: 3px solid #111111;
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
}

.tip-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
}

.tip-text {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.guide-entry-btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: #e1483e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.guide-entry-btn:hover {
  background-color: #c93a30;
  color: #ffffff;
}

/* 指南侧栏 */
.guide-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.aside-card {
  margin-bottom: 0;
}

.aside-links li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.aside-links li:last-child {
  border-bottom: none;
}

.aside-links a {
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  transition: color 0.2s ease;
}

.aside-links a:hover {
  color: #e1483e;
}

.aside-highlight {
  background-color: #111111;
  border-color: #111111;
}

.aside-highlight .aside-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.aside-highlight .aside-text {
  color: rgba(255, 255, 255, 0.7);
}

.aside-link-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e1483e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.aside-link-btn:hover {
  background-color: #c93a30;
  color: #ffffff;
}

/* ==========================================================================
   Pages · 更新动态
   ========================================================================== */

.layout-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.content-section {
  margin-bottom: 56px;
}

.update-mechanism .section-intro {
  max-width: 640px;
}

.update-mechanism .section-intro p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 16px;
  line-height: 1.8;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.principle-item {
  position: relative;
  padding: 14px 20px;
  background-color: #fafafa;
  border-radius: 6px;
  font-size: 15px;
  color: #333333;
  line-height: 1.7;
  padding-left: 44px;
}

.principle-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 8px;
  height: 8px;
  background-color: #e1483e;
  border-radius: 50%;
}

.update-mechanism .media-figure {
  margin-top: 28px;
  max-width: 640px;
}

.update-mechanism .media-figure img {
  aspect-ratio: 16 / 9;
}

.adjustment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adjustment-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  background-color: #fafafa;
  border-radius: 6px;
  padding: 20px;
  align-items: start;
}

.adjustment-type {
  display: inline-block;
  padding: 4px 12px;
  background-color: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
}

.adjustment-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.direction-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.direction-item {
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.3s ease;
}

.direction-item:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.direction-name {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 8px;
}

.direction-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-list li {
  margin: 0;
}

.entry-list a {
  display: inline-block;
  padding: 8px 18px;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.entry-list a:hover {
  background-color: #e1483e;
  color: #ffffff;
}

/* 更新动态侧栏 */
.side-update-entry .side-link {
  display: block;
  margin-bottom: 10px;
}

.side-update-entry .side-link:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Pages · 帮助中心
   ========================================================================== */

.help-section {
  margin-bottom: 48px;
  scroll-margin-top: 140px;
}

.faq-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #eeeeee;
  border-radius: 6px;
  background-color: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #d0d0d0;
}

.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #888888;
  font-weight: 400;
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item[open] summary {
  color: #e1483e;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: #e1483e;
}

.faq-answer {
  padding: 0 20px 20px;
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  border-top: 1px solid #f5f5f5;
  padding-top: 16px;
}

.help-figure {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0f0f0;
  border: 1px solid #eeeeee;
}

.help-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.help-figure figcaption {
  padding: 12px 20px;
  font-size: 13px;
  color: #888888;
  background-color: #fafafa;
  border-top: 1px solid #eeeeee;
}

/* ==========================================================================
   Pages · 关于本站
   ========================================================================== */

.about-section {
  margin-bottom: 56px;
}

.position-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.position-text p {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.keyword-tags .tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: #f5f5f5;
  border-radius: 3px;
  font-size: 13px;
  color: #555555;
}

.position-figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

.position-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(30%);
}

.position-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #888888;
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.content-organization > p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
}

.org-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.org-item {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 20px;
  border-left: 3px solid #111111;
}

.org-name {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
}

.org-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 10px;
}

.org-link {
  font-size: 14px;
  font-weight: 700;
  color: #e1483e;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.org-link:hover {
  border-bottom-color: #e1483e;
}

.copyright-section p {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.notice-box {
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 24px;
  margin-top: 24px;
}

.notice-title {
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
}

.notice-list {
  list-style: disc;
  padding-left: 20px;
}

.notice-list li {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 8px;
}

.feedback-section p {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 16px;
}

.feedback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

/* 关于页侧栏 */
.sidebar-module {
  margin-bottom: 24px;
}

.sidebar-links li {
  padding: 10px 0;
}

.sidebar-links a {
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  transition: color 0.2s ease;
}

.sidebar-links a:hover {
  color: #e1483e;
}

.sidebar-card {
  background-color: #111111;
  border-color: #111111;
}

.sidebar-card .sidebar-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sidebar-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.sidebar-card .sidebar-link {
  color: #ffffff;
}

.sidebar-card .sidebar-link:hover {
  border-bottom-color: #ffffff;
}

/* ==========================================================================
   Pages · 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 24px;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 72px;
  font-weight: 900;
  color: #eeeeee;
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.error-title {
  font-size: 24px;
  color: #111111;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #666666;
  margin-bottom: 28px;
  line-height: 1.7;
}

.error-btn {
  display: inline-block;
  padding: 12px 32px;
  background-color: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #e1483e;
  color: #ffffff;
}

.error-tip {
  font-size: 13px;
  color: #bbbbbb;
  margin-top: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* 1024px 及以下 */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }

  .recommend-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .update-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .direction-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .position-grid {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }

  .step-card {
    grid-template-columns: 1fr 200px;
  }
}

/* 768px 及以下 */
@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    width: 100%;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0 16px;
    gap: 2px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
  }

  .sub-nav {
    order: 5;
    width: 100%;
    flex-wrap: wrap;
    padding: 4px 8px;
    gap: 0;
  }

  .sub-nav-link {
    padding: 8px 12px;
    font-size: 14px;
  }

  .page-layout,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px;
  }

  .sidebar,
  .content-side,
  .sidebar-area,
  .guide-aside {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eeeeee;
  }

  .hero-content {
    padding: 60px 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .section {
    padding: 40px 16px;
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-info {
    padding: 24px;
  }

  .featured-media {
    min-height: 240px;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .ranking-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .ranking-link {
    grid-column: 2;
    justify-self: start;
    padding: 6px 14px;
    font-size: 13px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .help-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cate-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .featured-collection-inner {
    grid-template-columns: 1fr;
  }

  .featured-collection-info {
    padding: 24px;
  }

  .featured-collection-media {
    min-height: 220px;
  }

  .collection-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .collection-item-media {
    width: 88px;
    height: 118px;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .step-figure {
    order: -1;
  }

  .step-img {
    height: 180px;
  }

  .adjustment-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .direction-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .position-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .position-figure {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  .related-links {
    padding: 16px;
  }
}

/* 480px 及以下 */
@media (max-width: 480px) {
  .update-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-tag {
    padding: 8px 16px;
    font-size: 14px;
  }

  .featured-media {
    min-height: 200px;
  }

  .collection-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .collection-item-media {
    width: 72px;
    height: 96px;
  }

  .ranking-desc {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .faq-item summary {
    font-size: 14px;
    padding: 14px 40px 14px 16px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* ==========================================================================
   Motion · 滚动进入视口淡入（渐进增强，不影响初始可见性）
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .section .featured-card,
  .section .recommend-card,
  .section .update-card,
  .section .topic-card,
  .section .help-card,
  .cate-block .cate-card,
  .collection-list .collection-item,
  .guide-section .step-card,
  .content-section .direction-item {
    animation: fade-in-up 0.6s ease both;
    animation-delay: calc(var(--item-index, 0) * 60ms);
  }

  @keyframes fade-in-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
