/* ============================================================
   zgfwjzw.com - 香蕉漫画官网 全站样式
   设计方向：明亮多色二次元清新风 / 左侧窄侧边栏
   ============================================================ */

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #343A40;
  background-color: #F6F9FC;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #3D5AFE;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #26C6DA;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.4;
  color: #343A40;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* 全站骨架容器 */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Layout
   ============================================================ */

/* 首页与部分内页的左侧窄侧边栏布局 */
.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}

/* 内容包裹区 */
.content-wrapper {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* 全站主内容区 */
.site-main {
  flex: 1;
  min-width: 0;
}

/* 首页主内容 */
.home-main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* 内页主内容 */
.inner-main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 48px;
  min-width: 0;
}

/* 内页主内容宽度不小于侧栏 */
.inner-main {
  min-width: 520px;
}

/* 首页主内容宽度 */
.home-main {
  min-width: 520px;
}

/* 404 页面主内容 */
.error-main {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
  flex: 1;
}

/* 全站页头（移动端顶栏） */
.site-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E9ECEF;
}

/* ============================================================
   Sidebar
   ============================================================ */

/* 首页侧边栏 */
.site-sidebar {
  background-color: #FFFFFF;
  border-right: 1px solid #E9ECEF;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* 内页侧边栏（aside 直接子元素） */
.sidebar,
.sidebar-nav,
.global-sidebar {
  background-color: #FFFFFF;
  border-right: 1px solid #E9ECEF;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* 侧边栏品牌区 */
.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-brand a {
  font-size: 20px;
  font-weight: 700;
  color: #343A40;
  line-height: 1.3;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #343A40;
}

.brand-tag {
  font-size: 12px;
  color: #868E96;
  background-color: #F1F3F5;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.brand-tagline {
  font-size: 13px;
  color: #868E96;
  line-height: 1.5;
}

/* 侧边栏导航 */
.site-nav .nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  color: #495057;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  background-color: #F1F3F5;
  color: #3D5AFE;
}

.nav-list li a.is-current {
  background-color: #EDF2FF;
  color: #3D5AFE;
  font-weight: 600;
}

/* 侧边栏标签区 */
.sidebar-label {
  font-size: 13px;
  font-weight: 600;
  color: #868E96;
  display: block;
  margin-bottom: 8px;
}

.sidebar-topics,
.sidebar-topic-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-topics a,
.sidebar-topic-entry a {
  font-size: 14px;
  color: #495057;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-topics a:hover,
.sidebar-topic-entry a:hover {
  background-color: #F1F3F5;
  color: #3D5AFE;
}

/* 内页侧边栏标签组（updates 页） */
.sidebar-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag-group a {
  font-size: 13px;
  color: #495057;
  background-color: #F1F3F5;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-tag-group a:hover {
  background-color: #EDF2FF;
  color: #3D5AFE;
}

/* 侧边栏导航（faq / guide 页） */
.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-list li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  color: #495057;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav-list li a:hover {
  background-color: #F1F3F5;
  color: #3D5AFE;
}

.sidebar-nav-list li a.is-current {
  background-color: #EDF2FF;
  color: #3D5AFE;
  font-weight: 600;
}

/* rankings 页侧边栏导航 */
.sidebar-nav > a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  color: #495057;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav > a:hover {
  background-color: #F1F3F5;
  color: #3D5AFE;
}

.sidebar-nav > a.is-current {
  background-color: #EDF2FF;
  color: #3D5AFE;
  font-weight: 600;
}

/* updates 页侧边栏 */
.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-list li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  color: #495057;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-list li a:hover {
  background-color: #F1F3F5;
  color: #3D5AFE;
}

.sidebar-list li a.is-current {
  background-color: #EDF2FF;
  color: #3D5AFE;
  font-weight: 600;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 0 16px;
  font-size: 14px;
  color: #868E96;
}

.breadcrumb a {
  color: #3D5AFE;
}

.breadcrumb a:hover {
  color: #26C6DA;
}

.breadcrumb-sep {
  color: #CED4DA;
}

.breadcrumb-current {
  color: #495057;
  font-weight: 500;
}

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #343A40;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #495057;
  line-height: 1.8;
  max-width: 720px;
}

/* ============================================================
   Components
   ============================================================ */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #3D5AFE;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #2E4BEF;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(61, 90, 254, 0.3);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: #3D5AFE;
  border: 1px solid #D0D7DE;
}

