/* ==========================================================
   base
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #F6F7F9;
  color: #1F2937;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #4F6EF7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* ==========================================================
   layout
   ========================================================== */

.site-header {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  color: #1F2937;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1F2937;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 4px;
}

.nav-list li {
  display: flex;
  align-items: center;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 100%;
  font-size: 15px;
  color: #6B7280;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover {
  color: #4F6EF7;
  text-decoration: none;
}

.nav-list a.is-current {
  color: #4F6EF7;
  border-bottom-color: #4F6EF7;
  font-weight: 600;
}

.site-main {
  min-height: calc(100vh - 64px - 320px);
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.main-col {
  min-width: 0;
}

.main-content {
  min-width: 0;
}

.side-col {
  min-width: 0;
}

.sidebar {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #6B7280;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #4F6EF7;
  text-decoration: none;
}

.breadcrumb-sep {
  color: #D1D5DB;
}

.breadcrumb-current {
  color: #1F2937;
  font-weight: 500;
}

.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #6B7280;
  max-width: 720px;
}

.site-footer {
  background: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h2 {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 12px;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col li a {
  font-size: 14px;
  color: #6B7280;
  transition: color 0.2s ease;
}

.footer-col li a:hover {
  color: #4F6EF7;
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid #E5E7EB;
  padding-top: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: #9CA3AF;
  text-align: center;
}

/* ==========================================================
   components
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #4F6EF7;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #3D5CE5;
}

.btn-secondary {
  background: #FFFFFF;
  color: #4F6EF7;
  border-color: #4F6EF7;
}

.btn-secondary:hover {
  background: #EDF1FE;
}

.btn-outline {
  background: transparent;
  color: #4F6EF7;
  border-color: #4F6EF7;
}

.btn-outline:hover {
  background: #EDF1FE;
}

.section-desc {
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  color: #4F6EF7;
  transition: color 0.2s ease;
}

.section-link:hover {
  text-decoration: none;
  color: #3D5CE5;
}

/* ---- announce bar ---- */

.announce-bar {
  background: #EDF1FE;
  border-bottom: 1px solid #E5E7EB;
}

.announce-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announce-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #4F6EF7;
  background: #FFFFFF;
  padding: 2px 10px;
  border-radius: 4px;
}

.announce-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #1F2937;
}

.announce-text a {
  font-weight: 500;
}

.announce-text a:hover {
  text-decoration: underline;
}

.announce-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #6B7280;
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease;
}

.announce-close:hover {
  background: #FFFFFF;
  color: #1F2937;
}

/* ---- hero ---- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-media {
  border-radius: 8px;
  overflow: hidden;
  background: #E5E7EB;
}

.hero-media img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-content h1 {
  font-size: 32px;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  color: #6B7280;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- genre tags (home) ---- */

.genre-tags {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.genre-tags .section-desc {
  margin-bottom: 16px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  min-height: 40px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  font-size: 15px;
  color: #1F2937;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tag-item:hover {
  background: #EDF1FE;
  border-color: #4F6EF7;
  color: #4F6EF7;
  text-decoration: none;
}

/* ---- recent updates (home) ---- */

.recent-updates {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}

.update-item:last-child {
  border-bottom: none;
}

.update-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-date {
  flex-shrink: 0;
  font-size: 13px;
  color: #9CA3AF;
}

.update-status {
  flex-shrink: 0;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  background: #EDF1FE;
  color: #4F6EF7;
  font-weight: 500;
}

.update-item a {
  flex-shrink: 0;
  font-size: 14px;
  color: #4F6EF7;
  font-weight: 500;
}

.update-item a:hover {
  text-decoration: underline;
}

/* ---- ranking preview (home) ---- */

.ranking-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #F3F4F6;
  font-size: 14px;
  font-weight: 600;
  color: #6B7280;
}

.ranking-item:nth-child(1) .ranking-num {
  background: #4F6EF7;
  color: #FFFFFF;
}

.ranking-item:nth-child(2) .ranking-num {
  background: #EDF1FE;
  color: #4F6EF7;
}

.ranking-item:nth-child(3) .ranking-num {
  background: #EDF1FE;
  color: #4F6EF7;
}

.ranking-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: #1F2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-tag {
  flex-shrink: 0;
  font-size: 13px;
  color: #6B7280;
  background: #F3F4F6;
  padding: 2px 10px;
  border-radius: 4px;
}

/* ---- cover wall (home) ---- */

.cover-wall {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.cover-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cover-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.cover-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cover-card figcaption {
  padding: 12px;
}

.cover-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 4px;
}

.cover-genre {
  display: block;
  font-size: 13px;
  color: #6B7280;
}

/* ---- dual path (home) ---- */

