/* ==========================================================================
   base — 全局基础样式
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3e3a36;
  background-color: #f5f0e8;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #8b7355;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c49a6c;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout — 全站布局骨架
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e0d4;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #3e3a36;
  letter-spacing: 0.02em;
}

.brand-name::before {
  content: "喵趣";
  color: #c49a6c;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 6px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #3e3a36;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #3e3a36;
  border-radius: 6px;
  line-height: 1.5;
}

.nav-list li a:hover {
  color: #c49a6c;
  background-color: #faf6ef;
}

.nav-list li a.is-current {
  color: #c49a6c;
  background-color: #faf6ef;
  font-weight: 600;
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e8e0d4;
  margin-top: 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.footer-brand {
  margin-bottom: 28px;
}

.footer-slogan {
  font-size: 18px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 14px;
  color: #8b7355;
  max-width: 640px;
}

.footer-links {
  display: flex;
  gap: 48px;
  padding: 24px 0;
  border-top: 1px solid #f0eae0;
  border-bottom: 1px solid #f0eae0;
  margin-bottom: 20px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 12px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li a {
  font-size: 14px;
  color: #8b7355;
}

.footer-group ul li a:hover {
  color: #c49a6c;
}

.footer-copy {
  font-size: 13px;
  color: #a89a88;
  text-align: center;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: #3e3a36;
  line-height: 1.4;
  margin-bottom: 16px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading .section-title {
  margin-bottom: 0;
}

.section-more {
  font-size: 14px;
  color: #8b7355;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-more:hover {
  color: #c49a6c;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #8b7355;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #8b7355;
}

.breadcrumb a:hover {
  color: #c49a6c;
}

.breadcrumb-sep {
  color: #c4b8a8;
}

.breadcrumb-current {
  color: #3e3a36;
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #3e3a36;
  line-height: 1.35;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: #6b6560;
  max-width: 720px;
  line-height: 1.7;
}

/* 卡片 */
.guide-card,
.category-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #ece4d8;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(62, 58, 54, 0.08);
}

/* 图片容器 */
.hero-media,
.category-media,
.guide-figure,
.method-figure {
  overflow: hidden;
}

.hero-media img,
.category-media img,
.guide-figure img,
.method-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  padding-top: 24px;
}

/* 首屏列表 */
.hero-list {
  margin-bottom: 40px;
}

.hero-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #ece4d8;
  overflow: hidden;
  margin-bottom: 20px;
}

.hero-media {
  position: relative;
  min-height: 320px;
}

.hero-media img {
  position: absolute;
  inset: 0;
}

.hero-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.hero-tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #faf6ef;
  border: 1px solid #e8dcc8;
  border-radius: 999px;
  font-size: 13px;
  color: #8b7355;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  color: #3e3a36;
  line-height: 1.4;
}

.hero-desc {
  font-size: 15px;
  color: #6b6560;
  line-height: 1.7;
}

.hero-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: #c49a6c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  margin-top: 8px;
  transition: background-color 0.2s ease;
}

.hero-link:hover {
  background-color: #b08658;
  color: #ffffff;
}

.hero-compact-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.compact-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(62, 58, 54, 0.07);
}

.compact-rank {
  font-size: 13px;
  color: #c49a6c;
  font-weight: 600;
}

.compact-title {
  font-size: 15px;
  font-weight: 600;
  color: #3e3a36;
  line-height: 1.4;
}

.compact-tag {
  font-size: 12px;
  color: #a89a88;
}

/* 分类标签带 */
.category-tags {
  margin-bottom: 40px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list li a {
  display: inline-block;
  padding: 8px 20px;
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 999px;
  font-size: 14px;
  color: #3e3a36;
  transition: all 0.2s ease;
}

.tag-list li a:hover {
  border-color: #c49a6c;
  color: #c49a6c;
  background-color: #faf6ef;
}

/* 最近更新 */
.recent-updates {
  margin-bottom: 40px;
}

.update-group {
  margin-bottom: 24px;
}

.update-date {
  font-size: 16px;
  font-weight: 600;
  color: #8b7355;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ece4d8;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.update-item a {
  display: block;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(62, 58, 54, 0.07);
}

.update-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.update-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #3e3a36;
  line-height: 1.4;
  margin-bottom: 4px;
}

.update-status {
  display: inline-block;
  font-size: 12px;
  color: #c49a6c;
  background-color: #faf6ef;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 人气榜单预览 */
.popular-list {
  margin-bottom: 40px;
}

.ranking-preview-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.ranking-item {
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(62, 58, 54, 0.07);
}

.ranking-num {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: #c49a6c;
  margin-bottom: 8px;
}

.ranking-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 6px;
}

.ranking-reason {
  font-size: 13px;
  color: #8b7355;
  line-height: 1.6;
}

