/* ============================================================
   香蕉漫画 - 整站样式
   命令行工具风 × 漫画内容导航
   ============================================================ */

/* ------------------------------------------------------------
   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: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #3d454d;
  background-color: #f7f5f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #2f6b4f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e7a4e;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #171e24;
  font-weight: 600;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

p {
  margin-bottom: 0.5rem;
}

/* 成功状态色 */
.success-text {
  color: #2f9e6e;
}

/* ------------------------------------------------------------
   Layout 骨架
   ------------------------------------------------------------ */
.site-header {
  background-color: #171e24;
  border-bottom: 3px solid #2f9e6e;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

.brand-name {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 20px;
  font-weight: 700;
  color: #f7f5f0;
  letter-spacing: 0.04em;
}

.brand-name::before {
  content: "// ";
  color: #2f9e6e;
}

.site-nav .nav-list {
  display: flex;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 10px 14px;
  color: #c9d1d9;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav .nav-list a:hover {
  background-color: rgba(47, 158, 110, 0.15);
  color: #f7f5f0;
}

.site-nav .nav-list a.is-current {
  background-color: #2f9e6e;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #3d454d;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #f7f5f0;
  border-radius: 1px;
}

.site-main {
  flex: 1;
  width: 100%;
}

.site-footer {
  background-color: #171e24;
  color: #c9d1d9;
  margin-top: 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-title {
  font-size: 14px;
  color: #f7f5f0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #a8b3bd;
  font-size: 14px;
}

.footer-links a:hover {
  color: #2f9e6e;
}

.footer-bottom {
  border-top: 1px solid #3d454d;
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  max-width: 1160px;
  margin: 0 auto;
  font-size: 13px;
  color: #8b98a5;
}

/* ------------------------------------------------------------
   页面标题区 + 面包屑（内页通用）
   ------------------------------------------------------------ */
.inner-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b98a5;
  margin-bottom: 20px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.breadcrumb a {
  color: #2f6b4f;
}

.breadcrumb a:hover {
  color: #1e7a4e;
}

.breadcrumb-sep {
  color: #a8b3bd;
}

.breadcrumb-current {
  color: #3d454d;
}

.page-header {
  border-bottom: 1px solid #e0ddd5;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.page-title {
  font-size: 28px;
  color: #171e24;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  color: #3d454d;
  max-width: 720px;
}

/* 页面 body 类（仅业务模块调整，不覆盖全局） */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ------------------------------------------------------------
   首页 - 首屏更新队列
   ------------------------------------------------------------ */
.home-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  width: 100%;
}

.hero-queue {
  margin-bottom: 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 28px;
  align-items: stretch;
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  height: 100%;
  min-height: 360px;
  background-color: #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.terminal-panel {
  background-color: #f0ede6;
  border: 1px solid #d8d4ca;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-head {
  background-color: #171e24;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e2a03f;
}

.terminal-dot:nth-child(2) {
  background-color: #2f9e6e;
}

.terminal-dot:nth-child(3) {
  background-color: #3d454d;
}

.terminal-label {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: #a8b3bd;
  margin-left: 8px;
}

.terminal-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero-slogan {
  font-size: 16px;
  color: #3d454d;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #c9c4b8;
}

.queue-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.queue-block {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 14px 16px;
  border-left: 3px solid #2f9e6e;
}

.queue-block:nth-child(2) {
  border-left-color: #e2a03f;
}

.queue-block:nth-child(3) {
  border-left-color: #3d454d;
}

.queue-block-title {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #171e24;
  margin-bottom: 4px;
}

.queue-block-text {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 4px;
}

.queue-block .queue-link {
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #2f6b4f;
}

.queue-block .queue-link:hover {
  color: #1e7a4e;
}

/* ------------------------------------------------------------
   首页 - 题材索引条
   ------------------------------------------------------------ */
.genre-strip {
  margin-bottom: 48px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  margin-bottom: 6px;
}

.section-desc {
  color: #3d454d;
  font-size: 15px;
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #3d454d;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  color: #171e24;
  background-color: #ffffff;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.tag-item:hover {
  background-color: #171e24;
  color: #f7f5f0;
  border-color: #171e24;
}

/* ------------------------------------------------------------
   首页 - 最近更新摘要
   ------------------------------------------------------------ */
.recent-updates {
  margin-bottom: 48px;
}

.update-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.update-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0ddd5;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-card:hover {
  box-shadow: 0 4px 16px rgba(23, 30, 36, 0.08);
  transform: translateY(-2px);
}

.card-media {
  aspect-ratio: 3 / 4;
  background-color: #e8e4dc;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 14px 16px;
}

.card-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: #2f9e6e;
  border: 1px solid #2f9e6e;
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.card-status {
  display: block;
  font-size: 13px;
  color: #8b98a5;
  margin-bottom: 8px;
}

.card-link {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #2f6b4f;
}

.card-link:hover {
  color: #1e7a4e;
}

/* ------------------------------------------------------------
   首页 - 阅读路径三步
   ------------------------------------------------------------ */
.reading-path {
  margin-bottom: 48px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.path-step {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e0ddd5;
  position: relative;
}

.path-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #2f9e6e;
  border-radius: 8px 8px 0 0;
}

.path-step:nth-child(2)::before {
  background-color: #e2a03f;
}

.path-step:nth-child(3)::before {
  background-color: #3d454d;
}

.step-number {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #2f9e6e;
  margin-bottom: 8px;
}

.step-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.step-text {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 10px;
}

.step-link {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: #2f6b4f;
}

.step-link:hover {
  color: #1e7a4e;
}

/* ------------------------------------------------------------
   首页 - 榜单入口
   ------------------------------------------------------------ */
.rankings-entry {
  margin-bottom: 48px;
}

.rankings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.rankings-info .section-title {
  margin-bottom: 8px;
}

.rankings-desc {
  font-size: 15px;
  color: #3d454d;
  margin-bottom: 16px;
}

.rankings-link {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  color: #2f6b4f;
  border: 1px solid #2f6b4f;
  border-radius: 4px;
  padding: 8px 18px;
  transition: background-color 0.2s, color 0.2s;
}

.rankings-link:hover {
  background-color: #2f6b4f;
  color: #ffffff;
}

.rankings-visual {
  min-width: 0;
}

.rankings-figure {
  background-color: #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.rankings-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   首页 - 相关链接
   ------------------------------------------------------------ */
.related-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0ddd5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.related-links-label {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: #8b98a5;
}

.related-links-item {
  font-size: 14px;
  color: #2f6b4f;
}

.related-links-item:hover {
  color: #1e7a4e;
}

/* ------------------------------------------------------------
   内页 - 侧栏布局（题材索引 / 问题排查）
   ------------------------------------------------------------ */
.layout-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-inner {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 20px;
}

.sidebar-title {
  font-size: 15px;
  color: #171e24;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0ddd5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.sidebar-list li,
.year-nav li {
  margin-bottom: 4px;
}

.sidebar-list a,
.year-nav a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: #3d454d;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.sidebar-list a:hover,
.year-nav a:hover {
  background-color: #f0ede6;
  color: #171e24;
}

.sidebar-note {
  font-size: 13px;
  color: #8b98a5;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e0ddd5;
}

/* 问题排查侧栏 */
.symptom-aside {
  position: sticky;
  top: 80px;
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 20px;
}

.aside-title {
  font-size: 15px;
  color: #171e24;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0ddd5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.symptom-list li {
  margin-bottom: 4px;
}

.symptom-list a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: #3d454d;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.symptom-list a:hover {
  background-color: #f0ede6;
  color: #171e24;
}

.aside-note {
  font-size: 13px;
  color: #8b98a5;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #e0ddd5;
}

/* ------------------------------------------------------------
   题材索引页
   ------------------------------------------------------------ */
.genre-matrix {
  margin-bottom: 40px;
}

.matrix-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.matrix-item {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  padding: 16px;
}

.matrix-label {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  color: #171e24;
  margin-bottom: 6px;
}

.matrix-note {
  font-size: 14px;
  color: #3d454d;
}

.genre-details {
  margin-bottom: 40px;
}

.genre-card {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.card-text h3 {
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 8px;
}

.card-audience {
  font-size: 13px;
  color: #8b98a5;
}

.card-link a {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: #2f6b4f;
  border: 1px solid #2f6b4f;
  border-radius: 4px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.card-link a:hover {
  background-color: #2f6b4f;
  color: #ffffff;
}

.genre-sample {
  margin-bottom: 40px;
}

.sample-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.sample-figure {
  background-color: #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.sample-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-figure figcaption {
  font-size: 12px;
  color: #8b98a5;
  padding: 8px;
  text-align: center;
}

.sample-note p {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------
   更新记录页
   ------------------------------------------------------------ */
.page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.year-nav {
  margin-bottom: 8px;
}

.updates-summary {
  margin-bottom: 40px;
}

.year-block {
  margin-bottom: 32px;
}

.year-title {
  font-size: 20px;
  color: #171e24;
  padding-bottom: 8px;
  border-bottom: 2px solid #171e24;
  margin-bottom: 16px;
}

.month-group {
  margin-bottom: 20px;
}

.month-group h4 {
  font-size: 15px;
  color: #2f9e6e;
  margin-bottom: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.update-list li {
  margin-bottom: 8px;
}

.update-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  padding: 10px 14px;
}

.update-thumb {
  width: 48px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #e8e4dc;
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-info {
  flex: 1;
  min-width: 0;
}

.update-tags {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: #2f9e6e;
  display: block;
  margin-bottom: 2px;
}

.update-status {
  display: block;
  font-size: 13px;
  color: #3d454d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-link {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: #2f6b4f;
  white-space: nowrap;
}

.update-link:hover {
  color: #1e7a4e;
}

.timeline-detail {
  margin-bottom: 40px;
}

.timeline-node {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border-left: 4px solid #2f9e6e;
}

.timeline-node:nth-child(3) {
  border-left-color: #e2a03f;
}

.timeline-node:nth-child(4) {
  border-left-color: #3d454d;
}

.timeline-node h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.timeline-node p {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 6px;
}

.timeline-node strong {
  color: #171e24;
}

/* ------------------------------------------------------------
   榜单说明页
   ------------------------------------------------------------ */
.rank-dimensions {
  margin-bottom: 40px;
}

.section-intro {
  font-size: 15px;
  color: #3d454d;
  margin-bottom: 20px;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dimension-card {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 20px;
}

.dimension-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e0ddd5;
}

.dimension-card p {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 8px;
}

.rank-scenarios {
  margin-bottom: 40px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.scenario-card {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 20px;
  border-top: 3px solid #2f9e6e;
}

.scenario-card:nth-child(2) {
  border-top-color: #e2a03f;
}

.scenario-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.scenario-card p {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 8px;
}

.rank-entry {
  margin-bottom: 40px;
}

.entry-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.entry-text p {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 12px;
}

.entry-list {
  margin-bottom: 16px;
}

.entry-list li {
  font-size: 14px;
  color: #3d454d;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.entry-list li::before {
  content: ">";
  position: absolute;
  left: 4px;
  color: #2f9e6e;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.entry-figure {
  background-color: #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.entry-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-figure figcaption {
  font-size: 12px;
  color: #8b98a5;
  padding: 8px;
  text-align: center;
}

.rank-guide-links {
  margin-bottom: 40px;
}

.guide-link-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.guide-link-list a {
  display: block;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  color: #2f6b4f;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.guide-link-list a:hover {
  background-color: #171e24;
  border-color: #171e24;
  color: #f7f5f0;
}

/* ------------------------------------------------------------
   阅读指南页
   ------------------------------------------------------------ */
.guide-steps {
  margin-bottom: 40px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  overflow: hidden;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: #f0ede6;
  border-bottom: 1px solid #e0ddd5;
}

.step-header .step-number {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 18px;
  font-weight: 700;
  color: #2f9e6e;
  margin-bottom: 0;
}

.step-header h3 {
  font-size: 17px;
  margin-bottom: 0;
}

.step-body {
  padding: 20px;
}

.step-owner {
  font-size: 13px;
  color: #8b98a5;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  margin-bottom: 10px;
}

.step-body p {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 8px;
}

.step-body a {
  color: #2f6b4f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.step-body a:hover {
  color: #1e7a4e;
}

.guide-checklist {
  margin-bottom: 40px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  padding: 12px 16px;
}

.check-label {
  font-size: 14px;
  color: #3d454d;
  flex: 1;
}

.check-action a {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: #2f6b4f;
  white-space: nowrap;
}

.check-action a:hover {
  color: #1e7a4e;
}

.guide-progress {
  margin-bottom: 40px;
}

.progress-panel {
  background-color: #f0ede6;
  border: 1px solid #d8d4ca;
  border-radius: 8px;
  padding: 20px 24px;
}

.panel-label {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #171e24;
  margin-bottom: 4px;
}

.progress-panel p {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 10px;
}

.panel-note {
  font-size: 13px;
  color: #8b98a5;
  border-top: 1px dashed #c9c4b8;
  padding-top: 10px;
  margin-top: 10px;
}

.guide-media {
  margin-bottom: 40px;
  background-color: #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  max-width: 480px;
}

.guide-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.guide-media figcaption {
  font-size: 12px;
  color: #8b98a5;
  padding: 8px;
  text-align: center;
}

.guide-next {
  margin-bottom: 40px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.next-link {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.next-link:hover {
  border-color: #2f9e6e;
  box-shadow: 0 2px 12px rgba(23, 30, 36, 0.06);
}

.next-link-title {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 16px;
  font-weight: 600;
  color: #171e24;
  margin-bottom: 6px;
}

.next-link-desc {
  display: block;
  font-size: 14px;
  color: #3d454d;
}

.guide-extra {
  margin-top: 20px;
  font-size: 14px;
  color: #3d454d;
}

.guide-extra a {
  color: #2f6b4f;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.guide-extra a:hover {
  color: #1e7a4e;
}

/* ------------------------------------------------------------
   问题排查页
   ------------------------------------------------------------ */
.problem-hero-figure {
  background-color: #e8e4dc;
  border-radius: 8px;
  overflow: hidden;
  max-width: 480px;
  margin-bottom: 28px;
}

.problem-hero-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.problem-hero-figure figcaption {
  font-size: 12px;
  color: #8b98a5;
  padding: 8px;
  text-align: center;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
}

.faq-question {
  padding: 16px 20px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
  font-weight: 600;
  color: #171e24;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 18px;
  color: #2f9e6e;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #3d454d;
}

.faq-answer p {
  margin-bottom: 8px;
}

.checklist-section {
  background-color: #f0ede6;
  border-top: 1px solid #e0ddd5;
  border-bottom: 1px solid #e0ddd5;
  padding: 32px 0;
  margin-bottom: 40px;
}

.checklist-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist .check-item {
  background-color: #ffffff;
}

.checklist .check-label {
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  color: #171e24;
  min-width: 100px;
}

.checklist .check-item p {
  font-size: 14px;
  color: #3d454d;
  margin-bottom: 0;
  flex: 1;
}

.next-steps {
  margin-bottom: 40px;
}

.next-steps-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.next-steps .next-links {
  grid-template-columns: repeat(2, 1fr);
}

/* ------------------------------------------------------------
   404 页面
   ------------------------------------------------------------ */
.error-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 20px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-panel {
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  max-width: 560px;
  width: 100%;
  margin-bottom: 32px;
}

.error-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 48px;
  font-weight: 700;
  color: #2f9e6e;
  margin-bottom: 12px;
}

.error-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: #3d454d;
  margin-bottom: 20px;
}

.error-back {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  color: #ffffff;
  background-color: #2f6b4f;
  border-radius: 4px;
  padding: 10px 24px;
  transition: background-color 0.2s;
}

.error-back:hover {
  background-color: #1e7a4e;
  color: #ffffff;
}

.error-links {
  max-width: 560px;
  width: 100%;
}

.error-links-title {
  font-size: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.error-link-list a {
  display: block;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #e0ddd5;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  color: #2f6b4f;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.error-link-list a:hover {
  background-color: #171e24;
  border-color: #171e24;
  color: #f7f5f0;
}

/* ------------------------------------------------------------
   滚动动画（增强，不影响初始可见性）
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .update-card,
  .path-step,
  .dimension-card,
  .scenario-card,
  .genre-card,
  .timeline-node,
  .step-item {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------
   响应式 - 平板（≤1024px）
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .matrix-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .dimension-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-link-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   响应式 - 手机（≤768px）
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #171e24;
    border-top: 1px solid #3d454d;
    display: block;
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 16px;
    gap: 0;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 14px 12px;
    border-radius: 4px;
    font-size: 15px;
  }

  /* 内页容器 */
  .inner-main,
  .home-main {
    padding: 20px 16px 40px;
  }

  .page-title {
    font-size: 24px;
  }

  /* 首页 */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-figure {
    min-height: 240px;
  }

  .hero-figure img {
    min-height: 240px;
  }

  .terminal-body {
    padding: 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  .update-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .path-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rankings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .related-links {
    gap: 6px 12px;
  }

  /* 内页侧栏布局 */
  .layout-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .layout-shell .sidebar,
  .layout-shell .symptom-aside {
    position: static;
    order: 2;
    margin-top: 24px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-layout .sidebar {
    position: static;
    margin-top: 24px;
  }

  /* 题材索引页 */
  .matrix-group {
    grid-template-columns: 1fr;
  }

  .genre-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-link a {
    width: 100%;
    text-align: center;
  }

  .sample-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 更新记录页 */
  .update-item {
    flex-wrap: wrap;
  }

  .update-info {
    flex: 1 1 100%;
  }

  .update-link {
    margin-left: 60px;
  }

  /* 榜单说明页 */
  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .entry-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .guide-link-list {
    grid-template-columns: 1fr;
  }

  /* 阅读指南页 */
  .next-links {
    grid-template-columns: 1fr;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .check-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .check-action a {
    display: inline-block;
    padding: 8px 0;
    min-height: 44px;
    line-height: 1.4;
  }

  /* 问题排查页 */
  .faq-question {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 16px 14px;
  }

  .checklist .check-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .next-steps .next-links {
    grid-template-columns: 1fr;
  }

  /* 404 */
  .error-panel {
    padding: 28px 20px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-link-list {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-bottom {
    padding: 14px 16px;
  }
}

/* ------------------------------------------------------------
   响应式 - 小手机（≤480px）
   ------------------------------------------------------------ */
@media (max-width: 480px) {
  .brand-name {
    font-size: 17px;
  }

  .tag-item {
    padding: 6px 14px;
    font-size: 13px;
  }

  .queue-block {
    padding: 12px 14px;
  }

  .timeline-node {
    padding: 16px;
  }

  .update-thumb {
    width: 40px;
    height: 54px;
  }

  .update-link {
    margin-left: 52px;
  }

  .scenario-card {
    padding: 16px;
  }

  .dimension-card {
    padding: 16px;
  }

  .step-body {
    padding: 16px;
  }

  .progress-panel {
    padding: 16px;
  }

  .faq-question {
    padding: 12px 14px;
  }

  .faq-answer {
    padding: 0 14px 12px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
