/* Legacy component structure; shared site.css owns reading typography. */
@layer legacy-pages {
/* ===== 子页面通用样式 ===== */
/* 与 style-v2.css 配合使用 */

/* --- 等高线底纹 --- */
.topo-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/topo-lines.svg');
  background-size: 100% auto;
  background-repeat: repeat-y;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  will-change: transform;
}

.topo-bg-light {
  opacity: 0.6;
  filter: invert(0);
}

/* 手机端禁用等高线背景提升性能 */
@media (max-width: 768px) {
  .topo-bg {
    display: none;
  }
}

/* --- 顶部导航条 --- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  background: rgba(25, 25, 25, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

/* 手机端禁用模糊提升性能 */
@media (max-width: 768px) {
  .top-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(25, 25, 25, 0.98);
  }
  .top-bar-light {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
}

.top-bar-light {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e6e6e6;
}

.top-bar-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #999;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.top-bar-light .top-bar-back {
  color: #7c7c7c;
}

.top-bar-back:hover {
  color: #fffa00;
}

.top-bar-light .top-bar-back:hover {
  color: #191919;
}

.top-bar-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.top-bar-light .top-bar-title {
  color: #999;
}

/* --- 暗色页面 --- */
.page-dark {
  background: #191919;
  color: #fff;
}

.page-light {
  background: #fff;
  color: #191919;
}

/* ===== 作品详情页 ===== */
.work-hero {
  position: relative;
  z-index: 1;
}

.work-hero-image {
  display: none; /* 图片改为放在正文中 */
}

.work-hero-content {
  padding: 3rem 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.work-hero-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fffa00;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.work-hero-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: #fffa00;
  transform: scaleX(0);
  transform-origin: left;
  animation: barSlideIn 0.2s ease-out 0.5s forwards;
}

.work-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.work-hero-genre {
  font-size: 1rem;
  color: #b9b9b9;
  font-weight: 600;
  letter-spacing: 1px;
}

.work-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: #999;
  font-weight: 500;
}

.work-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.work-meta-item svg {
  opacity: 0.6;
  flex-shrink: 0;
}

.work-meta-link {
  color: #6eb5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.work-meta-link:hover {
  color: #fff;
}

.page-light .work-hero-meta {
  color: #7c7c7c;
}

.page-light .work-meta-link {
  color: #0066cc;
}

.page-light .work-meta-link:hover {
  color: #004499;
}

.work-detail-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  padding: 0 3rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 正文内图片 */
.work-inline-image {
  width: 100%;
  margin: 1.5rem 0;
  border: 1px solid #333;
}

.work-inline-image img {
  width: 100%;
  display: block;
}

.work-inline-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: #666;
  text-align: center;
  letter-spacing: 0.5px;
  border-top: 1px solid #262626;
  background: #111;
}

.work-detail-section h2 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7c7c7c;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #333;
}

.work-detail-section p {
  font-size: 0.95rem;
  color: #b9b9b9;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.work-detail-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 1.5rem 0 0.75rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.detail-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1rem;
  font-size: 0.9rem;
  color: #b9b9b9;
  line-height: 1.7;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 4px;
  height: 4px;
  background: #fffa00;
}

.detail-list li strong {
  color: #fff;
}

.detail-table {
  border: 1px solid #333;
  margin: 1rem 0 1.5rem;
  overflow-x: auto;
}

.table-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0;
  border-bottom: 1px solid #262626;
  font-size: 0.8rem;
}

.table-row:last-child {
  border-bottom: none;
}

.table-header {
  background: #1a1a1a;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.65rem;
  color: #999;
}

.table-row span {
  padding: 0.6rem 0.75rem;
  color: #b9b9b9;
  border-right: 1px solid #262626;
}

.table-row span:last-child {
  border-right: none;
}

.table-header span {
  color: #999;
}

.work-detail-sidebar {
  background: #131315;
  border: 1px solid #333;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 70px;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #262626;
}

.sidebar-item:last-of-type {
  border-bottom: none;
}

.sidebar-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
}

.sidebar-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #262626;
}

