/* ==========================================================================
   base / reset
   ========================================================================== */

*,
*::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", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1a1a1a;
  background-color: #ffffff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e63946;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a1a;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #e63946;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   layout / site shell
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #ffffff;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.brand-logo::after {
  content: "香蕉文化漫画";
}

.brand-mark {
  display: inline-block;
  width: 8px;
  height: 28px;
  background-color: #e63946;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover {
  color: #e63946;
  background-color: #faf5f5;
}

.nav-list a.is-current {
  color: #e63946;
  font-weight: 700;
}

.nav-list a.is-current::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background-color: #e63946;
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 4px;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #1a1a1a;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   layout / footer
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: #f5f5f5;
  border-top: 1px solid #e8e8e8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-brand .footer-logo {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 14px;
  font-weight: 500;
  color: #e63946;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: #666666;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul a {
  font-size: 14px;
  color: #666666;
}

.footer-group ul a:hover {
  color: #e63946;
}

.footer-bottom {
  border-top: 1px solid #e8e8e8;
  padding: 16px 24px;
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: #999999;
}

/* ==========================================================================
   layout / inner page shell
   ========================================================================== */

.inner-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 16px;
  font-size: 14px;
  color: #999999;
}

.breadcrumb a {
  color: #666666;
}

.breadcrumb a:hover {
  color: #e63946;
}

.breadcrumb-sep {
  color: #cccccc;
}

.breadcrumb-current {
  color: #333333;
  font-weight: 500;
}

.page-header {
  padding: 8px 0 32px;
  border-bottom: 2px solid #1a1a1a;
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.page-description {
  font-size: 16px;
  color: #666666;
  max-width: 720px;
  line-height: 1.8;
}

/* ==========================================================================
   components / section title
   ========================================================================== */

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 4px solid #e63946;
  line-height: 1.4;
}

.section-desc {
  font-size: 15px;
  color: #666666;
  max-width: 720px;
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ==========================================================================
   components / buttons
   ========================================================================== */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: #e63946;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #d32f3c;
  color: #ffffff;
}

.btn-secondary {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #dddddd;
}

.btn-secondary:hover {
  border-color: #e63946;
  color: #e63946;
}

/* ==========================================================================
   components / hero (home)
   ========================================================================== */

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-copy h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.hero-lead {
  font-size: 18px;
  font-weight: 600;
  color: #e63946;
}

