/* ============================================================
   漫画作品推荐 · 全站样式
   域名：ffhgfci.cn
   说明：本文件覆盖整站全部页面，按 base / layout / components /
         pages / responsive 分组。所有选择器均对应真实 DOM。
   ============================================================ */

/* ============================================================
   1. BASE —— 基础变量、重置、字体、颜色、通用元素
   ============================================================ */
:root {
  --color-canvas: #12151c;        /* 主画布深色：页头、页脚、首屏 */
  --color-panel: #f5f6f8;         /* 内容面板浅色：主内容区 */
  --color-accent: #06b6d4;        /* 强调青色：链接、进度条、版本标签 */
  --color-accent-soft: rgba(6, 182, 212, 0.12);
  --color-magenta: #e879f9;       /* 辅助品红：能力角标、局部高亮 */
  --color-text: #1f2937;          /* 正文深灰 */
  --color-text-light: #6b7280;    /* 辅助文字 */
  --color-border: #e5e7eb;
  --color-white: #ffffff;
  --color-dark-text: #e5e7eb;     /* 深色背景上的浅色文字 */
  --color-dark-muted: #9ca3af;    /* 深色背景上的弱化文字 */

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;

  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --header-h: 68px;
  --content-max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-panel);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0891b2;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
}

/* 屏幕阅读器专用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   2. LAYOUT —— 全站骨架、容器、页头、页脚、面包屑
   ============================================================ */

/* ---------- 全站骨架 ---------- */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-panel);
}

.site-header {
  background-color: var(--color-canvas);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- 品牌 ---------- */
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 12px;
  color: var(--color-dark-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.brand:hover .brand-name {
  color: var(--color-accent);
}

/* ---------- 主导航 ---------- */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--color-dark-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-list a.is-current {
  color: var(--color-accent);
  background-color: var(--color-accent-soft);
}

/* 汉堡按钮，桌面隐藏 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background-color: transparent;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 页脚 ---------- */
.site-footer {
  background-color: var(--color-canvas);
  color: var(--color-dark-muted);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-dark-muted);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-dark-muted);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-boundary {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-dark-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--color-dark-muted);
  margin: 0;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 14px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #9ca3af;
  user-select: none;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ---------- 内页主容器 ---------- */
.site-main {
  flex: 1;
}

.inner-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px 60px;
  width: 100%;
}

/* ---------- 页面标题区 ---------- */
.page-header {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0;
}

/* ---------- 通用区块标题 ---------- */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 18px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

/* ---------- 内页左侧栏布局 ---------- */
.layout-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 侧栏在前的布局 */
.sidebar-left {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 当 .sidebar-left 是祖先，内部 .page-layout 继承网格 */
.sidebar-left .page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 侧栏（各内页通用） */
.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 16px;
}

/* ---------- 相关链接（内页底部） ---------- */
.related-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.related-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-list li a {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-list li a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.related-links-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-right: 16px;
}

.related-links-item {
  display: inline-block;
  margin-right: 12px;
  font-size: 14px;
  color: var(--color-accent);
}

/* ============================================================
   3. COMPONENTS —— 通用组件
   ============================================================ */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #0891b2;
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.btn-outline:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background-color: var(--color-panel);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ---------- 角色卡（服务能力卡） ---------- */
.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: var(--color-accent);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-panel);
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  padding: 16px 16px 4px;
}

.card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  padding: 0 16px;
  margin-bottom: 12px;
  min-height: 44px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
}