.sidebar-tag {
  padding: 0.2rem 0.6rem;
  border: 1px solid #333;
  font-size: 0.65rem;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.5px;
}

.sidebar-tag:first-child {
  border-color: #fffa00;
  color: #fffa00;
}

/* ===== 文章页 ===== */
.article-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.article-page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e6e6e6;
}

.article-page-tag {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #7c7c7c;
  margin-bottom: 1.5rem;
}

.article-page-header h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.article-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #7c7c7c;
  font-weight: 600;
}

.meta-link {
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.meta-link:hover {
  color: #004499;
}

.article-page-body {
  font-size: 1rem;
  line-height: 1.9;
}

.article-summary {
  padding: 1.5rem 2rem;
  background: #f7f7f7;
  border-left: 4px solid #fffa00;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: #555;
}

.article-toc {
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  border: 1px solid #e6e6e6;
}

.article-toc h3 {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 1rem;
}

.article-toc ul {
  list-style: none;
  padding: 0;
}

.article-toc > ul > li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.article-toc ul ul {
  margin-top: 0.3rem;
  padding-left: 1.25rem;
}

.article-toc ul ul li {
  font-weight: 500;
  font-size: 0.85rem;
  color: #666;
  padding: 0.2rem 0;
  border: none;
}

.article-game-analysis {
  --article-body-size: clamp(0.86rem, 0.78rem + 0.28vw, 0.94rem);
  --article-body-leading: clamp(1.78rem, 1.46rem + 0.64vw, 2.1rem);
  --article-summary-size: clamp(0.84rem, 0.76rem + 0.32vw, 0.95rem);
  --article-summary-leading: clamp(1.66rem, 1.38rem + 0.58vw, 1.95rem);
  --article-list-size: clamp(0.84rem, 0.77rem + 0.22vw, 0.9rem);
  --article-list-leading: clamp(1.58rem, 1.36rem + 0.45vw, 1.9rem);
  --article-blockquote-size: clamp(0.86rem, 0.78rem + 0.24vw, 0.94rem);
  --article-blockquote-leading: clamp(1.65rem, 1.42rem + 0.48vw, 1.9rem);
  --article-flow-gap: clamp(0.85rem, 0.64rem + 0.45vw, 1.1rem);
  --article-section-width: min(100%, clamp(720px, 64vw, 880px));
}

.article-game-analysis .article-page-header h1 {
  font-family: var(--site-font);
  font-weight: 800;
  letter-spacing: 0;
}

.article-game-analysis .article-page-body .article-summary p {
  font-size: var(--article-summary-size);
  line-height: var(--article-summary-leading);
  color: #5c5c68;
  margin: 0;
}

.article-game-analysis .article-section p {
  line-height: var(--article-body-leading);
  font-size: var(--article-body-size);
  color: #4a4a5a;
  margin-bottom: var(--article-flow-gap);
}

.article-game-analysis .article-section strong {
  color: #1a1a2e;
  font-weight: 750;
}

.article-game-analysis .article-section h2 {
  margin-top: 2.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #4a9eff;
}

.article-game-analysis .article-section h3 {
  margin-top: 1.9rem;
  color: #2c2c38;
  font-size: 1.02rem;
}

.article-game-analysis .article-section blockquote {
  margin: clamp(1.15rem, 0.88rem + 0.6vw, 1.4rem) 0 clamp(1.3rem, 1rem + 0.65vw, 1.6rem);
  padding: clamp(0.85rem, 0.62rem + 0.48vw, 1rem) clamp(0.95rem, 0.72rem + 0.48vw, 1.2rem);
  border-left: 3px solid #4a9eff;
  background: #f8f9fc;
  border-radius: 0 6px 6px 0;
  color: #333746;
  font-size: var(--article-blockquote-size);
  font-weight: 650;
  line-height: var(--article-blockquote-leading);
}

.article-game-analysis .article-section ul,
.article-game-analysis .article-section ol {
  margin-top: clamp(0.65rem, 0.5rem + 0.32vw, 0.8rem);
  margin-bottom: clamp(1.05rem, 0.82rem + 0.5vw, 1.35rem);
}

.article-game-analysis .article-section li {
  font-size: var(--article-list-size);
  line-height: var(--article-list-leading);
  color: #555564;
}

.article-game-analysis .article-toc {
  background: transparent;
  border: 0;
  border-top: 1px solid #e8e9ee;
  border-bottom: 1px solid #e8e9ee;
  border-radius: 0;
  padding: 0.95rem 0 1rem;
  margin-bottom: 1.75rem;
}

.article-game-analysis .article-toc h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--site-font);
  font-size: 0.66rem;
  font-weight: 700;
  color: #858590;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
}