.hero-desc {
  font-size: 16px;
  color: #555555;
  line-height: 1.8;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-figure {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   components / category tags (home)
   ========================================================================== */

.category-tags {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  background-color: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.tags-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tag-romance {
  background-color: #fce4ec;
  color: #c2185b;
}

.tag-action {
  background-color: #ffebee;
  color: #d32f2f;
}

.tag-work {
  background-color: #e3f2fd;
  color: #1565c0;
}

.tag-life {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.tag-description {
  font-size: 14px;
  color: #888888;
  text-align: center;
  margin-top: 12px;
}

/* ==========================================================================
   components / recent updates (home)
   ========================================================================== */

.recent-updates {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.update-group {
  margin-bottom: 32px;
}

.update-date {
  font-size: 16px;
  font-weight: 600;
  color: #666666;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eeeeee;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.update-item:hover {
  border-color: #e0e0e0;
  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 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-meta {
  font-size: 13px;
  color: #999999;
}

/* ==========================================================================
   components / ranking (home)
   ========================================================================== */

.ranking-preview {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  background-color: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.rank-number {
  font-size: 14px;
  font-weight: 800;
  color: #e63946;
  line-height: 1.4;
}

.ranking-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin: 8px 0;
}

.rank-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.rank-reason {
  font-size: 13px;
  color: #888888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-textonly {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.rank-textonly .rank-number {
  font-size: 16px;
}

.rank-textonly .rank-name {
  font-size: 14px;
}

/* ==========================================================================
   components / guide entry (home + tocai)
   ========================================================================== */

.guide-entry {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  padding: 28px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  border-color: #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.guide-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e63946;
}

.card-link:hover {
  color: #c2185b;
}

.guide-entry-desc {
  font-size: 15px;
  color: #666666;
  max-width: 720px;
  margin-bottom: 24px;
  line-height: 1.8;
}

.guide-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guide-entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #dddddd;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.guide-entry-link:hover {
  border-color: #e63946;
  color: #e63946;
}

/* ==========================================================================
   components / longtail preview (home)
   ========================================================================== */

.longtail-preview {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-card img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.feature-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.feature-content p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e63946;
  margin-top: auto;
}

.feature-link:hover {
  color: #c2185b;
}

/* ==========================================================================
   components / category grid (tocai)
   ========================================================================== */

.category-grid {
  padding: 40px 0 48px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.category-card-media {
  width: 100%;
  overflow: hidden;
}

.category-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-card-media img {
  transform: scale(1.03);
}

.category-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
}

.category-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.category-card-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.category-card-reason {
  font-size: 13px;
  color: #999999;
  line-height: 1.6;
}

.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e63946;
  margin-top: 8px;
}

.category-card-link:hover {
  color: #c2185b;
}

/* ==========================================================================
   components / category works (tocai)
   ========================================================================== */

.category-works {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.works-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-item {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.work-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.work-item-media {
  width: 100%;
  overflow: hidden;
}

.work-item-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-item-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
}

.work-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.work-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-item-tags .tag {
  min-height: 28px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #666666;
}

.work-item-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.work-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e63946;
  margin-top: 8px;
}

.work-item-link:hover {
  color: #c2185b;
}

/* ==========================================================================
   components / guide (guide page)
   ========================================================================== */

.guide-section {
  padding: 40px 0;
  border-bottom: 1px solid #f0f0f0;
}

.guide-section:last-of-type {
  border-bottom: none;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-step-card {
  padding: 24px;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.guide-step-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid #e63946;
}

.guide-step-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #e63946;
}

.text-link:hover {
  color: #c2185b;
}

.guide-figure {
  margin: 24px 0;
}

.guide-figure img {
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.page-guide .guide-section:last-of-type .guide-steps {
  grid-template-columns: repeat(2, 1fr);
}

.guide-tips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.guide-tip-item {
  padding: 16px 20px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.guide-tip-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.guide-tip-item p {
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
}

.guide-management {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
}

.guide-management-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-sub-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.guide-management-content p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.guide-management-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.guide-related {
  padding: 48px 0;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.related-link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background-color: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-link-card:hover {
  border-color: #e0e0e0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.related-link-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.related-link-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* ==========================================================================
   components / recommendation (lianai + rezhang)
   ========================================================================== */

.recommendation-section {
  padding: 40px 0;
}

.recommendation-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #f0f0f0;
}

.recommendation-item:last-child {
  border-bottom: none;
}

.recommendation-cover {
  flex-shrink: 0;
}

.recommendation-cover figure {
  width: 160px;
}

.recommendation-cover img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.recommendation-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.recommendation-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.recommendation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommendation-tags .tag {
  min-height: 28px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #666666;
}

.recommendation-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.recommendation-point {
  font-size: 14px;
  color: #333333;
  line-height: 1.7;
}

.recommendation-point strong {
  color: #e63946;
  font-weight: 700;
}

/* ==========================================================================
   components / analysis (lianai)
   ========================================================================== */

.analysis-section {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.analysis-card {
  padding: 24px;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.analysis-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid #e63946;
}

.analysis-card p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.analysis-card em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: #999999;
  margin-top: 4px;
}

.extended-reading {
  padding: 48px 0;
}

.extended-reading p {
  font-size: 14px;
  color: #666666;
  line-height: 2;
}

.extended-reading a {
  color: #e63946;
  font-weight: 500;
  margin-right: 16px;
}

.extended-reading a:hover {
  color: #c2185b;
  text-decoration: underline;
}

/* ==========================================================================
   components / recommendation list (rezhang)
   ========================================================================== */

.recommendation-list {
  padding: 40px 0;
}

.item-cover {
  flex-shrink: 0;
}

.item-cover img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

.item-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.item-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.item-tags {
  font-size: 13px;
  color: #999999;
}

.item-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.item-reason {
  font-size: 14px;
  color: #333333;
  line-height: 1.7;
}

.item-reason strong {
  color: #e63946;
  font-weight: 700;
}

/* ==========================================================================
   components / theme analysis (rezhang)
   ========================================================================== */

.theme-analysis {
  padding: 48px 0;
  border-top: 1px solid #f0f0f0;
}

.analysis-block {
  padding: 24px;
  background-color: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.analysis-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid #e63946;
}

.analysis-block p {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

/* ==========================================================================
   pages / 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60vh;
  padding: 64px 24px;
}

.error-section {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.error-title {
  font-size: 96px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 16px;
}

.error-lead {
  font-size: 24px;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #666666;
  line-height: 1.8;
  margin-bottom: 32px;
}

.error-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  background-color: #e63946;
  color: #ffffff;
  transition: background-color 0.2s ease;
}

.error-home-btn:hover {
  background-color: #d32f3c;
  color: #ffffff;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.error-links a {
  font-size: 14px;
  color: #666666;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 2px;
}

.error-links a:hover {
  color: #e63946;
  border-color: #e63946;
}

/* ==========================================================================
   responsive / breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr 0.8fr;
    gap: 32px;
    padding: 40px 24px 48px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-item:nth-child(4),
  .ranking-item:nth-child(5) {
    display: none;
  }

  .works-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
  }

  .brand-logo {
    font-size: 18px;
  }

  .brand-mark {
    height: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: static;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 8px 16px 16px;
    gap: 0;
    z-index: 99;
  }

  .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 12px;
    font-size: 16px;
  }

  .nav-list a.is-current::after {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 40px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-figure {
    max-width: 100%;
  }

  .tags-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  .recent-updates,
  .ranking-preview,
  .guide-entry,
  .longtail-preview {
    padding-left: 16px;
    padding-right: 16px;
  }

  .update-list {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-item:nth-child(4),
  .ranking-item:nth-child(5) {
    display: flex;
  }

  .guide-cards,
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .feature-card {
    flex-direction: column;
  }

  .feature-card img {
    width: 100%;
    height: 180px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 24px;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding: 16px 0 12px;
  }

  .page-header {
    padding: 8px 0 24px;
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 26px;
  }

  .category-cards {
    grid-template-columns: 1fr;
  }

  .works-showcase {
    grid-template-columns: 1fr;
  }

  .work-item:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .guide-steps,
  .page-guide .guide-section:last-of-type .guide-steps {
    grid-template-columns: 1fr;
  }

  .guide-management {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  .recommendation-item {
    flex-direction: column;
    gap: 16px;
  }

  .recommendation-cover figure,
  .recommendation-cover img,
  .item-cover img {
    width: 120px;
    height: 168px;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .error-title {
    font-size: 64px;
  }
}

@media (max-width: 480px) {
  .tags-wrapper {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .ranking-item img {
    width: 72px;
    height: 96px;
    margin: 0;
    flex-shrink: 0;
  }

  .rank-info {
    flex: 1;
  }

  .rank-number {
    margin-bottom: 4px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .update-item {
    align-items: flex-start;
  }

  .update-item img {
    width: 56px;
    height: 76px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .guide-entry-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-entry-link {
    width: 100%;
  }

  .recommendation-item {
    padding: 20px 0;
  }
}
