/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2C3E50;
  background-color: #ECF0F1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
  line-height: 1.3;
  margin: 0 0 0.5em;
  font-weight: 700;
  color: #2C3E50;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #2C3E50;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #E74C3C;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

.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-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #BDC3C7;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C3E50;
}

.brand-slogan {
  font-size: 0.75rem;
  color: #7f8c8d;
  margin-top: 2px;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 8px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.9375rem;
  border-radius: 4px;
  color: #2C3E50;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: #ECF0F1;
  color: #E74C3C;
}

.nav-link.is-current {
  background-color: #2C3E50;
  color: #FFFFFF;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #BDC3C7;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #2C3E50;
  content: "";
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-icon::after {
  position: absolute;
  top: 6px;
}

.site-main {
  flex: 1;
}

.site-footer {
  background-color: #2C3E50;
  color: #ECF0F1;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-slogan {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.875rem;
  color: #BDC3C7;
  max-width: 560px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-col {
  min-width: 160px;
}

.footer-heading {
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #BDC3C7;
  font-size: 0.875rem;
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-copy {
  border-top: 1px solid rgba(236, 240, 241, 0.2);
  padding-top: 16px;
  font-size: 0.8125rem;
  color: #BDC3C7;
  margin-bottom: 0;
}

/* ==========================================================================
   components
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: #E74C3C;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #c0392b;
  color: #FFFFFF;
}

.btn-secondary {
  background-color: transparent;
  color: #2C3E50;
  border: 2px solid #2C3E50;
}

.btn-secondary:hover {
  background-color: #2C3E50;
  color: #FFFFFF;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-desc {
  color: #7f8c8d;
  font-size: 0.9375rem;
  max-width: 720px;
  margin-bottom: 0;
}

/* ==========================================================================
   pages - index
   ========================================================================== */

.hero-focus {
  position: relative;
  background-color: #2C3E50;
  min-height: 480px;
  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.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  width: 100%;
}

.hero-title {
  font-size: 2.5rem;
  color: #FFFFFF;
  max-width: 640px;
  margin-bottom: 16px;
}

.hero-intro {
  font-size: 1.125rem;
  color: #ECF0F1;
  max-width: 560px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary {
  background-color: #E74C3C;
}

.hero-actions .btn-secondary {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.hero-actions .btn-secondary:hover {
  background-color: #FFFFFF;
  color: #2C3E50;
}

.category-strip {
  background-color: #FFFFFF;
  border-bottom: 1px solid #BDC3C7;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tag {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ECF0F1;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.category-tag:hover {
  background-color: #E74C3C;
  color: #FFFFFF;
}

.latest-updates {
  background-color: #FFFFFF;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.update-item {
  border-bottom: 1px solid #ECF0F1;
}

.update-item:last-child {
  border-bottom: none;
}

.update-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 8px;
  transition: background-color 0.2s ease;
}

.update-link:hover {
  background-color: #ECF0F1;
}

.update-thumb {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-title {
  font-weight: 700;
  font-size: 1.0625rem;
}

.update-meta {
  font-size: 0.8125rem;
  color: #7f8c8d;
}

.ranking-preview {
  background-color: #ECF0F1;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background-color: #FFFFFF;
  border-radius: 6px;
  padding: 20px;
}

.ranking-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  color: #E74C3C;
  line-height: 1;
}

.ranking-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ranking-name {
  font-weight: 700;
  font-size: 1rem;
}

.ranking-reason {
  font-size: 0.8125rem;
  color: #7f8c8d;
  line-height: 1.5;
}

.guide-entry {
  background-color: #FFFFFF;
}

.guide-card {
  background-color: #ECF0F1;
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.guide-desc {
  max-width: 640px;
  margin-bottom: 24px;
}

.guide-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   pages - inner common
   ========================================================================== */

.site-main.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-size: 0.875rem;
  color: #7f8c8d;
}

.breadcrumb a {
  color: #7f8c8d;
}

.breadcrumb a:hover {
  color: #E74C3C;
}

.breadcrumb-sep {
  color: #BDC3C7;
}

.breadcrumb-current {
  color: #2C3E50;
  font-weight: 700;
}

.page-header {
  padding: 24px 0 32px;
  border-bottom: 1px solid #BDC3C7;
  margin-bottom: 40px;
}

.page-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.page-description {
  font-size: 1.0625rem;
  color: #7f8c8d;
  max-width: 720px;
  margin-bottom: 0;
}

/* ==========================================================================
   pages - categories
   ========================================================================== */

.category-section {
  margin-bottom: 48px;
}

.category-section .section-title {
  font-size: 1.5rem;
}

.section-intro {
  color: #7f8c8d;
  margin-bottom: 24px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ECF0F1;
  transition: box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}

.category-name {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 16px;
}

.category-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.875rem;
  color: #E74C3C;
}

.category-link:hover {
  color: #c0392b;
}

.category-guide-section {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}

.category-guide-section .section-title {
  font-size: 1.5rem;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.guide-item {
  padding: 20px;
  background-color: #ECF0F1;
  border-radius: 6px;
}

.guide-item-title {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.guide-item-text {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

.guide-note {
  font-size: 0.875rem;
  color: #7f8c8d;
  border-top: 1px solid #ECF0F1;
  padding-top: 16px;
  margin-bottom: 0;
}

.guide-note a {
  color: #E74C3C;
  font-weight: 700;
}

/* ==========================================================================
   pages - guide
   ========================================================================== */

.guide-section {
  margin-bottom: 48px;
}

.guide-section .section-heading {
  margin-bottom: 24px;
}

.guide-section .section-heading h2 {
  font-size: 1.75rem;
}

.guide-section .section-heading p {
  color: #7f8c8d;
  max-width: 720px;
}

.guide-media {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.guide-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.method-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.method-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #ECF0F1;
}

.method-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.method-card p {
  font-size: 0.9375rem;
  color: #7f8c8d;
  margin-bottom: 12px;
}

.method-card a {
  font-weight: 700;
  color: #E74C3C;
  font-size: 0.875rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tip-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #ECF0F1;
}

.tip-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

#progress-note {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
}

#progress-note h2 {
  font-size: 1.5rem;
}

#progress-note p {
  color: #7f8c8d;
  max-width: 720px;
}

.related-entry {
  background-color: #ECF0F1;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}

.related-entry h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFFFFF;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.entry-link:hover {
  background-color: #E74C3C;
  color: #FFFFFF;
}

/* ==========================================================================
   pages - romance
   ========================================================================== */

.recommendation-section {
  margin-bottom: 48px;
}

.recommendation-section .section-heading {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comic-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ECF0F1;
  transition: box-shadow 0.2s ease;
}

.comic-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.card-meta {
  font-size: 0.8125rem;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

.reason-section {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}

.reason-section .section-heading {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.reason-item {
  padding: 20px;
  background-color: #ECF0F1;
  border-radius: 6px;
}

.reason-title {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.reason-text {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 0;
}

.reason-note {
  font-size: 0.875rem;
  color: #7f8c8d;
  border-top: 1px solid #ECF0F1;
  padding-top: 16px;
  margin-bottom: 0;
}

.reason-note a {
  color: #E74C3C;
  font-weight: 700;
}

.related-links {
  background-color: #ECF0F1;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}

.related-heading {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-list a {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9375rem;
}

.related-list a:hover {
  color: #E74C3C;
}

/* ==========================================================================
   pages - action
   ========================================================================== */

.recommendations {
  margin-bottom: 48px;
}

.recommendations h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.recommend-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ECF0F1;
  transition: box-shadow 0.2s ease;
}

.recommend-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content .card-title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.card-reason {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 12px;
}

.card-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.875rem;
  color: #E74C3C;
}

.card-link:hover {
  color: #c0392b;
}

.selection-tips {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 48px;
}

.selection-tips h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.selection-tips p {
  color: #7f8c8d;
  max-width: 720px;
}

.selection-tips a {
  color: #E74C3C;
  font-weight: 700;
}

/* ==========================================================================
   pages - 404
   ========================================================================== */

.site-main.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: 60vh;
}

.error-content {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 700;
  color: #E74C3C;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.error-desc {
  color: #7f8c8d;
  margin-bottom: 24px;
}

.error-home-link {
  display: inline-block;
  padding: 12px 32px;
  background-color: #E74C3C;
  color: #FFFFFF;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 24px;
}

.error-home-link:hover {
  background-color: #c0392b;
  color: #FFFFFF;
}

.error-help {
  font-size: 0.875rem;
  color: #7f8c8d;
}

.error-help a {
  color: #E74C3C;
  font-weight: 700;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recommendation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 64px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #BDC3C7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-left: 0;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 4px;
  }

  .hero-focus {
    min-height: 400px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .hero-content {
    padding: 48px 16px;
  }

  .section {
    padding: 32px 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .footer-inner {
    padding: 32px 16px 16px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .inner-main {
    padding: 0 16px;
  }

  .page-header {
    padding: 16px 0 24px;
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .category-grid,
  .recommendation-grid {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .tips-grid,
  .method-list,
  .guide-list,
  .reason-list {
    grid-template-columns: 1fr;
  }

  .guide-card {
    padding: 24px;
  }

  .guide-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-actions .btn,
  .hero-actions .btn {
    text-align: center;
  }

  .update-link {
    gap: 12px;
    padding: 12px 4px;
  }

  .update-thumb {
    width: 56px;
    height: 76px;
  }

  .category-card img {
    height: 200px;
  }

  .breadcrumb {
    padding: 16px 0;
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .brand-slogan {
    display: none;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .hero-title {
    font-size: 1.625rem;
  }

  .hero-intro {
    font-size: 0.9375rem;
  }

  .hero-focus {
    min-height: 360px;
  }

  .section-title {
    font-size: 1.375rem;
  }

  .ranking-number {
    font-size: 1.5rem;
  }

  .category-tag {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .update-title {
    font-size: 0.9375rem;
  }

  .update-meta {
    font-size: 0.75rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-description {
    font-size: 0.9375rem;
  }

  .error-code {
    font-size: 3.5rem;
  }

  .error-title {
    font-size: 1.375rem;
  }

  .footer-col {
    min-width: 0;
  }
}
