/* ============================================================
   女神漫画官网 · 全站样式表
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ------------------------------------------------------------
   base
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background-color: #f6f7f3;
  color: #1c2321;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
figcaption,
dl,
dd,
dt,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.35;
  color: #1c2321;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #1f6f8b;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: #14505f;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid #1f6f8b;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   layout · 全站骨架
   ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid #d9ded8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  height: 64px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-main {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px 72px;
}

.inner-main {
  padding-top: 24px;
}

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid #d9ded8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 32px 28px;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 32px 32px;
  border-top: 1px solid #d9ded8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   layout · 内页通用骨架
   ------------------------------------------------------------ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumb a {
  color: #1f6f8b;
}

.breadcrumb a:hover {
  color: #14505f;
}

.breadcrumb-sep {
  color: #b7beb8;
}

.breadcrumb-current {
  color: #1c2321;
  font-weight: 600;
}

.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: #1c2321;
}

.page-head {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d9ded8;
}

.page-lead {
  max-width: 820px;
  color: #3a423e;
  font-size: 15px;
  line-height: 1.8;
}

.page-meta,
.info-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 16px;
  padding: 14px 18px;
  background-color: #ffffff;
  border: 1px solid #d9ded8;
  border-radius: 6px;
}

.meta-row,
.meta-item,
.info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.meta-row dt,
.meta-item dt,
.info-row dt {
  color: #5f6b66;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: normal;
}

.meta-row dd,
.meta-item dd,
.info-row dd {
  color: #1c2321;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.page-layout {
  display: grid;
  gap: 32px;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.sidebar-left {
  grid-template-columns: 280px minmax(0, 1fr);
}

.main-content {
  min-width: 0;
}

.side-column,
.side-panel {
  min-width: 0;
}

/* ------------------------------------------------------------
   components · 页头 / 导航
   ------------------------------------------------------------ */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #1c2321;
}

.brand:hover {
  color: #1c2321;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 6px;
  background-color: #1f6f8b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.brand-slogan {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav li {
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  color: #3a423e;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.nav-link:hover {
  color: #14505f;
  background-color: #e4f0f1;
}

.nav-link.is-current {
  color: #14505f;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 0 #e8735a;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 6px;
  border: 1px solid #d9ded8;
  background-color: #ffffff;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background-color: #1c2321;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid #d9ded8;
  background-color: #ffffff;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px 16px;
}

.mobile-nav li {
  border-bottom: 1px solid #eef1ec;
}

.mobile-nav li:last-child {
  border-bottom: 0;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  color: #1c2321;
  font-size: 15px;
}

.mobile-nav a:hover {
  color: #14505f;
  background-color: #e4f0f1;
}

/* ------------------------------------------------------------
   components · 页脚
   ------------------------------------------------------------ */

.footer-brand {
  min-width: 0;
}

.footer-name {
  color: #1c2321;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-desc {
  margin-top: 8px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.7;
}

.footer-col {
  min-width: 0;
}

.footer-title {
  margin-bottom: 12px;
  color: #1c2321;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  display: inline-block;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.6;
}

.footer-col a:hover {
  color: #14505f;
}

.footer-copy {
  color: #5f6b66;
  font-size: 13px;
}

/* ------------------------------------------------------------
   components · 通用按钮 / 链接 / 标签
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.btn-primary {
  background-color: #1f6f8b;
  border-color: #1f6f8b;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #14505f;
  border-color: #14505f;
  color: #ffffff;
}

.btn-ghost {
  background-color: #ffffff;
  border-color: #1f6f8b;
  color: #1f6f8b;
}

.btn-ghost:hover {
  background-color: #e4f0f1;
  color: #14505f;
  border-color: #14505f;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1f6f8b;
  font-size: 14px;
  font-weight: 600;
}

.link-more::after {
  content: "→";
  font-size: 13px;
}

.link-more:hover {
  color: #14505f;
}

.section-foot {
  margin-top: 18px;
}

/* ------------------------------------------------------------
   components · 表格
   ------------------------------------------------------------ */

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #ffffff;
}

