/* ============================================================
   漫剧AI创作 官网样式
   设计方向：纸感编辑风（暖白纸底 + 墨黑文字 + 朱砂强调色）
   全部使用系统字体与纯 CSS 绘制，不依赖任何外部资源
   ============================================================ */

:root {
  --ink: #17181c;
  --ink-soft: #3d3f45;
  --muted: #6f7078;
  --paper: #f5f2ea;
  --paper-2: #ece7dc;
  --card: #fbfaf6;
  --line: rgba(23, 24, 28, 0.14);
  --line-strong: rgba(23, 24, 28, 0.28);
  --accent: #c0442c;
  --accent-soft: #f1ddd6;
  --green: #2f6b4f;
  --amber: #9a6a1f;

  --font-display: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;

  --wrap: 1180px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  /* 纸张纹理：极低透明度的噪点，增加质感 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 234, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(192, 68, 44, 0.22);
}

.btn-line {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  height: 38px;
  padding: 0 16px;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ============ 首屏 ============ */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}

/* 背景装饰：细网格 + 朱砂色光晕 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(23, 24, 28, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 24, 28, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 68, 44, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow-light {
  color: #d98a72;
}

.hero-title {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--accent);
  position: relative;
  padding: 0 4px;
}

/* 强调词下方的手绘感下划线 */
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 10px;
  background: var(--accent-soft);
  z-index: -1;
  transform: skewX(-12deg);
}

.hero-lead {
  margin-top: 26px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin: 48px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.hero-meta span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============ 产品界面预览 ============ */
.hero-preview {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(23, 24, 28, 0.12);
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.preview-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 24, 28, 0.22);
}

.preview-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.preview-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 40%);
}

.preview-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.preview-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 9px;
  box-shadow: 0 2px 6px rgba(23, 24, 28, 0.04);
}

.preview-card p {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 6px 0 7px;
  line-height: 1.5;
}

.preview-card .line {
  height: 5px;
  border-radius: 3px;
  background: rgba(23, 24, 28, 0.09);
  margin-top: 5px;
}

.w-80 { width: 80%; }
.w-70 { width: 70%; }
.w-60 { width: 60%; }
.w-50 { width: 50%; }
.w-40 { width: 40%; }

.tag {
  display: inline-block;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(23, 24, 28, 0.07);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.tag-red { background: var(--accent-soft); color: var(--accent); }
.tag-green { background: #dcece3; color: var(--green); }
.tag-amber { background: #f4e7cf; color: var(--amber); }

.preview-card .thumb {
  height: 42px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, #e7e2d6, #d8d2c4);
}

.preview-card .thumb.alt {
  background:
    linear-gradient(135deg, #e9d8d1, #dcc3ba);
}

/* ============ 平台横条 ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(236, 231, 220, 0.5);
}

.marquee-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  flex-wrap: wrap;
}

.marquee-inner span {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.marquee-inner i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ============ 通用区块 ============ */
.section {
  padding: 104px 0;
}

.section-alt {
  background: rgba(236, 231, 220, 0.55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.25;
}

.section-desc {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.9;
}

/* ============ 产品能力卡片 ============ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cap-card {
  position: relative;
  padding: 34px 30px 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cap-card:hover {
  background: var(--card);
  transform: translateY(-2px);
}

.cap-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.cap-card h3 {
  font-size: 21px;
  margin: 14px 0 12px;
}

.cap-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

/* ============ 工作流程 ============ */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
  position: relative;
}

/* 步骤之间的水平连接线 */
.flow::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--line-strong);
}

.flow li {
  position: relative;
  padding-top: 34px;
}

/* 节点圆点 */
.flow li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 5px var(--paper-2);
}

.flow-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.flow li h3 {
  font-size: 20px;
  margin: 10px 0 10px;
}

.flow li p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

/* ============ 适用场景 ============ */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scenario {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.scenario:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(23, 24, 28, 0.09);
}

.scenario h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.scenario > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.scenario ul {
  margin: 20px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line-strong);
}

