/* ==========================================================================
   海角社区 lipai-cn.com — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #ffffff;
  color: #111111;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-weight: 600;
  line-height: 1.35;
  color: #111111;
}

p {
  margin: 0 0 0.9em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #111111;
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #6f6e69;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

strong {
  font-weight: 600;
}

::selection {
  background-color: #111111;
  color: #ffffff;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  border-bottom: 1px solid #dcdad5;
  background-color: #ffffff;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  min-height: 72px;
}

.brand {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #111111;
  white-space: nowrap;
  padding: 10px 0;
}

.brand:hover {
  color: #111111;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list > li {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 400;
  color: #6f6e69;
  white-space: nowrap;
}

.nav-link:hover {
  color: #111111;
}

.nav-link.is-current {
  color: #111111;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #dcdad5;
  border-radius: 6px;
  background-color: #ffffff;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: #111111;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 72px;
}

/* 内页标题区：面包屑 + H1 + 导语 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 28px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #6f6e69;
}

.breadcrumb a {
  color: #6f6e69;
}

.breadcrumb a:hover {
  color: #111111;
}

.breadcrumb-sep {
  color: #dcdad5;
}

.breadcrumb-current {
  color: #111111;
}

.page-header {
  padding: 18px 0 0;
}

.page-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #111111;
  max-width: 42em;
}

.page-head {
  max-width: 42em;
  padding: 20px 0 32px;
  border-bottom: 1px solid #dcdad5;
}

.page-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #6f6e69;
  margin-bottom: 0.7em;
}

.page-lead:last-child {
  margin-bottom: 0;
}

.page-head-wrap > .page-head {
  padding-top: 20px;
}

/* 通用两栏壳：主内容在前，侧栏在后 */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
  padding-top: 40px;
}

.layout-shell {
  padding-top: 40px;
}

.content-main,
.main-column,
.page-main-col {
  min-width: 0;
}

.content-sidebar,
.aside-rail,
.page-aside {
  min-width: 0;
}

/* 单列长文页：主列 760px 左对齐 */

.page-rules .site-main > section,
.page-rules .site-main > figure,
.page-feedback .site-main > section,
.page-feedback .site-main > div,
.page-faq .site-main > section,
.page-faq .site-main > div {
  max-width: 760px;
}

/* 页脚 */

.site-footer {
  flex-shrink: 0;
  margin-top: 64px;
  border-top: 1px solid #dcdad5;
  background-color: #f4f3f0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 40px 32px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #dcdad5;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  color: #111111;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 14px;
  color: #6f6e69;
}

.footer-links a:hover {
  color: #111111;
}

.footer-brand-text {
  font-size: 14px;
  line-height: 1.8;
  color: #6f6e69;
  margin: 0;
}

.footer-note {
  padding-top: 24px;
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
  margin: 0;
}

/* ==========================================================================
   components
   ========================================================================== */

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid #111111;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: #111111;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #2b2b2b;
  border-color: #2b2b2b;
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: #111111;
}

.btn-ghost:hover {
  background-color: #111111;
  color: #ffffff;
}

/* 区块标题 */

.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #111111;
  margin-bottom: 10px;
}

.section-desc,
.section-intro {
  font-size: 14px;
  line-height: 1.8;
  color: #6f6e69;
  max-width: 42em;
  margin: 0;
}

.section-intro {
  margin-bottom: 28px;
}

/* 文本链接 */

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 14px;
  color: #111111;
  border-bottom: 1px solid #dcdad5;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.text-link:hover {
  color: #111111;
  border-color: #111111;
}

/* 图片容器 */

.hero-media,
.board-figure,
.section-media,
.rule-figure,
.faq-figure,
.media-block,
.archive-media,
.craft-media,
.note-media {
  overflow: hidden;
  border-radius: 6px;
  background-color: #f4f3f0;
}

.hero-media img,
.board-figure img,
.section-media img,
.rule-figure img,
.faq-figure img,
.media-block img,
.archive-media img,
.craft-media img,
.note-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.figure-caption,
.media-caption,
figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
  padding: 10px 2px 0;
}

