/* =========================================================
   歪歪漫画网 - 全站样式表
   pkcvygxj.cn
   ========================================================= */

/* =========================================================
   Base / Reset
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1a237e;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffc107;
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: #333333;
}

h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 0.75rem;
}

/* =========================================================
   Layout - 全局容器与结构骨架
   ========================================================= */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.container,
.header-inner,
.footer-inner,
.hero,
.category-nav,
.recent-updates,
.ranking,
.guide-entry,
.long-tail,
.inner-main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =========================================================
   Header / 导航
   ========================================================= */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a237e;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 0.8125rem;
  color: #888888;
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #333333;
  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(6px) 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(-6px) rotate(-45deg);
}

.site-nav {
  width: 100%;
  order: 3;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0;
  border-top: 1px solid #f0f0f0;
  display: none;
}

.nav-list.is-open {
  display: flex;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.9375rem;
  color: #333333;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-list a:hover {
  color: #1a237e;
  background: #fafafa;
  text-decoration: none;
}

.nav-list a.is-current {
  color: #1a237e;
  font-weight: 700;
  background: #fafafa;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
  flex-shrink: 0;
}

.footer-inner {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-group h3 {
  font-size: 0.9375rem;
  color: #333333;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.footer-group ul li {
  margin-bottom: 0.375rem;
}

.footer-group ul a {
  font-size: 0.875rem;
  color: #555555;
  text-decoration: none;
}

.footer-group ul a:hover {
  color: #1a237e;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #e0e0e0;
  padding: 1rem 1.25rem;
  text-align: center;
  background: #f0f0f0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: #777777;
  margin: 0;
}

/* =========================================================
   通用组件
   ========================================================= */
.section-desc,
.section-intro {
  color: #666666;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

/* 面包屑 */
.breadcrumb {
  padding: 0.875rem 1.25rem;
  font-size: 0.8125rem;
  color: #777777;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.breadcrumb a {
  color: #1a237e;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 0.5rem;
  color: #bbbbbb;
}

.breadcrumb-current {
  color: #555555;
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1rem;
  width: 100%;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1rem;
  color: #666666;
  max-width: 720px;
  line-height: 1.7;
}

/* =========================================================
   首页 - Hero
   ========================================================= */
.hero {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.hero-content {
  max-width: 720px;
}

.hero-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-lead {
  font-size: 1.0625rem;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  min-height: 44px;
  line-height: 1.4;
}

.btn-primary {
  background: #1a237e;
  color: #ffffff;
  border: 1px solid #1a237e;
}

.btn-primary:hover {
  background: #0d1559;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: #1a237e;
  border: 1px solid #1a237e;
}

.btn-secondary:hover {
  background: #f0f1ff;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-media {
  margin-top: 1.5rem;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  background: #f5f5f5;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* =========================================================
   首页 - 分类导航带
   ========================================================= */
.category-nav {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid #f0f0f0;
}

.category-nav h2,
.recent-updates h2,
.ranking h2,
.guide-entry h2,
.long-tail h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.category-tags li {
  margin: 0;
}

.category-tags a {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #333333;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
  line-height: 1.4;
}

.category-tags a:hover {
  background: #fff8e1;
  border-color: #ffc107;
  color: #1a237e;
  text-decoration: none;
}

/* =========================================================
   首页 - 最近更新
   ========================================================= */
.recent-updates {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

.update-group {
  margin-bottom: 1.75rem;
}

.update-group h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ffc107;
  display: inline-block;
}

.update-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.update-item {
  margin: 0;
}

.update-item a {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 0.75rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 44px;
}

.update-item a:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.update-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #e0e0e0;
}

.update-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.update-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.update-date {
  font-size: 0.8125rem;
  color: #888888;
}

/* =========================================================
   首页 - 更新榜单
   ========================================================= */
.ranking {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.ranking-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
  counter-reset: ranking-counter;
}

.ranking-item {
  counter-increment: ranking-counter;
  margin: 0;
}

.ranking-item a {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.75rem;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
  position: relative;
}

.ranking-item a:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.ranking-item a::before {
  content: counter(ranking-counter);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffc107;
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.ranking-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #e0e0e0;
}

.ranking-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.ranking-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-reason {
  font-size: 0.8125rem;
  color: #666666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   首页 - 指南入口
   ========================================================= */
.guide-entry {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.guide-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.guide-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.guide-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.guide-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0.875rem;
}

.guide-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a237e;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}

.guide-link:hover {
  color: #ffc107;
  text-decoration: underline;
}

/* =========================================================
   首页 - 长尾预告
   ========================================================= */
.long-tail {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid #f0f0f0;
}

.long-tail-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.long-tail-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.long-tail-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.long-tail-card figure {
  overflow: hidden;
  background: #f5f5f5;
}

.long-tail-card figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.long-tail-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #333333;
  padding: 1rem 1rem 0.25rem;
}

.long-tail-card p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
  padding: 0 1rem;
  margin-bottom: 0.75rem;
}

.long-tail-link {
  display: inline-block;
  margin: 0 1rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a237e;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}

.long-tail-link:hover {
  color: #ffc107;
  text-decoration: underline;
}

/* =========================================================
   内页 - 通用布局
   ========================================================= */
.inner-main {
  padding-top: 0;
  padding-bottom: 2rem;
}

.inner-main .page-header {
  padding-left: 0;
  padding-right: 0;
}

.inner-main .breadcrumb {
  padding-left: 0;
  padding-right: 0;
}

/* =========================================================
   分类页 - category.html
   ========================================================= */
.category-list {
  margin-bottom: 2.5rem;
}

.category-list h2,
.category-detail h2,
.related-links h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.category-tags {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.category-tag-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-tag-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.category-tag-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a237e;
}

.category-tag-card p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.category-tag-card a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a237e;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
  display: inline-block;
  align-self: flex-start;
}