.tag-list li {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-magenta);
  background-color: rgba(232, 121, 249, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.card-link {
  display: inline-block;
  padding: 8px 16px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.card-link:hover {
  color: #0891b2;
}

/* ---------- 版本标签 ---------- */
.version-tag {
  display: inline-block;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  white-space: nowrap;
}

.version-new {
  background-color: rgba(6, 182, 212, 0.15);
  color: #0891b2;
}

.version-recent {
  background-color: rgba(232, 121, 249, 0.12);
  color: #c026d3;
}

.version-old {
  background-color: var(--color-border);
  color: var(--color-text-light);
}

/* ---------- 文字链接 ---------- */
.text-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
}

.text-link:hover {
  color: #0891b2;
}

/* ---------- 属性表 ---------- */
.attr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.attr-table th,
.attr-table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.attr-table th {
  width: 120px;
  background-color: var(--color-panel);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.attr-table td {
  color: var(--color-text);
  line-height: 1.7;
}

/* ---------- 折叠问答 ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 0.6em;
}

/* ---------- 图片容器 ---------- */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  padding: 8px 0;
  text-align: center;
}

/* ============================================================
   4. PAGES —— 各页面专属样式
   ============================================================ */

/* ==================== 首页 ==================== */
.home-main {
  background-color: var(--color-panel);
}

/* ---------- 首屏 ---------- */
.hero-section {
  background-color: var(--color-canvas);
  color: var(--color-dark-text);
  padding: 56px 24px 48px;
}

.hero-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  color: var(--color-white);
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-dark-muted);
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: rgba(255, 255, 255, 0.04);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 常见需求列表 */
.hero-common-questions {
  max-width: var(--container-width);
  margin: 40px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.question-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.question-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-dark-text);
  line-height: 1.6;
}

.q-mark {
  color: var(--color-accent);
  font-weight: 700;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ---------- 定位说明带 ---------- */
.positioning-band {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.positioning-text {
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-text);
  max-width: 760px;
  margin: 0 auto 24px;
}

.band-divider {
  width: 64px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 0 auto;
  border-radius: 2px;
}

/* ---------- 区块通用 ---------- */
.section-block {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* ---------- 服务能力入口 ---------- */
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---------- 项目档案摘要 ---------- */
.case-grid-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.case-wide-card,
.case-narrow-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-wide-card:hover,
.case-narrow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.case-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-panel);
}

.case-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-info {
  padding: 16px;
}

.case-type {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.case-brief {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.case-narrow-card .case-image-wrap {
  aspect-ratio: 21 / 9;
}

/* ---------- 创作流程预览 ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease;
}

.step-item:hover {
  border-color: var(--color-accent);
}

.step-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  background-color: var(--color-accent-soft);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.step-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

/* ---------- 内容方法入口 ---------- */
.method-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.method-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.method-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.method-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.method-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.method-card .card-link {
  padding: 0;
}

/* ---------- 热门漫画更新摘要 ---------- */
.update-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.update-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease;
}

.update-item:hover {
  border-color: var(--color-accent);
}

.update-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin: 10px 0 6px;
}

.update-excerpt {
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.7;
}

/* ---------- 阅读指南与常见问题入口 ---------- */
.entry-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.entry-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.entry-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.entry-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.entry-card .card-link {
  padding: 0;
}

/* ==================== 创作服务页 ==================== */

/* 能力角色画廊 */
.service-gallery {
  margin-bottom: 48px;
}

.gallery-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.gallery-scroll .service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-scroll .service-card .tag-list {
  padding-bottom: 16px;
}

/* 服务属性表 */
.service-tables {
  margin-bottom: 48px;
}