.data-table {
  width: 100%;
  min-width: 560px;
  font-size: 14px;
  line-height: 1.6;
}

.data-table caption {
  padding: 10px 14px;
  color: #5f6b66;
  font-size: 13px;
  text-align: left;
  caption-side: top;
}

.data-table thead th {
  padding: 11px 14px;
  background-color: #eef3f2;
  border-bottom: 1px solid #d9ded8;
  color: #1c2321;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef1ec;
  color: #3a423e;
  text-align: left;
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover th,
.data-table tbody tr:hover td {
  background-color: #f2f7f7;
}

.data-table tbody th {
  color: #1c2321;
  font-weight: 600;
}

.data-table-compact {
  min-width: 420px;
}

.cell-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1c2321;
  white-space: nowrap;
}

.cell-date {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  color: #5f6b66;
  white-space: nowrap;
}

.col-num {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1c2321;
  text-align: center;
  white-space: nowrap;
}

.table-note,
.table-caption {
  margin-top: 10px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.7;
}

.table-note a {
  color: #1f6f8b;
}

.table-note a + a {
  margin-left: 12px;
}

/* ------------------------------------------------------------
   components · 状态徽标
   ------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.badge-ongoing,
.badge-serial {
  background-color: #e4f0f1;
  color: #14505f;
}

.badge-done {
  background-color: #f6f7f3;
  border: 1px solid #c9d2cb;
  color: #3a423e;
}

.badge-pause,
.badge-paused {
  background-color: #f0e9d6;
  color: #8a7a52;
}

/* ------------------------------------------------------------
   pages · 首页
   ------------------------------------------------------------ */

.home-main {
  padding-top: 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
}

.hero-summary {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: #e4f0f1;
  color: #14505f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.hero-summary h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  color: #3a423e;
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-facts {
  margin-top: 24px;
  padding: 14px 18px;
  background-color: #ffffff;
  border: 1px solid #d9ded8;
  border-left: 3px solid #e8735a;
  border-radius: 6px;
}

.fact-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  min-width: 0;
}

.fact-row + .fact-row {
  border-top: 1px dashed #eef1ec;
}

.fact-row dt {
  flex: 0 0 84px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.6;
}

.fact-row dd {
  flex: 1 1 auto;
  min-width: 0;
  color: #1c2321;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.hero-covers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.cover-hero {
  overflow: hidden;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.cover-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cover-hero figcaption {
  padding: 10px 14px;
  border-top: 1px solid #eef1ec;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.6;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cover-card {
  display: block;
  overflow: hidden;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
  color: #1c2321;
}

.cover-card:hover {
  border-color: #1f6f8b;
  color: #1c2321;
}

.cover-card figure {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cover-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cover-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #eef1ec;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.cover-name {
  color: #1c2321;
}

/* 目录锚点条 */

.anchor-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #d9ded8;
}

.anchor-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  background-color: #ffffff;
  color: #1c2321;
  font-size: 14px;
  line-height: 1.4;
}

.anchor-item:hover {
  background-color: #e4f0f1;
  color: #14505f;
}

.anchor-no {
  flex: 0 0 auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #e8735a;
}

.anchor-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 通用 section 标题 */

.section {
  margin-bottom: 48px;
  scroll-margin-top: 72px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  position: relative;
  padding-left: 12px;
  font-size: 22px;
  line-height: 1.35;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background-color: #e8735a;
}

.section-desc {
  margin-top: 8px;
  max-width: 820px;
  color: #5f6b66;
  font-size: 14px;
  line-height: 1.75;
}

/* 题材标签带 */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #e4f0f1;
  color: #14505f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.tag:hover {
  border-color: #1f6f8b;
  background-color: #ffffff;
  color: #14505f;
}

.tag-count {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #5f6b66;
}

/* 状态计数 + 更新表 */

.status-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.status-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #ffffff;
}

.status-num {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #1c2321;
}

.status-label {
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.5;
}

.status-cell.status-ongoing {
  border-left: 3px solid #1f6f8b;
}

.status-cell.status-done {
  border-left: 3px solid #c9d2cb;
}

.status-cell.status-pause {
  border-left: 3px solid #8a7a52;
}

