/* ==========================================================================
   age动漫 - 全站样式
   建筑事务所风格：严谨网格、留白节奏、黑白灰 + 点缀红
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #ffffff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #2c2c2c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e63946;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Layout / 全站骨架
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c2c2c;
  letter-spacing: 0.02em;
}

.brand-link:hover .brand-name {
  color: #e63946;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #2c2c2c;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: #e63946;
  border-bottom-color: #e63946;
}

.nav-link.is-current {
  color: #e63946;
  border-bottom-color: #e63946;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #2c2c2c;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  min-height: 60vh;
}

.home-main {
  background-color: #ffffff;
}

.inner-main {
  background-color: #ffffff;
  padding-bottom: 64px;
}

.site-footer {
  background-color: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-slogan {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.9375rem;
  color: #666666;
  max-width: 600px;
}

.footer-nav {
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.footer-link {
  font-size: 0.9375rem;
  color: #666666;
}

.footer-link:hover {
  color: #e63946;
}

.footer-copy {
  font-size: 0.875rem;
  color: #999999;
  border-top: 1px solid #e5e5e5;
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   通用组件
   -------------------------------------------------------------------------- */
.section-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 24px;
  max-width: 720px;
}

.section-desc a {
  color: #e63946;
  font-weight: 500;
}

.section-desc a:hover {
  text-decoration: underline;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-link {
  font-size: 0.9375rem;
  color: #e63946;
  font-weight: 500;
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

.btn-primary {
  display: inline-block;
  background-color: #e63946;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #c92f3b;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 面包屑 */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 0.875rem;
  color: #888888;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: #888888;
}

.breadcrumb a:hover {
  color: #e63946;
}

.breadcrumb-sep {
  color: #cccccc;
}

.breadcrumb-current {
  color: #2c2c2c;
}

/* 页面标题区 */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
}

.page-title {
  font-size: 2rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-description {
  font-size: 1rem;
  color: #555555;
  max-width: 720px;
  line-height: 1.7;
}

/* 页面主体容器 */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* 侧栏在前 */
.sidebar-left .page-layout {
  grid-template-columns: 260px 1fr;
}

.sidebar-left .category-index {
  order: 1;
}

.sidebar-left .category-detail {
  order: 2;
}

/* --------------------------------------------------------------------------
   首页 - Hero
   -------------------------------------------------------------------------- */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: #2c2c2c;
  line-height: 1.25;
  margin-bottom: 8px;
}

.hero-slogan {
  font-size: 1.125rem;
  font-weight: 500;
  color: #e63946;
}

.hero-text {
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
  max-width: 480px;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-figure {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border-radius: 6px;
  background-color: #f5f5f5;
}

.hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   首页 - 最近更新预览（封面墙）
   -------------------------------------------------------------------------- */
.updates-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.cover-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cover-item {
  background-color: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cover-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.cover-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   首页 - 题材分类导航
   -------------------------------------------------------------------------- */
.categories-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid #f0f0f0;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-link {
  display: inline-block;
  background-color: #f5f5f5;
  color: #2c2c2c;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-link:hover {
  background-color: #ffffff;
  color: #e63946;
  border-color: #e63946;
}

/* --------------------------------------------------------------------------
   首页 - 更新列表
   -------------------------------------------------------------------------- */
.updates-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid #f0f0f0;
}

.update-group {
  margin-bottom: 32px;
}

.update-date {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 16px;
}

.update-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.update-item {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-link {
  font-size: 1rem;
  font-weight: 500;
  color: #2c2c2c;
  line-height: 1.4;
}

.update-link:hover {
  color: #e63946;
}

.update-time {
  font-size: 0.8125rem;
  color: #999999;
}

/* --------------------------------------------------------------------------
   首页 - 人气榜单预览
   -------------------------------------------------------------------------- */
.ranking-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid #f0f0f0;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #fafafa;
  border-radius: 6px;
  padding: 16px 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background-color: #f5f5f5;
  transform: translateX(4px);
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e63946;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.rank-content {
  flex: 1;
}

.rank-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.rank-reason {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   首页 - 指南与技巧入口
   -------------------------------------------------------------------------- */
.guide-tips-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid #f0f0f0;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.entry-card {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.entry-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.entry-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c2c2c;
}

.entry-text {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
  flex: 1;
}

.entry-link {
  font-size: 0.9375rem;
  color: #e63946;
  font-weight: 500;
  margin-top: 8px;
}

.entry-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   首页 - 反馈说明
   -------------------------------------------------------------------------- */
.feedback-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  border-top: 1px solid #f0f0f0;
}

.feedback-text {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.7;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   内页 - 题材分类页
   -------------------------------------------------------------------------- */
.category-index {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 24px;
  position: sticky;
  top: 88px;
}

.aside-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e5e5;
}

.category-index-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-index-item {
  border-radius: 4px;
}

.category-index-link {
  display: block;
  padding: 10px 12px;
  font-size: 0.9375rem;
  color: #555555;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-index-link:hover {
  background-color: #f0f0f0;
  color: #e63946;
}

.category-detail {
  min-width: 0;
}

.category-block {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f0f0f0;
}

.category-block:last-of-type {
  border-bottom: none;
}

.category-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 680px;
}

