/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3e2f1c;
  background-color: #f5f0e8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #b85c3f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e07a5f;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
  color: #3e2f1c;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e8dfd0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3e2f1c;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #8a7a63;
}

.site-nav .nav-list {
  display: flex;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3e2f1c;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: #f5f0e8;
  color: #b85c3f;
}

.nav-link.is-current {
  color: #b85c3f;
  font-weight: 700;
  background-color: #f5f0e8;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #3e2f1c;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: #8a7a63;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #8a7a63;
}

.breadcrumb a:hover {
  color: #b85c3f;
}

.breadcrumb-sep {
  color: #c4b8a4;
}

.breadcrumb-current {
  color: #3e2f1c;
  font-weight: 500;
}

.page-header {
  margin-bottom: 36px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #6b5d4a;
  max-width: 760px;
  margin-bottom: 0;
}

/* ==========================================================================
   Components
   ========================================================================== */

.section-heading {
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 6px;
}

.section-desc {
  font-size: 0.95rem;
  color: #6b5d4a;
  max-width: 720px;
  margin-bottom: 0;
}

.section-intro {
  font-size: 1rem;
  color: #6b5d4a;
  max-width: 760px;
  margin-bottom: 1.5em;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background-color: #e07a5f;
  color: #ffffff;
  border: 2px solid #e07a5f;
}

.btn-primary:hover {
  background-color: #c96a50;
  border-color: #c96a50;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #3e2f1c;
  border: 2px solid #3e2f1c;
}

.btn-outline:hover {
  background-color: #3e2f1c;
  color: #ffffff;
}

/* Category tag */

.category-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b85c3f;
  background-color: #f5e8dc;
  border-radius: 999px;
}

/* ==========================================================================
   Pages - Home
   ========================================================================== */

/* Hero */

.hero-section {
  position: relative;
  background-color: #3e2f1c;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  width: 100%;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  max-width: 640px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-lead {
  font-size: 1.1rem;
  color: #f0e6d8;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-actions .btn-outline:hover {
  background-color: #ffffff;
  color: #3e2f1c;
}

/* Categories nav */

.categories-nav-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 8px;
}

.category-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tags-list .category-tag {
  font-size: 0.9rem;
  padding: 8px 18px;
  background-color: #ffffff;
  border: 1px solid #e0d5c3;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.category-tags-list .category-tag:hover {
  background-color: #e07a5f;
  color: #ffffff;
  border-color: #e07a5f;
}

/* Recent updates */

.recent-updates-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.update-group {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e8dfd0;
}

.update-date {
  font-size: 1rem;
  font-weight: 700;
  color: #3e2f1c;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8dc;
  margin-bottom: 16px;
}

.update-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.update-item:hover {
  background-color: #faf6ef;
}

.update-item img {
  width: 64px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3e2f1c;
  line-height: 1.4;
}

.update-status {
  font-size: 0.8rem;
  color: #8a7a63;
  display: inline-block;
}

/* Ranking */

.ranking-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ranking-item {
  counter-increment: none;
}

.ranking-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e8dfd0;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-card:hover {
  box-shadow: 0 4px 16px rgba(62, 47, 28, 0.08);
  transform: translateY(-2px);
}

.rank-number {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e07a5f;
  background-color: #f5f0e8;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ranking-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.ranking-content {
  padding-top: 4px;
}

.ranking-name {
  font-size: 1rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 6px;
}

.ranking-reason {
  font-size: 0.85rem;
  color: #6b5d4a;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Guide entry */

.guide-entry-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 8px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.guide-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #e8dfd0;
  display: block;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 4px 16px rgba(62, 47, 28, 0.08);
  transform: translateY(-2px);
}

.guide-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 8px;
}

.guide-card-text {
  font-size: 0.9rem;
  color: #6b5d4a;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Featured topics */

.featured-topics-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

.topic-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.topic-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #e8dfd0;
  display: block;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 16px rgba(62, 47, 28, 0.08);
  transform: translateY(-2px);
}

.topic-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 8px;
}

