/* ==========================================================================
   樱花美图 aihuahan.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版基础
   -------------------------------------------------------------------------- */
:root {
  --sakura: #e8a0b4;
  --sakura-deep: #c9738c;
  --ink: #2d2d2d;
  --ink-soft: #6b6b6b;
  --warm-white: #faf7f5;
  --line: #e5e0dd;
  --paper: #ffffff;
  --radius: 8px;
  --radius-sm: 4px;
  --shell: 1200px;
  --reading: 720px;
  --gap: 28px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--sakura-deep);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

time {
  font-variant-numeric: tabular-nums;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--sakura-deep);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   layout：全站骨架 —— 页头、导航、主容器、面包屑、页标题、页脚
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 245, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sakura);
}

.brand:hover,
.brand:focus-visible {
  color: var(--sakura-deep);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-soft);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--ink);
  background: var(--line);
}

.nav-list a.is-current {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--sakura);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  width: 18px;
  height: 12px;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-size: 100% 2px, 100% 2px, 100% 2px;
  background-position: 0 0, 0 5px, 0 10px;
}

.site-main {
  display: block;
}

.home-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--sakura-deep);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  max-width: var(--reading);
  padding: 20px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  letter-spacing: normal;
  margin-bottom: 14px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.section {
  margin-bottom: 64px;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2,
.section-title,
.section > h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.section-sub,
.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
  line-height: 1.75;
}

.section-intro a,
.section-lead a {
  color: var(--sakura-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 页脚 */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr);
  gap: 40px 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-summary {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
}

.footer-group-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  display: inline-block;
  min-height: 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: var(--sakura-deep);
}

.footer-copy {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

/* 内页主内容 / 侧栏布局 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 44px;
}

.layout-main {
  min-width: 0;
}

.layout-aside,
.layout-side {
  min-width: 0;
}

/* 教程任务布局：主栏三分之二，侧栏三分之一 */
.layout-channels,
.layout-shell {
  grid-template-columns: minmax(520px, 2fr) minmax(220px, 1fr);
  align-items: start;
}

.sidebar-left .page-layout,
.sidebar-left.layout-channels,
.sidebar-left.layout-shell {
  grid-template-columns: minmax(220px, 1fr) minmax(520px, 2fr);
}

.sidebar-left .layout-aside,
.sidebar-left .layout-side {
  order: -1;
}

/* 简洁单栏布局 */
.fields-layout {
  display: block;
  max-width: var(--reading);
}

/* --------------------------------------------------------------------------
   components：按钮、卡片、表格、清单、时间线、侧栏
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--sakura);
  color: #3a2028;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--sakura-deep);
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--sakura);
  color: var(--sakura-deep);
  background: var(--paper);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--sakura);
  color: #3a2028;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--sakura-deep);
  color: #ffffff;
}

.button-plain {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button-plain:hover,
.button-plain:focus-visible {
  border-color: var(--sakura);
  color: var(--sakura-deep);
}

/* 图片容器统一约束 */
.channel-thumb,
.collection-thumb,
.collection-figure,
.detail-media,
.structure-figure,
.fields-figure,
.step-figure,
.section-figure,
.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.channel-thumb img,
.collection-thumb img,
.collection-figure img,
.detail-media img,
.structure-figure img,
.fields-figure img,
.step-figure img,
.section-figure img,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.channel-row:hover .channel-thumb img,
.collection-card:hover .collection-thumb img,
.collection-card:hover .collection-figure img,
.structure-row:hover .structure-figure img {
  transform: scale(1.03);
}

/* 题材频道索引行 */
.channel-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.channel-thumb {
  width: 168px;
  height: 112px;
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.channel-intro {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.channel-link,
.collection-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sakura-deep);
  white-space: nowrap;
}

.channel-link::after,
.collection-link::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.18s ease;
}

.channel-link:hover::after,
.collection-link:hover::after {
  transform: translateX(3px);
}

/* 专题合集卡片 */
.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.collection-thumb,
.collection-figure {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}

.collection-name {
  font-size: 18px;
  margin: 18px 20px 8px;
}

.collection-scope {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 20px 8px;
}

.collection-usage {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 20px 8px;
}

.collection-card .collection-link {
  margin: auto 20px 20px;
  padding-top: 12px;
}

.collection-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 素材字段表格 */
.fields-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fields-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.fields-table th,
.fields-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}

.fields-table thead th {
  background: var(--line);
  font-size: 15px;
  font-weight: 600;
}

.fields-table tbody th {
  font-weight: 600;
  white-space: nowrap;
  width: 20%;
}

.fields-table tbody td {
  color: var(--ink-soft);
}

.fields-table tbody tr:last-child th,
.fields-table tbody tr:last-child td {
  border-bottom: none;
}

/* 查阅步骤（首页三步概览） */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.path-step {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--sakura);
}