/* 状态标签 / 主题标签 */

.tag,
.topic-tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid #dcdad5;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: #6f6e69;
  background-color: #ffffff;
  white-space: nowrap;
}

/* 编号步骤块（archive / boards / feedback 共用，作用域限定） */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-num,
.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #111111;
  border-radius: 50%;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  line-height: 1;
}

.step-text {
  font-size: 15px;
  line-height: 1.75;
  color: #111111;
  margin: 4px 0 0;
}

.step-note {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
  margin: 6px 0 0;
  grid-column: 2;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin: 2px 0 6px;
}

/* 侧栏通用模块 */

.rail-module,
.rail-block,
.sidebar-block,
.aside-block {
  padding: 22px 24px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #ffffff;
}

.rail-module + .rail-module,
.rail-block + .rail-block,
.sidebar-block + .sidebar-block {
  margin-top: 20px;
}

.rail-title,
.sidebar-title,
.aside-title {
  font-size: 17px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdad5;
}

.rail-text {
  font-size: 14px;
  line-height: 1.8;
  color: #6f6e69;
}

.rail-steps {
  counter-reset: rail-step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-steps > li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.75;
  color: #2b2b2b;
  counter-increment: rail-step;
}

.rail-steps > li::before {
  content: counter(rail-step);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 13px;
  font-weight: 600;
  color: #6f6e69;
}

.rail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rail-list > li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #2b2b2b;
}

.rail-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background-color: #6f6e69;
}

.rail-rules .text-link {
  margin-top: 14px;
}

/* FAQ（原生 details） */

.faq-item {
  border-bottom: 1px solid #dcdad5;
}

.faq-item:first-of-type {
  border-top: 1px solid #dcdad5;
}

.faq-question {
  position: relative;
  display: block;
  padding: 18px 40px 18px 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: #111111;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #6f6e69;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: #2b2b2b;
}

.faq-answer {
  padding: 0 40px 20px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #2b2b2b;
}

.faq-answer p {
  margin-bottom: 0.7em;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  border-bottom: 1px solid #dcdad5;
}

.faq-answer a:hover {
  border-color: #111111;
}

/* 相关内容条（首页） */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

.related-links-label {
  font-size: 13px;
  color: #6f6e69;
}

.related-links-item {
  font-size: 14px;
  color: #111111;
  border-bottom: 1px solid #dcdad5;
  padding-bottom: 2px;
}

.related-links-item:hover {
  border-color: #111111;
}

/* 相关链接列表（craft / rules） */

.related-section {
  padding-top: 56px;
}

.related-section .section-desc {
  margin-bottom: 20px;
}

.related-links,
.related-list,
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.related-links li,
.related-list li,
.link-list li {
  display: flex;
}

.related-links a,
.related-list a,
.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  color: #111111;
  border-bottom: 1px solid #dcdad5;
}

.related-links a:hover,
.related-list a:hover,
.link-list a:hover {
  border-color: #111111;
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */

.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* 首屏 */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px 0 64px;
  border-bottom: 1px solid #dcdad5;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #6f6e69;
  margin-bottom: 0.7em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 24px;
}

.hero-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid #dcdad5;
}

.hero-notes > li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #6f6e69;
}

.hero-notes > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background-color: #6f6e69;
}

.hero-media {
  aspect-ratio: 4 / 3;
  min-width: 0;
}

/* 版块索引带 */

.board-index {
  padding: 64px 0;
  border-bottom: 1px solid #dcdad5;
}

.board-index .board-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #dcdad5;
}

.board-row {
  border-bottom: 1px solid #dcdad5;
}

.board-link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 24px;
  gap: 24px;
  align-items: center;
  padding: 18px 4px;
  color: #111111;
}

.board-name {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.board-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: #111111;
  transition: width 0.22s ease;
}

.board-link:hover .board-name::after {
  width: 100%;
}

.board-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #6f6e69;
}

.board-arrow {
  font-size: 16px;
  color: #6f6e69;
  text-align: right;
  transition: color 0.18s ease;
}

.board-link:hover .board-arrow {
  color: #111111;
}

/* 话题流与右侧栏 */