.article-game-analysis .article-toc h3::after {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: #fffa00;
}

.article-game-analysis .article-toc > ul {
  display: grid;
  gap: 0.28rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.article-game-analysis .article-toc > ul > li {
  position: relative;
  display: block;
  padding: 0.2rem 0 0.2rem 2.2rem;
  border: 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.65;
  color: #33343d;
  counter-increment: toc;
}

.article-game-analysis .article-toc > ul > li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-family: var(--site-font);
  font-size: 0.66rem;
  font-weight: 700;
  color: #b2b2bd;
  letter-spacing: 0;
}

.article-game-analysis .article-toc ul ul {
  display: block;
  margin: 0.25rem 0 0;
  padding-left: 0;
  max-width: 100%;
}

.article-game-analysis .article-toc ul ul li {
  display: block;
  padding: 0.08rem 0;
  border: 0;
  color: #666a75;
  font-size: 0.76rem;
  font-weight: 550;
  line-height: 1.65;
  overflow-wrap: normal;
}

.article-game-analysis .article-cover {
  margin: -0.25rem 0 2.25rem;
  text-align: center;
}

.article-game-analysis .article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #eef0f4;
  background: #f5f6f8;
}

.article-game-analysis .article-cover figcaption {
  display: none;
}

.article-page {
  --article-body-size: clamp(0.86rem, 0.78rem + 0.28vw, 0.94rem);
  --article-summary-size: clamp(0.84rem, 0.76rem + 0.32vw, 0.95rem);
  --article-summary-leading: clamp(1.66rem, 1.38rem + 0.58vw, 1.95rem);
  --article-section-width: min(100%, clamp(720px, 64vw, 880px));
}

.article-page .article-page-header h1 {
  font-family: var(--site-font);
  font-weight: 800;
  letter-spacing: 0;
}

.article-page .article-summary {
  position: relative;
  margin-bottom: 1.75rem;
  padding: 0.2rem 0 0.2rem 1.05rem;
  background: transparent;
  border-left: 0;
  color: #5c5c68;
}

.article-page .article-summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: calc(100% - 0.4rem);
  min-height: 2.4rem;
  max-height: 4.4rem;
  background: #fffa00;
  transform: translateY(-50%);
}

.article-page .article-page-body .article-summary p {
  font-size: var(--article-summary-size);
  line-height: var(--article-summary-leading);
  color: #5c5c68;
  margin: 0;
}

.article-page .article-page-body .article-summary p + p {
  margin-top: 0.85rem;
}

.article-page .article-toc {
  background: transparent;
  border: 0;
  border-top: 1px solid #e8e9ee;
  border-bottom: 1px solid #e8e9ee;
  border-radius: 0;
  padding: 0.95rem 0 1rem;
  margin-bottom: 1.75rem;
}

.article-page .article-toc h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--site-font);
  font-size: 0.66rem;
  font-weight: 700;
  color: #858590;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.65rem;
}

.article-page .article-toc h3::after {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: #fffa00;
}

.article-page .article-toc > ul {
  display: grid;
  gap: 0.28rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.article-page .article-toc > ul > li {
  position: relative;
  display: block;
  padding: 0.2rem 0 0.2rem 2.2rem;
  border: 0;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.65;
  color: #33343d;
  counter-increment: toc;
}

.article-page .article-toc > ul > li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-family: var(--site-font);
  font-size: 0.66rem;
  font-weight: 700;
  color: #b2b2bd;
  letter-spacing: 0;
}