.update-table {
  min-width: 520px;
}

/* 双榜 */

.rank-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rank-col {
  min-width: 0;
  padding: 20px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.rank-title {
  font-size: 18px;
  line-height: 1.4;
}

.rank-rule {
  margin-top: 6px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.7;
}

.rank-list {
  margin-top: 14px;
  border-top: 1px solid #eef1ec;
}

.rank-list li {
  border-bottom: 1px solid #eef1ec;
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 6px;
  color: #1c2321;
  font-size: 14px;
  line-height: 1.5;
}

.rank-list a:hover {
  background-color: #f2f7f7;
  color: #14505f;
}

.rank-no {
  flex: 0 0 22px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #e8735a;
}

.rank-code {
  flex: 0 0 auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1c2321;
}

.rank-genre {
  min-width: 0;
  flex: 1 1 auto;
  color: #5f6b66;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 题材词条索引 */

.term-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.term-item {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.term-item:hover {
  border-color: #1f6f8b;
}

.term-item h3 {
  font-size: 17px;
  line-height: 1.4;
}

.term-scope {
  margin-top: 8px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.term-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.term-count {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #5f6b66;
}

.term-meta a {
  color: #1f6f8b;
  font-weight: 600;
}

.term-meta a:hover {
  color: #14505f;
}

/* 专题路径入口 */

.path-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.path-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.path-card:hover {
  border-color: #1f6f8b;
}

.path-figure {
  overflow: hidden;
}

.path-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.path-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  min-width: 0;
}

.path-body h3 {
  font-size: 17px;
  line-height: 1.4;
}

.path-audience {
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.path-meta {
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.6;
}

.path-body .link-more {
  margin-top: 4px;
}

/* 阅读基础与纠错入口 */

.basics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.term-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.term-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.term-card h3 {
  font-size: 16px;
  line-height: 1.4;
}

.term-card p {
  margin-top: 8px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.fix-entry {
  min-width: 0;
  padding: 20px;
  border: 1px solid #d9ded8;
  border-left: 3px solid #e8735a;
  border-radius: 8px;
  background-color: #ffffff;
}

.fix-entry h3 {
  font-size: 17px;
  line-height: 1.4;
}

.fix-entry p {
  margin-top: 8px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.75;
}

.fix-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.fix-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: #1f6f8b;
  font-size: 14px;
  font-weight: 600;
}

.fix-links a:hover {
  color: #14505f;
}

/* ------------------------------------------------------------
   pages · 题材词条页
   ------------------------------------------------------------ */

.page-ticai-cidian .summary-box {
  margin-bottom: 32px;
  padding: 20px 22px;
  border: 1px solid #d9ded8;
  border-left: 3px solid #1f6f8b;
  border-radius: 8px;
  background-color: #ffffff;
  scroll-margin-top: 72px;
}

.summary-box h2 {
  font-size: 20px;
  line-height: 1.4;
}

.summary-box > p {
  margin-top: 10px;
  color: #3a423e;
  font-size: 15px;
  line-height: 1.8;
}

.summary-box .info-bar {
  margin-top: 16px;
}

.term-table,
.term-demo,
.confusable {
  margin-bottom: 32px;
  scroll-margin-top: 72px;
}

.term-table h2,
.term-demo h2,
.confusable h2 {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
}

.term-table h2::before,
.term-demo h2::before,
.confusable h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background-color: #e8735a;
}

.term-table > p,
.term-demo > p,
.confusable > p {
  margin-bottom: 14px;
  color: #5f6b66;
  font-size: 14px;
  line-height: 1.75;
}

.term-demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.term-demo-grid .term-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.term-card-media {
  overflow: hidden;
  border-bottom: 1px solid #eef1ec;
}

.term-card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.term-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  min-width: 0;
}

.term-card-body h3 {
  font-size: 17px;
  line-height: 1.4;
}

.term-card-body > p {
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.term-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed #eef1ec;
}

.term-field {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
}

.term-field dt {
  flex: 0 0 76px;
  color: #5f6b66;
}

.term-field dd {
  flex: 1 1 auto;
  min-width: 0;
  color: #1c2321;
}

.confusable-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confusable-item {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #ffffff;
}

.confusable-pair {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #1c2321;
}

.confusable-item p {
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.side-column .side-block {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.side-column .side-block:last-child {
  margin-bottom: 0;
}

.side-column .side-block h2 {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 6px;
  border-radius: 4px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.5;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #e8735a;
}

.toc-list a:hover {
  background-color: #e4f0f1;
  color: #14505f;
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  border-radius: 4px;
  color: #1f6f8b;
  font-size: 14px;
  line-height: 1.5;
}

.side-links a:hover {
  background-color: #e4f0f1;
  color: #14505f;
}

/* 相关入口条 */

.related-entries {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.related-entries h2 {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.35;
}

.related-entries h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background-color: #e8735a;
}

.related-entries > p {
  margin-bottom: 14px;
  color: #5f6b66;
  font-size: 14px;
  line-height: 1.7;
}

.related-links,
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a,
.related-list a,
.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #f6f7f3;
  color: #1f6f8b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.related-links a:hover,
.related-list a:hover,
.related-link:hover {
  border-color: #1f6f8b;
  background-color: #e4f0f1;
  color: #14505f;
}

/* ------------------------------------------------------------
   pages · 漫画条目页
   ------------------------------------------------------------ */

.page-manhua-tiaomu .side-panel .side-block {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.page-manhua-tiaomu .side-panel .side-block:last-child {
  margin-bottom: 0;
}

.side-title {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.4;
}

.side-note {
  margin-bottom: 12px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.65;
}

.status-count {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-count-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  background-color: #f6f7f3;
}

.status-count-num {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #1c2321;
}

.status-count-label {
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.4;
}

.status-count-item.is-serial {
  border-left: 3px solid #1f6f8b;
}

.status-count-item.is-done {
  border-left: 3px solid #c9d2cb;
}

.status-count-item.is-paused {
  border-left: 3px solid #8a7a52;
}

.status-figure {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #eef1ec;
  border-radius: 6px;
}

.status-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.status-figure figcaption {
  padding: 8px 10px;
  border-top: 1px solid #eef1ec;
  color: #5f6b66;
  font-size: 12px;
  line-height: 1.6;
}

.group-jump-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.group-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 4px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.5;
}

.group-row a:hover {
  background-color: #e4f0f1;
  color: #14505f;
}

.group-count {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #5f6b66;
}

.entry-table,
.field-guide,
.pause-tips {
  margin-bottom: 32px;
  scroll-margin-top: 72px;
}

.entry-table h2,
.field-guide h2,
.pause-tips h2 {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
}

.entry-table h2::before,
.field-guide h2::before,
.pause-tips h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background-color: #e8735a;
}

.section-note {
  margin-bottom: 14px;
  color: #5f6b66;
  font-size: 14px;
  line-height: 1.75;
}

.entry-table .data-table {
  min-width: 520px;
}

.pause-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pause-list li {
  display: grid;
  grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 16px;
  border: 1px solid #d9ded8;
  border-left: 3px solid #8a7a52;
  border-radius: 6px;
  background-color: #ffffff;
}

.pause-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1c2321;
}

.pause-list p {
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.pause-footnote {
  margin-top: 12px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.7;
}

.pause-footnote a {
  color: #1f6f8b;
  font-weight: 600;
}

/* ------------------------------------------------------------
   pages · 专题路径页
   ------------------------------------------------------------ */

.page-zhuanti-lujing .page-head {
  margin-bottom: 32px;
}

.path-overview,
.path-cards,
.path-genre-map,
.reading-pace {
  margin-bottom: 36px;
  scroll-margin-top: 72px;
}

.path-overview h2,
.path-cards h2,
.path-genre-map h2,
.reading-pace h2 {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
}

.path-overview h2::before,
.path-cards h2::before,
.path-genre-map h2::before,
.reading-pace h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background-color: #e8735a;
}

.path-overview > p,
.path-cards > p,
.path-genre-map > p,
.reading-pace > p {
  margin-bottom: 14px;
  max-width: 820px;
  color: #5f6b66;
  font-size: 14px;
  line-height: 1.75;
}

.path-overview > p a,
.path-cards > p a,
.path-genre-map > p a,
.reading-pace > p a {
  color: #1f6f8b;
  font-weight: 600;
}

.path-overview .data-table {
  min-width: 640px;
}

.page-zhuanti-lujing .path-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-zhuanti-lujing .path-card {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: stretch;
}

.path-card-media {
  overflow: hidden;
  border-right: 1px solid #eef1ec;
}

.path-card-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.path-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  min-width: 0;
}

.path-card-body h3 {
  font-size: 18px;
  line-height: 1.4;
}

.path-card-audience {
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed #eef1ec;
}

.path-steps li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.path-steps .step-no {
  flex: 0 0 24px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #e8735a;
}

.path-card-link {
  align-self: flex-start;
  margin-top: 4px;
  color: #1f6f8b;
  font-size: 14px;
  font-weight: 600;
}

.path-card-link::after {
  content: "→";
  margin-left: 4px;
  font-size: 13px;
}

.path-card-link:hover {
  color: #14505f;
}

.path-genre-map .data-table {
  min-width: 480px;
}

.pace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pace-col {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.pace-col h3 {
  font-size: 16px;
  line-height: 1.4;
}

.pace-col p {
  margin-top: 8px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.75;
}

/* ------------------------------------------------------------
   pages · 阅读基础页
   ------------------------------------------------------------ */

.page-yuedu-jichu .content-section {
  margin-bottom: 36px;
  scroll-margin-top: 72px;
}

.page-yuedu-jichu .section-title {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
}

.page-yuedu-jichu .section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background-color: #e8735a;
}

.section-intro {
  margin-bottom: 14px;
  max-width: 820px;
  color: #5f6b66;
  font-size: 14px;
  line-height: 1.75;
}

.status-table {
  min-width: 620px;
}

.status-table tbody th {
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.status-badge.status-ongoing {
  background-color: #e4f0f1;
  color: #14505f;
}

.status-badge.status-completed {
  background-color: #f6f7f3;
  border: 1px solid #c9d2cb;
  color: #3a423e;
}

.status-badge.status-paused {
  background-color: #f0e9d6;
  color: #8a7a52;
}

.volume-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}

.volume-figure {
  overflow: hidden;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.volume-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.volume-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid #eef1ec;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.6;
}

.volume-text {
  min-width: 0;
}

.volume-text p {
  color: #3a423e;
  font-size: 15px;
  line-height: 1.8;
}

.volume-text p + p {
  margin-top: 12px;
}

.volume-example {
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #d9ded8;
  border-left: 3px solid #1f6f8b;
  border-radius: 6px;
  background-color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #14505f;
}

.field-table {
  min-width: 480px;
}

.field-table tbody th {
  width: 180px;
  white-space: nowrap;
}

.misconception-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.misconception-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #ffffff;
}