.dual-path {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.path-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 24px;
}

.path-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.path-card p {
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 16px;
}

/* ---- rules entry ---- */

.rules-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.rules-entry .section-title {
  margin-bottom: 8px;
}

.rules-entry > p {
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 16px;
}

.rules-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- sidebar modules (library) ---- */

.sidebar-module {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}

.sidebar-update-list li {
  padding: 8px 0;
  border-bottom: 1px solid #F9FAFB;
}

.sidebar-update-list li:last-child {
  border-bottom: none;
}

.sidebar-update-list a {
  display: block;
  font-size: 14px;
  color: #1F2937;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-update-list a:hover {
  color: #4F6EF7;
  text-decoration: none;
}

.sidebar-update-list .update-date {
  font-size: 13px;
  color: #9CA3AF;
}

.sidebar-more {
  margin-top: 12px;
  font-size: 14px;
}

.sidebar-tip-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 8px;
}

.sidebar-tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4F6EF7;
}

/* ---- genre filter (library) ---- */

.genre-filter {
  margin-bottom: 32px;
}

.genre-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  min-height: 40px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  font-size: 15px;
  color: #1F2937;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.genre-tag:hover {
  background: #EDF1FE;
  border-color: #4F6EF7;
  color: #4F6EF7;
  text-decoration: none;
}

/* ---- comic grid (library) ---- */

.comic-grid {
  margin-bottom: 24px;
}

.genre-heading {
  font-size: 20px;
  font-weight: 600;
  color: #1F2937;
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EDF1FE;
}

.comic-grid-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.comic-card {
  display: flex;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px;
  transition: box-shadow 0.2s ease;
}

.comic-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comic-cover {
  flex-shrink: 0;
  width: 96px;
  height: 128px;
  border-radius: 6px;
  overflow: hidden;
  background: #F3F4F6;
}

.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comic-name {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}

.comic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 12px;
  color: #4F6EF7;
  background: #EDF1FE;
  padding: 2px 8px;
  border-radius: 4px;
}

.comic-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- schedule page ---- */

.update-section {
  margin-bottom: 32px;
}

.update-section .section-title {
  margin-bottom: 16px;
}

.update-group {
  margin-bottom: 24px;
}

.update-date-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EDF1FE;
}

.update-date-block .update-date {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
}

.update-weekday {
  font-size: 14px;
  color: #6B7280;
}

.update-list .update-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid #F3F4F6;
  border-radius: 6px;
  margin-bottom: 8px;
}

.update-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  background: #F3F4F6;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-info .update-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 2px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9CA3AF;
}

.update-time {
  font-size: 13px;
  color: #9CA3AF;
}

.status-tag {
  flex-shrink: 0;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.status-new {
  background: #D1FAE5;
  color: #065F46;
}

.status-update {
  background: #EDF1FE;
  color: #4F6EF7;
}

.section-note {
  font-size: 14px;
  color: #6B7280;
  margin-top: 16px;
}

.section-note a {
  font-weight: 500;
}

/* ---- aside cards (schedule, guide, rules) ---- */

.aside-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.aside-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}

.rule-list li {
  padding: 8px 0;
  border-bottom: 1px solid #F9FAFB;
}

.rule-list li:last-child {
  border-bottom: none;
}

.rule-list h3 {
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 4px;
}

.rule-list p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

.tips-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 8px;
}

.tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4F6EF7;
}

/* ---- ranking page ---- */

.ranking-section {
  margin-bottom: 32px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 4px;
}

.section-heading p {
  font-size: 14px;
  color: #6B7280;
}

.ranking-section .ranking-list {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 16px;
}

.ranking-section .ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.ranking-cover {
  flex-shrink: 0;
  width: 40px;
  height: 54px;
  border-radius: 4px;
  object-fit: cover;
  background: #F3F4F6;
}

.ranking-info {
  flex: 1;
  min-width: 0;
}

.ranking-info .ranking-name {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-desc {
  font-size: 13px;
  color: #9CA3AF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-guide {
  background: #EDF1FE;
  border-radius: 8px;
  padding: 20px;
  margin-top: 8px;
}

.ranking-guide h2 {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.ranking-guide p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.7;
  margin-bottom: 8px;
}

.ranking-guide p:last-child {
  margin-bottom: 0;
}

.sidebar-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}

.sidebar-list li {
  padding: 8px 0;
  border-bottom: 1px solid #F9FAFB;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 2px;
}

.sidebar-list li {
  font-size: 13px;
  color: #6B7280;
}

/* ---- guide page ---- */

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.steps-main {
  min-width: 0;
}

.steps-main .section-title {
  margin-bottom: 8px;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #F3F4F6;
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #4F6EF7;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 6px;
}

