/* ==========================================================================
   精彩动漫 dddyi.cn · 整站样式表
   视觉方向：编辑杂志与地方门户的混合气质
   ========================================================================== */

/* ==========================================================================
   Base — 变量、重置、全局基础
   ========================================================================== */

:root {
  --ink: #1f1a17;
  --paper: #faf7f2;
  --accent: #e8552d;
  --accent-soft: #f3e6dc;
  --line: #e6ddd2;
  --gray: #6b625c;
  --white: #ffffff;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, monospace;
  --container: 1200px;
  --content-width: 800px;
  --radius: 8px;
  --header-h: 72px;
  --shadow-sm: 0 1px 3px rgba(31, 26, 23, 0.08);
  --shadow-md: 0 4px 12px rgba(31, 26, 23, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 19px;
}

p {
  margin-bottom: 0.5em;
}

/* 等宽字体的期号、编号、代号 */
.issue-line,
.project-code,
.timeline-code,
.step-num,
.step-number,
.error-code {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Layout — 全站骨架、容器、双栏布局
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 全站统一容器 */
.header-shell,
.footer-shell,
.layout-shell,
.inner-main,
.error-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 首页杂志式双栏：侧栏在前，主内容在后 */
.layout-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 56px;
  align-items: start;
}

.layout-shell.sidebar-left {
  grid-template-columns: 260px minmax(0, 1fr);
}

/* 内页正文容器宽度受控 */
.inner-main {
  max-width: var(--container);
  padding-top: 28px;
  padding-bottom: 64px;
}

/* 内页正文主区域，限制阅读宽度 */
.inner-main > * {
  max-width: var(--content-width);
}

/* 但分类条、表格容器等允许更宽 */
.inner-main > .category-anchor-bar,
.inner-main > .table-wrap {
  max-width: 100%;
}

/* 首页主内容流 */
.site-main.home-main {
  min-width: 0;
}

/* 摘要侧栏 */
.summary-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}

.sidebar-inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.sidebar-anchors li + li {
  border-top: 1px solid var(--line);
}

.sidebar-anchors a {
  display: block;
  padding: 10px 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.sidebar-anchors a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ==========================================================================
   Header — 全站统一页头
   ========================================================================== */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-mark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  position: relative;
  padding-left: 14px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-list li a:hover {
  color: var(--accent);
  background: var(--paper);
}

.nav-list li a.is-current {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.header-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.header-cta:hover {
  background: #d14a24;
  color: var(--white);
}

/* 汉堡按钮：桌面隐藏 */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px 10px;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}

.toggle-icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 1px;
}

.toggle-icon::before,
.toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.toggle-icon::before {
  top: -6px;
}

.toggle-icon::after {
  top: 6px;
}

/* ==========================================================================
   Components — 通用组件：面包屑、按钮、卡片、列表、表格等
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 36px;
}

.page-title {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.7;
}

/* 通用区块标题 */
.section-title {
  font-size: 24px;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-note,
.section-intro {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
  max-width: 640px;
}

/* 按钮 */
.btn-primary,
.btn-secondary,
.error-btn,
.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  min-height: 44px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #d14a24;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 通用区块链接 */
.section-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.section-link::after {
  content: "→";
  margin-left: 4px;
}

/* 卡片基础 */
.service-card,
.work-card,
.story-entry,
.project-card,
.type-card,
.policy-item,
.cast-card,
.related-card,
.entry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.service-card:hover,
.work-card:hover,
.story-entry:hover,
.project-card:hover,
.type-card:hover,
.policy-item:hover,
.cast-card:hover,
.related-card:hover,
.entry-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d8cfc4;
  transform: translateY(-2px);
}

/* ==========================================================================
   Home — 首页专属模块
   ========================================================================== */