.category-tag-card a:hover {
  color: #ffc107;
  text-decoration: underline;
}

.category-detail {
  margin-bottom: 2.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.category-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.category-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.category-item figure {
  overflow: hidden;
  background: #f5f5f5;
}

.category-item figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-item-body {
  padding: 0.875rem 1rem 1rem;
}

.category-item-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.375rem;
}

.category-item-body p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.category-item-body a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a237e;
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
  display: inline-block;
}

.category-item-body a:hover {
  color: #ffc107;
  text-decoration: underline;
}

.related-links {
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.related-list li {
  margin: 0;
}

.related-list a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333333;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
}

.related-list a:hover {
  background: #fff8e1;
  color: #1a237e;
  text-decoration: none;
}

/* =========================================================
   指南页 - guide.html
   ========================================================= */
.guide-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.guide-section {
  margin-bottom: 2.5rem;
}

.guide-section .section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.guide-section .section-intro {
  margin-bottom: 1.25rem;
}

.guide-steps {
  counter-reset: guide-step-counter;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-step {
  counter-increment: guide-step-counter;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.25rem;
  position: relative;
  padding-left: 3.5rem;
}

.guide-step::before {
  content: counter(guide-step-counter);
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: #1a237e;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  font-weight: 700;
}

.guide-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.guide-step p {
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.setting-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
}

.setting-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.375rem;
}

.setting-item p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0;
}

.submit-note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 6px;
  padding: 1.25rem;
  font-family: "SF Mono", "Cascadia Code", "Consolas", "Courier New", monospace;
  font-size: 0.875rem;
  color: #555555;
  line-height: 1.7;
  margin-top: 1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-item summary:hover {
  background: #fafafa;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  font-size: 1.25rem;
  color: #1a237e;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 0;
}

.related-links {
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.related-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.75rem;
}

.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.related-links li {
  margin: 0;
}

.related-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333333;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
}

.related-links a:hover {
  background: #fff8e1;
  color: #1a237e;
  text-decoration: none;
}

/* =========================================================
   职场漫画页 - workplace.html
   ========================================================= */
.recommend-list {
  margin-bottom: 2.5rem;
}

.recommend-list h2,
.character-topic h2,
.related h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.work-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.work-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f5f5f5;
}

.work-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #333333;
  padding: 0.875rem 1rem 0.25rem;
}

.work-card p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
  padding: 0 1rem 1rem;
  margin-bottom: 0;
}

