/* ============================================================
   AI池子 V1.5 · 视觉方向修订（浅色产品 UI 骨架）
   参考：高歌AIGC 视觉骨架（浅色大留白/简洁导航/规整卡片）
   保留：AI池子品牌色（#17A5CC 青蓝 / #04263B 深海局部）
   原则：约 80% 浅色产品 UI；深色仅用于 Hero 局部、Codex 终端、
         AI 自动化流程、视频等技术展示场景。
   ============================================================ */

:root {
  --surface: #f5f8fb;          /* 更浅的蓝灰内容背景 */
  --paper: #ffffff;
  --line: #e3ebf2;
  --ink: #0f2a3f;
  --text-2: #51647a;
  --text-3: #71849a;
  --accent: #17a5cc;
  --accent-deep: #0d7fa6;
  --sea-900: #04263b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 42, 63, .04), 0 6px 18px rgba(13, 42, 63, .05);
  --shadow-hover: 0 2px 4px rgba(13, 42, 63, .06), 0 16px 34px rgba(13, 42, 63, .10);
}

body { background: var(--surface); }

/* ---------- 顶部白色轻导航 ---------- */
.site-header {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--dur-2, 260ms) ease, background var(--dur-2, 260ms) ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(13,42,63,.03), 0 10px 28px rgba(13,42,63,.07); }
.nav-wrap { height: 64px; }
.nav-links a {
  color: #33465a; padding: 7px 3px; margin: 0 10px; border-radius: 0;
  position: relative; font-weight: 500;
}
.nav-links a::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { background: none; color: var(--ink); text-decoration: none; }
.nav-links a.active { background: none; color: var(--accent-deep); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta,
.nav-cta:visited,
.nav-cta.is-current,
.nav-cta[aria-current="page"],
.nav-links a.nav-cta.active {
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 1; visibility: visible;
  background: var(--sea-900) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover,
.nav-cta.is-current:hover { background: #0b3a57 !important; color: #fff !important; transform: translateY(-1px); }

/* ---------- 大留白 ---------- */
.section { padding: 72px 0; }
@media (min-width: 860px) { .section { padding: 92px 0; } }
.section-head { margin-bottom: 44px; }
.section h2 { font-size: 28px; letter-spacing: .01em; }

/* ---------- Hero：浅色为主，深海仅局部 ---------- */
.hero { background: linear-gradient(180deg, #f2f9fd 0%, var(--surface) 100%); }
.hero h1 { font-size: 44px; }
@media (min-width: 860px) { .hero h1 { font-size: 54px; } }

/* ---------- 卡片轻量化 ---------- */
.entry-card, .tool-card, .scene-card, .offer-card, .about-block, .stage, .value-item {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms cubic-bezier(.2,.7,.2,1), border-color 220ms ease;
}
.entry-card:hover, .tool-card:hover, .scene-card:hover, .offer-card:hover {
  transform: translateY(-3px);
  border-color: #c8e2ef;
  box-shadow: var(--shadow-hover);
}

/* ---------- 工作流中心：品牌介绍区 ---------- */
.wf-brand { text-align: center; padding: 64px 16px 20px; }
.wf-brand .eyebrow { color: var(--teal, #0a6e7e); }
.wf-brand h1 { font-size: 40px; line-height: 1.2; margin: 14px 0 12px; }
.wf-brand h1 em { font-style: normal; color: var(--accent-deep); }
.wf-brand .lead { max-width: 640px; margin: 0 auto; color: var(--text-2); font-size: 16px; }
.wf-brand .hero-ctas { margin-top: 24px; }

/* V1.5.1 工作流中心：产品发布页式 Hero（深海局部 + 结果导向） */
.wf-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 360px at 82% -10%, rgba(56, 200, 216, .22), transparent 60%),
    radial-gradient(900px 420px at 12% 115%, rgba(23, 165, 204, .18), transparent 60%),
    linear-gradient(160deg, #04263b 0%, #0b3a57 62%, #0b4d68 100%);
  color: #fff; text-align: center; padding: 86px 18px 70px;
}
.wf-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.wf-eyebrow {
  font-family: ui-monospace, monospace; font-size: 12.5px; letter-spacing: .14em;
  color: #7fd4ea; text-transform: uppercase; margin: 0 0 16px;
}
.wf-hero h1 { font-size: 46px; line-height: 1.18; margin: 0 0 18px; font-weight: 800; letter-spacing: .01em; }
.wf-hero-sub { color: #c6ddec; font-size: 16px; max-width: 640px; margin: 0 auto 30px; line-height: 1.8; }
.wf-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 34px; }
.btn-light { background: #fff; color: #04263b; font-weight: 700; }
.btn-light:hover { background: #eaf5fb; transform: translateY(-1px); }
.wf-hero-stats {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  font-size: 13.5px; color: #9fc3dd;
}
.wf-hero-stats b { font-family: ui-monospace, monospace; font-size: 18px; color: #fff; margin-right: 4px; }
@media (max-width: 640px) {
  .wf-hero { padding: 64px 16px 56px; }
  .wf-hero h1 { font-size: 34px; }
  .wf-hero-sub { font-size: 15px; }
}

/* V1.5.3：工作流频道 Hero 同比放大 R2（AICHIZI_WORKFLOW_HERO_SCALE_R2_010） */
.wf-hero {
  min-height: 660px;
  padding: 60px 18px 104px;
  border-bottom: 0;
}
.wf-hero-inner { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; position: relative; z-index: 1; }
.wf-eyebrow { font-size: 17px; line-height: 26px; font-weight: 500; letter-spacing: 2.2px; margin-bottom: 24px; }
.wf-hero h1 { font-size: 76px; line-height: 1.07; font-weight: 800; letter-spacing: -1.8px; margin: 0 auto; max-width: 820px; }
.wf-hero-sub { font-size: 21px; line-height: 34px; max-width: 860px; margin: 26px auto 0; }
.wf-hero-ctas { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin: 32px 0 0; }
.wf-hero-ctas .btn { min-height: 56px; padding: 0 30px; font-size: 18px; font-weight: 700; border-radius: 28px; }
.wf-hero-note { margin: 20px 0 0; font-size: 16px; line-height: 26px; color: #9fc3dd; }
.wf-hero-stats {
  display: flex; flex-wrap: wrap; gap: 36px; justify-content: center;
  margin-top: 26px; font-size: 16px; line-height: 28px; color: #9fc3dd;
}
.wf-hero-stats span { font-size: 16px; font-weight: 400; }
.wf-hero-stats b, .wf-hero-stats strong { font-family: ui-monospace, monospace; font-size: 20px; font-weight: 800; color: #fff; margin-right: 4px; }
@media (max-width: 1440px) {
  .wf-hero { min-height: 610px; padding-top: 52px; padding-bottom: 92px; }
  .wf-hero h1 { font-size: 68px; }
  .wf-eyebrow { font-size: 16px; }
  .wf-hero-sub { font-size: 19px; line-height: 31px; }
  .wf-hero-ctas .btn { min-height: 52px; font-size: 17px; }
  .wf-hero-stats b, .wf-hero-stats strong { font-size: 18px; }
  .wf-hero-stats span { font-size: 15px; }
}
@media (max-width: 600px) {
  .wf-hero { min-height: auto; padding: 44px 18px 64px; }
  .wf-hero h1 { font-size: 44px; line-height: 1.10; letter-spacing: -0.6px; }
  .wf-eyebrow { font-size: 14px; line-height: 22px; }
  .wf-hero-sub { font-size: 17px; line-height: 28px; margin-top: 18px; }
  .wf-hero-ctas { margin-top: 24px; gap: 12px; }
  .wf-hero-ctas .btn { min-height: 52px; font-size: 17px; }
  .wf-hero-note { font-size: 14px; }
  .wf-hero-stats { margin-top: 22px; gap: 12px 18px; flex-wrap: wrap; justify-content: center; }
  .wf-hero-stats b, .wf-hero-stats strong { font-size: 17px; }
  .wf-hero-stats span { font-size: 14px; }
  #featured .wf-list-head h2 { font-size: 27px; line-height: 1.22; letter-spacing: -0.5px; }
}

/* V1.5.4：工作流频道 Hero 最终视觉 R3（AICHIZI_WORKFLOW_HERO_FINAL_R3_012） */
/* Hero 内容整体下移：仅 ≥1024px 生效，总高度不变（上padding增加=下padding减少） */
@media (min-width: 1024px) {
  .wf-hero {
    padding-top: calc(60px + clamp(18px, 1.35vw, 26px));
    padding-bottom: calc(104px - clamp(18px, 1.35vw, 26px));
  }
}
@media (min-width: 1024px) and (max-width: 1440px) {
  .wf-hero {
    padding-top: calc(52px + clamp(18px, 1.35vw, 26px));
    padding-bottom: calc(92px - clamp(18px, 1.35vw, 26px));
  }
}
/* 第二屏顶部留白收窄（只改顶部padding，结构不动） */
#featured.section { padding-top: 40px; }
@media (max-width: 600px) {
  #featured.section { padding-top: 22px; }
}
/* 手机(≤420)标题语义断行：两行左对齐 */
.s2-br { display: none; }
@media (max-width: 420px) {
  .s2-br { display: block; }
  #featured .wf-list-head h2 { text-align: left; }
}


/* V1.5.5：主标题最终字号 R5（AICHIZI_WORKFLOW_HERO_TITLE_FINAL_R5_015） */
.wf-hero h1 { font-size: 92px; line-height: 0.98; }
@media (min-width: 601px) {
  .wf-hero-sub { margin-top: 31px; }
  .wf-hero-ctas { margin-top: 36px; }
  .wf-hero-stats { margin-top: 30px; }
}
@media (max-width: 1599px) { .wf-hero h1 { font-size: 84px; } }
@media (max-width: 1199px) { .wf-hero h1 { font-size: 68px; } }
@media (max-width: 768px) { .wf-hero h1 { font-size: 44px; line-height: 1.10; } }
@media (min-width: 601px) and (max-width: 1440px) {
  .wf-hero-sub { margin-top: 28px; }
  .wf-hero-ctas { margin-top: 34px; }
  .wf-hero-stats { margin-top: 28px; }
}

/* 精选真实视频墙 */
.wf-featured-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .wf-featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .wf-featured-grid { grid-template-columns: repeat(3, 1fr); } }
.wf-video-card .wf-body { padding: 12px 14px 14px; }
.wf-video-card .wf-title { font-size: 15px; }
.wf-shuffle-row { text-align: center; margin: 18px 0 0; }

/* 最近看过 */
.wf-recent { margin-bottom: 22px; }
.wf-recent h3 { font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.wf-recent-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.wf-recent-card {
  display: flex; align-items: center; gap: 8px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px 6px 6px;
  box-shadow: var(--shadow); text-decoration: none; transition: border-color 180ms ease;
}
.wf-recent-card:hover { border-color: #c8e2ef; text-decoration: none; }
.wf-recent-card img { width: 54px; height: 36px; border-radius: 8px; object-fit: cover; }
.wf-recent-card span { font-size: 13px; color: var(--ink); font-weight: 600; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 极简价值流程 */
.wf-mini-flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.wf-mini-flow span { font-size: 14px; color: var(--ink); font-weight: 600; }
.wf-mini-flow i { font-style: normal; color: var(--accent-deep); font-size: 16px; }

/* 你想做什么 */
.wf-scene-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wf-scene-chips .filter-pill { padding: 10px 20px; font-size: 14px; }

/* 深度浏览轻 CTA（右下，非 Modal） */
.wf-deep-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: none;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(13, 42, 63, .18); padding: 14px 16px; max-width: 260px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.wf-deep-cta.show { display: block; }
.wf-deep-cta p { margin: 0 0 10px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.wf-deep-cta .btn { width: 100%; margin-bottom: 6px; }
.wf-deep-close {
  position: absolute; top: 6px; right: 8px; background: none; border: 0;
  font-size: 16px; color: var(--text-3); cursor: pointer; line-height: 1;
}
@media (max-width: 640px) {
  .wf-deep-cta { right: 12px; bottom: 76px; left: 12px; max-width: none; }
}

/* 详情页商业 CTA（结果导向） */
.p2-need {
  background: linear-gradient(135deg, #eef6fc, #f4faf7); border: 1px solid #cfe5f5;
  border-radius: var(--radius); padding: 26px 24px; text-align: center; margin-bottom: 18px;
}
.p2-need h2 { font-size: 20px; color: var(--ink); margin: 0 0 8px; }
.p2-need p { color: var(--text-2); font-size: 14px; margin: 0 0 14px; }
.p2-need-note { font-size: 12.5px !important; color: var(--text-3) !important; margin-top: 10px !important; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent-deep); font-size: inherit; cursor: pointer; text-decoration: underline; }

/* 价值教育区 */
.wf-value-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.wf-value-head h2 { font-size: 30px; line-height: 1.35; margin: 0 0 12px; }
.wf-value-head p { color: var(--text-2); font-size: 15px; margin: 0; }
.wf-flow { max-width: 620px; margin: 0 auto 44px; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.wf-flow-step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); text-align: center;
}
.wf-flow-step .step-tag { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--accent-deep); }
.wf-flow-step h4 { margin: 4px 0 4px; font-size: 16px; color: var(--ink); }
.wf-flow-step p { margin: 0; font-size: 13px; color: var(--text-2); }
.wf-flow-arrow { text-align: center; color: var(--accent-deep); font-size: 18px; padding: 8px 0; line-height: 1; }
.wf-caps { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .wf-caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .wf-caps { grid-template-columns: repeat(4, 1fr); } }
.wf-cap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.wf-cap .icon-cover { width: 40px; height: 40px; flex: 0 0 40px; margin-bottom: 12px; }
.wf-cap h4 { margin: 0 0 6px; font-size: 15.5px; color: var(--ink); }
.wf-cap p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* 4 个核心能力卡 */
.wf-cap-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 1080px; margin: 0 auto; padding: 12px 16px 0; }
@media (min-width: 640px) { .wf-cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .wf-cap-grid { grid-template-columns: repeat(4, 1fr); } }
.cap-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.cap-card:hover { transform: translateY(-3px); border-color: #c8e2ef; box-shadow: var(--shadow-hover); }
.cap-card .icon-cover { width: 42px; height: 42px; flex: 0 0 42px; margin-bottom: 12px; }
.cap-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.cap-card p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

/* 真实数量数据栏 */
.wf-stat-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 28px auto 0; max-width: 1080px;
}
@media (min-width: 860px) { .wf-stat-bar { grid-template-columns: repeat(4, 1fr); } }
.wf-stat-bar .stat { background: var(--paper); padding: 20px 16px; text-align: center; }
.wf-stat-bar .stat b { display: block; font-size: 26px; font-weight: 800; color: var(--sea-900); font-family: var(--font-mono); }
.wf-stat-bar .stat span { font-size: 12.5px; color: var(--text-3); }

/* 列表头部 */
.wf-list-head { margin: 40px 0 18px; }
.wf-list-head h2 { font-size: 26px; color: var(--ink); margin: 0 0 4px; }
.wf-list-head p { margin: 0; color: var(--text-2); font-size: 14px; }

/* 卡片：内容产品库质感 */
.wf-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--paper); overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.wf-card:hover { transform: translateY(-3px); border-color: #c8e2ef; box-shadow: var(--shadow-hover); }
.wf-cover { aspect-ratio: 16 / 9; background: #062a40; }
.wf-body { padding: 14px 16px 16px; gap: 8px; }
.wf-title { font-size: 16px; font-weight: 700; }
.wf-desc {
  margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wf-foot .date { color: var(--text-3); }

/* ---------- 详情页 V2 ---------- */
.p2-hero { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
@media (min-width: 860px) { .p2-hero { grid-template-columns: 7fr 5fr; align-items: start; } }
.p2-hero .p2-video { position: sticky; top: 84px; }
.p2-hero .p2-info h1 { font-size: 30px; line-height: 1.3; margin: 0 0 8px; }
.p2-hero .p2-info .p2-desc { color: var(--text-2); font-size: 15px; line-height: 1.75; margin: 0 0 18px; }
.p2-mini-title { margin: 0 0 6px; font-size: 13.5px; color: var(--text-3); font-weight: 600; }
.p2-mini-steps { margin: 0 0 16px; padding-left: 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.8; }
.p2-info .p2-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.p2-info .p2-help { font-size: 13.5px; color: var(--text-2); margin: 0; }

.p2-block { margin: 44px 0; }
.p2-block .p2-title { font-size: 24px; color: var(--ink); margin: 0 0 6px; }
.p2-block .p2-sub { color: var(--text-2); font-size: 14.5px; margin: 0 0 20px; }

.p2-caps { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .p2-caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .p2-caps { grid-template-columns: repeat(4, 1fr); } }
.p2-cap {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.p2-cap .icon-cover { width: 38px; height: 38px; flex: 0 0 38px; margin-bottom: 10px; }
.p2-cap p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.6; }

.p2-flow { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .p2-flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; } }
.p2-flow .p2-fstep { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.p2-flow .p2-fstep .step-tag { font-family: var(--font-mono); font-size: 12px; color: var(--accent-deep); }
.p2-flow .p2-fstep h4 { margin: 6px 0; font-size: 15px; color: var(--ink); }
.p2-flow .p2-fstep p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.65; }
.p2-flow .p2-farrow { text-align: center; color: var(--accent-deep); font-size: 20px; }

.p2-steps { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .p2-steps { grid-template-columns: 1fr 1fr; } }
.p2-steps .p2-steps-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.p2-steps h4 { margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.p2-steps ol, .p2-steps ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.9; }

.p2-faq { max-width: 820px; }
.p2-faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.p2-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 14.5px; }
.p2-faq details p { margin: 10px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.75; }

.p2-related { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .p2-related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .p2-related { grid-template-columns: repeat(3, 1fr); } }

.wf-video-box { border-radius: var(--radius); box-shadow: var(--shadow); }
.wf-video-box video { border-radius: var(--radius); }
.wf-video-error { border-radius: 0 0 var(--radius) var(--radius); }
/* 视频作为第一屏视觉核心 */
.p2-hero .p2-video .wf-video-box { box-shadow: 0 24px 64px rgba(4, 38, 59, .22); }
.p2-hero .p2-video video { aspect-ratio: 16 / 9; width: 100%; }

/* 查看详细教程链接 */
.doc-link {
  display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--accent-deep); background: #e7f4fb; border-radius: 999px; padding: 2px 10px;
  vertical-align: 3px; text-decoration: none;
}
.doc-link:hover { background: #d5ecf7; text-decoration: none; }

/* 移动端详情底部 CTA（接近主 CTA 区域时自动隐藏） */
.p2-bottom-cta { display: none; }
@media (max-width: 640px) {
  body[data-page="workflow-detail"] .section { padding-bottom: 96px; }
  .p2-bottom-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: transform 240ms cubic-bezier(.2,.7,.2,1);
  }
  .p2-bottom-cta .btn { width: 100%; }
  .p2-bottom-cta.hide { transform: translateY(110%); }
}

/* 通用卡片轻 stagger（首页/Codex/自动化等区块） */
.stagger > * { animation: wf-in 380ms cubic-bezier(.2,.7,.2,1) both; }
.stagger > *:nth-child(2n) { animation-delay: 40ms; }
.stagger > *:nth-child(3n) { animation-delay: 80ms; }

/* Codex 演示窗：任务执行行轻入场 */
.demo-window .dw-body .a { opacity: 0; transform: translateY(6px); animation: dw-in 420ms cubic-bezier(.2,.7,.2,1) forwards; }
.demo-window .dw-body .a:nth-child(2) { animation-delay: 600ms; }
.demo-window .dw-body .a:nth-child(3) { animation-delay: 1200ms; }
.demo-window .dw-body .a:nth-child(4) { animation-delay: 1800ms; }
@keyframes dw-in { to { opacity: 1; transform: none; } }

/* ---------- 轻量入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 380ms cubic-bezier(.2,.7,.2,1), transform 380ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.wf-card { animation: wf-in 380ms cubic-bezier(.2,.7,.2,1) both; }
.wf-card:nth-child(2n) { animation-delay: 40ms; }
.wf-card:nth-child(3n) { animation-delay: 80ms; }
@keyframes wf-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 移动端 ---------- */
@media (max-width: 859px) {
  .nav-links a { margin: 0; padding: 13px 12px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: #eaf5fb; }
  .wf-brand h1 { font-size: 30px; }
  .p2-hero .p2-video { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wf-card { animation: none; opacity: 1; }
  .nav-links a::after { transition: none; }
  .stagger > * { animation: none; opacity: 1; }
  .demo-window .dw-body .a { animation: none; opacity: 1; }
}