.topic-card-text {
  font-size: 0.9rem;
  color: #6b5d4a;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   Pages - Categories
   ========================================================================== */

.layout-shell {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.layout-shell.sidebar-left {
  flex-direction: row;
}

.layout-shell .sidebar {
  width: 280px;
  flex-shrink: 0;
}

.layout-shell .main-content {
  flex: 1;
  min-width: 0;
}

.sidebar-inner {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8dfd0;
  padding: 20px;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3e2f1c;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8dc;
  margin-bottom: 16px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-list a {
  display: block;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: #3e2f1c;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-list a:hover {
  background-color: #f5f0e8;
  color: #b85c3f;
}

.sidebar-figure {
  margin: 20px 0 0;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.sidebar-figure figcaption {
  font-size: 0.8rem;
  color: #8a7a63;
  padding: 10px 12px;
  background-color: #faf6ef;
  line-height: 1.5;
}

.category-section {
  margin-bottom: 40px;
}

.category-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 6px;
}

.category-section-desc {
  font-size: 0.95rem;
  color: #6b5d4a;
  margin-bottom: 20px;
}

.category-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e8dfd0;
  margin-bottom: 14px;
  transition: box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(62, 47, 28, 0.08);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.category-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 0;
}

.category-card-text {
  font-size: 0.9rem;
  color: #6b5d4a;
  line-height: 1.6;
  margin-bottom: 10px;
}

.category-card-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.category-detail-section {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #e8dfd0;
}

.category-detail-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 12px;
}

.category-detail-text {
  font-size: 0.92rem;
  color: #6b5d4a;
  line-height: 1.7;
  margin-bottom: 12px;
}

.category-detail-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Pages - Guide
   ========================================================================== */

.guide-layout {
  max-width: 900px;
}

.guide-section {
  margin-bottom: 40px;
}

.guide-section .section-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e8dfd0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e07a5f;
  background-color: #f5e8dc;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 6px;
}

.step-text {
  font-size: 0.9rem;
  color: #6b5d4a;
  line-height: 1.7;
  margin-bottom: 0;
}

.step-text a {
  font-weight: 500;
}

.guide-figure {
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.guide-figure figcaption {
  font-size: 0.85rem;
  color: #8a7a63;
  padding: 10px 14px;
  background-color: #ffffff;
  border: 1px solid #e8dfd0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  line-height: 1.5;
}

.guide-related {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e8dfd0;
  margin-top: 32px;
}

.related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 12px;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.related-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #3e2f1c;
  transition: color 0.2s ease;
}

.related-links a:hover {
  color: #b85c3f;
}

/* Tip grid */

.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tip-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #e8dfd0;
}

.tip-title {
  font-size: 1rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 8px;
}

.tip-text {
  font-size: 0.88rem;
  color: #6b5d4a;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   Pages - Romance / Action
   ========================================================================== */

.editorial-section {
  margin-bottom: 40px;
}

.editorial-section .section-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.editorial-content p {
  font-size: 0.95rem;
  color: #6b5d4a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.editorial-content p:last-child {
  margin-bottom: 0;
}

.editorial-text {
  font-size: 0.95rem;
  color: #6b5d4a;
  line-height: 1.8;
  margin-bottom: 14px;
}

.editorial-text:last-child {
  margin-bottom: 0;
}

.works-section {
  margin-bottom: 40px;
}

.works-section .section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.work-group {
  margin-bottom: 28px;
}

.work-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3e2f1c;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0e8dc;
  margin-bottom: 14px;
}

.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.work-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8dfd0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  box-shadow: 0 4px 16px rgba(62, 47, 28, 0.08);
  transform: translateY(-2px);
}

.work-cover {
  margin: 0;
  overflow: hidden;
}

.work-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-info {
  padding: 16px 18px;
}

.work-name {
  font-size: 1rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 6px;
}

.work-tags {
  font-size: 0.8rem;
  color: #b85c3f;
  margin-bottom: 8px;
}