.step-content p a {
  font-weight: 500;
}

.step-expect {
  font-size: 14px;
  color: #4F6EF7;
  background: #EDF1FE;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}

.guide-media {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: #E5E7EB;
}

.guide-media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.guide-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #6B7280;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-top: none;
}

.aside-checklist {
  min-width: 0;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 10px;
  line-height: 1.6;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 14px;
  color: #4F6EF7;
  font-weight: 600;
}

.tip-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 8px;
}

.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4F6EF7;
}

.page-guide .rules-entry {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 24px;
}

/* ---- rules page ---- */

.rules-section {
  margin-bottom: 32px;
}

.rules-section .section-title {
  margin-bottom: 16px;
}

.content-media-inline {
  border-radius: 8px;
  overflow: hidden;
  background: #E5E7EB;
  margin-bottom: 20px;
}

.content-media-inline img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 8px 16px;
  font-size: 13px;
  color: #6B7280;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-top: none;
}

.rule-item {
  padding: 16px 0;
  border-bottom: 1px solid #F3F4F6;
}

.rule-item:last-child {
  border-bottom: none;
}

.rule-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 6px;
}

.rule-item p {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.7;
}

.faq-section {
  margin-top: 32px;
}

.faq-section .section-title {
  margin-bottom: 16px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: #6B7280;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: #F9FAFB;
}

.faq-item p {
  padding: 0 16px 14px;
  font-size: 14px;
  color: #6B7280;
  line-height: 1.7;
}

.side-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.side-card h2 {
  font-size: 17px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F3F4F6;
}

.feedback-item {
  padding: 12px 0;
  border-bottom: 1px solid #F9FAFB;
}

.feedback-item:last-child {
  border-bottom: none;
}

.feedback-item h3 {
  font-size: 15px;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 4px;
}

.feedback-item p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-links a {
  font-size: 14px;
  color: #4F6EF7;
}

/* ---- related links ---- */

.related-links {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
}

.related-links-item {
  font-size: 14px;
  color: #4F6EF7;
}

.related-links-item:hover {
  text-decoration: underline;
}

/* ---- 404 page ---- */

.error-main {
  min-height: calc(100vh - 64px - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-panel {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 48px 32px;
}

.error-code {
  font-size: 64px;
  font-weight: 600;
  color: #4F6EF7;
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.error-desc {
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 24px;
}

.error-panel .btn {
  margin-bottom: 24px;
}

.error-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.error-links a {
  font-size: 14px;
  color: #4F6EF7;
}

/* ==========================================================
   responsive
   ========================================================== */

@media (max-width: 900px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar,
  .side-col,
  .aside-checklist {
    order: 2;
  }

  .main-content,
  .main-col,
  .steps-main {
    order: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-media img {
    height: 280px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .comic-grid-list {
    grid-template-columns: 1fr;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .copyright {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    height: auto;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 12px 8px;
    border-bottom: 1px solid #F3F4F6;
    border-bottom-width: 1px;
    height: auto;
    font-size: 16px;
  }

  .nav-list a.is-current {
    border-bottom: 1px solid #F3F4F6;
    color: #4F6EF7;
    font-weight: 600;
  }

  .inner-main {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero {
    padding: 24px 16px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-media img {
    height: 220px;
  }

  .genre-tags,
  .recent-updates,
  .ranking-preview,
  .cover-wall,
  .dual-path,
  .rules-entry {
    padding: 20px 16px;
  }

  .cover-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cover-card img {
    height: 160px;
  }

  .cover-card figcaption {
    padding: 10px;
  }

  .update-item {
    flex-wrap: wrap;
    gap: 6px;
  }

  .update-title {
    width: 100%;
    flex: 0 0 100%;
  }

  .comic-card {
    padding: 10px;
  }

  .comic-cover {
    width: 80px;
    height: 106px;
  }

  .ranking-item {
    flex-wrap: wrap;
  }

  .ranking-desc {
    width: 100%;
    flex: 0 0 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .step-item {
    gap: 12px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .footer-inner {
    padding: 32px 16px 20px;
  }

  .error-panel {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .cover-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cover-card img {
    height: 140px;
  }

  .comic-grid-list {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .tag-group,
  .genre-tag-group {
    gap: 8px;
  }

  .tag-item,
  .genre-tag {
    padding: 6px 14px;
    font-size: 14px;
  }

  .announce-content {
    flex-wrap: wrap;
    gap: 8px;
  }

  .announce-text {
    flex: 0 0 100%;
    order: 3;
  }

  .announce-close {
    order: 2;
  }

  .path-card {
    padding: 20px;
  }

  .related-links {
    padding: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