.btn-secondary:hover {
  background-color: #F8F9FA;
  color: #3D5AFE;
  border-color: #3D5AFE;
}

/* ---------- 首页 Hero ---------- */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 40px;
}

.hero-copy h1 {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-slogan {
  font-size: 18px;
  font-weight: 600;
  color: #3D5AFE;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 16px;
  color: #495057;
  margin-bottom: 24px;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.mini-update-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mini-card {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.mini-card img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.mini-title {
  font-size: 13px;
  font-weight: 600;
  color: #343A40;
  line-height: 1.4;
}

.mini-tag {
  font-size: 11px;
  color: #3D5AFE;
  background-color: #EDF2FF;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  width: fit-content;
}

/* ---------- 首页 Section 通用 ---------- */
.topic-map-section,
.feature-entry-section,
.help-section,
.recent-updates-section,
.ranking-section,
.quick-start-section {
  padding: 32px 0;
  border-top: 1px solid #E9ECEF;
}

.topic-map-section h2,
.feature-entry-section h2,
.recent-updates-section h2,
.ranking-section h2,
.quick-start-section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 15px;
  color: #495057;
  margin-bottom: 24px;
  max-width: 640px;
}

/* ---------- 题材地图（首页 & 题材导航页） ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.topic-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.topic-card h3 {
  font-size: 17px;
  padding: 14px 16px 4px;
}

.topic-card p {
  font-size: 14px;
  color: #495057;
  padding: 0 16px;
  margin-bottom: 12px;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 16px;
}

.topic-tags .tag {
  font-size: 12px;
  color: #3D5AFE;
  background-color: #EDF2FF;
  padding: 3px 10px;
  border-radius: 4px;
}

/* 题材导航页卡片结构 */
.topic-body {
  padding: 0;
}

.topic-name {
  font-size: 17px;
  padding: 14px 16px 4px;
}

.topic-desc {
  font-size: 14px;
  color: #495057;
  padding: 0 16px;
  margin-bottom: 12px;
}

/* ---------- 功能入口卡 ---------- */
.entry-card-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.entry-card {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.entry-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.entry-icon {
  font-size: 24px;
  line-height: 1;
  color: #3D5AFE;
}

.entry-card h3 {
  font-size: 17px;
}

.entry-card p {
  font-size: 14px;
  color: #495057;
  margin-bottom: 0;
}

/* 内页相关入口卡（topics / faq / rankings） */
.related-links .entry-card {
  padding: 16px 20px;
}

.entry-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entry-text strong {
  font-size: 16px;
  color: #343A40;
}

.entry-text em {
  font-size: 14px;
  color: #495057;
  font-style: normal;
}

/* ---------- 查询帮助 ---------- */
.help-tip {
  background-color: #FFF9E6;
  border: 1px solid #FFD166;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.help-tip h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.help-tip p {
  font-size: 15px;
  color: #495057;
  margin-bottom: 0;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hot-tags a {
  font-size: 14px;
  color: #495057;
  background-color: #FFFFFF;
  border: 1px solid #D0D7DE;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hot-tags a:hover {
  background-color: #EDF2FF;
  color: #3D5AFE;
  border-color: #3D5AFE;
}

/* ---------- 最近更新（首页 & 更新记录页） ---------- */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.update-item {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s ease;
}

.update-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.update-item time {
  font-size: 14px;
  color: #868E96;
  white-space: nowrap;
  min-width: 72px;
  padding-top: 2px;
}

.update-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.update-item p {
  font-size: 14px;
  color: #495057;
  margin-bottom: 0;
}

/* 更新记录页条目 */
.update-content {
  flex: 1;
  min-width: 0;
}

.update-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.update-content p {
  font-size: 14px;
  color: #495057;
  margin-bottom: 0;
}

.update-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.status-new {
  background-color: #E8F5E9;
  color: #2E7D32;
}

.status-info {
  background-color: #E3F2FD;
  color: #1565C0;
}

.status-adjust {
  background-color: #FFF3E0;
  color: #E65100;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* 更新时间线 */
.update-group {
  margin-bottom: 32px;
}

.update-date {
  font-size: 16px;
  color: #3D5AFE;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #EDF2FF;
}

/* ---------- 人气榜单（首页） ---------- */
.ranking-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.rank-row {
  display: grid;
  grid-template-columns: 36px 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.rank-row:hover {
  background-color: #F8F9FA;
}

.rank-num {
  font-size: 16px;
  font-weight: 700;
  color: #3D5AFE;
  text-align: center;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  color: #343A40;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-bar {
  height: 12px;
  background-color: #E9ECEF;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.rank-bar-1 { width: 92%; background-color: #FF8A65; }
.rank-bar-2 { width: 78%; background-color: #FFD166; }
.rank-bar-3 { width: 64%; background-color: #26C6DA; }
.rank-bar-4 { width: 50%; background-color: #3D5AFE; }
.rank-bar-5 { width: 38%; background-color: #B8C6DB; }

.rank-link {
  display: inline-block;
  font-size: 14px;
  color: #3D5AFE;
  font-weight: 500;
}

.rank-link:hover {
  color: #26C6DA;
}

/* ---------- 快速开始（首页 & 快速入门页） ---------- */
.steps-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.step-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.step-num {
  font-size: 24px;
  font-weight: 700;
  color: #26C6DA;
  line-height: 1;
}

.step-card h3 {
  font-size: 17px;
}

.step-card p {
  font-size: 14px;
  color: #495057;
  margin-bottom: 0;
}

/* ---------- 首页相关链接 ---------- */
.related-links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: #868E96;
}

.related-links-item {
  font-size: 14px;
  color: #3D5AFE;
  padding: 6px 14px;
  background-color: #FFFFFF;
  border: 1px solid #D0D7DE;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  background-color: #EDF2FF;
  color: #3D5AFE;
  border-color: #3D5AFE;
}

/* ---------- 内页 Section 标题 ---------- */
.section-title {
  font-size: 20px;
  margin-bottom: 16px;
}

/* ---------- 题材导航页 ---------- */
.topics-intro {
  margin-bottom: 32px;
}

.topics-intro p {
  font-size: 15px;
  color: #495057;
  max-width: 720px;
}

/* 阅读提示 */
.reading-tip {
  background-color: #F1F8E9;
  border: 1px solid #C5E1A5;
  border-radius: 8px;
  padding: 24px;
  margin-top: 32px;
}

.reading-tip p {
  font-size: 15px;
  color: #495057;
  margin-bottom: 0;
}

.reading-tip a {
  font-weight: 500;
}

/* 内页相关链接区 */
.related-links {
  margin-top: 32px;
}

.related-links .entry-card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

/* ---------- 更新记录页 ---------- */
.update-summary {
  margin-bottom: 32px;
}

.update-summary p {
  font-size: 15px;
  color: #495057;
  max-width: 720px;
}

.content-media {
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
}

.content-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.content-media figcaption {
  font-size: 13px;
  color: #868E96;
  padding: 8px 12px;
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-top: none;
}

.content-media-inline {
  max-width: 640px;
}

.update-timeline {
  margin-bottom: 32px;
}

.update-timeline .update-list {
  gap: 12px;
}

.update-timeline .update-item {
  padding: 16px 20px;
}

.update-timeline .update-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

/* 回访说明 */
.visit-note {
  background-color: #E3F2FD;
  border: 1px solid #90CAF9;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.visit-note p {
  font-size: 15px;
  color: #495057;
  margin-bottom: 0;
}

.visit-note a {
  font-weight: 500;
}

/* 链接卡组 */
.link-card-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.link-card {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.link-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.link-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #3D5AFE;
}

.link-card-desc {
  font-size: 14px;
  color: #495057;
}

/* ---------- 人气榜单页 ---------- */
.rankings-intro {
  margin-bottom: 32px;
}

.rankings-intro p {
  font-size: 15px;
  color: #495057;
  max-width: 720px;
}

.rankings-chart {
  margin-bottom: 40px;
}

.section-note {
  font-size: 14px;
  color: #868E96;
  margin-bottom: 20px;
}

.chart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-item {
  display: grid;
  grid-template-columns: 40px 140px 1fr 56px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.chart-item:hover {
  background-color: #F8F9FA;
}

.chart-rank {
  font-size: 16px;
  font-weight: 700;
  color: #3D5AFE;
  text-align: center;
}

.chart-name {
  font-size: 15px;
  font-weight: 600;
  color: #343A40;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar {
  height: 14px;
  background-color: #E9ECEF;
  border-radius: 7px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 7px;
}

.bar-fill-high {
  width: 92%;
  background-color: #FF8A65;
}

.bar-fill-mid-high {
  width: 78%;
  background-color: #FFD166;
}

.bar-fill-mid {
  width: 64%;
  background-color: #26C6DA;
}

.bar-fill-low-mid {
  width: 50%;
  background-color: #3D5AFE;
}

.bar-fill-low {
  width: 38%;
  background-color: #B8C6DB;
}

.chart-value {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  text-align: right;
}

/* 详细表格 */
.rankings-table-section {
  margin-bottom: 40px;
}

.table-wrapper {
  overflow-x: auto;
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rankings-table thead {
  background-color: #F8F9FA;
}

.rankings-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #E9ECEF;
}

.rankings-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #F1F3F5;
  color: #343A40;
}

.rankings-table tr:last-child td {
  border-bottom: none;
}

.heat-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
}

.heat-high {
  background-color: #FFE0D6;
  color: #E65100;
}

.heat-mid {
  background-color: #FFF3E0;
  color: #E65100;
}

.heat-low {
  background-color: #E3F2FD;
  color: #1565C0;
}

/* 榜单解读 */
.rankings-insight {
  margin-bottom: 32px;
}

.rankings-insight p {
  font-size: 15px;
  color: #495057;
  max-width: 720px;
}

.insight-figure {
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.insight-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* 榜单页相关入口 */
.entry-title {
  font-size: 16px;
  font-weight: 600;
  color: #343A40;
}

.entry-desc {
  font-size: 14px;
  color: #495057;
}

/* ---------- 快速入门页 ---------- */
.intro-section {
  margin-bottom: 32px;
}

.lead-text {
  font-size: 17px;
  color: #495057;
  max-width: 720px;
  line-height: 1.8;
}

.reader-note {
  background-color: #F1F3F5;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
}

.reader-note h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.reader-note p {
  font-size: 15px;
  color: #495057;
  margin-bottom: 8px;
}

.guide-step {
  margin-bottom: 32px;
}

.step-number {
  font-size: 28px;
  font-weight: 700;
  color: #26C6DA;
  line-height: 1;
}

.step-content {
  flex: 1;
}

.step-content h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: #495057;
  max-width: 640px;
}

.step-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #3D5AFE;
  margin-top: 8px;
}

.step-link:hover {
  color: #26C6DA;
}

.step-figure {
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.step-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* 快速入门步骤卡片布局 */
.guide-step .step-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
}

/* 相关卡片 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  color: #3D5AFE;
}

.related-desc {
  font-size: 14px;
  color: #495057;
}

/* ---------- FAQ 页 ---------- */
.faq-section {
  margin-bottom: 32px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #343A40;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background-color: #F8F9FA;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: #3D5AFE;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #495057;
}

.faq-answer p {
  margin-bottom: 0;
}

/* FAQ 帮助块 */
.faq-help {
  margin-bottom: 32px;
}

.help-block {
  background-color: #FFF9E6;
  border: 1px solid #FFD166;
  border-radius: 8px;
  padding: 20px 24px;
}

.help-block p {
  font-size: 15px;
  color: #495057;
  margin-bottom: 0;
}

.help-block a {
  font-weight: 500;
}

/* FAQ 插图 */
.faq-illustration {
  margin: 24px 0 32px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-illustration img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.faq-illustration figcaption {
  font-size: 13px;
  color: #868E96;
  padding: 8px 12px;
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-top: none;
}

/* ---------- 版权说明页 ---------- */
.page-hero-figure {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.page-hero-figure .hero-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.content-block {
  margin-bottom: 32px;
}

.content-block h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.content-block p {
  font-size: 15px;
  color: #495057;
  max-width: 720px;
}

.rule-list {
  margin: 12px 0;
  padding-left: 20px;
  list-style: disc;
}

.rule-list li {
  font-size: 15px;
  color: #495057;
  margin-bottom: 8px;
  line-height: 1.7;
}

/* 版权页相关入口 */
.entry-link-card {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.entry-link-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.entry-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #3D5AFE;
}

.entry-card-desc {
  font-size: 14px;
  color: #495057;
}

/* ---------- 404 页面 ---------- */
.error-panel {
  background-color: #FFFFFF;
  border: 1px solid #E9ECEF;
  border-radius: 8px;
  padding: 48px 32px;
  text-align: center;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: #3D5AFE;
  line-height: 1.2;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: #495057;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.error-help {
  font-size: 14px;
  color: #868E96;
}

.error-help a {
  margin: 0 6px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E9ECEF;
  padding: 40px 24px 24px;
  margin-top: auto;
}

.site-footer .footer-brand,
.site-footer .footer-links,
.site-footer .footer-info {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: #343A40;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: #868E96;
  max-width: 480px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-label {
  font-size: 13px;
  font-weight: 600;
  color: #868E96;
  width: 100%;
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: #495057;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #3D5AFE;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-info a {
  font-size: 14px;
  color: #495057;
  transition: color 0.2s ease;
}

.footer-info a:hover {
  color: #3D5AFE;
}

.footer-copyright {
  font-size: 13px;
  color: #ADB5BD;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid #F1F3F5;
}

/* ============================================================
   Mobile Nav
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #343A40;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-brand {
  display: none;
  font-size: 18px;
  font-weight: 700;
  color: #343A40;
}

.mobile-nav {
  display: none;
}

/* ============================================================
   Responsive
   ============================================================ */

/* 平板与中等屏幕 */
@media (max-width: 1024px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    gap: 32px;
  }

  .mini-update-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-item {
    grid-template-columns: 36px 120px 1fr 48px;
  }
}

/* 移动端 */
@media (max-width: 768px) {
  /* 布局切换为单列 */
  .layout-shell.sidebar-left {
    display: block;
  }

  /* 隐藏桌面侧边栏 */
  .site-sidebar,
  .sidebar,
  .sidebar-nav,
  .global-sidebar {
    display: none;
  }

  /* 显示移动顶栏 */
  .site-header {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-brand {
    display: block;
  }

  /* 移动导航抽屉 */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E9ECEF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-nav .nav-list {
    padding: 12px 16px;
  }

  .mobile-nav .nav-list.is-open {
    max-height: none;
  }

  .mobile-nav .nav-list li a {
    display: block;
    padding: 10px 12px;
    font-size: 15px;
    color: #343A40;
    border-radius: 6px;
  }

  .mobile-nav .nav-list li a:hover {
    background-color: #F1F3F5;
  }

  .mobile-nav .nav-list li a.is-current {
    background-color: #EDF2FF;
    color: #3D5AFE;
  }

  /* 主内容宽度 */
  .home-main,
  .inner-main {
    min-width: 0;
    padding: 0 16px 32px;
  }

  /* 首页 Hero 单列 */
  .hero-section {
    grid-template-columns: 1fr;
    padding: 24px 0;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-figure img {
    height: 200px;
  }

  /* 题材网格 */
  .topic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card img {
    height: 140px;
  }

  /* 功能入口 */
  .entry-card-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 更新条目 */
  .update-item {
    flex-direction: column;
    gap: 8px;
  }

  .update-item time {
    min-width: 0;
  }

  /* 排行条 */
  .rank-row {
    grid-template-columns: 28px 90px 1fr;
    gap: 8px;
  }

  /* 快速开始 */
  .steps-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 相关链接 */
  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* 内页：图表 */
  .chart-item {
    grid-template-columns: 28px 90px 1fr 40px;
    gap: 8px;
    padding: 10px;
  }

  /* 表格横向滚动 */
  .table-wrapper {
    overflow-x: auto;
  }

  .rankings-table {
    min-width: 480px;
  }

  /* 快速入门步骤 */
  .guide-step .step-card {
    flex-direction: column;
    gap: 16px;
  }

  .step-figure {
    width: 100%;
  }

  .step-figure img {
    height: 140px;
  }

  /* 相关网格 */
  .related-grid,
  .link-card-group {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 页脚 */
  .site-footer {
    padding: 32px 16px 20px;
  }

  .footer-links,
  .footer-info {
    flex-direction: column;
    gap: 8px;
  }

  .footer-label {
    width: auto;
  }

  /* 404 */
  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* FAQ 页 */
  .faq-item summary {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 0 16px 14px;
  }

  /* 版权页 */
  .page-hero-figure .hero-image {
    height: 160px;
  }

  .content-block {
    margin-bottom: 24px;
  }
}

/* 小屏手机 */
@media (max-width: 390px) {
  .home-main,
  .inner-main {
    padding: 0 12px 24px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .mini-update-cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .mini-card img {
    height: 64px;
  }

  .rank-row {
    grid-template-columns: 24px 72px 1fr;
    gap: 6px;
    padding: 8px;
  }

  .rank-name {
    font-size: 14px;
  }

  .chart-item {
    grid-template-columns: 24px 72px 1fr 36px;
    gap: 6px;
    padding: 8px;
  }

  .chart-name {
    font-size: 14px;
  }

  .chart-value {
    font-size: 13px;
  }

  .breadcrumb {
    padding: 16px 0 12px;
    font-size: 13px;
    flex-wrap: wrap;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 18px;
  }
}