.topic-layout {
  padding: 64px 0;
  border-bottom: 1px solid #dcdad5;
}

.topic-stream {
  min-width: 0;
}

.topic-item {
  padding: 22px 0;
  border-top: 1px solid #dcdad5;
}

.topic-item:last-child {
  border-bottom: 1px solid #dcdad5;
}

.topic-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 8px;
}

.topic-title a {
  color: #111111;
  position: relative;
  display: inline;
  background-image: linear-gradient(#111111, #111111);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.22s ease;
}

.topic-title a:hover {
  color: #111111;
  background-size: 100% 1px;
}

.topic-summary {
  font-size: 14px;
  line-height: 1.75;
  color: #6f6e69;
  margin-bottom: 10px;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.topic-board {
  color: #2b2b2b;
}

.topic-board::after {
  content: "·";
  margin-left: 10px;
  color: #dcdad5;
}

/* 参与路径比较 */

.path-compare {
  padding: 64px 0;
  border-bottom: 1px solid #dcdad5;
}

.path-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.path-column {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #f4f3f0;
}

.path-name {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dcdad5;
}

.path-fields {
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}

.path-fields dt {
  font-size: 13px;
  color: #6f6e69;
  margin-bottom: 2px;
}

.path-fields dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #2b2b2b;
}

.path-column > p {
  margin-top: auto;
}

/* 作品档案预览 */

.archive-preview {
  padding: 64px 0;
  border-bottom: 1px solid #dcdad5;
}

.archive-preview-body {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.archive-media {
  aspect-ratio: 3 / 4;
}

.archive-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.archive-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdad5;
}

.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #dcdad5;
  border-radius: 6px;
  font-size: 14px;
  color: #111111;
  background-color: #ffffff;
}

.genre-tag:hover {
  border-color: #111111;
}

.genre-note {
  font-size: 13px;
  color: #6f6e69;
}

.year-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.year-item {
  padding: 16px 14px;
  border: 1px solid #dcdad5;
  border-radius: 6px;
  background-color: #f4f3f0;
}

.year-range {
  display: block;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 6px;
}

.year-note {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #6f6e69;
}

/* 创作手记精选 */

.craft-picks {
  padding: 64px 0;
  border-bottom: 1px solid #dcdad5;
}

.craft-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.craft-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.craft-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 16px;
}

.craft-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 8px;
}

.craft-title a {
  color: #111111;
  background-image: linear-gradient(#111111, #111111);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.22s ease;
}

.craft-title a:hover {
  color: #111111;
  background-size: 100% 1px;
}

.craft-summary {
  font-size: 14px;
  line-height: 1.75;
  color: #6f6e69;
  margin-bottom: 12px;
}

.craft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  margin-top: auto;
}

/* 问答摘要 */

.faq-brief {
  padding: 64px 0 0;
}

.faq-more {
  margin-top: 24px;
  font-size: 14px;
}

.home-main > .related-links {
  margin-top: 48px;
  padding: 24px 0 0;
  border-top: 1px solid #dcdad5;
}

/* ==========================================================================
   pages — 版块索引
   ========================================================================== */

.board-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.board-item {
  padding: 28px 0;
  border-top: 1px solid #dcdad5;
}

.board-item:last-child {
  border-bottom: 1px solid #dcdad5;
}

.board-item .board-name {
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
  display: block;
  width: auto;
}

.board-position {
  font-size: 15px;
  line-height: 1.75;
  color: #2b2b2b;
  margin-bottom: 18px;
}

.board-scope {
  margin-bottom: 14px;
}

.board-scope:last-child {
  margin-bottom: 0;
}

.scope-title {
  font-size: 14px;
  font-weight: 600;
  color: #6f6e69;
  margin-bottom: 8px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scope-list > li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #2b2b2b;
}

.scope-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background-color: #6f6e69;
}

.board-figure {
  aspect-ratio: 16 / 9;
  margin: 28px 0 32px;
}

.content-sidebar .sidebar-block {
  padding: 22px 24px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #f4f3f0;
}

.content-sidebar .sidebar-title {
  font-size: 17px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdad5;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  color: #2b2b2b;
}