.article-page .article-toc ul ul {
  display: block;
  margin: 0.25rem 0 0;
  padding-left: 0;
  max-width: 100%;
}

.article-page .article-toc ul ul li {
  display: block;
  padding: 0.08rem 0;
  border: 0;
  color: #666a75;
  font-size: 0.76rem;
  font-weight: 550;
  line-height: 1.65;
  overflow-wrap: normal;
}

.article-page .article-cover {
  margin: -0.25rem 0 2.25rem;
  text-align: center;
}

.article-page .article-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #eef0f4;
  background: #f5f6f8;
}

.article-page .article-cover figcaption {
  display: none;
}

@media (min-width: 1024px) {
  .article-page .article-toc > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-page.has-article-cover {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(400px, 576px);
    column-gap: clamp(1.5rem, 2.6vw, 3rem);
    width: min(calc(100% - clamp(3rem, 7vw, 7rem)), 1240px);
    max-width: none;
    padding: 3rem 0;
  }

  .article-page.has-article-cover .article-page-header {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 1rem;
    padding-bottom: 1.25rem;
  }

  .article-page.has-article-cover .article-page-header h1 {
    max-width: 13.5em;
    font-size: clamp(1.65rem, 2vw, 1.95rem);
    line-height: 1.32;
  }

  .article-page.has-article-cover .article-page-body {
    display: contents;
  }

  .article-page.has-article-cover .article-summary {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .article-page.has-article-cover .article-page-body .article-summary p {
    font-size: clamp(0.84rem, 0.72rem + 0.28vw, 0.92rem);
    line-height: clamp(1.62rem, 1.34rem + 0.56vw, 1.85rem);
  }

  .article-page.has-article-cover .article-cover {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: start;
    width: min(100%, 576px);
    margin: 0 0 1.5rem;
  }

  .article-page.has-article-cover .article-cover img {
    height: clamp(300px, 27vw, 360px);
    object-fit: cover;
    object-position: center;
  }

  .article-page.has-article-cover .article-toc,
  .article-page.has-article-cover .article-section,
  .article-page.has-article-cover .article-page-body > .article-video,
  .article-page.has-article-cover .article-page-body > .game-play-section,
  .article-page.has-article-cover .article-page-body > .dash-card {
    grid-column: 1 / -1;
    width: var(--article-section-width);
    justify-self: center;
  }

  .article-game-analysis.has-article-cover {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(400px, 576px);
    column-gap: clamp(1.5rem, 2.6vw, 3rem);
    width: min(calc(100% - clamp(3rem, 7vw, 7rem)), 1240px);
    max-width: none;
    padding: 3rem 0;
  }

  .article-game-analysis.has-article-cover .article-page-header {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 1rem;
    padding-bottom: 1.25rem;
  }

  .article-game-analysis.has-article-cover .article-page-header h1 {
    max-width: 13.5em;
    font-size: clamp(1.65rem, 2vw, 1.95rem);
    line-height: 1.32;
  }

  .article-game-analysis.has-article-cover .article-page-body {
    display: contents;
  }

  .article-game-analysis.has-article-cover .article-summary {
    grid-column: 1;
    grid-row: 2;
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0.2rem 0 0.2rem 1.05rem;
    background: transparent;
    border-left: 0;
  }

  .article-game-analysis.has-article-cover .article-summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: calc(100% - 0.4rem);
    min-height: 2.4rem;
    max-height: 4.4rem;
    background: #fffa00;
    transform: translateY(-50%);
  }

  .article-game-analysis.has-article-cover .article-page-body .article-summary p {
    font-size: clamp(0.84rem, 0.72rem + 0.28vw, 0.92rem);
    line-height: clamp(1.62rem, 1.34rem + 0.56vw, 1.85rem);
  }

  .article-game-analysis.has-article-cover .article-cover {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: start;
    width: min(100%, 576px);
    margin: 0 0 1.5rem;
  }

  .article-game-analysis.has-article-cover .article-cover img {
    height: clamp(300px, 27vw, 360px);
    object-fit: cover;
    object-position: center;
  }

  .article-game-analysis .article-toc > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-game-analysis .article-toc,
  .article-game-analysis .article-section {
    grid-column: 1 / -1;
    width: var(--article-section-width);
    justify-self: center;
  }
}