/* 杂志首屏区 */
.magazine-hero {
  margin-bottom: 48px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.issue-line {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-slogan {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.hero-positioning {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 20px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* 本册栏目摘要：移动端横向标签条 */
.issue-toc {
  display: none;
  margin-bottom: 32px;
}

.issue-toc ul {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.issue-toc a {
  display: inline-block;
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  white-space: nowrap;
}

.issue-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 首页内容区块 */
.content-section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* 创作服务总览 */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 24px 20px;
}

.service-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.card-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 12px;
}

.service-card a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* 热门动漫推荐 */
.work-card-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  overflow: hidden;
}

.work-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-info {
  padding: 16px;
}

.work-info .tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.work-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.work-info p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
}

.work-info a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* 最新番剧更新 */
.timeline-list {
  border-left: 2px solid var(--line);
  padding-left: 20px;
}

.timeline-list li {
  position: relative;
  padding-bottom: 20px;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

.project-code {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-right: 12px;
}

.stage {
  display: inline-block;
  font-size: 13px;
  color: var(--gray);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2px 10px;
  border-radius: 3px;
}

.timeline-list p {
  font-size: 14px;
  color: var(--gray);
  margin-top: 6px;
  line-height: 1.6;
}

/* 剧情设定精选 */
.story-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.story-entry {
  overflow: hidden;
}

.story-entry img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.story-entry h3 {
  padding: 16px 16px 6px;
  font-size: 17px;
}

.story-entry p {
  padding: 0 16px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.story-entry a {
  display: inline-block;
  margin: 10px 16px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* 创作流程预览 */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.process-steps h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.process-steps p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* 常见咨询问题（首页折叠） */
.faq-mini {
  max-width: 720px;
}

.faq-mini details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq-mini summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-mini summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--accent);
}

.faq-mini details[open] summary::after {
  content: "−";
}

.faq-mini details p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-top: 10px;
}

/* 合作引导条 */
.cooperation-guide {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cooperation-guide p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  max-width: 640px;
  margin: 0;
}

/* ==========================================================================
   Inner Pages — 内页公共与各栏目页
   ========================================================================== */

/* 内页主体 */
.inner-main {
  min-width: 0;
}

/* ---- 代表作品页 ---- */

.category-anchor-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.category-anchor-bar a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-anchor-bar a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.works-section {
  margin-bottom: 48px;
}

.work-group {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.work-group-title {
  font-size: 20px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.work-item {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  align-items: start;
}

.work-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.work-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-item .work-info {
  padding: 0;
}

.work-type-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.work-name {
  font-size: 19px;
  margin-bottom: 8px;
}

.work-background,
.work-delivery {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 4px;
}

/* 服务引导卡 */
.service-guide-card {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 32px;
}

.service-guide-card p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 8px;
}

.service-guide-card a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* ---- 创作服务页 ---- */

.services-directory {
  margin-bottom: 48px;
}

.directory-list {
  counter-reset: dir;
}

.directory-list li {
  counter-increment: dir;
  border-bottom: 1px solid var(--line);
}

.directory-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s, padding-left 0.2s;
}

.directory-list a::before {
  content: "0" counter(dir);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 400;
}

.directory-list a:hover {
  color: var(--accent);
  padding-left: 16px;
}

.service-block {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.service-block-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.service-text {
  min-width: 0;
}

.service-text h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-problem {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 12px;
  line-height: 1.65;
}

.service-problem::before {
  content: "问题：";
  font-weight: 600;
  color: var(--accent);
}

.service-method {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.service-method::before {
  content: "方法：";
  font-weight: 600;
  color: var(--accent);
}

.service-output {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

.service-output::before {
  content: "产出：";
  font-weight: 600;
  color: var(--accent);
}

.service-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.service-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-figure figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gray);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* 自查清单 */
.checklist-section {
  margin-bottom: 48px;
}

.checklist {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 14px;
  line-height: 1.65;
}

.checklist li::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 16px;
  color: var(--accent);
}

/* 交付政策 */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.policy-item {
  padding: 24px 20px;
}

.policy-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.policy-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* 合作咨询引导（服务页） */
.contact-guide {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
}

.contact-guide h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.contact-guide p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}

.contact-guide a:not(.guide-button) {
  display: inline-block;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-right: 16px;
}

.guide-button {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: var(--white);
}

.guide-button:hover {
  background: #d14a24;
  color: var(--white);
}

/* ---- 番剧动态页 ---- */

.timeline-section {
  margin-bottom: 48px;
}

.timeline-section .timeline-list {
  margin-top: 24px;
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
  border-left: 2px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.timeline-code {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.timeline-date {
  font-size: 13px;
  color: var(--gray);
}

.timeline-content .timeline-stage {
  display: inline-block;
  font-size: 13px;
  color: var(--ink);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* 当前推进项目 */
.active-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  overflow: hidden;
}

.project-figure {
  margin: 0;
  overflow: hidden;
}

.project-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card-body {
  padding: 20px;
}

.project-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.project-direction {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.project-status,
.project-next {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 6px;
}

.project-status strong,
.project-next strong {
  color: var(--accent);
  font-weight: 600;
}

/* 相关入口卡 */
.entry-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  display: block;
  padding: 24px;
}

.entry-card-title {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.entry-card-desc {
  display: block;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ---- 剧情设定页 ---- */

.story-hero {
  margin-bottom: 48px;
}

.story-hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.story-hero-figure img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.story-hero-caption {
  margin-top: 16px;
}

.story-hero-caption .section-title {
  margin-bottom: 8px;
}

.story-hero-caption p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

.story-section {
  margin-bottom: 48px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 12px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.section-head .section-title {
  margin-bottom: 0;
}

.world-content p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* 角色卡 */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cast-card {
  overflow: hidden;
}

.cast-figure {
  margin: 0;
  overflow: hidden;
}

.cast-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.cast-body {
  padding: 16px;
}

.cast-body h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.cast-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.cast-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* 剧情线 */
.plot-list {
  border-left: 2px solid var(--line);
  padding-left: 24px;
}

.plot-item {
  position: relative;
  padding-bottom: 24px;
}

.plot-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

.plot-step {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}

.plot-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

.plot-note {
  font-size: 14px;
  color: var(--ink);
  margin-top: 16px;
}

.plot-note a {
  color: var(--accent);
  font-weight: 600;
}

/* 关联作品 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 20px;
}

.related-body h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.related-body p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

/* ---- 创作流程页 ---- */

.process-timeline {
  margin-bottom: 48px;
}

.content-media-inline {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.content-media-inline img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--gray);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.step-content {
  min-width: 0;
}

.step-content h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step-work,
.step-output {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 4px;
}

.step-work strong,
.step-output strong {
  color: var(--accent);
  font-weight: 600;
}

/* 客户配合事项表 */
.client-checklist {
  margin-bottom: 48px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.process-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.process-table th,
.process-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.process-table thead th {
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.process-table tbody tr:last-child td {
  border-bottom: none;
}

.process-table tbody tr:hover {
  background: var(--paper);
}

/* 交付标准 */
.standard-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.standard-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 14px;
  line-height: 1.65;
}

.standard-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.standard-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

/* 启动咨询 */
.start-consultation {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.start-consultation .section-title {
  margin-bottom: 12px;
}

.start-consultation p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}

.cta-link {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  min-height: 44px;
  margin-bottom: 12px;
}

.cta-link:hover {
  background: #d14a24;
  color: var(--white);
}

.start-consultation p:last-child a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

/* 相关内容导航 */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  margin-right: 8px;
}

.related-links-item {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.related-links-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- 合作咨询页 ---- */

.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

/* 咨询类型 */
.consult-types {
  margin-bottom: 48px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.type-card {
  padding: 24px 20px;
}

.type-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.type-audience {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.type-focus {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 12px;
}

.type-card a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* 需求简报清单 */
.brief-section {
  margin-bottom: 48px;
}

.brief-list {
  counter-reset: brief;
}

.brief-list li {
  counter-increment: brief;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 64px;
}

.brief-list li::before {
  content: "0" counter(brief);
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.brief-list h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.brief-list p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* 沟通节奏 */
.rhythm-steps {
  counter-reset: rhythm;
  border-left: 2px solid var(--line);
  padding-left: 24px;
}

.rhythm-item {
  position: relative;
  padding-bottom: 24px;
}

.rhythm-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--paper);
}

.step-number {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.rhythm-item h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.rhythm-item p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

.rhythm-note {
  font-size: 14px;
  color: var(--ink);
  margin-top: 16px;
}

.rhythm-note a {
  color: var(--accent);
  font-weight: 600;
}

/* 联系配图 */
.contact-media {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.contact-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.contact-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* FAQ */
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.faq-list summary {
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-top: 10px;
}

/* 合作引导侧栏 */
.contact-guide .guide-card {
  background: var(--accent-soft);
  border: none;
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.guide-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 16px;
}

.guide-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-links a {
  display: inline-block;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.guide-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   404 页面
   ========================================================================== */

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.error-shell {
  text-align: center;
  max-width: 480px;
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 8px;
}

.error-shell h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.error-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
}

.error-btn:hover {
  background: #d14a24;
  color: var(--white);
}

/* ==========================================================================
   Footer — 全站统一页脚
   ========================================================================== */

.site-footer {
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray);
}

/* ==========================================================================
   Responsive — 响应式断点
   ========================================================================== */

/* 平板与窄桌面：1024px */
@media (max-width: 1024px) {
  .layout-shell {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .service-card-grid,
  .work-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-figure img {
    height: 280px;
  }

  .service-block-inner {
    grid-template-columns: 1fr;
  }

  .service-figure img {
    height: 220px;
  }

  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
  }

  .contact-guide .guide-card {
    position: static;
  }

  .work-item {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

/* 手机端：768px */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .header-shell {
    height: var(--header-h);
    gap: 12px;
  }

  .brand-mark {
    font-size: 18px;
  }

  /* 导航切换 */
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    width: 100%;
    position: absolute;
    top: var(--header-h);
    left: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 8px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-list li a.is-current {
    background: transparent;
  }

  .header-cta {
    order: 2;
    padding: 8px 16px;
    font-size: 13px;
    margin-left: auto;
  }

  .header-shell {
    flex-wrap: wrap;
    position: relative;
  }

  /* 首页布局：单列，侧栏在正文后 */
  .layout-shell {
    display: block;
    padding-top: 24px;
  }

  .summary-sidebar {
    display: none;
  }

  .issue-toc {
    display: block;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-slogan {
    font-size: 16px;
  }

  .hero-figure img {
    height: 220px;
  }

  .service-card-grid,
  .work-card-list,
  .story-entry-grid,
  .process-steps,
  .active-projects-grid,
  .entry-card-list,
  .cast-grid,
  .related-grid,
  .type-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 32px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 26px;
  }

  .work-item {
    grid-template-columns: 1fr;
  }

  .work-figure img {
    height: 200px;
  }

  .service-block-inner {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .service-figure img {
    height: 200px;
  }

  .process-step {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .step-number {
    font-size: 22px;
  }

  .cooperation-guide {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .magazine-hero {
    margin-bottom: 32px;
  }

  .content-section {
    margin-bottom: 36px;
  }

  .issue-toc {
    margin-bottom: 24px;
  }

  .story-hero-figure img {
    height: 240px;
  }

  .content-media-inline img {
    height: 200px;
  }

  .contact-media img {
    height: 200px;
  }

  .brief-list li {
    padding-left: 20px;
    padding-top: 48px;
  }

  .brief-list li::before {
    top: 20px;
    left: 20px;
  }

  .table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .process-table {
    min-width: 560px;
  }

  .error-code {
    font-size: 48px;
  }
}

/* 小屏手机：400px */
@media (max-width: 400px) {
  .header-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-cta {
    display: none;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .footer-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