.scenario li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.scenario li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ 关于我们 ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}

.about-title {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 22px;
}

.about-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 18px;
}

.about-facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 8px 26px;
}

.about-facts dl {
  margin: 0;
}

.about-facts dl > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.about-facts dl > div:last-child {
  border-bottom: none;
}

.about-facts dt {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.about-facts dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ============ 联系我们（深色块） ============ */
.contact {
  background: var(--ink);
  color: #f2efe8;
  padding: 96px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.contact h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.3;
  color: #f7f4ec;
}

.contact-desc {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(242, 239, 232, 0.64);
  line-height: 1.9;
  max-width: 460px;
}

.contact-card {
  border: 1px solid rgba(242, 239, 232, 0.16);
  border-radius: var(--radius);
  padding: 8px 26px;
  background: rgba(255, 255, 255, 0.03);
}

.contact-row {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(242, 239, 232, 0.1);
  font-size: 14px;
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row > span {
  flex: 0 0 76px;
  color: rgba(242, 239, 232, 0.5);
  font-size: 13px;
}

.contact-row a,
.contact-row p {
  color: #f2efe8;
  margin: 0;
  word-break: break-all;
}

.contact-row a:hover {
  color: #e79b84;
}

/* ============ 页脚 ============ */
.site-footer {
  background: #101114;
  color: rgba(242, 239, 232, 0.6);
  padding: 56px 0 40px;
  font-size: 13px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
}

.footer-brand .brand-name {
  color: #f2efe8;
  font-size: 18px;
}

.footer-brand p {
  margin-top: 8px;
  color: rgba(242, 239, 232, 0.45);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(242, 239, 232, 0.7);
  width: fit-content;
}

.footer-links a:hover {
  color: #fff;
}

.footer-legal p {
  margin-bottom: 6px;
}

.footer-legal a {
  color: rgba(242, 239, 232, 0.6);
}

.footer-legal a:hover {
  color: #fff;
}

/* ============ 滚动淡入动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1),
              transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 首屏元素逐个出现 */
.hero-copy .reveal:nth-child(1) { --reveal-delay: 60ms; }
.hero-copy .reveal:nth-child(2) { --reveal-delay: 140ms; }
.hero-copy .reveal:nth-child(3) { --reveal-delay: 220ms; }
.hero-copy .reveal:nth-child(4) { --reveal-delay: 300ms; }
.hero-copy .reveal:nth-child(5) { --reveal-delay: 380ms; }
.hero-preview.reveal { --reveal-delay: 260ms; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-preview {
    transform: none;
    max-width: 640px;
  }
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .scenario-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
    gap: 16px;
  }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .header-actions {
    margin-left: auto;
  }
  .header-actions .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding: 64px 0 56px;
  }
  .hero-meta {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-meta strong {
    font-size: 24px;
  }
  .section {
    padding: 72px 0;
  }
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .flow::before {
    top: 8px;
    bottom: 8px;
    left: 7px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .flow li {
    padding: 0 0 26px 34px;
  }
  .flow li::before {
    top: 4px;
    left: 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .preview-body {
    grid-template-columns: 1fr 1fr;
  }
  .preview-col:last-child {
    display: none;
  }
  .marquee-inner {
    justify-content: center;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

/* ============ 法律条款页（隐私政策 / 用户协议） ============ */
.legal {
  padding: 72px 0 96px;
}

.legal .wrap {
  max-width: 860px;
}

.legal-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.legal-head h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 13px;
  color: var(--muted);
}

.legal h2 {
  font-size: 21px;
  margin: 36px 0 14px;
}

.legal p,
.legal li {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.95;
}

.legal p {
  margin-bottom: 12px;
}

.legal ul {
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back {
  display: inline-flex;
  margin-top: 44px;
  font-size: 14px;
  color: var(--accent);
}

/* ============ 尊重用户的减少动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
