/* =============================================================
   One0 AI 创作 · 落地页样式
   - 暖色 + 暗色调，配橘金渐变与玻璃质感
   - 所有动效都遵守 prefers-reduced-motion
   ============================================================= */

:root {
  --brand: #e89148;
  --brand-light: #fbbf24;
  --brand-deep: #d77a2e;
  --bg: #0b0a0f;
  --bg-soft: #14110d;
  --text: #f5efe6;
  --text-sub: #b9b0a3;
  --text-muted: #7c7568;
  --border: rgba(232, 145, 72, 0.16);
  --card: rgba(255, 255, 255, 0.035);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: 64px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ 背景特效层 ============ */
.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.fx-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(232, 145, 72, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 145, 72, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.fx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.fx-glow-1 {
  width: 540px; height: 540px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(232, 145, 72, 0.45), transparent 70%);
  animation: float1 16s ease-in-out infinite alternate;
}
.fx-glow-2 {
  width: 420px; height: 420px;
  top: 30%; left: -160px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28), transparent 70%);
  animation: float2 20s ease-in-out infinite alternate;
}
.fx-glow-3 {
  width: 480px; height: 480px;
  bottom: -200px; left: 40%;
  background: radial-gradient(circle, rgba(215, 122, 46, 0.3), transparent 70%);
  animation: float1 24s ease-in-out infinite alternate;
}
@keyframes float1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 40px) scale(1.12); }
}
@keyframes float2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, -30px) scale(1.08); }
}

.wrap { position: relative; z-index: 1; }
.container { width: min(1320px, 94vw); margin: 0 auto; }

/* ============ 每个模块占满一屏（垂直居中 + 滚动吸附） ============ */
.hero,
section.block {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
/* 工具卡片较多，超过一屏时允许自然增高，避免内容被裁切 */
@media (max-width: 900px) {
  .hero,
  section.block { min-height: auto; scroll-snap-align: none; }
  html { scroll-snap-type: none; }
}

/* ============ 顶栏 ============ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 10, 15, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; line-height: 1;
}

/* ============ One0 AI漫剧 CSS Logo（与 web-tools AppLayout 统一） ============ */
.logo-one0 {
  display: inline-flex;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(90deg, #e89148 0%, #fb923c 40%, #fdba74 70%, #fdd0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform .3s ease;
}
.brand:hover .logo-one0 { transform: scale(1.05); }

.logo-one0-O    { font-size: 26px; letter-spacing: -0.03em; }
.logo-one0-ne   { font-size: 20px; letter-spacing: -0.02em; }
.logo-one0-zero { font-size: 22px; letter-spacing: -0.02em; margin-left: 1px; }

.logo-sub {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 50%, #f5a55c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  align-self: center;
  transform: translateY(2px);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--text-sub); transition: color 0.2s; }
.nav-links a:hover { color: var(--brand-light); }
.nav-links a.nav-cta {
  padding: 9px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #f5a55c 0%, #e89148 55%, #d77a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px -6px rgba(232, 145, 72, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}
.nav-links a.nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 10px 24px -6px rgba(232, 145, 72, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ============ Hero ============ */
.hero { padding: 86px 0 64px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--brand-light);
  background: rgba(232, 145, 72, 0.1);
  border: 1px solid rgba(232, 145, 72, 0.3);
  margin-bottom: 26px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55);} 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0);} 100% { box-shadow:0 0 0 0 rgba(34,197,94,0);} }

