/* ==========================================================================
   base — 全站基础样式
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body,
.site-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.75;
  color: #2c2c2c;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2c2c2c;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #d4a373;
}

ul,
ol {
  list-style: none;
}

.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 #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c2c2c;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #8a8a8a;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  color: #2c2c2c;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background-color: #f5f5f5;
  color: #d4a373;
}

.nav-list a.is-current {
  color: #d4a373;
  font-weight: 600;
  background-color: rgba(212, 163, 115, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #2c2c2c;
  border-radius: 2px;
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #8a8a8a;
  margin-bottom: 28px;
}

.breadcrumb a {
  color: #8a8a8a;
}

.breadcrumb a:hover {
  color: #d4a373;
}

.breadcrumb-sep {
  color: #c0c0c0;
}

.breadcrumb-current {
  color: #2c2c2c;
  font-weight: 500;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e8e8e8;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.page-description {
  font-size: 1rem;
  color: #8a8a8a;
  max-width: 760px;
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e8e8e8;
  padding: 48px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-site-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.footer-slogan {
  font-size: 0.875rem;
  color: #8a8a8a;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: #8a8a8a;
}

.footer-col ul a:hover {
  color: #d4a373;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #8a8a8a;
}

/* ==========================================================================
   components — 通用组件
   ========================================================================== */

/* 首页按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background-color: #d4a373;
  color: #ffffff;
  border: 1px solid #d4a373;
}

.btn-primary:hover {
  background-color: #c08d5c;
  border-color: #c08d5c;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: #2c2c2c;
  border: 1px solid #d4a373;
}

.btn-secondary:hover {
  background-color: rgba(212, 163, 115, 0.08);
  color: #d4a373;
}

/* 区块头通用 */
.section-header {
  margin-bottom: 28px;
}

.section-header h2,
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 8px;
  line-height: 1.4;
}

.section-desc {
  font-size: 0.9375rem;
  color: #8a8a8a;
  max-width: 720px;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* hero 区 */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #2c2c2c;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.0625rem;
  color: #8a8a8a;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8e8e8;
}

.hero-figure img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* 题材分类导航带 */
.category-strip {
  padding: 48px 0;
  border-top: 1px solid #e8e8e8;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tags .tag {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.9375rem;
  color: #2c2c2c;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease,
    background-color 0.2s ease;
}

.category-tags .tag:hover {
  border-color: #d4a373;
  color: #d4a373;
  background-color: rgba(212, 163, 115, 0.04);
}