.misconception-wrong,
.misconception-right {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
}

.label-wrong,
.label-right {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.label-wrong {
  background-color: #f0e9d6;
  color: #8a7a52;
}

.label-right {
  background-color: #e4f0f1;
  color: #14505f;
}

.misconception-wrong {
  color: #5f6b66;
}

.misconception-right {
  color: #1c2321;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #ffffff;
}

.faq-item[open] {
  border-color: #1f6f8b;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  color: #1c2321;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid #1f6f8b;
  border-bottom: 2px solid #1f6f8b;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-question:hover {
  color: #14505f;
}

.faq-answer {
  padding: 0 18px 16px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.8;
}

.section-related {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   pages · 条目纠错页
   ------------------------------------------------------------ */

.page-jiucuo-liucheng .issue-list,
.page-jiucuo-liucheng .material-list,
.page-jiucuo-liucheng .steps,
.page-jiucuo-liucheng .time-table,
.page-jiucuo-liucheng .result-and-log,
.page-jiucuo-liucheng .faq-note {
  margin-bottom: 36px;
  scroll-margin-top: 72px;
}

.page-jiucuo-liucheng h2 {
  position: relative;
  padding-left: 12px;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.35;
}

.page-jiucuo-liucheng h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background-color: #e8735a;
}

.issue-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.issue-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  align-items: start;
  padding: 14px 18px;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #ffffff;
}

