/* ==========================================================================
   樱花动漫免费观看 · 全站样式表
   档案馆风：索引编号、日期分组、统一缩略图
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. base — 变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --ink: #1f2a44;
  --ink-soft: #3a4462;
  --paper: #f7f5f0;
  --paper-card: #fffdf9;
  --sakura: #b5647a;
  --sakura-soft: #d9a3b0;
  --taupe: #8a8577;
  --line: #ddd8cd;
  --line-strong: #c9c2b3;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(31, 42, 68, .06);
  --shadow-hover: 0 4px 14px rgba(31, 42, 68, .1);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

a:hover {
  color: var(--sakura);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

time {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--sakura);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   02. layout — 页头、导航、主容器、页脚骨架
   -------------------------------------------------------------------------- */

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--sakura);
  flex-shrink: 0;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .85);
}

.brand-mark::before {
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  transform: translateX(-50%);
}

.brand-mark::after {
  top: 50%;
  left: 8px;
  right: 8px;
  height: 1px;
  transform: translateY(-50%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.brand-slogan {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.nav-link.is-current {
  color: #fff;
  background: var(--sakura);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 15px;
  height: 2px;
  background: #fff;
  box-shadow: 0 6px 0 #fff, 0 -6px 0 #fff;
}

/* 顶部线索说明条 */
.site-notice {
  background: var(--ink-soft);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  text-align: center;
}

.site-notice p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 24px;
}

/* 主内容容器 */
.site-main {
  display: block;
}

.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 18px;
  font-size: 13px;
  color: var(--taupe);
}

.breadcrumb a {
  color: var(--taupe);
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--sakura);
  border-bottom-color: var(--sakura-soft);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  padding: 0 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
}

.page-description {
  margin-top: 12px;
  max-width: 860px;
  font-size: 15px;
  color: var(--taupe);
}

/* 通用区块标题 */
.section-head {
  margin-bottom: 22px;
}

.section-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  padding-left: 12px;
  border-left: 3px solid var(--sakura);
  line-height: 1.3;
}

.section-desc,
.section-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--taupe);
  max-width: 820px;
}

.section-desc a,
.section-note a {
  color: var(--sakura);
  border-bottom: 1px solid var(--sakura-soft);
}

/* 页脚 */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .66);
  font-size: 14px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px 28px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .58);
}

.footer-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-list li {
  margin-bottom: 9px;
}

.footer-list a {
  color: rgba(255, 255, 255, .68);
}

.footer-list a:hover {
  color: #fff;
}

.footer-meta {
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 16px 24px 22px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
}

/* --------------------------------------------------------------------------
   03. components — 通用组件（索引编号、标签、卡片、链接组）
   -------------------------------------------------------------------------- */

/* 索引编号 */
.idx-no,
.channel-no,
.channel-code,
.list-no,
.index-code,
.rank-no,
.archive-index,
.history-index,
.feedback-index,
.work-order {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--sakura);
  flex-shrink: 0;
}

/* 状态标签 */
.update-tag,
.change-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.tag-new,
.change-tag-new {
  color: var(--sakura);
  background: rgba(181, 100, 122, .12);
  border: 1px solid var(--sakura-soft);
}

.tag-edit,
.change-tag-adjust {
  color: #6d6a3f;
  background: rgba(138, 133, 119, .14);
  border: 1px solid var(--line-strong);
}

.tag-move,
.change-tag-archive {
  color: var(--taupe);
  background: rgba(138, 133, 119, .1);
  border: 1px solid var(--line);
}

/* 通用缩略图容器 */
.list-media,
.entry-media,
.work-cover,
.archive-figure,
.guide-figure,
.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-card);
}

.list-media img,
.entry-media img,
.work-cover img,
.archive-figure img,
.guide-figure img,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文本链接 */
.channel-link,
.list-link,
.guide-link,
.history-link,
.extend-link {
  display: inline-block;
  font-size: 13px;
  color: var(--sakura);
  border-bottom: 1px solid var(--sakura-soft);
  padding-bottom: 1px;
}

