/* ==========================================================================
   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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #2b2b2b;
  background-color: #f5f5f5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #2b2b2b;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c9a86a;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.4;
  color: #2b2b2b;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2b2b2b;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #8a8a8a;
}

.site-nav .nav-list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav .nav-list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: #4a4a4a;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav .nav-list a:hover {
  color: #c9a86a;
  border-bottom-color: #c9a86a;
}

.site-nav .nav-list a.is-current {
  color: #2b2b2b;
  border-bottom-color: #c9a86a;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #2b2b2b;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #e8e8e8;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b2b2b;
  margin-bottom: 0.75rem;
}

.footer-brand p:not(.footer-logo) {
  font-size: 0.875rem;
  color: #6b6b6b;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer-col h3 {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  color: #2b2b2b;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  font-size: 0.875rem;
  color: #6b6b6b;
}

.footer-col ul a:hover {
  color: #c9a86a;
}

.footer-bottom {
  border-top: 1px solid #e8e8e8;
  padding-top: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 1.25rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #8a8a8a;
  margin-bottom: 0;
}

/* 内页骨架 */

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  color: #8a8a8a;
}

.breadcrumb a {
  color: #6b6b6b;
}

.breadcrumb a:hover {
  color: #c9a86a;
}

.breadcrumb-current {
  color: #2b2b2b;
}

.page-header {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.page-description {
  font-size: 1rem;
  color: #6b6b6b;
  max-width: 720px;
  margin-bottom: 0;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* 通用 section 头 */

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.section-head p {
  font-size: 0.9375rem;
  color: #6b6b6b;
  max-width: 640px;
  margin: 0 auto;
}

.section-desc {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 2rem;
  max-width: 720px;
}

/* 题材标签 */

.category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.category-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #4a4a4a;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.category-tag:hover {
  background-color: #c9a86a;
  border-color: #c9a86a;
  color: #ffffff;
}

/* 首页 hero */

.hero-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
}

.hero-section > div {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.0625rem;
  color: #6b6b6b;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-tags {
  display: flex;
  gap: 0.75rem;
}