.issue-row h3 {
  font-size: 15px;
  line-height: 1.5;
  color: #1c2321;
}

.issue-row p {
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.material-card {
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.material-card h3 {
  font-size: 16px;
  line-height: 1.4;
}

.material-card ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.material-card li {
  position: relative;
  padding-left: 14px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.material-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #e8735a;
}

.steps-figure {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.steps-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.steps-figure figcaption {
  padding: 10px 14px;
  border-top: 1px solid #eef1ec;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.6;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-item {
  position: relative;
  min-width: 0;
  padding: 18px 18px 18px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background-color: #ffffff;
}

.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background-color: #1f6f8b;
  color: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.step-item h3 {
  font-size: 15px;
  line-height: 1.45;
}

.step-item p {
  margin-top: 8px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.7;
}

.time-table .table-scroll,
.result-and-log .table-scroll {
  border: 1px solid #d9ded8;
  border-radius: 6px;
}

.time-table table,
.result-and-log table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  background-color: #ffffff;
}

.time-table caption,
.result-and-log caption {
  padding: 10px 14px;
  color: #5f6b66;
  font-size: 13px;
  text-align: left;
  caption-side: top;
}

.time-table thead th,
.result-and-log thead th {
  padding: 11px 14px;
  background-color: #eef3f2;
  border-bottom: 1px solid #d9ded8;
  color: #1c2321;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.time-table tbody td,
.result-and-log tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef1ec;
  color: #3a423e;
  text-align: left;
  vertical-align: top;
}

.time-table tbody tr:last-child td,
.result-and-log tbody tr:last-child td {
  border-bottom: 0;
}

.time-table tbody tr:hover td,
.result-and-log tbody tr:hover td {
  background-color: #f2f7f7;
}

.result-and-log tbody td:first-child {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1c2321;
  white-space: nowrap;
}

.faq-note details {
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #ffffff;
}

.faq-note details + details {
  margin-top: 10px;
}

.faq-note details[open] {
  border-color: #1f6f8b;
}

.faq-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 18px;
  color: #1c2321;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq-note summary::-webkit-details-marker {
  display: none;
}

.faq-note summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 2px solid #1f6f8b;
  border-bottom: 2px solid #1f6f8b;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq-note details[open] summary::after {
  transform: rotate(-135deg);
}