.article-section {
  margin-bottom: 2.5rem;
}

.article-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e6e6e6;
  color: #191919;
}

.article-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: #333;
}

.article-section p {
  color: #555;
  margin-bottom: 1rem;
  line-height: 2;
}

.article-section ul,
.article-section ol {
  margin: 0.75rem 0 1rem 1.5rem;
  padding-left: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.article-section ul {
  list-style-type: square;
}

.article-section ol li::marker {
  color: #4a9eff;
  font-weight: 600;
}

.article-section ul li,
.article-section ol li {
  margin-bottom: 0.4rem;
  line-height: 1.8;
}

.article-section ul ul,
.article-section ol ul {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: #777;
}

.article-excerpt h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e6e6e6;
}

.article-excerpt h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: #333;
}

.article-excerpt p {
  color: #555;
  margin-bottom: 1rem;
}

.article-excerpt a,
.article-page-body a {
  color: #0066cc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-excerpt a:hover,
.article-page-body a:hover {
  color: #004499;
}

.article-page-meta a {
  color: #0066cc;
}

.article-figure {
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
}

.article-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #999;
  text-align: center;
}

/* 视频图注样式 */
.article-video figcaption {
  padding: 0.6rem 0;
  font-size: 11px;
  color: #6b6b7b;
  text-align: center;
}

/* 亮色模式下视频图注 */
body.light .article-video figcaption {
  color: #888;
}

.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: #191919;
  text-align: center;
}

.article-cta p {
  color: #e6e6e6;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.article-cta .btn-primary {
  display: inline-flex;
  background: #fffa00;
  color: #191919;
  font-weight: 800;
  text-decoration: none;
}

.article-cta .btn-primary:hover {
  background: #fff;
}

/* --- Footer 子页面变体 --- */
.page-footer {
  background: #131315;
  border-top-color: #333;
  margin-top: 0;
}