.category-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.work-card {
  background-color: #fafafa;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.work-figure {
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0;
}

.work-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  padding: 12px 16px 4px;
}

.work-note {
  font-size: 0.8125rem;
  color: #888888;
  padding: 0 16px 16px;
}

/* 相关链接 */
.related-links {
  margin-top: 48px;
  background-color: #fafafa;
  border-radius: 6px;
  padding: 32px;
}

.related-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.related-desc {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 20px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.related-item {
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
}

.related-link {
  display: block;
  padding: 12px 16px;
  font-size: 0.9375rem;
  color: #2c2c2c;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.related-link:hover {
  color: #e63946;
  border-color: #e63946;
}

/* --------------------------------------------------------------------------
   内页 - 阅读指南页
   -------------------------------------------------------------------------- */
.guide-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f0f0f0;
}

.guide-section:last-of-type {
  border-bottom: none;
}

.guide-section .section-title {
  font-size: 1.25rem;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guide-step {
  display: flex;
  gap: 16px;
  background-color: #fafafa;
  border-radius: 6px;
  padding: 20px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #e63946;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 6px;
}

.step-text {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.6;
}

.guide-figure {
  margin-top: 24px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 0.875rem;
  color: #888888;
  text-align: center;
  padding: 12px;
}

/* 指南侧栏 */
.guide-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 88px;
}

.aside-card {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 24px;
}

.aside-card .aside-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e5e5;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-list li a {
  font-size: 0.9375rem;
  color: #555555;
  transition: color 0.2s ease;
}

.aside-list li a:hover {
  color: #e63946;
}

/* 反馈说明 */
.feedback-note {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 0;
  border-top: 1px solid #f0f0f0;
}

/* --------------------------------------------------------------------------
   内页 - 最近更新页
   -------------------------------------------------------------------------- */
.updates-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.update-group-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2c2c;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 20px;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.update-item {
  background-color: #fafafa;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.update-figure {
  width: 100%;
  overflow: hidden;
  background-color: #f0f0f0;
}

.update-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.update-info {
  padding: 16px;
}

.update-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 6px;
}

.update-meta {
  font-size: 0.875rem;
  color: #888888;
  margin-bottom: 4px;
}

.update-time {
  font-size: 0.8125rem;
  color: #aaa;
}

/* 日期说明 & 阅读引导 */
.date-note,
.read-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid #f0f0f0;
}

.read-guide .section-desc a {
  margin-right: 16px;
}

/* --------------------------------------------------------------------------
   内页 - 人气榜单页
   -------------------------------------------------------------------------- */
.ranking-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ranking-section .ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #fafafa;
  border-radius: 6px;
  padding: 16px 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateX(4px);
}

.ranking-num {
  font-size: 1.75rem;
  font-weight: 600;
  color: #e63946;
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.ranking-cover {
  width: 80px;
  height: 100px;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f0f0f0;
  flex-shrink: 0;
}

.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.ranking-tag {
  font-size: 0.8125rem;
  color: #e63946;
  margin-bottom: 6px;
}

.ranking-reason {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.5;
}

/* 推荐理由 */
.recommend-reasons {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid #f0f0f0;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.reason-card {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 24px;
}

.reason-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.reason-text {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.6;
}

.reason-note {
  font-size: 0.9375rem;
  color: #666666;
}

.reason-note a {
  color: #e63946;
  margin-right: 16px;
  font-weight: 500;
}

.reason-note a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   内页 - 追更技巧页
   -------------------------------------------------------------------------- */
.tips-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.article-body {
  min-width: 0;
}

.tips-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #f0f0f0;
}