.path-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--sakura);
  color: var(--sakura-deep);
  font-size: 14px;
  font-weight: 600;
}

.path-step .step-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.path-step .step-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.path-more,
.updates-more {
  margin-top: 26px;
  font-size: 15px;
}

.path-more a,
.updates-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sakura-deep);
  font-weight: 600;
}

.path-more a:hover,
.updates-more a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 更新记录 */
.update-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 130px 110px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.update-date {
  font-size: 14px;
  color: var(--ink-soft);
}

.update-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--line);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.update-text {
  font-size: 15px;
  line-height: 1.7;
}

/* 相关内容条 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 14px;
  color: var(--ink-soft);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--sakura-deep);
}

.related-links-item:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 入口列表（各内页通用） */
.entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.entry-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.entry-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.entry-item a:hover,
.entry-item a:focus-visible {
  border-color: var(--sakura);
  color: var(--sakura-deep);
}

.entry-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.entry-links li {
  display: block;
}

.entry-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 15px;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.entry-links a:hover,
.entry-links a:focus-visible {
  border-color: var(--sakura);
  color: var(--sakura-deep);
}

/* 侧栏区块 */
.aside-block,
.side-block {
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.aside-title,
.side-block h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.aside-steps {
  counter-reset: aside-step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.aside-steps li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.aside-steps li::before {
  counter-increment: aside-step;
  content: counter(aside-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.aside-note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.aside-note a {
  color: var(--sakura-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}

.aside-links a:hover {
  color: var(--sakura-deep);
}

.side-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 14px;
  color: var(--ink-soft);
}

.side-links a:hover {
  color: var(--sakura-deep);
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 44px;
  align-items: center;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 14px;
  color: var(--sakura-deep);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
}

.hero-media figcaption {
  margin-top: 12px;
  font-size: 14px;
}

.channels-overview .channel-row {
  grid-template-columns: 168px minmax(0, 1fr) auto;
}

.collections-preview .collection-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fields-summary .fields-table {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   pages：题材频道
   -------------------------------------------------------------------------- */
.channel-overview .channel-rows {
  border-top: 1px solid var(--line);
}

.channel-overview .channel-row {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: start;
}

.channel-overview .channel-thumb {
  width: 140px;
  height: 96px;
}

.channel-meta {
  min-width: 0;
}

.channel-meta h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.channel-focus,
.channel-fit {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.channel-focus {
  margin-bottom: 6px;
}

.channel-fit strong {
  color: var(--ink);
}

.channel-details .channel-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.channel-details .channel-detail:last-child {
  border-bottom: none;
}

.detail-media {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.detail-body {
  min-width: 0;
}

.detail-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.detail-body p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}

.field-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
}

.field-brief dt {
  color: var(--ink);
  font-weight: 600;
}

.field-brief dd {
  color: var(--ink-soft);
  line-height: 1.65;
}

.channel-relations p,
.collections-relation p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: var(--reading);
}

.channel-entries .entry-list {
  flex-direction: column;
  align-items: flex-start;
}

.channel-entries .entry-item a {
  min-width: 220px;
}

/* --------------------------------------------------------------------------
   pages：专题合集
   -------------------------------------------------------------------------- */
.collections-overview .collection-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-structure .structure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.collection-structure .structure-row:last-child {
  border-bottom: none;
}

.structure-figure {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.structure-body {
  min-width: 0;
}

.structure-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.structure-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}

.structure-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  font-size: 14px;
}

.structure-fields dt {
  color: var(--ink);
  font-weight: 600;
}

.structure-fields dd {
  color: var(--ink-soft);
  line-height: 1.65;
}

.collections-entry .entry-list {
  flex-direction: column;
  align-items: flex-start;
}

.collections-entry .entry-item a {
  min-width: 220px;
}

/* --------------------------------------------------------------------------
   pages：素材字段
   -------------------------------------------------------------------------- */
.fields-overview {
  margin-bottom: 44px;
}

.fields-overview h2,
.fields-usage h2,
.fields-boundary h2,
.fields-entries h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.fields-usage,
.fields-boundary,
.fields-entries {
  margin-bottom: 44px;
}

.fields-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 20px 0 10px;
}

.fields-figure figcaption {
  margin-top: 10px;
}

.fields-usage p,
.fields-boundary p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-top: 14px;
}

.fields-entries .entry-list {
  flex-direction: column;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   pages：浏览指南
   -------------------------------------------------------------------------- */
.step-overview {
  margin-bottom: 48px;
}

.step-overview h2,
.step-detail h2,
.checklist h2,
.entry-links h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.step-overview > p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 20px;
}

.step-overview > p a {
  color: var(--sakura-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-right: 10px;
}

.step-list {
  counter-reset: guide-step;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-item .step-index {
  grid-row: 1 / 3;
  margin: 0;
}

.step-item .step-name {
  font-size: 17px;
  margin: 0;
}

.step-item .step-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.step-detail {
  margin-bottom: 48px;
}

.step-detail > p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 22px;
}

.step-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-block:last-child {
  border-bottom: none;
}

.step-block h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.step-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
}

.step-figure figcaption {
  margin-top: 10px;
}

.step-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 15px;
}

