/* ============================================================
   BASE — 全局基础样式
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #3e2723;
  background-color: #f5f0e8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #8b5a2b;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c62828;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #3e2723;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

/* ============================================================
   LAYOUT — 全站统一骨架
   ============================================================ */
.site-header {
  background-color: #fff8f0;
  border-bottom: 1px solid #e8ddd0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.site-footer {
  background-color: #3e2723;
  color: #e8ddd0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

/* ============================================================
   COMPONENTS — 通用组件
   ============================================================ */
/* 品牌 Logo */
.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #3e2723;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #8b5a2b;
  margin-top: 2px;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  color: #3e2723;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background-color: #f5f0e8;
  color: #c62828;
}

.nav-list a.is-current {
  background-color: #8b5a2b;
  color: #fff8f0;
  font-weight: 600;
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 1px solid #8b5a2b;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #3e2723;
  background-color: #fff8f0;
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #3e2723;
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #3e2723;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-toggle-text {
  font-size: 0.875rem;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #8b5a2b;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #8b5a2b;
}

.breadcrumb a:hover {
  color: #c62828;
}

.breadcrumb-sep {
  color: #b8a894;
}

.breadcrumb-current {
  color: #3e2723;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e8ddd0;
}

.page-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1rem;
  color: #6b5b4e;
  max-width: 720px;
}

/* Section 标题 */
.section-title {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: #6b5b4e;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background-color: #8b5a2b;
  color: #fff8f0;
  border: 1px solid #8b5a2b;
}

.btn-primary:hover {
  background-color: #6b4420;
  border-color: #6b4420;
  color: #fff8f0;
}

.btn-outline {
  background-color: transparent;
  color: #8b5a2b;
  border: 1px solid #8b5a2b;
}

.btn-outline:hover {
  background-color: #8b5a2b;
  color: #fff8f0;
}

/* 页脚 */
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff8f0;
  margin-bottom: 0.375rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: #b8a894;
  margin-bottom: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h3 {
  font-size: 0.9375rem;
  color: #fff8f0;
  margin-bottom: 0.75rem;
}

.footer-col ul li {
  margin-bottom: 0.375rem;
}

.footer-col ul a {
  color: #b8a894;
  font-size: 0.875rem;
}

.footer-col ul a:hover {
  color: #fff8f0;
}

.footer-bottom {
  border-top: 1px solid #5d4037;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #b8a894;
  margin-bottom: 0;
}

/* ============================================================
   PAGES — 首页
   ============================================================ */
/* Hero 首屏 */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 2.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: #8b5a2b;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-desc {
  color: #6b5b4e;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-figure {
  width: 100%;
  max-width: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(62, 39, 35, 0.15);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 分类标签带 */
