/* ============================================================
   《巨人先生超级可爱》漫画免费 · 整站样式
   视觉方向：研究报告风 · 浅灰背景 / 深色文字 / 蓝色点缀
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ---------- 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", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f5f6f8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #217dbb;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  color: #2c3e50;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 0.75rem;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 0.875rem;
  color: #7f8c8d;
  line-height: 1.5;
  margin-top: 0.375rem;
}

/* ---------- layout / 全局骨架 ---------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e8ec;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  white-space: nowrap;
}

.brand-logo:hover {
  color: #2c3e50;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  align-items: center;
  gap: 0.375rem;
  color: #2c3e50;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #2c3e50;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #2c3e50;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle-text {
  font-size: 0.875rem;
}

.site-nav .nav-list {
  display: flex;
  gap: 0.25rem;
}

.site-nav .nav-list a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #2c3e50;
  font-weight: 500;
}

.site-nav .nav-list a:hover {
  background-color: #ecf0f1;
  color: #2c3e50;
}

.site-nav .nav-list a.is-current {
  background-color: #3498db;
  color: #ffffff;
}

/* 侧栏布局：aside 在前、main 在后 */

.site-home,
.site-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-layout,
.layout-shell {
  flex: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

/* 侧边栏 */

.sidebar,
.sidebar-nav {
  min-width: 0;
}

.sidebar-nav ul,
.sidebar ul {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 0.5rem;
}

.sidebar-nav li + li,
.sidebar li + li {
  border-top: 1px solid #f0f2f4;
}

.sidebar-nav a,
.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #2c3e50;
  font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar a:hover {
  background-color: #ecf0f1;
  color: #2c3e50;
}

.sidebar-nav a.is-current,
.sidebar a.is-current,
.sidebar-nav a.is-current-side,
.sidebar a.is-current-side {
  background-color: #3498db;
  color: #ffffff;
}

/* 主内容区 */

.site-main {
  min-width: 0;
}

.inner-main {
  max-width: 100%;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: #3498db;
}

.breadcrumb a:hover {
  color: #217dbb;
}

.breadcrumb-sep {
  color: #bdc3c7;
}

.breadcrumb-current {
  color: #7f8c8d;
  font-weight: 500;
}

/* 页面标题区 */

.page-header {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1rem;
  color: #5d6d7e;
  margin-bottom: 0;
  max-width: 720px;
}

/* 页脚 */

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e5e8ec;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: #5d6d7e;
  margin-bottom: 0.5rem;
}

.footer-brand p strong {
  display: block;
  font-size: 1.125rem;
  color: #2c3e50;
  margin-bottom: 0.375rem;
}

.footer-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.75rem;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #5d6d7e;
}

.footer-links a:hover {
  color: #3498db;
}

.copyright {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.5rem;
  font-size: 0.8125rem;
  color: #95a5a6;
  border-top: 1px solid #f0f2f4;
}

/* ---------- components / 通用卡片与模块 ---------- */

