/* ============================================================
   漫蛙manwa2 全站样式表
   视觉方向：二次元清新风 · 明亮多色 · 细线标签 · 舒展间距
   ============================================================ */

/* ============================================================
   Base —— 基础重置、变量、全站骨架
   ============================================================ */

:root {
  --coral: #FF6B6B;
  --yellow: #FFD93D;
  --green: #6BCB77;
  --blue: #4D96FF;
  --bg-gray: #F7F7F7;
  --text-dark: #333333;
  --text-mid: #555555;
  --text-light: #888888;
  --border: #E8E8E8;
  --card-bg: #FFFFFF;
  --radius: 8px;
  --shadow-sm: 0 2px 8px rgba(51, 51, 51, 0.06);
  --shadow-hover: 0 6px 20px rgba(51, 51, 51, 0.10);
  --container: 1200px;
  --font-main: -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-gray);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
}

/* ============================================================
   Layout —— 全站统一页头、页脚、栅格系统
   ============================================================ */

/* ---------- 页头 ---------- */

.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.brand-name::first-letter {
  color: var(--coral);
}

.brand-slogan {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.08);
}

.nav-link.is-current {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.12);
  font-weight: 700;
}

/* 汉堡按钮（默认隐藏，手机端显示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: #2B2B2B;
  color: #CCCCCC;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: flex;
  gap: 48px;
}

.footer-brand {
  flex: 0 0 320px;
}

.footer-site-name {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-slogan {
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #999999;
}

.footer-links {
  flex: 1;
  display: flex;
  gap: 40px;
}

.footer-group {
  flex: 1;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul a {
  font-size: 14px;
  color: #AAAAAA;
  transition: color 0.2s ease;
}

.footer-group ul a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #777777;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 内页三栏外壳 ---------- */

.layout-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
}

.layout-shell .site-main {
  min-width: 0;
}

/* 内页主内容 */
.site-main.inner-main {
  background: transparent;
  min-width: 0;
}

/* 面包屑 */
.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--coral);
}

.breadcrumb-sep {
  color: #BBBBBB;
}

.breadcrumb-current {
  color: var(--text-mid);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 720px;
}

/* ============================================================
   Components —— 通用组件
   ============================================================ */

/* ---------- 区块标题 ---------- */

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--coral);
  border-radius: 2px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ---------- 标签 ---------- */

.tag-item {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  transition: all 0.2s ease;
}

.tag-item:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #FFFFFF;
}

/* ---------- 侧栏模块（首页） ---------- */

.side-module {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.side-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-gray);
}

.side-list li {
  margin-bottom: 6px;
}

.side-list a {
  display: block;
  padding: 6px 8px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-list a:hover {
  background: rgba(77, 150, 255, 0.08);
  color: var(--blue);
}

/* ---------- 通用侧栏（内页） ---------- */

.sidebar {
  min-width: 0;
}

.sidebar-inner {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-gray);
}

.sidebar-tip,
.sidebar-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  line-height: 1.6;
}

/* ---------- 榜单 ---------- */

.rank-list {
  counter-reset: rank;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-gray);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-gray);
  border-radius: 6px;
}

.rank-item:nth-child(1) .rank-num {
  background: var(--coral);
  color: #FFFFFF;
}

.rank-item:nth-child(2) .rank-num {
  background: var(--yellow);
  color: var(--text-dark);
}

.rank-item:nth-child(3) .rank-num {
  background: var(--blue);
  color: #FFFFFF;
}

.rank-body {
  flex: 1;
  min-width: 0;
}

.rank-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.rank-reason {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

.rank-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

.rank-link:hover {
  color: var(--coral);
}

/* ---------- 封面卡片 ---------- */

.topic-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-figure {
  position: relative;
  padding-top: 66.67%;
  overflow: hidden;
  background: var(--bg-gray);
}

.card-figure img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 14px 16px 4px;
}

.card-tags {
  font-size: 13px;
  color: var(--blue);
  padding: 0 16px;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-mid);
  padding: 0 16px 16px;
  line-height: 1.6;
}

/* ---------- 相关链接 ---------- */

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  transition: all 0.2s ease;
}

.related-links a:hover {
  color: #FFFFFF;
  background: var(--blue);
  border-color: var(--blue);
}

/* ============================================================
   Pages —— 各页面专属布局
   ============================================================ */

/* ---------- 首页 ---------- */