.faq-note details p {
  padding: 0 18px 16px;
  color: #3a423e;
  font-size: 14px;
  line-height: 1.8;
}

.faq-note details p a {
  color: #1f6f8b;
  font-weight: 600;
}

.page-jiucuo-liucheng .related-entries {
  margin-top: 0;
}

/* ------------------------------------------------------------
   pages · 404
   ------------------------------------------------------------ */

.site-error .error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 48px;
  padding-bottom: 64px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 32px;
  border: 1px solid #d9ded8;
  border-left: 3px solid #e8735a;
  border-radius: 8px;
  background-color: #ffffff;
  text-align: left;
}

.error-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: #e8735a;
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.35;
}

.error-text {
  margin-top: 10px;
  color: #3a423e;
  font-size: 15px;
  line-height: 1.8;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9ded8;
  border-radius: 6px;
  background-color: #f6f7f3;
  color: #1f6f8b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.error-links a:hover {
  border-color: #1f6f8b;
  background-color: #e4f0f1;
  color: #14505f;
}

.error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 20px;
  border-radius: 6px;
  background-color: #1f6f8b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.error-home:hover {
  background-color: #14505f;
  color: #ffffff;
}

.error-note {
  margin-top: 16px;
  color: #5f6b66;
  font-size: 13px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   responsive
   ------------------------------------------------------------ */

@media (max-width: 1200px) {
  .header-inner,
  .site-main,
  .footer-inner,
  .footer-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 272px;
  }

  .sidebar-left {
    grid-template-columns: 256px minmax(0, 1fr);
  }

  .hero {
    gap: 24px;
  }

  .path-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .layout-shell,
  .sidebar-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout .side-column,
  .page-layout .side-panel {
    order: 2;
  }

  .page-layout .main-content {
    order: 1;
  }

  .basics-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .volume-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-zhuanti-lujing .path-card {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

@media (max-width: 900px) {
  .header-inner {
    gap: 12px;
    height: 60px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-slogan {
    font-size: 16px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav:not([hidden]) {
    display: block;
  }

  .site-main {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 56px;
  }

  .home-main {
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 32px;
  }

  .hero-summary h1 {
    font-size: 26px;
  }

  .anchor-bar {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 1fr);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 32px;
  }

  .anchor-item {
    padding: 12px;
  }

  .section {
    margin-bottom: 40px;
  }

  .rank-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .term-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .term-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .term-demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .misconception-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .issue-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .page-zhuanti-lujing .path-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-card-media {
    border-right: 0;
    border-bottom: 1px solid #eef1ec;
  }

  .path-card-media img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 32px 16px 24px;
    gap: 24px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 16px 16px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
    line-height: 1.7;
  }

  .site-main {
    padding-top: 16px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .breadcrumb {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .page-header {
    margin-bottom: 16px;
  }

  .page-title {
    font-size: 24px;
    line-height: 1.32;
  }

  .page-head {
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .page-lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .page-meta,
  .info-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px;
  }

  .meta-row,
  .meta-item,
  .info-row {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }

  .meta-row dt,
  .meta-item dt,
  .info-row dt {
    flex: 0 0 84px;
    font-size: 12px;
  }

  .meta-row dd,
  .meta-item dd,
  .info-row dd {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
  }

  .hero-summary h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .fact-row {
    flex-direction: column;
    gap: 2px;
  }

  .fact-row dt {
    flex: none;
  }

  .cover-grid {
    gap: 12px;
  }

  .cover-card figcaption {
    padding: 8px 10px;
    font-size: 13px;
    gap: 6px;
  }

  .section-head h2,
  .term-table h2,
  .term-demo h2,
  .confusable h2,
  .entry-table h2,
  .field-guide h2,
  .pause-tips h2,
  .path-overview h2,
  .path-cards h2,
  .path-genre-map h2,
  .reading-pace h2,
  .page-yuedu-jichu .section-title,
  .page-jiucuo-liucheng h2,
  .related-entries h2 {
    font-size: 19px;
  }

  .section-desc,
  .section-note,
  .section-intro,
  .term-table > p,
  .term-demo > p,
  .confusable > p,
  .path-overview > p,
  .path-cards > p,
  .path-genre-map > p,
  .reading-pace > p {
    font-size: 13px;
  }

  .tag {
    min-height: 44px;
    font-size: 13px;
    padding: 0 12px;
  }

  .status-counters {
    gap: 8px;
  }

  .status-cell {
    padding: 12px 12px;
  }

  .status-num {
    font-size: 20px;
  }

  .status-label {
    font-size: 12px;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table thead th {
    padding: 10px 12px;
    font-size: 12px;
  }

  .data-table tbody th,
  .data-table tbody td {
    padding: 10px 12px;
  }

  .rank-col {
    padding: 16px;
  }

  .rank-title {
    font-size: 16px;
  }

  .term-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .term-item,
  .term-card,
  .fix-entry,
  .pace-col,
  .material-card,
  .step-item,
  .related-entries {
    padding: 16px;
  }

  .confusable-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 14px;
  }

  .pause-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .step-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
  }

  .step-item .step-num {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .step-item h3 {
    margin: 0;
  }

  .step-item p {
    margin-top: 0;
  }

  .pace-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .volume-text p {
    font-size: 14px;
  }

  .faq-question,
  .faq-note summary {
    padding: 12px 14px;
    font-size: 14px;
  }

  .faq-answer,
  .faq-note details p {
    padding: 0 14px 14px;
    font-size: 13px;
  }

  .related-links a,
  .related-list a,
  .related-link,
  .error-links a {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-col a {
    min-height: 32px;
    display: flex;
    align-items: center;
  }

  .footer-copy {
    font-size: 12px;
  }
}
