/* ==========================================================
   stagebehind漫画完整版 · 全站样式
   视觉方向：产品手册风，白/浅灰底 + 深蓝/橙色强调
   ========================================================== */

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #333;
  background: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #16213e;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e94560;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.4;
  color: #1a1a2e;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

summary {
  cursor: pointer;
}

/* ==========================================================
   Layout
   ========================================================== */
.site-header {
  background: #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-logo:hover .brand-name {
  color: #e94560;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  line-height: 1.5;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.is-current .nav-link,
.nav-link.is-current {
  color: #ffffff;
  background: rgba(233, 69, 96, 0.85);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  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-main {
  min-height: 60vh;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.site-footer {
  background: #16213e;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 64px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 480px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-col-list li {
  margin-bottom: 8px;
}

.footer-col-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #16213e;
}

.breadcrumb a:hover {
  color: #e94560;
}

.breadcrumb-sep {
  color: #bbb;
}

.breadcrumb-current {
  color: #888;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: #666;
  max-width: 720px;
  line-height: 1.8;
}

/* 区块通用 */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
  max-width: 720px;
}

.section-lead {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
  max-width: 720px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-head .section-desc {
  margin-bottom: 0;
  text-align: right;
}

/* ==========================================================
   Components
   ========================================================== */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #e94560;
  color: #ffffff;
  border: 1px solid #e94560;
}

.btn-primary:hover {
  background: #d63851;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #16213e;
  border: 1px solid #16213e;
}

.btn-secondary:hover {
  background: #16213e;
  color: #ffffff;
}

/* 更多链接 */
.section-more {
  text-align: center;
  margin-top: 32px;
}

.more-link {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  color: #16213e;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.more-link:hover {
  border-color: #e94560;
  color: #e94560;
}

/* 更新列表通用 */
.update-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.update-group {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.update-date {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 16px;
}

.update-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.update-list li:last-child {
  border-bottom: none;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.update-cover {
  width: 64px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-meta {
  font-size: 13px;
  color: #999;
}

.update-status {
  font-size: 12px;
  color: #e94560;
  background: rgba(233, 69, 96, 0.08);
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.update-badge {
  font-size: 12px;
  color: #e94560;
  background: rgba(233, 69, 96, 0.08);
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================
   Pages
   ========================================================== */

/* ---------- 首页 ---------- */
.home-main {
  background: #ffffff;
}

.home-hero {
  background: #f5f5f5;
  border-bottom: 1px solid #eee;
}

.home-hero .hero-content,
.home-hero .hero-media {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 72px 0;
}

.hero-content {
  max-width: 560px;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #e94560;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 480px;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* 分类导航带 */
.category-nav-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #16213e;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.category-tag:hover {
  border-color: #e94560;
  color: #e94560;
  background: rgba(233, 69, 96, 0.04);
}

/* 最近更新 */
.recent-updates-section {
  background: #f5f5f5;
  padding: 56px 0;
}

.recent-updates-section .section-head,
.recent-updates-section .update-groups,
.recent-updates-section .section-more {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.recent-updates-section .section-head {
  margin-bottom: 24px;
}

.recent-updates-section .update-groups {
  gap: 24px;
}

.recent-updates-section .update-group {
  box-shadow: none;
  border: 1px solid #e8e8e8;
}

/* 人气榜单 */
.ranking-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ranking-item {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  border-color: #e94560;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ranking-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: #16213e;
  border-radius: 4px;
  margin-bottom: 12px;
}

.ranking-item:nth-child(1) .ranking-num,
.ranking-item:nth-child(2) .ranking-num,
.ranking-item:nth-child(3) .ranking-num {
  background: #e94560;
}

.ranking-content {
  min-width: 0;
}

.ranking-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.ranking-reason {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

/* 阅读指南入口 */
.guide-entry-section {
  background: #f5f5f5;
  padding: 56px 0;
}

.guide-entry-section .section-head,
.guide-cards {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guide-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  border-color: #e94560;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.guide-card-content {
  min-width: 0;
}

.guide-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.guide-card-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-card-link {
  font-size: 14px;
  font-weight: 600;
  color: #e94560;
}

/* 版权与反馈 */
.feedback-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}

.feedback-content p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 800px;
}

/* ---------- 分类页 ---------- */
.category-index {
  margin-bottom: 48px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  border-color: #e94560;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.category-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.category-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-cover {
  transform: scale(1.03);
}

.category-info {
  padding: 20px;
}

.category-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.category-name a {
  color: inherit;
}

.category-name a:hover {
  color: #e94560;
}

.category-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.category-notes {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 32px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.note-item {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
}

.note-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.note-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.notes-more {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.notes-more a {
  color: #e94560;
}

.notes-more a:hover {
  color: #d63851;
}

/* ---------- 阅读指南页 ---------- */
.guide-steps {
  margin-bottom: 48px;
}

.steps-list {
  counter-reset: step-counter;
  display: grid;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s ease;
}

.step-item:hover {
  border-color: #e94560;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  background: #16213e;
  border-radius: 6px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.step-text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

.guide-tips {
  margin-bottom: 48px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.tip-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 20px;
}

.tip-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.tip-text {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

.tips-extra {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.tips-extra a {
  color: #e94560;
  margin-right: 16px;
}

.guide-faq {
  margin-bottom: 48px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0 20px;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  padding: 16px 0;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #e94560;
  border-radius: 4px;
  margin-right: 10px;
}

.faq-answer {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  padding: 0 0 16px 32px;
}

.guide-visual {
  margin-bottom: 48px;
}

.guide-figure {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.guide-figure figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  padding: 12px;
}

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 20px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}

.related-links-item {
  font-size: 14px;
  color: #e94560;
  padding: 4px 12px;
  background: rgba(233, 69, 96, 0.06);
  border-radius: 4px;
}

/* ---------- 恋爱漫画页 ---------- */
.recommendation-list {
  margin-bottom: 48px;
}

.manga-item {
  display: flex;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.manga-item:hover {
  border-color: #e94560;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.manga-cover {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.manga-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manga-info {
  flex: 1;
  min-width: 0;
}

.manga-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.manga-summary {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.manga-reason {
  font-size: 14px;
  color: #e94560;
  line-height: 1.7;
}

.manga-reason strong {
  font-weight: 600;
  color: #16213e;
}

.analysis {
  margin-bottom: 48px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.style-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
}

.style-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.style-text {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.related-guide {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
}

.link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-group a {
  font-size: 14px;
  color: #e94560;
  padding: 6px 16px;
  background: rgba(233, 69, 96, 0.06);
  border-radius: 4px;
}

/* ---------- 热血漫画页 ---------- */
.work-item {
  display: flex;
  gap: 24px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.work-item:hover {
  border-color: #e94560;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.work-cover {
  width: 120px;
  height: 160px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-info {
  flex: 1;
  min-width: 0;
}

.work-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.work-brief {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.work-reason {
  font-size: 14px;
  color: #e94560;
  line-height: 1.7;
}

.work-reason strong {
  font-weight: 600;
  color: #16213e;
}

.comparison {
  margin-bottom: 48px;
}

.comparison-table-wrap {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.comparison-table th {
  background: #16213e;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table td {
  color: #555;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: #f9f9f9;
}

.related-link-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.related-link-list a {
  display: block;
  font-size: 14px;
  color: #e94560;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px 16px;
  transition: border-color 0.2s ease;
}

.related-link-list a:hover {
  border-color: #e94560;
}

/* ---------- 最近更新页 ---------- */
.update-section {
  margin-bottom: 48px;
}

.update-section .update-group {
  margin-bottom: 24px;
}

.update-section .update-cover {
  width: 72px;
  height: 96px;
}

.update-section .update-title {
  font-size: 16px;
}

.calendar-section {
  margin-bottom: 48px;
}

.calendar-table-wrap {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.calendar-table {
  width: 100%;
  min-width: 560px;
}

.calendar-table th,
.calendar-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.calendar-table th {
  background: #f5f5f5;
  color: #16213e;
  font-weight: 600;
}

.calendar-table td {
  color: #555;
}

.calendar-table tbody tr:last-child th,
.calendar-table tbody tr:last-child td {
  border-bottom: none;
}

.calendar-note {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.calendar-note a {
  color: #e94560;
  margin-right: 16px;
}

.related-section {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
}

.related-links li {
  margin-bottom: 8px;
}

.related-links a {
  font-size: 14px;
  color: #e94560;
}

/* ---------- 404 页 ---------- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: #ffffff;
}

.error-section {
  text-align: center;
  max-width: 480px;
  padding: 40px 20px;
}

.error-code {
  font-size: 96px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-back,
.btn-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-back {
  background: #e94560;
  color: #ffffff;
  border: 1px solid #e94560;
}

.btn-back:hover {
  background: #d63851;
  color: #ffffff;
}

.btn-category {
  background: transparent;
  color: #16213e;
  border: 1px solid #16213e;
}

.btn-category:hover {
  background: #16213e;
  color: #ffffff;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding: 48px 0;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-media {
    order: -1;
  }

  .hero-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    gap: 4px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 16px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .update-groups {
    grid-template-columns: 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .ranking-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .manga-item,
  .work-item {
    flex-direction: column;
    gap: 16px;
  }

  .manga-cover,
  .work-cover {
    width: 100%;
    height: 200px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-head .section-desc {
    text-align: left;
  }

  .related-link-list {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 30px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .inner-main {
    padding: 24px 16px 48px;
  }

  .home-hero {
    padding: 32px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .ranking-list {
    grid-template-columns: 1fr;
  }

  .category-tags {
    gap: 8px;
  }

  .category-tag {
    padding: 8px 14px;
    font-size: 13px;
  }

  .update-item {
    gap: 10px;
  }

  .update-cover {
    width: 56px;
    height: 72px;
  }

  .update-status,
  .update-badge {
    font-size: 11px;
    padding: 2px 8px;
  }

  .footer-inner {
    padding: 32px 16px 16px;
  }

  .guide-card {
    padding: 24px;
  }

  .comparison-table-wrap,
  .calendar-table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .error-code {
    font-size: 72px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-back,
  .btn-category {
    width: 100%;
  }
}