.service-attr-block {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.service-attr-block h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

/* 选择建议 */
.selection-guide {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

.selection-guide p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.selection-guide a {
  display: inline-block;
  margin-right: 20px;
  font-weight: 600;
}

/* ==================== 案例项目页 ==================== */

/* 行业分类索引 */
.industry-index {
  margin-bottom: 40px;
}

.index-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.index-tab {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.index-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* 案例列表 */
.case-list {
  margin-bottom: 40px;
}

.case-block {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.case-block-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
}

.case-block-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.case-block-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.case-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.case-figure {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-panel);
}

.case-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content {
  padding: 16px 20px;
}

.case-item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.case-detail {
  font-size: 14px;
  line-height: 1.8;
}

.case-detail dt {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 13px;
  margin-bottom: 2px;
}

.case-detail dd {
  color: var(--color-text);
  margin-bottom: 10px;
}

/* 相关能力入口 */
.case-related {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 16px;
}

.related-lead {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ==================== 创作流程页 ==================== */

/* 进度指示条 */
.progress-indicator {
  display: flex;
  gap: 8px;
  margin: -16px 0 32px;
  padding: 12px 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.progress-step {
  flex: 1;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 2px;
  position: relative;
}

.progress-step.is-active {
  background-color: var(--color-accent);
}

/* 流程目录 */
.process-nav {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.process-toc li {
  margin-bottom: 4px;
}

.process-toc a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.process-toc a:hover {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

/* 阶段详情 */
.process-detail {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

.process-phase {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 90px;
}

.process-phase:last-child {
  border-bottom: none;
}

.process-phase h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.process-phase > p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.phase-io {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.phase-io dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.phase-io dd {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.process-figure {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.process-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.process-figure figcaption {
  padding: 10px;
  background-color: var(--color-panel);
  font-size: 13px;
  color: var(--color-text-light);
}

/* 流程相关 */
.process-related {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.process-related p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.process-related a {
  display: inline-block;
  margin-right: 16px;
  font-weight: 600;
}

/* ==================== 内容方法页 ==================== */

.method-nav {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.method-nav-list li {
  margin-bottom: 4px;
}

.method-nav-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.method-nav-list a:hover {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

.method-content {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.content-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 90px;
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
}

.content-section p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.method-figure {
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.method-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.method-figure figcaption {
  padding: 10px;
  background-color: var(--color-panel);
  font-size: 13px;
  color: var(--color-text-light);
}

/* ==================== 热门漫画更新页 ==================== */

.latest-updates,
.recent-adjustments,
.history-list {
  margin-bottom: 48px;
}

.latest-updates > h2,
.recent-adjustments > h2,
.history-list > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.latest-updates > h2::before,
.recent-adjustments > h2::before,
.history-list > h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 18px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-intro {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.update-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.update-list .update-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.update-list .update-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.update-list .update-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  margin: 12px 0 8px;
}

.update-list .update-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 8px;
}

.update-list .update-item a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
}

.update-media {
  margin: 12px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.update-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

/* 历史内容 */
.history-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}

.history-row:hover {
  border-color: var(--color-accent);
}

.history-row .version-tag {
  flex-shrink: 0;
  margin-top: 4px;
}

.history-text h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.history-text p {
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0;
}

/* 更新页相关 */
.update-related {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 16px;
}

.update-related h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.update-related p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.update-related .related-links {
  display: flex;
  gap: 12px;
}

.update-related .related-links li a {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-text);
}

.update-related .related-links li a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ==================== 正版阅读指南页 ==================== */

.page-aside {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.aside-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 16px;
}

.guide-toc li {
  margin-bottom: 4px;
}

.guide-toc a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.guide-toc a:hover {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

.page-content {
  min-width: 0;
}

.guide-content {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.guide-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 90px;
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-section .section-title {
  margin-bottom: 16px;
}

.guide-section p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 14px;
}

.guide-figure {
  margin: 20px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px;
  background-color: var(--color-panel);
  font-size: 13px;
  color: var(--color-text-light);
}

.support-list {
  margin: 16px 0;
}

.support-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  border-bottom: 1px dashed var(--color-border);
}

.support-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--color-accent);
  font-size: 12px;
}

.support-list li:last-child {
  border-bottom: none;
}

/* ==================== 常见问题页 ==================== */

.faq-toc {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.toc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 16px;
}

.toc-list li {
  margin-bottom: 4px;
}

.toc-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toc-list a:hover {
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
}

.toc-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.toc-note p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

.faq-list {
  min-width: 0;
}

.faq-group {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}

.faq-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.content-media-inline {
  margin: 16px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.content-media-inline img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 8px;
  background-color: var(--color-panel);
  font-size: 13px;
  color: var(--color-text-light);
}

.faq-related {
  margin-top: 32px;
}

.faq-related .related-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.faq-related .related-links {
  display: flex;
  gap: 12px;
}

.faq-related .related-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.faq-related .related-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ==================== 404 页 ==================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
  background-color: var(--color-panel);
}

.error-panel {
  text-align: center;
  max-width: 560px;
  padding: 48px 40px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.error-tip {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   5. RESPONSIVE —— 响应式断点
   ============================================================ */

/* ---------- 平板及以下 ---------- */
@media (max-width: 1024px) {
  .service-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid-main {
    grid-template-columns: 1fr;
  }

  .case-narrow-card .case-image-wrap {
    aspect-ratio: 16 / 9;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .question-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-scroll {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 手机端 ---------- */
@media (max-width: 768px) {
  /* 页头 */
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand-tag {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-canvas);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 14px;
    font-size: 15px;
  }

  /* 布局容器 */
  .layout-shell,
  .sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 侧栏在手机端放在主内容之后 */
  .sidebar-left > aside,
  .sidebar-left .page-layout > aside {
    order: 2;
  }

  .sidebar-left > main,
  .sidebar-left .page-layout > main {
    order: 1;
  }

  .sidebar-left > .page-content,
  .sidebar-left .page-layout > .page-content {
    order: 1;
  }

  /* 内页 */
  .inner-main {
    padding: 0 16px 48px;
  }

  .breadcrumb {
    padding: 16px 16px 0;
    font-size: 13px;
  }

  .page-header {
    padding: 16px 0 20px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  /* 首页 */
  .hero-section {
    padding: 32px 16px 32px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    aspect-ratio: 16 / 10;
  }

  .hero-common-questions {
    margin-top: 28px;
    padding-top: 20px;
  }

  .question-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .positioning-band {
    padding: 32px 16px;
  }

  .positioning-text {
    font-size: 15px;
  }

  .section-block {
    padding: 0 16px 40px;
  }

  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .case-grid-main {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .method-duo,
  .update-feed,
  .entry-duo {
    grid-template-columns: 1fr;
  }

  /* 创作服务页 */
  .gallery-scroll {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .attr-table th {
    width: 88px;
    font-size: 13px;
    padding: 10px 8px;
  }

  .attr-table td {
    font-size: 13px;
    padding: 10px 8px;
  }

  .service-attr-block {
    padding: 16px;
  }

  .selection-guide {
    padding: 20px;
  }

  /* 案例页 */
  .index-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .index-tab {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-related {
    padding: 20px;
  }

  /* 流程页 */
  .progress-indicator {
    margin: -8px 0 24px;
    padding: 10px 12px;
  }

  .process-detail {
    padding: 16px;
  }

  .process-phase {
    padding: 16px 0;
  }

  .phase-io {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-figure img {
    aspect-ratio: 16 / 9;
  }

  /* 方法页 */
  .method-content {
    padding: 16px;
  }

  .content-section {
    padding: 16px 0;
  }

  .method-figure img {
    aspect-ratio: 16 / 9;
  }

  /* 更新页 */
  .update-list {
    grid-template-columns: 1fr;
  }

  .update-media img {
    aspect-ratio: 16 / 9;
  }

  .history-row {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }

  .history-row .version-tag {
    margin-top: 0;
  }

  /* 阅读指南页 */
  .guide-content {
    padding: 16px;
  }

  .guide-section {
    padding: 16px 0;
  }

  .guide-figure img {
    aspect-ratio: 16 / 9;
  }

  /* FAQ 页 */
  .faq-toc {
    position: static;
    margin-bottom: 24px;
  }

  .faq-group {
    margin-bottom: 28px;
  }

  .faq-item summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 16px 14px;
    font-size: 13px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  /* 404 */
  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-title {
    font-size: 20px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn {
    width: 100%;
  }
}

/* ---------- 超小屏 ---------- */
@media (max-width: 390px) {
  .hero-title {
    font-size: 22px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .card-name {
    font-size: 17px;
  }

  .footer-col-title {
    font-size: 13px;
  }
}