.page-footer .footer-inner {
  padding: 1rem 2rem;
  color: #555;
  font-size: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.page-footer .footer-inner span {
  font-size: 0.7rem;
}

.page-footer a {
  color: #777;
  font-size: 0.7rem;
  transition: color 0.2s;
}

.page-footer a:hover {
  color: #fffa00;
}

/* 手机端 footer */
@media (max-width: 768px) {
  .page-footer .footer-inner {
    padding: 1rem;
    gap: 1rem;
  }
}

.page-footer-light {
  background: #fff;
  border-top: 1px solid #e6e6e6;
}

.page-footer-light .footer-inner {
  color: #999;
}

.page-footer-light a {
  color: #666;
}

.page-footer-light a:hover {
  color: #191919;
}

/* ===== 子页面入场 + 滚动动画 ===== */

/* 页面加载入场序列（hero 区域）
   0.5s  黄条从左滑入
   0.7s  标签文字闪烁出现
   0.8s  标题闪烁出现
   0.95s 副标题等渐入
   1.1s  第二批渐入 */

.page-bar-in {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: barSlideIn 0.2s ease-out 0.5s forwards;
}

/* 标签闪烁：用 color 控制文字，不影响 ::before 黄条 */
.page-tag-flicker {
  color: transparent;
  animation: pageFlickerTag 0.1s steps(1) 0.7s forwards;
}

/* 标题闪烁 */
.page-title-flicker {
  opacity: 0;
  animation: flicker2 0.1s steps(1) 0.8s forwards;
}

/* 暗色页面标签闪烁（黄色文字） */
@keyframes pageFlickerTag {
  0%   { color: transparent; }
  15%  { color: #fffa00; }
  30%  { color: transparent; }
  50%  { color: #fffa00; }
  65%  { color: transparent; }
  80%  { color: #fffa00; }
  100% { color: #fffa00; }
}

/* 亮色页面标签闪烁（灰色文字） */
.page-light .page-tag-flicker {
  animation: pageFlickerTagLight 0.1s steps(1) 0.7s forwards;
}

@keyframes pageFlickerTagLight {
  0%   { color: transparent; }
  15%  { color: #7c7c7c; }
  30%  { color: transparent; }
  50%  { color: #7c7c7c; }
  65%  { color: transparent; }
  80%  { color: #7c7c7c; }
  100% { color: #7c7c7c; }
}

.page-fade-in {
  opacity: 0;
  animation: pageSlideUp 0.6s ease 0.95s forwards;
}

.page-fade-in-2 {
  opacity: 0;
  animation: pageSlideUp 0.6s ease 1.1s forwards;
}

@keyframes pageSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 滚动触发动画（子页面正文区域） */
.page-scroll-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-scroll-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 侧边栏滚动渐入 */
.page-sidebar-in {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.page-sidebar-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .work-hero-image {
    height: 250px;
  }
  .work-hero-content {
    padding: 1.5rem;
  }
  .work-hero-title {
    font-size: 1.75rem;
  }
  .work-detail-body {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .article-page {
    padding: 2rem 1.25rem;
  }
  .article-page-header h1 {
    font-size: 1.5rem;
  }
  .top-bar {
    padding: 0 1rem;
  }

  /* === 手机端点赞区优化 === */
  .page-like-bar {
    padding: 2rem 1.25rem 1.5rem;
  }

  .like-big-btn {
    padding: 0.6rem 1.8rem;
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  /* === 手机端评论区优化 === */
  .comments-section {
    padding: 1.5rem 1.25rem;
  }

  .comments-title {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eee;
  }

  /* 表单三字段竖排 */
  .comment-form-row {
    flex-direction: column;
    gap: 0.6rem;
  }

  .comment-input {
    padding: 0.7rem 0.8rem;
    font-size: 0.82rem;
  }

  .comment-textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.82rem;
    min-height: 80px;
  }

  .comment-form-footer {
    flex-direction: column;
    gap: 0.6rem;
    align-items: stretch;
  }

  .comment-hint {
    font-size: 0.7rem;
    text-align: center;
  }

  .comment-submit-btn {
    width: 100%;
    padding: 0.65rem;
    font-size: 0.85rem;
    text-align: center;
  }

  /* 评论列表卡片化 */
  .comment-item {
    gap: 0.65rem;
    padding: 1rem 0;
  }

  .comment-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.72rem;
  }

  .comment-author-name,
  .comment-author-link {
    font-size: 0.8rem;
  }

  .comment-time {
    font-size: 0.65rem;
  }

  .comment-text {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .comment-meta {
    gap: 0.5rem;
    margin-bottom: 0.3rem;
  }

  .comments-empty {
    padding: 1.5rem;
    font-size: 0.8rem;
  }
}

/* ===== 点赞按钮（居中） ===== */
.page-like-bar {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1rem;
  position: relative;
  z-index: 1;
  border-top: 1px solid #e6e6e6;
}

.like-big-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  color: #999;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.like-big-btn:hover {
  border-color: #ff6b81;
  color: #ff6b81;
  transform: scale(1.05);
}

.like-big-btn.liked {
  border-color: #ff6b81;
  color: #ff6b81;
  background: rgba(255, 107, 129, 0.08);
}

/* 暗色适配 */
body:not(.page-light) .page-like-bar {
  border-top-color: #333;
}

body:not(.page-light) .like-big-btn {
  border-color: #444;
  color: #777;
}

body:not(.page-light) .like-big-btn:hover {
  border-color: #ff6b81;
  color: #ff6b81;
}

body:not(.page-light) .like-big-btn.liked {
  border-color: #ff6b81;
  color: #ff6b81;
  background: rgba(255, 107, 129, 0.1);
}

/* ===== 评论区 ===== */
.comments-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #191919;
}

.comments-count {
  font-weight: 500;
  color: #999;
  font-size: 0.85rem;
}

/* 表单 */
.comment-form {
  margin-bottom: 2rem;
}

.comment-form-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.comment-input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.85rem;
  font-family: inherit;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.comment-input:focus {
  border-color: #fffa00;
}

.comment-textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 0.85rem;
  font-family: inherit;
  color: #333;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
}

.comment-textarea:focus {
  border-color: #fffa00;
}

.comment-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.comment-hint {
  font-size: 0.75rem;
  color: #999;
}

.comment-submit-btn {
  padding: 0.5rem 1.5rem;
  background: #191919;
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.comment-submit-btn:hover {
  background: #fffa00;
  color: #191919;
}

.comment-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 评论列表 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.comments-empty {
  text-align: center;
  padding: 2rem;
  color: #bbb;
  font-size: 0.85rem;
}

.comment-item {
  display: flex;
  gap: 0.8rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid #eee;
}

.comment-avatar {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: #f0f0f0;
  color: #999;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
}
.comment-avatar-img {
  width: 110%;
  height: 110%;
  object-fit: contain;
  image-rendering: pixelated;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.comment-author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
}

.comment-author-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0066cc;
  text-decoration: none;
}

.comment-author-link:hover {
  text-decoration: underline;
}

.comment-time {
  font-size: 0.72rem;
  color: #bbb;
}

.comment-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #555;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 回复按钮 - 常态显示 */
.comment-reply-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  font-size: 0.72rem;
  color: #888;
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  opacity: 1;
  transition: all 0.2s;
}
.comment-reply-btn:hover {
  color: #191919;
  background: #fffa00;
  border-color: #fffa00;
}

/* 回复目标提示 */
.comment-reply-to {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 4px;
}
.reply-to-name {
  color: #666;
  font-weight: 500;
}

/* 回复表单 */
.reply-form {
  margin-top: 12px;
  padding: 12px;
  background: #f8f8f8;
  border-radius: 8px;
  border-left: 3px solid #fffa00;
}
.reply-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: #666;
}
.reply-cancel-btn {
  padding: 2px 8px;
  font-size: 0.75rem;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
}
.reply-cancel-btn:hover {
  color: #333;
}
.reply-form .comment-textarea {
  min-height: 60px;
}
.reply-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.reply-form .comment-submit-btn {
  padding: 6px 16px;
  font-size: 0.8rem;
}

/* ===== 评论区暗色适配 ===== */
body:not(.page-light) .comments-title { color: #fff; }
body:not(.page-light) .comment-input,
body:not(.page-light) .comment-textarea {
  background: #1e1e1e;
  border-color: #333;
  color: #ddd;
}
body:not(.page-light) .comment-input:focus,
body:not(.page-light) .comment-textarea:focus {
  border-color: #fffa00;
}
body:not(.page-light) .comment-submit-btn {
  background: #fffa00;
  color: #191919;
}
body:not(.page-light) .comment-submit-btn:hover {
  background: #fff;
}
body:not(.page-light) .comment-item { border-bottom-color: #2a2a2a; }
body:not(.page-light) .comment-avatar { background: #2a2a2a; color: #666; }
body:not(.page-light) .comment-author-name { color: #ddd; }
body:not(.page-light) .comment-text { color: #bbb; }
body:not(.page-light) .comments-empty { color: #555; }
body:not(.page-light) .comment-reply-btn {
  border-color: #444;
  color: #666;
}
body:not(.page-light) .comment-reply-btn:hover {
  background: #fffa00;
  color: #191919;
}
body:not(.page-light) .reply-form {
  background: #1a1a1a;
}
body:not(.page-light) .reply-form-header {
  color: #888;
}
body:not(.page-light) .reply-to-name {
  color: #aaa;
}

/* 响应式 - 评论区补充（与上方 768px 合并） */
@media (max-width: 768px) {
  /* 暗色手机端评论标题边框 */
  body:not(.page-light) .comments-title {
    border-bottom-color: #333;
  }

  /* 手机端回复按钮样式微调 */
  .comment-reply-btn {
    padding: 4px 12px;
    font-size: 0.68rem;
  }

  /* 手机端回复目标提示精简 */
  .comment-reply-to {
    font-size: 0.65rem;
  }
}

}