.site-main.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 首屏 hero */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-text {
  min-width: 0;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.hero-title em {
  font-style: normal;
  color: var(--coral);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--coral);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #E85A5A;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background: var(--card-bg);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 快速入口 */
.quick-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  color: var(--text-dark);
}

.entry-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.entry-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.entry-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

/* 题材分类导航带 */
.category-strip-wrap {
  margin-bottom: 48px;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* 首页三栏 */
.home-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.home-center {
  min-width: 0;
}

/* 最近更新 */
.update-section,
.rank-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.update-group {
  margin-bottom: 24px;
}

.update-group:last-child {
  margin-bottom: 0;
}

.update-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}

.update-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-gray);
}

.update-item:last-child {
  border-bottom: none;
}

.update-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.update-status {
  font-size: 13px;
  color: var(--green);
}

/* 人气榜单 */
.rank-section .rank-item {
  padding: 12px 0;
}

/* 阅读指南入口 */
.guide-entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.guide-card:hover {
  border-color: var(--blue);
  background: rgba(77, 150, 255, 0.04);
}

.guide-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.guide-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  display: block;
  margin-bottom: 2px;
}

.guide-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* 长尾推荐预告 */
.featured-topics {
  margin-bottom: 48px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.topic-card-large {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card-large:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.topic-card-large img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.topic-content {
  flex: 1;
  min-width: 0;
}

.topic-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.topic-content p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 10px;
}

.text-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.text-link:hover {
  color: var(--coral);
}

/* ---------- 分类页 ---------- */

.page-category .sidebar-left {
  position: sticky;
  top: 88px;
}

.topic-index-list li {
  margin-bottom: 4px;
}

.topic-index-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.topic-index-link:hover {
  background: rgba(255, 107, 107, 0.08);
  color: var(--coral);
}

.topic-section {
  margin-bottom: 48px;
}

.topic-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 4px solid var(--coral);
}

.topic-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 20px;
  padding-left: 16px;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-related {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.related-desc {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 16px;
}

/* ---------- 阅读指南页 ---------- */

.page-guide .sidebar-left-panel {
  position: sticky;
  top: 88px;
}

.task-nav {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.task-list {
  counter-reset: task;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-gray);
}

.task-item:last-child {
  border-bottom: none;
}

.task-state {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-gray);
  color: var(--text-light);
}

.task-item.is-done .task-state {
  background: var(--green);
  color: #FFFFFF;
}

.task-item.is-current .task-state {
  background: var(--coral);
  color: #FFFFFF;
}

.task-item a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}

.task-item.is-current a {
  color: var(--coral);
  font-weight: 700;
}

.task-tip {
  background: rgba(255, 217, 61, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* 指南章节 */
.guide-section {
  margin-bottom: 48px;
}

.guide-section > h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--blue);
}

.section-intro {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.guide-step-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--blue);
  border-radius: 50%;
  margin-bottom: 12px;
}

.guide-step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.guide-step-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.guide-step-card p a {
  color: var(--blue);
  font-weight: 500;
}

.guide-figure {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

.guide-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

/* 追更技巧 */
.tip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--green);
}

.tip-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* 追更管理 */
.manage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.manage-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.manage-note {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.manage-note h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.manage-note ul li {
  font-size: 14px;
  color: var(--text-mid);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.manage-note ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

/* 阅读设置 */
.settings-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.setting-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--yellow);
}

.setting-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.setting-item p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* 相关帮助 */
.help-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.help-list li {
  margin-bottom: 4px;
}

.help-list a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.help-list a:hover {
  background: rgba(77, 150, 255, 0.08);
  color: var(--blue);
}

.help-note {
  background: rgba(107, 203, 119, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ---------- 职场漫画页 ---------- */

.page-workplace .sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.sidebar-list li {
  margin-bottom: 4px;
}

.sidebar-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar-list a:hover {
  background: rgba(255, 107, 107, 0.08);
  color: var(--coral);
}

.recommend-list {
  margin-bottom: 48px;
}

.work-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.work-cover {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-gray);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-info {
  flex: 1;
  min-width: 0;
}

.work-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.work-tags {
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 8px;
}

.work-reason,
.work-audience {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 4px;
}

.work-reason strong,
.work-audience strong {
  color: var(--text-dark);
  font-weight: 600;
}

.pick-reason {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.pick-reason p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
}

.pick-reason p:last-child {
  margin-bottom: 0;
}

.pick-reason p strong {
  color: var(--coral);
  font-weight: 600;
}

/* ---------- 生活漫画页 ---------- */

.page-life .sidebar-left-panel {
  position: sticky;
  top: 88px;
}

.sidebar-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.content-section {
  margin-bottom: 48px;
}

.comic-item {
  display: flex;
  gap: 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.comic-cover {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-gray);
}

.comic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comic-info {
  flex: 1;
  min-width: 0;
}

.comic-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.comic-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.comic-tags .tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--blue);
  border: 1px solid rgba(77, 150, 255, 0.3);
  border-radius: 999px;
  background: rgba(77, 150, 255, 0.05);
}