.section-desc,
.section-lead,
.section-intro {
  color: #5d6d7e;
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.section-link {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.section-link a {
  font-weight: 500;
}

/* 漫画封面卡通用约束 */

.hero-figure img,
.update-card img,
.ranking-card img,
.category-figure img,
.work-card img,
.update-cover img,
.ranking-cover img,
.guide-figure img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  background-color: #ecf0f1;
}

/* ---------- pages / 首页 ---------- */

.home-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* hero 区 */

.hero-section {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero-slogan {
  font-size: 1.25rem;
  font-weight: 600;
  color: #3498db;
  margin-bottom: 0.75rem;
}

.hero-desc {
  color: #5d6d7e;
  margin-bottom: 1.25rem;
}

.hero-cta {
  display: inline-block;
  background-color: #3498db;
  color: #ffffff;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
}

.hero-cta:hover {
  background-color: #217dbb;
  color: #ffffff;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid #f0f2f4;
  padding-top: 1.5rem;
}

.stat-item {
  text-align: center;
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 1rem 0.75rem;
}

.stat-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.875rem;
  color: #7f8c8d;
}

/* 题材分类导航带 */

.categories-section,
.updates-section,
.ranking-section,
.guide-section,
.feedback-section {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 1.75rem 2rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-tags li a {
  display: inline-block;
  background-color: #f5f6f8;
  border: 1px solid #e5e8ec;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #2c3e50;
}

.category-tags li a:hover {
  background-color: #3498db;
  border-color: #3498db;
  color: #ffffff;
}

/* 最近更新 */

.update-group + .update-group {
  margin-top: 1.5rem;
}

.update-group h3 {
  font-size: 1.0625rem;
  color: #5d6d7e;
  border-left: 3px solid #3498db;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.update-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.update-card {
  display: flex;
  gap: 1rem;
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 0.75rem;
}

.update-card img {
  width: 96px;
  height: 128px;
  flex-shrink: 0;
}

.update-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.update-info strong {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 0.375rem;
}

.update-info span {
  font-size: 0.8125rem;
  color: #7f8c8d;
}

/* 人气榜单预览 */

.ranking-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ranking-card {
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 0.875rem;
}

.ranking-card img {
  aspect-ratio: 3 / 4;
  margin-bottom: 0.75rem;
}

.ranking-info .rank-badge {
  display: inline-block;
  background-color: #3498db;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.ranking-info strong {
  display: block;
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 0.375rem;
}

.ranking-info p {
  font-size: 0.875rem;
  color: #5d6d7e;
  margin-bottom: 0;
}

/* 阅读指南入口 */

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.guide-card {
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 1.5rem;
}

.guide-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.9375rem;
  color: #5d6d7e;
  margin-bottom: 1rem;
}

.guide-card a {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* 版权与反馈 */

.feedback-section p {
  color: #5d6d7e;
  margin-bottom: 0.5rem;
}

.feedback-section p:last-child {
  margin-bottom: 0;
}

/* ---------- pages / 题材分类页 ---------- */

.category-list {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.category-item {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
}

.category-item + .category-item {
  border-top: 1px solid #f0f2f4;
}

.category-info {
  min-width: 0;
}

.category-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.9375rem;
  color: #5d6d7e;
  margin-bottom: 0;
}

.category-figure img {
  aspect-ratio: 3 / 2;
}

.category-works {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.work-card {
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 1.25rem;
}

.work-name {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.work-card p {
  font-size: 0.875rem;
  color: #5d6d7e;
  margin-bottom: 0;
}

.category-tip {
  font-size: 0.9375rem;
  color: #5d6d7e;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.category-tip a {
  font-weight: 500;
}

/* ---------- pages / 阅读指南页 ---------- */

.guide-section + .guide-section {
  margin-top: 1.5rem;
}

.steps-section,
.tips-section,
.faq-section,
.related-section {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 1.75rem 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.step-card {
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 1.5rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background-color: #3498db;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9375rem;
  color: #5d6d7e;
  margin-bottom: 0;
}

.tips-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.tip-item {
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 1.25rem;
}

.tip-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tip-item p {
  font-size: 0.875rem;
  color: #5d6d7e;
  margin-bottom: 0;
}

.guide-figure img {
  aspect-ratio: 16 / 7;
}

.faq-item {
  border-bottom: 1px solid #f0f2f4;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: #2c3e50;
  padding: 1rem 0;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 1.25rem;
  color: #3498db;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  font-size: 0.9375rem;
  color: #5d6d7e;
  padding-bottom: 1rem;
}

.related-section p {
  font-size: 0.9375rem;
  color: #5d6d7e;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.related-section a {
  font-weight: 500;
}

/* ---------- pages / 最近更新页 ---------- */

.update-list {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.update-list .update-group + .update-group {
  margin-top: 2rem;
}

.update-list .update-group h3 {
  font-size: 1.0625rem;
  color: #5d6d7e;
  border-left: 3px solid #3498db;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.update-list .update-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.update-item {
  display: flex;
  gap: 1rem;
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 0.75rem;
}

.update-cover {
  flex-shrink: 0;
  width: 80px;
}

.update-cover img {
  width: 80px;
  height: 106px;
}

.update-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.update-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.375rem;
}

.update-chapter {
  font-size: 0.875rem;
  color: #5d6d7e;
  margin-bottom: 0.25rem;
}

.update-status {
  display: inline-block;
  font-size: 0.8125rem;
  background-color: #ecf0f1;
  color: #5d6d7e;
  border-radius: 4px;
  padding: 0.1875rem 0.5rem;
  align-self: flex-start;
}

.update-date-note,
.follow-tips {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.update-date-note p {
  font-size: 0.9375rem;
  color: #5d6d7e;
}

.update-date-note a {
  font-weight: 500;
}

.follow-tips ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.follow-tips li {
  font-size: 0.9375rem;
  color: #5d6d7e;
  padding-left: 1.25rem;
  position: relative;
}

.follow-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background-color: #3498db;
  border-radius: 50%;
}

/* ---------- pages / 人气榜单页 ---------- */

.section-block {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.ranking-intro p {
  font-size: 0.9375rem;
  color: #5d6d7e;
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px 96px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
}

.ranking-item + .ranking-item {
  border-top: 1px solid #f0f2f4;
}

.ranking-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3498db;
  text-align: center;
}

.ranking-cover img {
  width: 96px;
  height: 128px;
}

.ranking-info {
  min-width: 0;
}

.ranking-title {
  font-size: 1.125rem;
  margin-bottom: 0.375rem;
}

.ranking-reason {
  font-size: 0.9375rem;
  color: #5d6d7e;
  margin-bottom: 0.5rem;
}

.ranking-link {
  font-weight: 600;
  font-size: 0.9375rem;
}

.recommend-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.recommend-item {
  background-color: #f5f6f8;
  border-radius: 6px;
  padding: 1.25rem;
}

.recommend-item-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.recommend-item-desc {
  font-size: 0.875rem;
  color: #5d6d7e;
  margin-bottom: 0;
}

.ranking-recommend > p:last-child {
  font-size: 0.9375rem;
  color: #5d6d7e;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.ranking-recommend > p:last-child a {
  font-weight: 500;
}

.ranking-notes p {
  font-size: 0.9375rem;
  color: #5d6d7e;
  margin-bottom: 0.5rem;
}

.ranking-notes p:last-child {
  margin-bottom: 0;
}

/* ---------- pages / 404 ---------- */

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.error-section {
  background-color: #ffffff;
  border: 1px solid #e5e8ec;
  border-radius: 8px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: #3498db;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-section h1 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.error-desc {
  color: #5d6d7e;
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-back,
.btn-link {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.btn-back {
  background-color: #3498db;
  color: #ffffff;
}

.btn-back:hover {
  background-color: #217dbb;
  color: #ffffff;
}

.btn-link {
  background-color: #f5f6f8;
  border: 1px solid #e5e8ec;
  color: #2c3e50;
}

.btn-link:hover {
  border-color: #3498db;
  color: #3498db;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.5rem;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 0.75rem 0.875rem;
  }

  .page-layout,
  .layout-shell {
    display: block;
    padding: 1rem 1rem 2rem;
  }

  .sidebar,
  .sidebar-nav {
    display: none;
  }

  .inner-main {
    padding: 0;
  }

  .hero-section,
  .categories-section,
  .updates-section,
  .ranking-section,
  .guide-section,
  .feedback-section,
  .category-list,
  .category-works,
  .steps-section,
  .tips-section,
  .faq-section,
  .related-section,
  .update-list,
  .update-date-note,
  .follow-tips,
  .section-block {
    padding: 1.25rem;
  }

  .page-header {
    padding: 1.25rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.625rem;
  }

  .update-items,
  .ranking-preview,
  .guide-cards,
  .works-grid,
  .steps-grid,
  .tips-list,
  .recommend-list {
    grid-template-columns: 1fr;
  }

  .category-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-figure img {
    max-width: 320px;
  }

  .ranking-item {
    grid-template-columns: 40px 80px 1fr;
    gap: 0.875rem;
  }

  .ranking-cover img {
    width: 80px;
    height: 106px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .follow-tips ul {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .update-card {
    flex-direction: row;
  }
}

@media (max-width: 390px) {
  .header-inner {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-logo {
    font-size: 1.0625rem;
  }

  .update-card img {
    width: 80px;
    height: 108px;
  }

  .update-item {
    flex-wrap: wrap;
  }

  .update-cover {
    width: 72px;
  }

  .update-cover img {
    width: 72px;
    height: 96px;
  }

  .ranking-item {
    grid-template-columns: 32px 72px 1fr;
    gap: 0.75rem;
  }

  .ranking-cover img {
    width: 72px;
    height: 96px;
  }

  .ranking-number {
    font-size: 1.25rem;
  }

  .error-section {
    padding: 2rem 1.25rem;
  }

  .error-code {
    font-size: 3rem;
  }
}