.channel-link:hover,
.list-link:hover,
.guide-link:hover,
.history-link:hover,
.extend-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* --------------------------------------------------------------------------
   04. pages — 首页
   -------------------------------------------------------------------------- */

/* 时间归档首屏 */
.hero-archive {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.hero-left {
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sakura);
  padding: 3px 10px;
  border: 1px solid var(--sakura-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 15px;
  color: var(--taupe);
  max-width: 620px;
  margin-bottom: 26px;
}

.hero-current,
.hero-history {
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.archive-index-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.archive-index-list li:last-child {
  border-bottom: 0;
}

.hero-left .idx-no {
  font-size: 13px;
}

.idx-text {
  font-size: 14px;
  color: var(--ink-soft);
}

.history-jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-jump-list a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.history-jump-list a:hover {
  color: var(--sakura);
  border-color: var(--sakura-soft);
}

.hero-cta {
  display: inline-block;
  margin-top: 6px;
  padding: 11px 24px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.hero-cta:hover {
  background: var(--sakura);
  color: #fff;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
}

.hero-media img {
  position: absolute;
  inset: 0;
}

.hero-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 12px;
  color: #fff;
  background: rgba(31, 42, 68, .78);
}

/* 题材频道索引 */
.channels-index {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.channel-rows {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 110px 96px;
  align-items: center;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.channel-row:hover {
  background: rgba(255, 253, 249, .9);
}

.channel-row .channel-no,
.channel-row .channel-code {
  font-size: 15px;
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.channel-text,
.channel-desc {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.7;
}

.channel-count {
  font-size: 13px;
  color: var(--taupe);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.channel-row .channel-link {
  text-align: right;
}

/* 专题片单入口 */
.lists-entry {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.list-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.list-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.list-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.list-card .list-media {
  aspect-ratio: 3 / 4;
}

.list-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.list-body .list-no {
  font-size: 12px;
  margin-bottom: 6px;
}

.list-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.list-text {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.7;
  margin-bottom: 12px;
}

.list-body .list-link {
  margin-top: auto;
}

/* 最近更新归档 */
.update-archive {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.update-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.update-group {
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-date {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.update-items li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.update-items li:last-child {
  border-bottom: 0;
}

.update-link {
  font-size: 14px;
  color: var(--ink-soft);
  min-width: 0;
}

.update-link:hover {
  color: var(--sakura);
}

/* 索引排行与阅读说明 */
.rank-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.rank-column {
  min-width: 0;
}

.rank-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.rank-item .rank-no {
  font-size: 15px;
}

.rank-link {
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}

.rank-link:hover {
  color: var(--sakura);
}

.rank-channel {
  font-size: 13px;
  color: var(--taupe);
  text-align: right;
  white-space: nowrap;
}

.guide-column {
  min-width: 0;
  padding: 22px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-text {
  margin-top: 14px;
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.8;
}

.guide-points {
  margin: 16px 0 20px;
}

.guide-points li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}

.guide-points li:last-child {
  border-bottom: 0;
}

.guide-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 6px;
  height: 6px;
  background: var(--sakura-soft);
  border-radius: 50%;
}

/* 站内栏目索引 */
.site-sections {
  padding: 44px 0 8px;
}

.site-sections .section-title {
  margin-bottom: 20px;
}

.section-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.section-link-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.section-link-item:hover {
  border-color: var(--sakura-soft);
  box-shadow: var(--shadow-hover);
}

.section-link-item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.section-link-item a:hover {
  color: var(--sakura);
}

.section-link-desc {
  font-size: 12px;
  color: var(--taupe);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   05. pages — 题材频道
   -------------------------------------------------------------------------- */

.filter-bar {
  padding: 0 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-tag {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.filter-tag:hover {
  color: var(--sakura);
  border-color: var(--sakura-soft);
}

.filter-tag.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.channel-overview {
  margin-bottom: 40px;
}

.channel-overview .channel-rows {
  margin-top: 20px;
}

.channel-overview .channel-row {
  grid-template-columns: 72px minmax(0, 1fr) 110px;
}

.channel-featured {
  margin-bottom: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.featured-channel {
  padding: 22px;
  margin-bottom: 20px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.featured-head {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.featured-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.featured-intro {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.8;
}

.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.entry-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.entry-card .entry-media {
  aspect-ratio: 3 / 4;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.entry-body {
  padding: 14px;
}

.entry-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.entry-meta {
  font-size: 12px;
  color: var(--taupe);
  line-height: 1.7;
}

.related-entry {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.related-links a {
  display: block;
  padding: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links a:hover {
  color: var(--sakura);
  border-color: var(--sakura-soft);
}

/* --------------------------------------------------------------------------
   06. pages — 专题片单
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 44px;
}

.list-overview {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.list-index {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.list-index-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.list-index-row:hover {
  background: rgba(255, 253, 249, .9);
}

.list-index-row .index-code {
  font-size: 14px;
}

.index-topic {
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}

.index-count {
  font-size: 13px;
  color: var(--taupe);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.list-block {
  padding: 26px;
  margin-bottom: 26px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.list-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.list-block-head .index-code {
  font-size: 13px;
}

.list-block-title {
  font-size: 19px;
}

.list-editor-note {
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.85;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--sakura-soft);
}

.work-sequence {
  display: grid;
  gap: 14px;
}

.work-item {
  display: grid;
  grid-template-columns: 76px 40px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease;
}

.work-item:hover {
  border-color: var(--line-strong);
}

.work-item .work-cover {
  aspect-ratio: 3 / 4;
}

.work-item .work-order {
  font-size: 15px;
  text-align: center;
}

.work-body {
  min-width: 0;
}

.work-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.work-summary {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.75;
}

.list-extend {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.extend-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.extend-item {
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.extend-item .extend-link {
  font-size: 15px;
  font-weight: 600;
}

.extend-desc {
  margin-top: 10px;
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   07. pages — 更新归档
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
  position: sticky;
  top: 92px;
}

.archive-section,
.history-section,
.rule-section {
  margin-bottom: 40px;
}

.archive-section .section-desc,
.history-section .section-desc,
.rule-section .section-desc {
  margin-bottom: 22px;
}

.archive-group {
  padding: 22px;
  margin-bottom: 20px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.archive-group-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.archive-group-header .archive-index {
  font-size: 13px;
}

.archive-date {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.archive-summary {
  flex: 1 1 100%;
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.75;
}

.archive-group .archive-figure {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.archive-group .archive-figure img {
  aspect-ratio: 16 / 9;
}

.archive-group .archive-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--taupe);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.change-list {
  border-top: 1px solid var(--line);
}

.change-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.change-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.change-body {
  min-width: 0;
}

.change-name {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.change-note {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.7;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.history-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.history-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.history-card .history-index {
  font-size: 12px;
  margin-bottom: 8px;
}

.history-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.history-note {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.7;
  margin-bottom: 14px;
}

.history-card .history-link {
  margin-top: auto;
  align-self: flex-start;
}

.rule-list {
  border-top: 1px solid var(--line);
}

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rule-body {
  min-width: 0;
}

.rule-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.rule-note {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.75;
}

/* 更新归档侧栏 */
.aside-block {
  padding: 20px;
  margin-bottom: 20px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-title {
  font-size: 15px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.aside-list li {
  border-bottom: 1px dashed var(--line);
}

.aside-list li:last-child {
  border-bottom: 0;
}

.aside-list a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-list a:hover {
  color: var(--sakura);
}

.aside-note {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   08. pages — 阅读说明
   -------------------------------------------------------------------------- */

.guide-section {
  margin-bottom: 44px;
}

.guide-usage .guide-figure {
  aspect-ratio: 21 / 9;
  margin-bottom: 26px;
}

.guide-usage .guide-figure img {
  aspect-ratio: 21 / 9;
}

.guide-usage .guide-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--taupe);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.guide-step {
  padding: 20px 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-step-title {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.guide-step-text {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.8;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.scope-item {
  padding: 20px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scope-item-title {
  font-size: 15px;
  margin-bottom: 10px;
}

.scope-item-text {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.8;
}

.feedback-steps {
  border-top: 1px solid var(--line);
}

.feedback-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.feedback-step .feedback-index {
  font-size: 15px;
  grid-row: span 2;
}

.feedback-step-title {
  font-size: 15px;
}

.feedback-step-text {
  font-size: 13px;
  color: var(--taupe);
  line-height: 1.8;
}

.guide-faq {
  margin-top: 32px;
}

.faq-heading {
  font-size: 17px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--sakura);
}

.faq-item {
  margin-bottom: 10px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-question {
  padding: 14px 46px 14px 18px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--sakura);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--sakura);
}

.faq-answer {
  padding: 14px 18px 16px;
  font-size: 14px;
  color: var(--taupe);
  line-height: 1.85;
  border-top: 1px solid var(--line);
}

.guide-links {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.guide-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.guide-link-item a {
  display: block;
  padding: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-link-item a:hover {
  color: var(--sakura);
  border-color: var(--sakura-soft);
}

/* --------------------------------------------------------------------------
   09. pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-block {
  max-width: 640px;
  padding: 40px 32px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  color: var(--sakura);
  line-height: 1;
  margin-bottom: 16px;
}

.error-block h1 {
  font-size: 24px;
  margin-bottom: 14px;
}

.error-desc {
  font-size: 15px;
  color: var(--taupe);
  line-height: 1.85;
  margin-bottom: 24px;
}

.error-home-link {
  display: inline-block;
  padding: 11px 24px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.error-home-link:hover {
  background: var(--sakura);
  color: #fff;
}

.error-guide {
  margin-top: 36px;
  max-width: 860px;
}

.error-guide h2 {
  font-size: 18px;
  margin-bottom: 18px;
  padding-left: 12px;
  border-left: 3px solid var(--sakura);
}

.error-guide-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.error-guide-list a {
  display: block;
  padding: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-guide-list a:hover {
  color: var(--sakura);
  border-color: var(--sakura-soft);
}

/* --------------------------------------------------------------------------
   10. responsive — 平板与手机
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .hero-archive {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 28px;
  }

  .update-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-steps,
  .guide-link-list,
  .error-guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 8px 12px 14px;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
  }

  .hero-archive {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
  }

  .hero-title {
    font-size: 26px;
  }

  .rank-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .layout-aside {
    position: static;
  }

  .list-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-cards,
  .history-grid,
  .extend-links,
  .related-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 62px;
  }

  .brand-slogan {
    display: none;
  }

  .site-notice p {
    padding: 8px 16px;
    font-size: 12px;
  }

  .home-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-main {
    padding-top: 24px;
  }

  .page-title {
    font-size: 23px;
  }

  .hero-title {
    font-size: 22px;
  }

  .section-title {
    font-size: 18px;
  }

  .channel-row,
  .channel-overview .channel-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 14px 2px;
  }

  .channel-row .channel-count {
    grid-column: 2;
    text-align: left;
  }

  .channel-row .channel-link {
    grid-column: 2;
    text-align: left;
  }

  .list-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .update-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 12px 2px;
  }

  .rank-channel {
    grid-column: 2;
    text-align: left;
  }

  .section-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-cards,
  .history-grid,
  .extend-links,
  .related-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-index-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .list-index-row .index-count {
    grid-column: 2;
    text-align: left;
  }

  .list-block {
    padding: 18px 14px;
  }

  .work-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px 14px;
  }

  .work-item .work-order {
    grid-column: 1;
    text-align: left;
  }

  .work-body {
    grid-column: 2;
  }

  .archive-group {
    padding: 16px 14px;
  }

  .feedback-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px 12px;
  }

  .guide-steps,
  .guide-link-list,
  .error-guide-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-block {
    padding: 28px 20px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 22px;
  }

  .footer-copy {
    padding: 14px 16px 20px;
  }
}