.comic-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 8px;
}

.comic-point,
.comic-scene {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 4px;
}

.comic-point strong,
.comic-scene strong {
  color: var(--coral);
  font-weight: 600;
}

.comic-scene strong {
  color: var(--green);
}

/* 亮点解析 */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.analysis-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--yellow);
}

.analysis-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.analysis-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.section-footnote {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.section-footnote a {
  color: var(--blue);
  font-weight: 500;
}

/* 相关推荐卡片 */
.related-card {
  display: block;
  flex: 1;
  min-width: 200px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text-dark);
}

.related-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.related-desc {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ---------- 404 页 ---------- */

.error-main {
  min-height: calc(100vh - 72px - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.error-wrap {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 80px;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 24px;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.error-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--coral);
  color: #FFFFFF;
}

.error-btn:hover {
  background: #E85A5A;
  color: #FFFFFF;
}

.error-btn-secondary {
  background: var(--card-bg);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.error-btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.error-tip {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================================
   Responsive —— 响应式断点
   ============================================================ */

/* ---------- 平板（≤1024px） ---------- */

@media (max-width: 1024px) {
  .home-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .home-layout .sidebar-right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .layout-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .layout-shell .sidebar-right,
  .layout-shell .sidebar-right-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .layout-shell .sidebar-right .sidebar-inner,
  .layout-shell .sidebar-right .sidebar-card,
  .layout-shell .sidebar-right-panel .help-panel,
  .layout-shell .sidebar-right-panel .sidebar-box {
    margin-bottom: 0;
  }

  .hero-section {
    grid-template-columns: 1fr 320px;
  }

  .hero-title {
    font-size: 32px;
  }

  .topic-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 手机（≤768px） ---------- */

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius);
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 24px;
  }

  .hero-text {
    text-align: left;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-figure img {
    height: 200px;
  }

  .quick-entry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .entry-card {
    padding: 16px 20px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .entry-icon {
    margin-bottom: 0;
    font-size: 24px;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-layout .sidebar-right {
    grid-column: auto;
    display: block;
  }

  .home-layout .sidebar-left {
    display: none;
  }

  .layout-shell {
    grid-template-columns: 1fr;
    padding: 24px 16px 0;
    gap: 0;
  }

  .layout-shell .sidebar-right,
  .layout-shell .sidebar-right-panel {
    grid-column: auto;
    display: block;
  }

  .layout-shell .sidebar-left,
  .layout-shell .sidebar-left-panel {
    display: none;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card-large {
    flex-direction: column;
  }

  .topic-card-large img {
    width: 100%;
    height: 180px;
  }

  .guide-steps,
  .tip-grid,
  .settings-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .manage-layout {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-item,
  .comic-item {
    flex-direction: column;
  }

  .work-cover,
  .comic-cover {
    width: 100%;
    height: 180px;
  }

  .topic-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
    padding: 32px 16px 16px;
  }

  .footer-brand {
    flex: auto;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .footer-group {
    flex: auto;
  }

  .error-code {
    font-size: 60px;
  }

  .error-title {
    font-size: 22px;
  }
}

/* ---------- 小屏手机（≤390px） ---------- */

@media (max-width: 390px) {
  .header-inner {
    padding: 0 12px;
    gap: 12px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
    width: 100%;
  }

  .tag-strip {
    padding: 14px;
    gap: 8px;
  }

  .tag-item {
    padding: 4px 10px;
    font-size: 13px;
  }

  .update-item img {
    width: 52px;
    height: 40px;
  }

  .rank-item {
    gap: 10px;
  }

  .related-links {
    flex-direction: column;
  }

  .related-links a {
    text-align: center;
  }

  .related-card {
    min-width: 100%;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-btn {
    width: 100%;
    text-align: center;
  }
}