/* 指南入口 */
.guide-cards {
  margin-bottom: 40px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guide-card {
  display: block;
  padding: 24px;
}

.guide-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 8px;
}

.guide-card-text {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.6;
  margin-bottom: 12px;
}

.guide-card-link {
  font-size: 14px;
  font-weight: 500;
  color: #c49a6c;
}

/* 反馈 */
.feedback {
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 24px;
}

.feedback-text {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.7;
}

/* ==========================================================================
   pages — 内页通用
   ========================================================================== */

.inner-main {
  padding-top: 24px;
}

/* 侧栏布局 */
.layout-shell,
.page-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sidebar-left .layout-shell,
.sidebar-left .page-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.layout-shell > aside,
.layout-shell > article,
.layout-shell > section,
.page-layout > aside,
.page-layout > article {
  min-width: 0;
}

.layout-shell > aside,
.page-layout > aside {
  position: sticky;
  top: 84px;
}

.layout-shell > article,
.layout-shell > section,
.page-layout > article {
  width: 100%;
}

/* 侧栏面板 */
.aside-title,
.widget-title,
.summary-title {
  font-size: 16px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ece4d8;
}

.summary-card,
.widget {
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.summary-text,
.widget p {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 12px;
}

.summary-text:last-child,
.widget p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   pages — 题材分类页
   ========================================================================== */

.category-tree {
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 20px;
}

.tree-list li {
  margin-bottom: 4px;
}

.tree-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #3e3a36;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tree-list li a:hover {
  background-color: #faf6ef;
  color: #c49a6c;
}

.category-details .section-intro {
  font-size: 15px;
  color: #6b6560;
  margin-bottom: 24px;
  line-height: 1.7;
}

.category-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 20px;
  margin-bottom: 16px;
}

.category-media {
  position: relative;
  border-radius: 4px;
  min-height: 180px;
}

.category-media img {
  position: absolute;
  inset: 0;
}

.category-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 8px;
}

.category-info p {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 12px;
}

.category-link {
  font-size: 14px;
}

.category-link a {
  color: #c49a6c;
  font-weight: 500;
}

.category-link a:hover {
  color: #b08658;
}

/* ==========================================================================
   pages — 阅读指南页
   ========================================================================== */

.guide-content {
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 32px;
}

.guide-content > .section-title {
  font-size: 22px;
  margin-top: 32px;
}

.guide-content > .section-title:first-child {
  margin-top: 0;
}

.section-lead {
  font-size: 15px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 24px;
}

.step-item {
  padding: 20px;
  background-color: #faf6ef;
  border-radius: 8px;
  margin-bottom: 16px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-item p:last-child {
  margin-bottom: 0;
}

.step-item a {
  color: #c49a6c;
}

.guide-figure {
  border-radius: 8px;
  margin: 24px 0;
  min-height: 200px;
}

.guide-figure img {
  max-height: 320px;
}

.guide-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #8b7355;
  background-color: #faf6ef;
}

.guide-related {
  margin-top: 24px;
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 24px;
}

.guide-related p {
  font-size: 15px;
  color: #6b6560;
  line-height: 1.7;
}

.guide-related a {
  color: #c49a6c;
  font-weight: 500;
}

/* ==========================================================================
   pages — 最近更新页
   ========================================================================== */

.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-links ul li {
  margin-bottom: 8px;
}

.quick-links ul li a {
  font-size: 14px;
  color: #3e3a36;
}

.quick-links ul li a:hover {
  color: #c49a6c;
}

.update-list .section-title {
  margin-bottom: 8px;
}

.update-list {
  width: 100%;
}

.update-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-items .update-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-items .update-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(62, 58, 54, 0.07);
}