.tag-link {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  background-color: #2b2b2b;
  color: #ffffff;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.tag-link:hover {
  background-color: #c9a86a;
  color: #ffffff;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* 策展推荐 */

.curated-section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.curated-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.curated-card {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.curated-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.curated-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.curated-info {
  padding: 1.5rem;
}

.curated-info h3 {
  margin-bottom: 0.5rem;
}

.curated-info p {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

/* 分类导航区 */

.category-nav-section {
  padding: 4rem 1.25rem;
  background-color: #ffffff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.category-nav-section .section-head {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category-nav-section .category-tags {
  max-width: 1200px;
  margin: 0 auto;
}

/* 最近更新 */

.recent-updates-section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.update-group {
  margin-bottom: 2.5rem;
}

.update-group h3 {
  font-size: 1.125rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e8e8e8;
  margin-bottom: 1.25rem;
}

.update-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.update-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0.75rem;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.update-item img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  padding: 0.25rem 0;
}

.update-info h4 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.update-status {
  display: inline-block;
  font-size: 0.75rem;
  color: #c9a86a;
  background-color: rgba(201, 168, 106, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 2px;
}

/* 人气榜单 */

.ranking-section {
  padding: 4rem 1.25rem;
  background-color: #ffffff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

.ranking-section .section-head {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ranking-list {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ranking-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  background-color: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1rem;
}

.rank-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9a86a;
  width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}

.ranking-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.rank-info h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.rank-info p {
  font-size: 0.8125rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

/* 阅读指南入口 */

.guide-entry-section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.guide-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  border-color: #c9a86a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.guide-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

/* 版权说明 */

.copyright-note {
  padding: 2rem 1.25rem;
  background-color: #ffffff;
  border-top: 1px solid #e8e8e8;
  text-align: center;
}

.copyright-note h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.copyright-note p {
  font-size: 0.8125rem;
  color: #8a8a8a;
  max-width: 720px;
  margin: 0 auto;
}

/* 相关链接 */

.related-links {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 0.875rem;
  color: #6b6b6b;
}

.related-links-item {
  font-size: 0.875rem;
  color: #4a4a4a;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 0.125rem;
}

.related-links-item:hover {
  color: #c9a86a;
  border-bottom-color: #c9a86a;
}

/* 面包屑分隔符 */

.breadcrumb-sep {
  color: #bdbdbd;
}

/* ==========================================================================
   Pages
   ========================================================================== */

/* ---------- 分类页（category.html） ---------- */

.category-index-module {
  margin-bottom: 3rem;
}

.category-index-module h2,
.category-detail-module h2 {
  margin-bottom: 0.5rem;
}

.category-tag-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.category-tag-list .category-tag {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tag-list .category-tag:hover {
  border-color: #c9a86a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  color: #2b2b2b;
}

.tag-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tag-desc {
  font-size: 0.8125rem;
  color: #8a8a8a;
  line-height: 1.5;
}

.category-detail-module {
  margin-bottom: 3rem;
}

.category-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.category-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.category-content h3 {
  margin-bottom: 0.75rem;
}

.category-content p {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0.5rem;
}

.guide-entry-block {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 2rem;
}

.guide-entry-block .section-desc {
  margin-bottom: 1.5rem;
}

.guide-entry-block .section-desc a {
  color: #c9a86a;
  border-bottom: 1px solid #c9a86a;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.guide-cards .guide-card {
  padding: 1.25rem;
}

/* ---------- 阅读指南页（guide.html） ---------- */

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

.guide-section {
  margin-bottom: 3rem;
}

.guide-section h2 {
  margin-bottom: 0.75rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
}

.step-number {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  background-color: #c9a86a;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

.step-card p a {
  color: #c9a86a;
  border-bottom: 1px solid #c9a86a;
}

.section-note {
  font-size: 0.875rem;
  color: #6b6b6b;
  background-color: #fafafa;
  border-left: 3px solid #c9a86a;
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
}

.section-note a {
  color: #c9a86a;
  border-bottom: 1px solid #c9a86a;
}

.guide-media {
  margin: 2rem 0;
}

.guide-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.guide-media figcaption {
  font-size: 0.8125rem;
  color: #8a8a8a;
  text-align: center;
  padding: 0.5rem 0 0;
}

.guide-section .tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.tip-card {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem;
}

.tip-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.tip-card p {
  font-size: 0.8125rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

.related-links {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
}

.related-links h2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.related-links ul li {
  margin-bottom: 0.75rem;
}

.related-links ul a {
  font-size: 0.875rem;
  color: #4a4a4a;
}

.related-links ul a:hover {
  color: #c9a86a;
}

/* ---------- 恋爱漫画页（romance.html） ---------- */

.content-section {
  margin-bottom: 3rem;
}

.content-section h2 {
  margin-bottom: 0.75rem;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.type-card {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem;
}

.type-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.type-card p {
  font-size: 0.8125rem;
  color: #6b6b6b;
  margin-bottom: 0;
  line-height: 1.6;
}

.recommend-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.recommend-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem;
  align-items: flex-start;
}

.recommend-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.media-figure figcaption {
  font-size: 0.75rem;
  color: #8a8a8a;
  text-align: center;
  padding-top: 0.25rem;
}

.recommend-body h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.recommend-body p {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  border-color: #c9a86a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.related-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.related-card p {
  font-size: 0.8125rem;
  color: #6b6b6b;
  margin-bottom: 0;
}

/* ---------- 热血漫画页（action.html） ---------- */

.genre-intro {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.genre-intro h2 {
  margin-bottom: 1rem;
}

.genre-intro p {
  font-size: 0.9375rem;
  color: #4a4a4a;
  margin-bottom: 0.75rem;
  max-width: 780px;
}

.genre-intro p:last-child {
  margin-bottom: 0;
}

.recommend-list .recommend-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.card-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

.card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 0.5rem;
}

.card-body p:last-child {
  margin-bottom: 0;
}

.inner-links {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.inner-links p {
  font-size: 0.875rem;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
}

.inner-links p:last-child {
  margin-bottom: 0;
}

.inner-links a {
  color: #c9a86a;
  border-bottom: 1px solid #c9a86a;
  margin-right: 0.75rem;
}

/* ---------- 404 页 ---------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 3rem 1.25rem;
}

.error-section {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  color: #c9a86a;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.error-section h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 0.9375rem;
  color: #6b6b6b;
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-back,
.btn-category {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-back {
  background-color: #2b2b2b;
  color: #ffffff;
}

.btn-back:hover {
  background-color: #c9a86a;
  color: #ffffff;
}

.btn-category {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  color: #2b2b2b;
}

.btn-category:hover {
  border-color: #c9a86a;
  color: #c9a86a;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .category-tag-list {
    grid-template-columns: 1fr 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .type-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .related-links {
    margin-top: 2rem;
  }
}

@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);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list li {
    width: 100%;
  }

  .site-nav .nav-list a {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
  }

  .site-nav .nav-list a.is-current {
    border-bottom-color: #f0f0f0;
    color: #c9a86a;
  }

  .hero-section > div {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .curated-grid {
    grid-template-columns: 1fr;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .category-item {
    grid-template-columns: 1fr;
  }

  .category-media img {
    max-width: 240px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .recommend-list {
    grid-template-columns: 1fr;
  }

  .recommend-item {
    grid-template-columns: 1fr;
  }

  .recommend-media img {
    max-width: 200px;
  }

  .recommend-list .recommend-card {
    grid-template-columns: 1fr;
  }

  .card-media img {
    max-width: 200px;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 1rem;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .brand-slogan {
    font-size: 0.6875rem;
  }

  .hero-section > div {
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-tags {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tag-link {
    text-align: center;
  }

  .curated-section,
  .recent-updates-section,
  .ranking-section,
  .guide-entry-section {
    padding: 3rem 1rem;
  }

  .category-nav-section {
    padding: 3rem 1rem;
  }

  .section-head h2 {
    font-size: 1.375rem;
  }

  .update-item {
    flex-direction: row;
  }

  .update-item img {
    width: 60px;
    height: 80px;
  }

  .ranking-item {
    padding: 0.75rem;
  }

  .ranking-item img {
    width: 52px;
    height: 68px;
  }

  .rank-number {
    font-size: 1.25rem;
    width: 2rem;
  }

  .inner-main {
    padding: 0 1rem 2.5rem;
  }

  .page-header {
    padding: 0.75rem 0 1.5rem;
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 1.375rem;
  }

  .category-tag-list {
    grid-template-columns: 1fr;
  }

  .type-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .guide-cards .guide-card {
    padding: 1.25rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-back,
  .btn-category {
    width: 100%;
    max-width: 240px;
    text-align: center;
  }
}