.step-meta dt {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.step-meta dd {
  color: var(--ink-soft);
  line-height: 1.7;
}

.checklist {
  margin-bottom: 48px;
}

.checklist > p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 18px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--sakura);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.entry-links {
  margin-bottom: 0;
}

.entry-links > p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 16px;
}

.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.prepare-list li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.prepare-list strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   pages：素材反馈
   -------------------------------------------------------------------------- */
.content-section {
  margin-bottom: 48px;
}

.content-section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.content-section > p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: var(--reading);
}

.timeline-log {
  position: relative;
  padding-left: 26px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 110px minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 18px;
  padding: 16px 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sakura);
  border: 2px solid var(--warm-white);
}

.timeline-item time {
  font-size: 14px;
  color: var(--ink-soft);
}

.log-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--line);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
}

.timeline-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.section-figure {
  width: 100%;
  max-width: var(--reading);
  aspect-ratio: 16 / 9;
  margin: 0 0 24px;
}

.section-figure figcaption {
  margin-top: 10px;
}

.feedback-steps {
  counter-reset: feedback-step;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: var(--reading);
}

.feedback-step {
  position: relative;
  padding-left: 42px;
}

.feedback-step::before {
  counter-increment: feedback-step;
  content: counter(feedback-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--sakura);
  color: var(--sakura-deep);
  font-size: 14px;
  font-weight: 600;
}

.feedback-step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feedback-step p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--reading);
}

.boundary-card {
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.boundary-card h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.boundary-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.boundary-card li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.boundary-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sakura);
}

/* --------------------------------------------------------------------------
   pages：404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.error-panel {
  max-width: var(--reading);
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-panel h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 12px;
}

.error-hint {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   responsive：1024 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .layout-channels,
  .layout-shell,
  .sidebar-left .page-layout,
  .sidebar-left.layout-channels,
  .sidebar-left.layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .layout-aside,
  .sidebar-left .layout-side {
    order: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 18px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    width: 100%;
    padding: 0 12px;
    font-size: 16px;
  }

  .nav-list a.is-current {
    background: var(--line);
    box-shadow: none;
  }

  .home-main,
  .inner-main,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 26px;
  }

  .section-head h2,
  .section-title,
  .section > h2,
  .fields-overview h2,
  .fields-usage h2,
  .fields-boundary h2,
  .fields-entries h2,
  .step-overview h2,
  .step-detail h2,
  .checklist h2,
  .entry-links h2,
  .content-section h2 {
    font-size: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 32px 0 40px;
    margin-bottom: 44px;
  }

  .hero-media {
    order: 2;
  }

  .section {
    margin-bottom: 44px;
  }

  .channel-row,
  .channels-overview .channel-row,
  .channel-overview .channel-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .channel-thumb,
  .channel-overview .channel-thumb {
    width: 104px;
    height: 78px;
  }

  .channel-row .channel-link {
    grid-column: 2;
    justify-self: start;
    min-height: 40px;
  }

  .collection-cards,
  .collections-preview .collection-cards,
  .collections-overview .collection-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .path-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .update-item,
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .timeline-item::before {
    top: 20px;
  }

  .channel-details .channel-detail,
  .collection-structure .structure-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .fields-table {
    font-size: 14px;
  }

  .fields-table th,
  .fields-table td {
    padding: 12px 12px;
  }

  .fields-table tbody th {
    white-space: normal;
    width: 26%;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .path-step .step-index,
  .step-item .step-index {
    width: 28px;
    height: 28px;
  }

  .error-main {
    padding: 44px 18px 64px;
  }

  .error-panel {
    padding: 26px 20px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 14px;
  }

  .home-main,
  .inner-main,
  .footer-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .channel-row,
  .channels-overview .channel-row,
  .channel-overview .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .channel-thumb,
  .channel-overview .channel-thumb {
    width: 100%;
    height: 168px;
  }

  .channel-row .channel-link {
    grid-column: 1;
  }

  .update-type,
  .log-type {
    justify-self: start;
  }

  .timeline-log {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -27px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .entry-item a,
  .entry-links a,
  .channel-entries .entry-item a,
  .collections-entry .entry-item a {
    width: 100%;
    min-width: 0;
  }

  .entry-list,
  .entry-links {
    flex-direction: column;
    align-items: stretch;
  }

  .step-meta,
  .field-brief,
  .structure-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .step-meta dt,
  .field-brief dt,
  .structure-fields dt {
    white-space: normal;
  }

  .step-meta dd,
  .field-brief dd,
  .structure-fields dd {
    margin-bottom: 8px;
  }
}