.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero h1 .em {
  background: linear-gradient(135deg, #fbbf24 0%, #fb923c 45%, #e89148 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(251, 146, 60, 0.4));
}
.hero p.lead {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-sub);
  max-width: 640px; margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: 999px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary {
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #f5a55c 0%, #e89148 55%, #d77a2e 100%);
  box-shadow: 0 12px 34px -8px rgba(232, 145, 72, 0.7);
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shine 3s infinite;
}
@keyframes shine { 0% { left: -120%; } 60%, 100% { left: 220%; } }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-ghost {
  color: var(--text); background: rgba(255, 255, 255, 0.05);
  border-color: var(--border); backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(232,145,72,0.5); color: var(--brand-light); }

.powered {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 34px;
  padding: 7px 16px; border-radius: 999px; font-size: 12.5px; color: var(--text-sub);
  background: linear-gradient(135deg, rgba(232,145,72,0.12), rgba(251,146,60,0.04));
  border: 1px solid rgba(232,145,72,0.28);
}
.powered b { background: linear-gradient(135deg, #fb923c, #fbbf24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============ 通用 section ============ */
section.block { padding: 64px 0; }
.sec-head { text-align: center; margin-bottom: 44px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--brand);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(232, 145, 72, 0.09); border: 1px solid rgba(232, 145, 72, 0.2);
}
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.25; }
.sec-head h2 .em { background: linear-gradient(135deg, #fb923c, #fbbf24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sec-head p { color: var(--text-sub); font-size: 15px; margin-top: 12px; }

/* ============ 工具卡片网格 ============ */
.tools-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.tool-card {
  display: block; position: relative;
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(232,145,72,0.14), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.tool-card:hover { transform: translateY(-5px); border-color: rgba(232,145,72,0.5); box-shadow: 0 22px 50px -18px rgba(232,145,72,0.4); }
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 16px;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,0.5);
}
.tool-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.tool-card p { font-size: 13.5px; color: var(--text-sub); line-height: 1.6; }
.tool-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tags span { font-size: 11px; color: var(--brand-light); padding: 3px 10px; border-radius: 999px; background: rgba(232,145,72,0.1); border: 1px solid rgba(232,145,72,0.2); }
.tool-more { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }

/* ============ 流程 ============ */
.flow {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  counter-reset: step;
}
.flow-item {
  padding: 22px 16px; border-radius: 16px; text-align: center;
  background: var(--card); border: 1px solid var(--border);
  position: relative; transition: transform 0.25s, border-color 0.25s;
}
.flow-item:hover { transform: translateY(-3px); border-color: rgba(232,145,72,0.4); }
.flow-item .num { font-size: 12px; font-weight: 800; color: var(--brand); opacity: 0.7; letter-spacing: 0.08em; }
.flow-item .ico { font-size: 32px; margin: 10px 0 8px; }
.flow-item h4 { font-size: 14px; font-weight: 700; }
.flow-item small { color: var(--text-muted); font-size: 11.5px; }

/* ============ 画风 ============ */
.styles-line { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.style-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--text-sub);
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.style-chip:hover { transform: translateY(-2px); border-color: rgba(232,145,72,0.5); color: var(--text); }

/* ============ 特性 ============ */
.feats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.feat { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.feat .ico { font-size: 28px; margin-bottom: 12px; }
.feat h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feat p { font-size: 13px; color: var(--text-sub); }

/* ============ 小程序码 / 双入口 ============ */
.access {
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}
.access-card {
  padding: 36px 28px; border-radius: 22px; text-align: center;
  background: linear-gradient(160deg, rgba(232,145,72,0.1), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.access-card h3 { font-size: 20px; font-weight: 800; }
.access-card p { font-size: 13.5px; color: var(--text-sub); }

/* 占位框（没有小程序码图片时显示），与 .qr-img 二选一 */
.qr-box {
  width: 188px; height: 188px; border-radius: 18px;
  display: grid; place-items: center; gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(232,145,72,0.45);
  color: var(--text-muted); position: relative;
}
.qr-box .qr-emoji { font-size: 40px; }
.qr-box .qr-tip { font-size: 12.5px; }
.qr-box .qr-soon { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; color: #fff; padding: 2px 9px; border-radius: 999px; background: rgba(232,145,72,0.85); }

/* 真实小程序码图（已随项目打包，默认显示；占位框 .qr-box 默认隐藏） */
.qr-img {
  width: 188px; height: 188px; border-radius: 18px;
  object-fit: contain; background: #fff; padding: 8px;
  display: block;
  box-shadow: 0 8px 22px -8px rgba(232, 145, 72, 0.5);
}
.has-qr .qr-box { display: none; }

/* ============ Footer ============ */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; margin-top: 32px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { font-size: 13px; color: var(--text-muted); }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-size: 13px; color: var(--text); margin-bottom: 12px; font-weight: 700; }
.foot-col a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 9px; transition: color 0.2s; }
.foot-col a:hover { color: var(--brand-light); }
.copy { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; font-size: 12.5px; color: var(--text-muted); }
.copy a { color: var(--text-muted); }
.copy a:hover { color: var(--brand-light); }

/* ============ 入场动效 ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* 区块标题先出现 */
.reveal .sec-head { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in .sec-head { opacity: 1; transform: translateY(0); }

/* 子项错落入场（卡片 / 流程 / 画风 / 特性 / 入口） */
.reveal .tool-card,
.reveal .flow-item,
.reveal .style-chip,
.reveal .feat,
.reveal .access-card {
  opacity: 0; transform: translateY(34px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in .tool-card,
.reveal.in .flow-item,
.reveal.in .style-chip,
.reveal.in .feat,
.reveal.in .access-card {
  opacity: 1; transform: translateY(0) scale(1);
}
/* 依次延迟，营造瀑布感 */
.reveal.in :is(.tool-card, .flow-item, .style-chip, .feat, .access-card):nth-child(1)  { transition-delay: 0.06s; }
.reveal.in :is(.tool-card, .flow-item, .style-chip, .feat, .access-card):nth-child(2)  { transition-delay: 0.12s; }
.reveal.in :is(.tool-card, .flow-item, .style-chip, .feat, .access-card):nth-child(3)  { transition-delay: 0.18s; }
.reveal.in :is(.tool-card, .flow-item, .style-chip, .feat, .access-card):nth-child(4)  { transition-delay: 0.24s; }
.reveal.in :is(.tool-card, .flow-item, .style-chip, .feat, .access-card):nth-child(5)  { transition-delay: 0.30s; }
.reveal.in :is(.tool-card, .flow-item, .style-chip, .feat, .access-card):nth-child(6)  { transition-delay: 0.36s; }
.reveal.in :is(.tool-card, .flow-item, .style-chip, .feat, .access-card):nth-child(7)  { transition-delay: 0.42s; }
.reveal.in :is(.tool-card, .flow-item, .style-chip, .feat, .access-card):nth-child(n+8) { transition-delay: 0.48s; }

/* Hero 载入动画 */
.hero > * { opacity: 0; transform: translateY(28px); animation: heroIn 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }
.hero .badge        { animation-delay: 0.05s; }
.hero h1            { animation-delay: 0.15s; }
.hero p.lead        { animation-delay: 0.28s; }
.hero .hero-actions { animation-delay: 0.40s; }
.hero .powered      { animation-delay: 0.52s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal .sec-head,
  .reveal .tool-card, .reveal .flow-item, .reveal .style-chip, .reveal .feat, .reveal .access-card,
  .hero > * { opacity: 1; transform: none; transition: none; animation: none; }
  .fx-glow, .badge .dot, .btn-primary::after { animation: none; }
}