.character-topic {
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.character-topic > p {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 1rem;
}

.topic-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.topic-card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.topic-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 0.5rem;
}

.topic-card p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0;
}

.related {
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
}

.related > p {
  font-size: 0.9375rem;
  color: #666666;
  margin-bottom: 1rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.related-links li {
  margin: 0;
}

.related-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333333;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
}

.related-links a:hover {
  background: #fff8e1;
  color: #1a237e;
  text-decoration: none;
}

/* =========================================================
   生活漫画页 - life.html
   ========================================================= */
.character-topic-section {
  margin-bottom: 2.5rem;
}

.character-topic-section .section-title,
.recommend-section .section-title,
.related-section .section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.character-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.character-card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s ease;
}

.character-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.character-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.875rem;
  background: #e0e0e0;
}

.character-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 0.5rem;
}

.character-card p {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 0;
}

.recommend-section {
  margin-bottom: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.recommend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.recommend-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.recommend-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.recommend-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f5f5f5;
}

.recommend-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #333333;
  padding: 0.875rem 1rem 0.25rem;
}

.recommend-card > p {
  font-size: 0.9375rem;
  color: #666666;
  line-height: 1.6;
  padding: 0 1rem;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.recommend-reason {
  font-size: 0.875rem;
  color: #1a237e;
  background: #f5f7ff;
  padding: 0.625rem 1rem;
  border-top: 1px solid #e8eaf6;
  margin: 0;
  line-height: 1.5;
}

.related-section {
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
}

.related-section .related-list {
  margin-top: 0.75rem;
}

.related-links-label {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 0.5rem;
}

.related-links-item {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333333;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  background: #fff8e1;
  color: #1a237e;
  text-decoration: none;
}

/* =========================================================
   404 页面
   ========================================================= */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  min-height: 60vh;
}

.error-panel {
  text-align: center;
  max-width: 560px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 2.5rem 2rem;
}

.error-panel h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333333;
  margin-bottom: 0.5rem;
}

.error-code {
  font-size: 3rem;
  font-weight: 700;
  color: #ffc107;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.error-desc {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 1.5rem;
}

.error-back {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #1a237e;
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  transition: background 0.2s ease;
}

.error-back:hover {
  background: #0d1559;
  color: #ffffff;
  text-decoration: none;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.error-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333333;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
}

.error-links a:hover {
  background: #fff8e1;
  color: #1a237e;
  text-decoration: none;
}

/* =========================================================
   响应式 - 平板 (≥768px)
   ========================================================= */
@media (min-width: 768px) {
  .brand-slogan {
    display: inline;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    width: auto;
    order: 0;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
    border-top: none;
    padding: 0;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list a {
    padding: 0.5rem 0.875rem;
    border-bottom: none;
    border-radius: 6px;
  }

  .nav-list a.is-current {
    background: #f0f1ff;
  }

  .footer-inner {
    grid-template-columns: 1fr 2fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .update-list {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-list {
    grid-template-columns: 1fr 1fr;
  }

  .guide-cards {
    grid-template-columns: 1fr 1fr;
  }

  .long-tail-cards {
    grid-template-columns: 1fr 1fr;
  }

  .category-tags {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topic-scroll {
    grid-template-columns: 1fr 1fr;
  }

  .character-scroll {
    grid-template-columns: 1fr 1fr;
  }

  .recommend-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   响应式 - 桌面 (≥1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-content {
    max-width: none;
  }

  .hero-media {
    margin-top: 0;
  }

  .update-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ranking-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-tags {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .topic-scroll {
    grid-template-columns: repeat(4, 1fr);
  }

  .character-scroll {
    grid-template-columns: repeat(4, 1fr);
  }

  .recommend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   响应式 - 大桌面 (≥1200px)
   ========================================================= */
@media (min-width: 1200px) {
  .ranking-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .category-tags {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .topic-scroll {
    grid-template-columns: repeat(4, 1fr);
  }

  .character-scroll {
    grid-template-columns: repeat(4, 1fr);
  }

  .recommend-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   打印样式（可选）
   ========================================================= */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .breadcrumb {
    display: none;
  }

  .site-main {
    padding: 0;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