/* 最近更新 */
.updates-section {
  padding: 48px 0;
  border-top: 1px solid #e8e8e8;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.update-item:hover {
  border-color: #d4a373;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.item-cover {
  flex-shrink: 0;
  width: 88px;
  height: 118px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-tag {
  font-size: 0.8125rem;
  color: #d4a373;
  margin-bottom: 4px;
}

.item-status {
  font-size: 0.8125rem;
  color: #8a8a8a;
}

/* 人气榜单 */
.ranking-section {
  padding: 48px 0;
  border-top: 1px solid #e8e8e8;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  border-color: #d4a373;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #d4a373;
  background-color: rgba(212, 163, 115, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
  line-height: 1.4;
}

.rank-reason {
  font-size: 0.8125rem;
  color: #8a8a8a;
  line-height: 1.6;
}

/* 阅读指南 */
.guide-section {
  padding: 48px 0;
  border-top: 1px solid #e8e8e8;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  border-color: #d4a373;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.guide-card .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.guide-card .card-text {
  font-size: 0.9375rem;
  color: #8a8a8a;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.guide-card .card-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #d4a373;
}

.guide-card .card-link:hover {
  color: #c08d5c;
}

/* 长尾推荐预告 */
.longtail-section {
  padding: 48px 0;
  border-top: 1px solid #e8e8e8;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.topic-card {
  display: block;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.topic-card:hover {
  border-color: #d4a373;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.topic-card .topic-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.topic-card .topic-desc {
  font-size: 0.9375rem;
  color: #8a8a8a;
  line-height: 1.7;
}

/* ==========================================================================
   pages — 分类页
   ========================================================================== */

.category-overview {
  margin-bottom: 48px;
}

.category-overview .section-title {
  margin-bottom: 16px;
}

.category-overview > p {
  font-size: 0.9375rem;
  color: #8a8a8a;
  margin-bottom: 24px;
  max-width: 760px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.overview-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.overview-item:hover {
  border-color: #d4a373;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.overview-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.overview-item p {
  font-size: 0.875rem;
  color: #8a8a8a;
  line-height: 1.6;
  margin-bottom: 12px;
}

.overview-item a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #d4a373;
}

.category-list-section {
  margin-bottom: 48px;
}

.category-list-section .section-title {
  margin-bottom: 16px;
}

.category-list-section > p {
  font-size: 0.9375rem;
  color: #8a8a8a;
  margin-bottom: 24px;
  max-width: 760px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.category-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-item:hover {
  border-color: #d4a373;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.category-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.category-text p {
  font-size: 0.875rem;
  color: #8a8a8a;
  line-height: 1.6;
  margin-bottom: 12px;
}

.category-text a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #d4a373;
}

.category-guide-note {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 32px;
  margin-bottom: 48px;
}

.category-guide-note .section-title {
  margin-bottom: 16px;
}

.category-guide-note p {
  font-size: 0.9375rem;
  color: #8a8a8a;
  line-height: 1.7;
  margin-bottom: 12px;
  max-width: 800px;
}

.category-guide-note p:last-child {
  margin-bottom: 0;
}

.category-visual {
  margin-bottom: 0;
}

.category-visual .section-title {
  margin-bottom: 16px;
}

.category-visual > p {
  font-size: 0.9375rem;
  color: #8a8a8a;
  margin-bottom: 24px;
  max-width: 760px;
}

.category-figure {
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8e8e8;
  margin-bottom: 20px;
}

.category-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.category-figure figcaption {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #8a8a8a;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-top: none;
}

/* ==========================================================================
   pages — 阅读指南页
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.page-main {
  min-width: 0;
}

.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
  line-height: 1.4;
}

.content-section p {
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-media {
  border-radius: 8px;
  overflow: hidden;
  background-color: #e8e8e8;
  margin-bottom: 20px;
}

.content-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.content-media figcaption {
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: #8a8a8a;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-top: none;
}

.content-media-inline {
  margin: 24px 0;
}

.guide-block {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 24px;
  margin-bottom: 16px;
}

.guide-block h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.guide-block p {
  font-size: 0.875rem;
  color: #8a8a8a;
  line-height: 1.7;
  margin-bottom: 0;
}

.related-links {
  margin-top: 16px;
}

.related-links li {
  margin-bottom: 12px;
}

.related-links a {
  font-size: 0.9375rem;
  color: #d4a373;
}

.related-links a:hover {
  color: #c08d5c;
}

.page-aside {
  position: sticky;
  top: 96px;
}

.aside-block {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 24px;
  margin-bottom: 20px;
}

.aside-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.aside-links li {
  margin-bottom: 12px;
}

.aside-links li:last-child {
  margin-bottom: 0;
}

.aside-links a {
  font-size: 0.875rem;
  color: #8a8a8a;
  line-height: 1.6;
}

.aside-links a:hover {
  color: #d4a373;
}

/* ==========================================================================
   pages — 恋爱/热血推荐页
   ========================================================================== */

.recommend-section,
.hot-blood-list,
.reason-section,
.recommend-reasons,
.related-section {
  margin-bottom: 48px;
}

.recommend-section .section-title,
.hot-blood-list .section-title,
.reason-section .section-title,
.recommend-reasons .section-title,
.related-section .section-title {
  margin-bottom: 12px;
}

.recommend-section .section-desc,
.hot-blood-list .section-desc,
.reason-section .section-desc,
.recommend-reasons .section-desc,
.related-section .section-desc {
  margin-bottom: 24px;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recommend-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recommend-card:hover {
  border-color: #d4a373;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card-figure {
  border-radius: 0;
  overflow: hidden;
  background-color: #e8e8e8;
}

.card-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-media {
  border-radius: 0;
  overflow: hidden;
  background-color: #e8e8e8;
}

.card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.875rem;
  color: #8a8a8a;
  line-height: 1.7;
  margin-bottom: 12px;
}

.card-reason {
  font-size: 0.8125rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 0;
}

.card-reason strong {
  color: #d4a373;
  font-weight: 600;
}

.card-tags {
  font-size: 0.8125rem;
  color: #d4a373;
  margin-bottom: 8px;
}

/* 热血页卡片结构：图片在上，文字在下方独立 */
.hot-blood-list .recommend-card {
  padding: 0;
}

.hot-blood-list .card-title,
.hot-blood-list .card-tags,
.hot-blood-list .card-desc,
.hot-blood-list .card-reason {
  padding-left: 20px;
  padding-right: 20px;
}

.hot-blood-list .card-title {
  padding-top: 20px;
  margin-bottom: 8px;
}

.hot-blood-list .card-tags {
  margin-bottom: 8px;
}

.hot-blood-list .card-desc {
  margin-bottom: 12px;
}

.hot-blood-list .card-reason {
  padding-bottom: 20px;
}

.reason-list,
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reason-item {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  padding: 24px;
}

.reason-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.reason-item p {
  font-size: 0.875rem;
  color: #8a8a8a;
  line-height: 1.7;
  margin-bottom: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.related-links a {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.875rem;
  color: #2c2c2c;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links a:hover {
  border-color: #d4a373;
  color: #d4a373;
}

/* ==========================================================================
   pages — 404 页
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 20px;
}

.error-panel {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: #d4a373;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 0.9375rem;
  color: #8a8a8a;
  line-height: 1.7;
  margin-bottom: 32px;
}

.error-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #d4a373;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #c08d5c;
  color: #ffffff;
}

/* ==========================================================================
   responsive — 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-figure img {
    height: 300px;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .recommend-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: block;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid #f5f5f5;
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    padding: 14px 8px;
    font-size: 0.9375rem;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-cards,
  .topic-cards {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .category-list {
    grid-template-columns: 1fr;
  }

  .category-figure img {
    height: 220px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-aside {
    position: static;
    margin-top: 0;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }

  .reason-list,
  .reason-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .section-header h2,
  .section-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

  .brand-slogan {
    font-size: 0.6875rem;
  }

  .inner-main,
  .home-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-section {
    padding: 40px 0 32px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-lead {
    font-size: 0.9375rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .hero-figure img {
    height: 220px;
  }

  .category-tags {
    gap: 8px;
  }

  .category-tags .tag {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .update-item {
    flex-direction: row;
    padding: 12px;
  }

  .item-cover {
    width: 76px;
    height: 102px;
  }

  .ranking-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ranking-item {
    padding: 16px;
  }

  .rank-num {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }

  .rank-title {
    font-size: 0.875rem;
  }

  .rank-reason {
    font-size: 0.75rem;
  }

  .guide-card,
  .topic-card {
    padding: 20px;
  }

  .overview-item,
  .category-item,
  .category-guide-note {
    padding: 20px;
  }

  .category-figure img {
    height: 180px;
  }

  .content-media img {
    height: 200px;
  }

  .guide-block {
    padding: 20px;
  }

  .aside-block {
    padding: 20px;
  }

  .card-figure img,
  .card-media img {
    height: 180px;
  }

  .card-body {
    padding: 16px;
  }

  .hot-blood-list .card-title,
  .hot-blood-list .card-tags,
  .hot-blood-list .card-desc,
  .hot-blood-list .card-reason {
    padding-left: 16px;
    padding-right: 16px;
  }

  .reason-item {
    padding: 20px;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-panel h1 {
    font-size: 1.25rem;
  }
}