.item-cover {
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.item-title {
  font-size: 15px;
  font-weight: 600;
  color: #3e3a36;
  line-height: 1.4;
  margin-bottom: 6px;
}

.item-status {
  display: inline-block;
  font-size: 12px;
  color: #c49a6c;
  background-color: #faf6ef;
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 6px;
}

.item-desc {
  font-size: 13px;
  color: #8b7355;
  line-height: 1.5;
}

/* ==========================================================================
   pages — 人气榜单页
   ========================================================================== */

.ranking-list {
  width: 100%;
}

.ranking-list > .section-title {
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 24px;
}

.ranking-list .ranking-item {
  display: grid;
  grid-template-columns: 48px 120px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  margin-bottom: 16px;
}

.ranking-number {
  font-size: 28px;
  font-weight: 700;
  color: #c49a6c;
  text-align: center;
}

.ranking-cover {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.ranking-info {
  min-width: 0;
}

.ranking-title {
  font-size: 18px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 6px;
}

.ranking-meta {
  font-size: 13px;
  color: #8b7355;
  margin-bottom: 8px;
}

.ranking-reason {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.7;
}

.recommend-notes {
  margin-top: 32px;
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 24px;
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.recommend-list li {
  padding: 12px 16px;
  background-color: #faf6ef;
  border-radius: 6px;
  font-size: 14px;
  color: #6b6560;
  line-height: 1.6;
}

.related-links {
  margin-top: 24px;
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 24px;
}

.related-links p {
  font-size: 15px;
  color: #6b6560;
  line-height: 1.7;
}

.related-links a {
  color: #c49a6c;
  font-weight: 500;
}

/* ==========================================================================
   pages — 追更技巧页
   ========================================================================== */

.methods {
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
  padding: 32px;
}

.methods > h2 {
  font-size: 22px;
  font-weight: 700;
  color: #3e3a36;
  margin-top: 32px;
  margin-bottom: 12px;
}

.methods > h2:first-child {
  margin-top: 0;
}

.methods > p {
  font-size: 15px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 20px;
}

.method-item {
  padding: 20px;
  background-color: #faf6ef;
  border-radius: 8px;
  margin-bottom: 16px;
}

.method-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 8px;
}

.method-item p {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 0;
}

.method-figure {
  border-radius: 8px;
  margin: 24px 0;
  min-height: 200px;
}

.method-figure img {
  max-height: 320px;
}

.method-figure figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: #8b7355;
  background-color: #faf6ef;
}

.faq-section {
  padding: 16px 20px;
  background-color: #faf6ef;
  border-radius: 8px;
  margin-bottom: 12px;
}

.faq-section h3 {
  font-size: 15px;
  font-weight: 600;
  color: #3e3a36;
  margin-bottom: 6px;
}

.faq-section p {
  font-size: 14px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 0;
}

.methods .related-links {
  margin-top: 24px;
  padding: 16px 20px;
}

.methods .related-links p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.methods .related-links a {
  display: inline-block;
  padding: 4px 12px;
  background-color: #faf6ef;
  border-radius: 999px;
  font-size: 14px;
}

/* 追更技巧页底部相关链接 */
.layout-shell .related-links-label {
  font-size: 14px;
  color: #8b7355;
  margin-right: 8px;
}

.layout-shell .related-links-item {
  font-size: 14px;
  color: #c49a6c;
  margin-right: 16px;
}

/* ==========================================================================
   pages — 404 页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.error-panel {
  text-align: center;
  max-width: 480px;
  padding: 48px 32px;
  background-color: #ffffff;
  border: 1px solid #ece4d8;
  border-radius: 8px;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: #c49a6c;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: #3e3a36;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #6b6560;
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-home-link {
  display: inline-block;
  padding: 10px 28px;
  background-color: #c49a6c;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.error-home-link:hover {
  background-color: #b08658;
  color: #ffffff;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-compact-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-preview-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout-shell,
  .page-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #ece4d8;
    box-shadow: 0 8px 16px rgba(62, 58, 54, 0.08);
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 15px;
  }

  .site-main {
    padding: 20px 16px 48px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .hero-feature {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 220px;
  }

  .hero-content {
    padding: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-compact-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-preview-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .layout-shell,
  .page-layout {
    display: flex;
    flex-direction: column;
  }

  .layout-shell > aside,
  .layout-shell > article,
  .layout-shell > section,
  .page-layout > aside,
  .page-layout > article {
    position: static;
    width: 100%;
  }

  /* 移动端：正文在前，侧栏在后 */
  .layout-shell > aside,
  .page-layout > aside {
    order: 2;
  }

  .layout-shell > article,
  .layout-shell > section,
  .page-layout > article {
    order: 1;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-media {
    min-height: 160px;
  }

  .guide-content,
  .methods {
    padding: 24px;
  }

  .update-items {
    grid-template-columns: 1fr;
  }

  .ranking-list .ranking-item {
    grid-template-columns: 36px 80px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .ranking-number {
    font-size: 22px;
  }

  .ranking-cover {
    width: 80px;
    height: 110px;
  }

  .recommend-list {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero-compact-list {
    grid-template-columns: 1fr;
  }

  .ranking-preview-list {
    grid-template-columns: 1fr;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-list li a {
    padding: 6px 14px;
    font-size: 13px;
  }

  .ranking-list .ranking-item {
    grid-template-columns: 32px 72px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .ranking-cover {
    width: 72px;
    height: 100px;
  }

  .ranking-title {
    font-size: 16px;
  }

  .item-cover {
    width: 80px;
    height: 110px;
  }

  .hero-media {
    min-height: 180px;
  }

  .hero-content {
    padding: 20px;
  }

  .hero-title {
    font-size: 22px;
  }
}