.sidebar-links a:hover {
  color: #111111;
}

.topic-fit {
  padding-top: 56px;
}

.topic-fit .section-intro {
  margin-bottom: 28px;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.fit-item {
  padding: 22px 22px 24px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #ffffff;
}

.fit-topic {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #111111;
  margin-bottom: 12px;
}

.fit-answer {
  font-size: 14px;
  line-height: 1.75;
  color: #111111;
  margin-bottom: 8px;
}

.fit-reason {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
  margin: 0;
}

/* ==========================================================================
   pages — 作品档案
   ========================================================================== */

.genre-catalog,
.year-track,
.reading-order {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #dcdad5;
}

.genre-catalog .section-head,
.year-track .section-head,
.reading-order .section-head {
  margin-bottom: 24px;
}

.section-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
}

.genre-catalog .genre-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.genre-item {
  padding: 20px 0;
  border-top: 1px solid #dcdad5;
  min-width: 0;
}

.genre-name {
  font-size: 17px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
}

.genre-scope {
  font-size: 14px;
  line-height: 1.75;
  color: #2b2b2b;
  margin-bottom: 6px;
}

.genre-reader {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
  margin-bottom: 10px;
}

.genre-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 14px;
  color: #111111;
  border-bottom: 1px solid #dcdad5;
}

.genre-link:hover {
  border-color: #111111;
}

.year-track-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.year-segment {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #f4f3f0;
  min-width: 0;
}

.year-segment .year-range {
  font-size: 18px;
  margin-bottom: 8px;
}

.year-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
  margin-bottom: 14px;
}

.year-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: auto;
  font-size: 14px;
  color: #111111;
  border-bottom: 1px solid #dcdad5;
  width: fit-content;
}

.year-link:hover {
  border-color: #111111;
}

.reading-order .step-list {
  gap: 18px;
}

.reading-order .step-body {
  padding-top: 3px;
}

/* 档案侧栏 */

.aside-rail .rail-block {
  padding: 22px 24px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #f4f3f0;
}

.field-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid #dcdad5;
}

.field-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.field-name {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.field-list .field-item > span:not(.field-name) {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
}

.rail-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.rail-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  color: #111111;
  border-bottom: 1px solid #dcdad5;
  width: fit-content;
}

.rail-link:hover {
  border-color: #111111;
}

/* ==========================================================================
   pages — 创作手记
   ========================================================================== */

.note-list-section {
  margin-bottom: 56px;
}

.note-list-section .section-title,
.method-compare-section .section-title {
  margin-bottom: 10px;
}

.note-list-section .section-desc,
.method-compare-section .section-desc {
  margin-bottom: 28px;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.note-item {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid #dcdad5;
}

.note-item:last-child {
  border-bottom: 1px solid #dcdad5;
}

.note-media {
  aspect-ratio: 4 / 3;
}

.note-body {
  min-width: 0;
}

.note-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #111111;
  margin-bottom: 10px;
}

.note-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: #6f6e69;
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.method-compare-section {
  padding-bottom: 8px;
}

.compare-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.compare-col {
  padding: 22px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #f4f3f0;
  min-width: 0;
}

.compare-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #111111;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdad5;
}

.compare-fields {
  margin: 0;
  display: grid;
  gap: 12px;
}

.compare-fields dt {
  font-size: 13px;
  color: #6f6e69;
  margin-bottom: 2px;
}

.compare-fields dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #2b2b2b;
}

/* 创作手记侧栏 */

.page-aside .aside-block {
  padding: 22px 24px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #f4f3f0;
}

.aside-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  margin: 18px 0 10px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.aside-subtitle:first-of-type {
  margin-top: 0;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-list > li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #2b2b2b;
}

.aside-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background-color: #6f6e69;
}

.aside-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dcdad5;
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
}

.aside-note a {
  color: #111111;
  border-bottom: 1px solid #dcdad5;
}

.aside-note a:hover {
  border-color: #111111;
}

/* ==========================================================================
   pages — 社区规则
   ========================================================================== */