.tips-section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
}

.tips-section p {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.tips-section p a {
  color: #e63946;
  font-weight: 500;
}

.tips-section p a:hover {
  text-decoration: underline;
}

.tips-figure {
  margin-top: 24px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.tips-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.tips-figure figcaption {
  font-size: 0.875rem;
  color: #888888;
  text-align: center;
  padding: 12px;
}

.tips-aside {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 24px;
  position: sticky;
  top: 88px;
}

.tips-aside h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e5e5;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links li a {
  font-size: 0.9375rem;
  color: #555555;
  transition: color 0.2s ease;
}

.aside-links li a:hover {
  color: #e63946;
}

/* --------------------------------------------------------------------------
   404 页面
   -------------------------------------------------------------------------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background-color: #ffffff;
}

.error-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.error-code {
  font-size: 4rem;
  font-weight: 600;
  color: #e63946;
  line-height: 1;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c2c2c;
}

.error-desc {
  font-size: 1rem;
  color: #666666;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.error-link {
  display: inline-block;
  background-color: #e63946;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.error-link:hover {
  background-color: #c92f3b;
  color: #ffffff;
}

.error-suggest {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 32px;
}

.suggest-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
}

.suggest-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggest-link {
  display: block;
  font-size: 0.9375rem;
  color: #555555;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s ease;
}

.suggest-link:hover {
  color: #e63946;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cover-wall {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: 220px 1fr;
    gap: 32px;
  }

  .guide-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }

  .tips-layout {
    grid-template-columns: 1fr 240px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    padding: 0 16px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: none;
  }

  .nav-link.is-current {
    border-bottom: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 16px 32px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-image {
    height: 220px;
  }

  .updates-preview,
  .categories-nav,
  .updates-list,
  .ranking-preview,
  .guide-tips-entry,
  .feedback-section {
    padding: 32px 16px;
  }

  .cover-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .cover-image {
    height: 160px;
  }

  .update-items {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ranking-item {
    padding: 12px 16px;
  }

  .rank-number {
    font-size: 1.25rem;
    min-width: 32px;
  }

  .page-header {
    padding: 32px 16px 24px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .breadcrumb {
    padding: 16px 16px 0;
  }

  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .category-index {
    position: static;
    overflow-x: auto;
    padding: 16px;
  }

  .category-index-list {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-index-item {
    flex-shrink: 0;
  }

  .category-index-link {
    white-space: nowrap;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border-radius: 20px;
  }

  .category-works {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .work-cover {
    height: 200px;
  }

  .related-list {
    grid-template-columns: 1fr;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  .guide-aside {
    position: static;
    order: 2;
  }

  .guide-step {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .guide-figure img {
    height: 200px;
  }

  .update-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .update-figure img {
    height: 200px;
  }

  .ranking-card {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }

  .ranking-num {
    font-size: 1.25rem;
    min-width: 32px;
  }

  .ranking-cover {
    width: 64px;
    height: 84px;
  }

  .reason-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tips-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }

  .tips-aside {
    position: static;
  }

  .tips-figure img {
    height: 200px;
  }

  .error-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 16px;
  }

  .error-code {
    font-size: 3rem;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-links {
    gap: 8px 24px;
  }
}

@media (max-width: 480px) {
  .cover-wall {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cover-image {
    height: 140px;
  }

  .category-tags {
    gap: 8px;
  }

  .tag-link {
    padding: 8px 14px;
    font-size: 0.875rem;
  }

  .section-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .entry-card {
    padding: 24px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-text {
    font-size: 0.9375rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .update-item {
    padding: 12px;
  }

  .ranking-card {
    flex-direction: row;
  }

  .ranking-cover {
    width: 56px;
    height: 72px;
  }

  .ranking-title {
    font-size: 0.9375rem;
  }

  .ranking-reason {
    font-size: 0.8125rem;
  }

  .reason-note {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .reason-note a {
    margin-right: 0;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-link {
    text-align: center;
  }
}