.category-band {
  padding: 2rem 0;
  border-top: 1px solid #e8ddd0;
  border-bottom: 1px solid #e8ddd0;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-head h2 {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.section-head p {
  color: #6b5b4e;
  margin-bottom: 0;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.tag-item {
  display: inline-block;
  padding: 0.5rem 1.125rem;
  background-color: #fff8f0;
  border: 1px solid #d7c7b0;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #3e2723;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.tag-item:hover {
  background-color: #8b5a2b;
  border-color: #8b5a2b;
  color: #fff8f0;
}

/* 最近更新 */
.updates-section {
  padding: 2.5rem 0;
}

.update-group {
  margin-bottom: 2rem;
}

.update-date {
  font-size: 1rem;
  color: #8b5a2b;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8ddd0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.update-item a {
  display: flex;
  flex-direction: column;
  background-color: #fff8f0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ddd0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-item a:hover {
  box-shadow: 0 4px 12px rgba(62, 39, 35, 0.12);
  transform: translateY(-2px);
}

.update-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.update-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.update-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3e2723;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-meta {
  font-size: 0.8125rem;
  color: #8b5a2b;
}

/* 人气榜单 */
.ranking-section {
  padding: 2.5rem 0;
  background-color: #fff8f0;
  border-radius: 8px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  margin-bottom: 2.5rem;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.ranking-item a {
  display: flex;
  flex-direction: column;
  background-color: #f5f0e8;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ddd0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.ranking-item a:hover {
  box-shadow: 0 4px 12px rgba(62, 39, 35, 0.12);
  transform: translateY(-2px);
}

.rank-num {
  display: inline-block;
  background-color: #8b5a2b;
  color: #fff8f0;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border-radius: 0 0 6px 0;
  align-self: flex-start;
}

.rank-cover img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.rank-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rank-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3e2723;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-reason {
  font-size: 0.8125rem;
  color: #6b5b4e;
  line-height: 1.5;
}

/* 阅读指南入口 */
.guide-section {
  padding: 2.5rem 0;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.guide-card {
  background-color: #fff8f0;
  border: 1px solid #e8ddd0;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.guide-card h3 {
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.9375rem;
  color: #6b5b4e;
  flex: 1;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* 反馈说明 */
.feedback-section {
  padding: 2rem 0;
  border-top: 1px solid #e8ddd0;
  border-bottom: 1px solid #e8ddd0;
  margin-bottom: 2.5rem;
}

.feedback-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feedback-section p {
  color: #6b5b4e;
  font-size: 0.9375rem;
  max-width: 720px;
}

/* ============================================================
   PAGES — 内页通用与分类页
   ============================================================ */
/* 分类页 */
.category-grid {
  margin-bottom: 2.5rem;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card {
  background-color: #fff8f0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ddd0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 12px rgba(62, 39, 35, 0.12);
  transform: translateY(-2px);
}

.category-card .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-top: 0;
}

.card-figure {
  overflow: hidden;
}

.card-figure .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9375rem;
  color: #6b5b4e;
  margin-bottom: 0;
}

.category-notes {
  background-color: #fff8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
}

.notes-content p {
  color: #6b5b4e;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.notes-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   PAGES — 阅读指南页
   ============================================================ */
.steps-section {
  margin-bottom: 2.5rem;
}

.steps-list {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  background-color: #fff8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #8b5a2b;
  color: #fff8f0;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h3 {
  margin-bottom: 0.375rem;
}

.step-content p {
  color: #6b5b4e;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.tips-section {
  margin-bottom: 2.5rem;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tip-item {
  background-color: #fff8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
}

.tip-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tip-item p {
  font-size: 0.9375rem;
  color: #6b5b4e;
  margin-bottom: 0;
}

.related-section {
  margin-bottom: 2.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  background-color: #fff8f0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ddd0;
  display: flex;
  flex-direction: column;
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-card h3 {
  padding: 1rem 1rem 0.25rem;
  font-size: 1rem;
}

.related-card p {
  padding: 0 1rem;
  font-size: 0.875rem;
  color: #6b5b4e;
  flex: 1;
}

.related-card a {
  display: inline-block;
  margin: 0.75rem 1rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* 指南页反馈区 */
.guide-section.feedback-section {
  background-color: #fff8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
  border-top: 1px solid #e8ddd0;
  border-bottom: 1px solid #e8ddd0;
  margin-bottom: 0;
}

.guide-section.feedback-section p {
  margin-bottom: 0;
}

/* ============================================================
   PAGES — 恋爱漫画页
   ============================================================ */
.work-list {
  margin-bottom: 2.5rem;
}

.work-list-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.work-item {
  display: flex;
  gap: 1.25rem;
  background-color: #fff8f0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ddd0;
  padding: 1.25rem;
}

.work-cover {
  flex-shrink: 0;
  width: 160px;
}

.work-cover img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.work-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-title {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.work-desc {
  font-size: 0.9375rem;
  color: #6b5b4e;
  margin-bottom: 0.5rem;
}

.work-reason {
  font-size: 0.875rem;
  color: #8b5a2b;
  margin-top: auto;
  margin-bottom: 0;
}

.work-reason strong {
  color: #3e2723;
  font-weight: 600;
}

.reading-points {
  margin-bottom: 2.5rem;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.point-card {
  background-color: #fff8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
}

.point-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.point-card p {
  font-size: 0.9375rem;
  color: #6b5b4e;
  margin-bottom: 0;
}

.related-links {
  background-color: #fff8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
}

.related-links p {
  font-size: 0.9375rem;
  color: #6b5b4e;
  margin-bottom: 0.5rem;
}

.related-links a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================================
   PAGES — 热血漫画页
   ============================================================ */
.work-list-section {
  margin-bottom: 2.5rem;
}

.work-list-section .work-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 0;
}

.work-meta {
  font-size: 0.8125rem;
  color: #8b5a2b;
  margin-bottom: 0.375rem;
}

.recommend-reasons-section {
  margin-bottom: 2.5rem;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.reason-card {
  background-color: #fff8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
}

.reason-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.reason-card p {
  font-size: 0.9375rem;
  color: #6b5b4e;
  margin-bottom: 0;
}

.related-links-section {
  background-color: #fff8f0;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e8ddd0;
}

.related-links-section p {
  color: #6b5b4e;
  font-size: 0.9375rem;
}

.related-links-section .related-links {
  background: none;
  border: none;
  padding: 0;
}

.related-links-section .related-links li {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.related-links-section .related-links a {
  font-size: 0.875rem;
  font-weight: 600;
}

/* ============================================================
   PAGES — 404 页
   ============================================================ */
.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  flex: 1;
}

.error-section {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 0;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: #8b5a2b;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-section h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-desc {
  color: #6b5b4e;
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.error-btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background-color: #8b5a2b;
  color: #fff8f0;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid #8b5a2b;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #6b4420;
  color: #fff8f0;
}

.error-link {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background-color: transparent;
  color: #8b5a2b;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid #8b5a2b;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-link:hover {
  background-color: #8b5a2b;
  color: #fff8f0;
}

.error-tip {
  font-size: 0.875rem;
  color: #8b5a2b;
}

/* ============================================================
   RESPONSIVE — 响应式断点
   ============================================================ */
/* 平板 768-1024px */
@media (max-width: 1024px) {
  .update-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
  }

  .ranking-item:nth-child(4),
  .ranking-item:nth-child(5) {
    display: none;
  }

  .category-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .points-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机 767px 以下 */
@media (max-width: 767px) {
  /* 页头 */
  .header-inner {
    min-height: 60px;
    padding: 0 1rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    width: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
  }

  /* 通用内页 */
  .inner-main {
    padding: 1rem 1rem 2rem;
  }

  .home-main {
    padding: 0 1rem;
  }

  .page-title {
    font-size: 1.375rem;
  }

  .breadcrumb {
    margin-bottom: 1rem;
  }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
  }

  .hero-title {
    font-size: 1.625rem;
  }

  .hero-figure img {
    height: 220px;
  }

  /* 分类标签 */
  .category-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
  }

  .tag-item {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* 更新列表 */
  .update-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .update-item img {
    height: 140px;
  }

  /* 榜单 */
  .ranking-section {
    padding: 1.25rem;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .ranking-item:nth-child(4),
  .ranking-item:nth-child(5) {
    display: block;
  }

  .rank-cover img {
    height: 140px;
  }

  /* 指南卡片 */
  .guide-cards {
    grid-template-columns: 1fr;
  }

  /* 分类页 */
  .category-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card-figure .card-img {
    height: 180px;
  }

  /* 指南页 */
  .step-item {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }

  .step-num {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }

  .tips-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-card img {
    height: 140px;
  }

  /* 作品列表页 */
  .work-item {
    flex-direction: column;
    padding: 1rem;
  }

  .work-cover {
    width: 100%;
  }

  .work-cover img {
    width: 100%;
    height: 200px;
  }

  .work-reason {
    margin-top: 0.5rem;
  }

  .points-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .reason-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* 页脚 */
  .footer-inner {
    padding: 2rem 1rem 1.25rem;
    gap: 1.5rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.375rem;
  }

  /* 404 */
  .error-main {
    padding: 2rem 1rem;
  }

  .error-code {
    font-size: 3rem;
  }
}

/* 小屏手机 390px */
@media (max-width: 390px) {
  .brand-name {
    font-size: 1.125rem;
  }

  .brand-slogan {
    font-size: 0.6875rem;
  }

  .hero-title {
    font-size: 1.4375rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .update-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  .update-item img {
    height: 120px;
  }

  .ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
  }

  .rank-cover img {
    height: 120px;
  }
}