.page-rules .rule-figure {
  aspect-ratio: 21 / 9;
  margin: 0 0 48px;
}

.principle-section {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #dcdad5;
}

.principle-section .section-title {
  margin-bottom: 22px;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.principle-item {
  padding-left: 18px;
  border-left: 2px solid #111111;
}

.principle-text {
  font-size: 15px;
  line-height: 1.8;
  color: #2b2b2b;
  margin: 0;
}

.rule-groups {
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid #dcdad5;
}

.rule-groups .section-title {
  margin-bottom: 28px;
}

.rule-group {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px dashed #dcdad5;
}

.rule-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.rule-group-title {
  font-size: 18px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 16px;
}

.rule-clause-list {
  counter-reset: clause;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-clause {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.8;
  color: #2b2b2b;
  counter-increment: clause;
}

.rule-clause::before {
  content: counter(clause) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 14px;
  font-weight: 600;
  color: #6f6e69;
  line-height: 1.9;
}

.handle-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #dcdad5;
}

.handle-section .section-title {
  margin-bottom: 24px;
}

.handle-block {
  padding: 22px 24px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #f4f3f0;
}

.handle-block + .handle-block {
  margin-top: 20px;
}

.handle-block-title {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 10px;
}

.handle-text {
  font-size: 14px;
  line-height: 1.8;
  color: #2b2b2b;
}

.appeal-section {
  margin-bottom: 8px;
}

.appeal-section .section-title {
  margin-bottom: 20px;
}

.appeal-text {
  font-size: 15px;
  line-height: 1.8;
  color: #2b2b2b;
}

.appeal-note {
  margin-top: 18px;
  padding: 16px 20px;
  border-left: 2px solid #dcdad5;
  background-color: #f4f3f0;
  font-size: 14px;
  line-height: 1.8;
  color: #6f6e69;
}

.appeal-note a {
  color: #111111;
  border-bottom: 1px solid #dcdad5;
}

.appeal-note a:hover {
  border-color: #111111;
}

/* ==========================================================================
   pages — 反馈与纠错
   ========================================================================== */

.page-feedback .page-layout {
  display: block;
  padding-top: 40px;
}

.page-feedback .content-main {
  max-width: 760px;
}

.issue-types {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #dcdad5;
}

.issue-types .section-title,
.describe-fields .section-title,
.process-order .section-title,
.result-check .section-title {
  margin-bottom: 10px;
}

.issue-types .section-intro,
.describe-fields .section-intro,
.process-order .section-intro,
.result-check .section-intro {
  margin-bottom: 24px;
}

.media-block {
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.issue-card {
  padding: 22px;
  border: 1px solid #dcdad5;
  border-radius: 8px;
  background-color: #ffffff;
  min-width: 0;
}

.issue-name {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 10px;
}

.issue-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #2b2b2b;
  margin-bottom: 8px;
}

.issue-example {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed #dcdad5;
}

.describe-fields {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #dcdad5;
}

.describe-fields .field-list {
  gap: 0;
}

.describe-fields .field-item {
  display: block;
  padding: 20px 0;
  border-top: 1px solid #dcdad5;
  border-bottom: 0;
}

.describe-fields .field-item:last-child {
  border-bottom: 1px solid #dcdad5;
}

.describe-fields .field-name {
  font-size: 16px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.field-text {
  font-size: 14px;
  line-height: 1.8;
  color: #2b2b2b;
  margin-bottom: 6px;
}

.field-note {
  font-size: 13px;
  line-height: 1.7;
  color: #6f6e69;
  margin: 0;
}

.process-order {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid #dcdad5;
}

.process-order .step-list {
  gap: 20px;
}

.process-order .step-body {
  padding-top: 3px;
}

.result-check .result-text {
  font-size: 15px;
  line-height: 1.8;
  color: #2b2b2b;
}

.result-check .result-text a {
  color: #111111;
  border-bottom: 1px solid #dcdad5;
}

.result-check .result-text a:hover {
  border-color: #111111;
}

/* ==========================================================================
   pages — 常见问题
   ========================================================================== */

.page-faq .faq-shell {
  max-width: 760px;
  padding-top: 40px;
}

.faq-figure {
  aspect-ratio: 21 / 9;
  margin-bottom: 40px;
}

.faq-group {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #dcdad5;
}

.faq-group:last-of-type {
  border-bottom: 0;
}

.faq-group .section-title {
  margin-bottom: 10px;
}

.faq-group .section-desc {
  margin-bottom: 22px;
}

.faq-next {
  padding: 32px 0 0;
  border-top: 1px solid #dcdad5;
}

.faq-next .section-title {
  margin-bottom: 10px;
}

.faq-next .section-desc {
  margin-bottom: 20px;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 40px;
}

.error-inner {
  max-width: 640px;
  width: 100%;
}

.error-code {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: #dcdad5;
  margin-bottom: 16px;
}

.error-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.error-text {
  font-size: 16px;
  line-height: 1.8;
  color: #6f6e69;
  margin-bottom: 28px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 20px 0;
  border-top: 1px solid #dcdad5;
  border-bottom: 1px solid #dcdad5;
  margin-bottom: 28px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 15px;
  color: #111111;
  border-bottom: 1px solid #dcdad5;
}

.error-links a:hover {
  border-color: #111111;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 轻淡入增强：仅在支持动画且未要求减少动效时生效，不影响初始可见性 */

@media (prefers-reduced-motion: no-preference) {
  .board-row,
  .topic-item,
  .craft-item,
  .note-item,
  .path-column,
  .fit-item,
  .issue-card,
  .compare-col {
    animation: fade-in 0.5s ease both;
  }

  @keyframes fade-in {
    from {
      transform: translateY(6px);
    }
    to {
      transform: translateY(0);
    }
  }
}

/* ==========================================================================
   responsive — 768px 单断点
   ========================================================================== */

@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
    min-height: 64px;
    gap: 16px;
  }

  .brand {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    display: block;
    background-color: #ffffff;
    border-bottom: 1px solid #dcdad5;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li {
    display: block;
    border-bottom: 1px solid #f4f3f0;
  }

  .nav-list > li:last-child {
    border-bottom: 0;
  }

  .nav-link {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 10px 0;
    font-size: 16px;
  }

  .inner-main,
  .home-main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .inner-main {
    padding-bottom: 56px;
  }

  .breadcrumb {
    padding-top: 20px;
    font-size: 13px;
  }

  .page-header {
    padding-top: 14px;
  }

  .page-title {
    font-size: 30px;
  }

  .page-head {
    padding: 16px 0 24px;
  }

  .page-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 28px;
  }

  .content-sidebar,
  .aside-rail,
  .page-aside {
    order: 2;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px 0 48px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .board-index,
  .topic-layout,
  .path-compare,
  .archive-preview,
  .craft-picks,
  .faq-brief {
    padding: 48px 0;
  }

  .faq-brief {
    padding-bottom: 0;
  }

  .board-link {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 6px 16px;
    padding: 16px 2px;
  }

  .board-name {
    grid-column: 1;
    font-size: 17px;
  }

  .board-desc {
    grid-column: 1;
  }

  .board-arrow {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .path-columns,
  .craft-list,
  .fit-grid,
  .compare-table {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .archive-preview-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .archive-media {
    aspect-ratio: 16 / 10;
  }

  .year-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .year-track-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .genre-catalog .genre-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .note-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  .note-media {
    aspect-ratio: 16 / 9;
  }

  .issue-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .page-feedback .page-layout {
    padding-top: 28px;
  }

  .rule-clause {
    padding-left: 28px;
  }

  .handle-block {
    padding: 18px 18px;
  }

  .appeal-note {
    padding: 14px 16px;
  }

  .error-main {
    padding: 64px 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .footer-inner {
    padding: 40px 20px 24px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 28px;
  }

  .related-links {
    padding-left: 0;
    padding-right: 0;
  }

  .home-main > .related-links {
    padding-left: 0;
    padding-right: 0;
  }

  .site-footer {
    margin-top: 48px;
  }
}

@media (max-width: 400px) {
  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .year-list,
  .year-track-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn {
    width: 100%;
  }
}