.work-desc {
  font-size: 0.85rem;
  color: #6b5d4a;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Action page work card */

.work-media {
  overflow: hidden;
}

.work-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-title {
  font-size: 1rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 6px;
}

/* Related section */

.related-section {
  margin-bottom: 40px;
}

.related-section .section-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.related-intro {
  font-size: 0.92rem;
  color: #6b5d4a;
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.related-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0e8dc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.related-item:last-child {
  border-bottom: none;
}

.related-item a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #3e2f1c;
}

.related-item a:hover {
  color: #b85c3f;
}

.related-item span {
  font-size: 0.8rem;
  color: #8a7a63;
  flex-shrink: 0;
}

/* ==========================================================================
   Pages - Action layout (sidebar right)
   ========================================================================== */

.page-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.page-layout .main-content {
  flex: 1;
  min-width: 0;
}

.page-layout .sidebar {
  width: 280px;
  flex-shrink: 0;
}

.sidebar-card {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e8dfd0;
  padding: 20px;
}

.sidebar-card .sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3e2f1c;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0e8dc;
  margin-bottom: 16px;
}

.sidebar-card .sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-card .sidebar-list a {
  display: block;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: #3e2f1c;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-card .sidebar-list a:hover {
  background-color: #f5f0e8;
  color: #b85c3f;
}

/* ==========================================================================
   Pages - 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 60vh;
}

.error-panel {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background-color: #ffffff;
  border-radius: 8px;
  padding: 48px 40px;
  border: 1px solid #e8dfd0;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: #e07a5f;
  margin-bottom: 8px;
  line-height: 1;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3e2f1c;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 0.95rem;
  color: #6b5d4a;
  margin-bottom: 20px;
}

.error-home-link {
  display: inline-block;
  padding: 10px 24px;
  background-color: #e07a5f;
  color: #ffffff;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 28px;
  transition: background-color 0.2s ease;
}

.error-home-link:hover {
  background-color: #c96a50;
  color: #ffffff;
}

.error-suggest {
  text-align: left;
  border-top: 1px solid #f0e8dc;
  padding-top: 20px;
}

.error-suggest-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3e2f1c;
  margin-bottom: 10px;
}

.error-suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.error-suggest-list a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: #3e2f1c;
  background-color: #f5f0e8;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.error-suggest-list a:hover {
  background-color: #e07a5f;
  color: #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #3e2f1c;
  color: #d8ccba;
  padding: 48px 20px 24px;
}

.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 28px;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: #b8a994;
  max-width: 480px;
  margin-bottom: 0;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.footer-links-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-link-list a {
  font-size: 0.85rem;
  color: #b8a994;
  transition: color 0.2s ease;
}

.footer-link-list a:hover {
  color: #ffffff;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #8a7a63;
  margin-bottom: 0;
  text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-shell {
    gap: 24px;
  }

  .layout-shell .sidebar {
    width: 240px;
  }

  .page-layout {
    gap: 24px;
  }

  .page-layout .sidebar {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .header-shell {
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e8dfd0;
    box-shadow: 0 4px 12px rgba(62, 47, 28, 0.08);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-list {
    flex-direction: column;
    padding: 12px 20px;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .hero-section {
    min-height: 360px;
  }

  .hero-content {
    padding: 60px 20px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .update-items {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .topic-cards {
    grid-template-columns: 1fr;
  }

  .layout-shell {
    flex-direction: column;
  }

  .layout-shell.sidebar-left {
    flex-direction: column;
  }

  .layout-shell .sidebar {
    width: 100%;
    order: 2;
  }

  .layout-shell .main-content {
    width: 100%;
    order: 1;
  }

  .page-layout {
    flex-direction: column;
  }

  .page-layout .main-content {
    width: 100%;
    order: 1;
  }

  .page-layout .sidebar {
    width: 100%;
    order: 2;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .tip-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-group {
    grid-template-columns: 1fr 1fr;
  }

  .error-panel {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .header-shell {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-slogan {
    font-size: 0.7rem;
  }

  .inner-main {
    padding: 24px 16px 40px;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-card img {
    height: 160px;
  }

  .update-item {
    flex-direction: row;
  }

  .update-item img {
    width: 56px;
    height: 76px;
  }

  .step-card {
    flex-direction: column;
    gap: 10px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .error-code {
    font-size: 3rem;
  }
}
