/* ============================================================
   睿乐大脑官网 v3 — 双端对齐重设计（覆盖层）
   ------------------------------------------------------------
   依据 2026-11 产品最新形态：
   · 独立 App：主色 #534AB7 / 淡紫底 #F6F4FC / 4 个 tab
     （小睿 · 记忆 · 整理 · 服务），新增流式用户输入卡、
     AI 数据处理授权、X9 记忆卡、睿乐日报。
   · Web 工作台：品牌绿 #07c05f，一级模块
     （小睿 · 知识库 · 整理 · 服务 · 系统设置），整理下含
     工作台 / 我的整理 / 记忆 / 发现，记忆三页签与课程发现。

   本文件不修改 v2 的 styles.css：仅覆盖 :root 变量让 8 个
   子页面自动继承新色板，并定义首页全新的 v3-* 组件。
   ============================================================ */

:root {
  /* 主色取移动端最新真源 mobile/lib/app_colors.dart */
  --brand: #534AB7;
  --brand-hover: #463BA6;
  --brand-deep: #3A2F8F;
  --brand-pale: #EEEDFE;
  --brand-pale-2: #F6F4FC;

  /* Web 工作台保留睿乐绿，作为「另一端」的识别色 */
  --web: #07c05f;
  --web-pale: #E9F8EC;

  --gold: #D8A621;
  --gold-soft: #F7ECC9;

  --ink: #26215C;
  --ink-soft: #4A4472;
  --muted: #77728F;
  --line: #E6E3F5;
  --line-strong: #CECBF6;
  --paper: #FFFFFF;
  --paper-soft: #F6F4FC;
  --dark: #241E4A;
  --dark-soft: #302858;
  --success: #1D9E75;

  --shadow: 0 12px 32px rgba(38, 33, 92, .08);
  --shadow-soft: 0 6px 20px rgba(38, 33, 92, .06);
  --shadow-brand: 0 10px 26px rgba(83, 74, 183, .18);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
}

/* ---------- 全局：向产品的克制语言靠拢 ---------- */
body { background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.75; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.01em; }
em { font-style: normal; color: var(--brand); }

.site-header { background: rgba(246, 244, 252, .9); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header::before { display: none; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled .nav-wrap { box-shadow: none; }
.brand-extension { background: var(--brand-pale); color: var(--brand); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 500; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--brand); }
.desktop-nav a.is-current { color: var(--brand); }
.nav-source { color: var(--ink-soft); }

.button { border-radius: 10px; font-weight: 500; letter-spacing: 0; }
.button-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.button-primary:hover { background: var(--brand-hover); }
.button-outline { border-color: var(--line-strong); color: var(--brand); }
.button-light { color: var(--dark); }
.text-link { color: var(--brand); }
.card-link { color: var(--brand); }

.section { padding: 96px 0; }
.section-soft { background: var(--paper-soft); }
.eyebrow { color: var(--brand); }
.eyebrow-line { background: var(--brand); }
.section-index { color: var(--brand); }
.statement-lead em { color: var(--brand); }
.module-icon { background: var(--brand-pale); color: var(--brand); }
.module-card { border-radius: var(--r-lg); }
.scene-card { border-radius: var(--r-lg); }
.signal-card { border-radius: var(--r-lg); }
.trust-item span, .scene-code, .process-number { color: var(--brand); }
.process-section { background: var(--dark); }
.contact-section { background: var(--dark); }
.site-footer { background: var(--paper-soft); border-top: 1px solid var(--line); }
.footer-links a:hover { color: var(--brand); }

/* ---------- 稳健性与排版收敛 ---------- */
/* 内容默认可见，不依赖滚动触发（静态预览与无 JS 环境也完整呈现） */
.reveal, .reveal-delay { opacity: 1; transform: none; transition: none; }
/* v2 的 700/800 粗标题收敛到两档字重 */
.page-hero h1, .section-heading h2, .statement-lead, .module-card h3,
.scene-card h3, .price-value strong, .footer-links span, .feature-copy h2 { font-weight: 500; }
.page-hero { padding: 72px 0 52px; }
.page-hero .page-lede { font-size: 15px; }
.card-link { font-weight: 500; }

/* ============================================================
   首页 v3 组件
   ============================================================ */
.v3-container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.v3-section { padding: 92px 0; }
.v3-section.v3-soft { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v3-head { max-width: 720px; margin-bottom: 44px; }
.v3-head.is-wide { max-width: 860px; }
.v3-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--brand); font-size: 12px; font-weight: 500; letter-spacing: .12em; }
.v3-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
.v3-eyebrow.is-light { color: #C9C3F2; }
.v3-eyebrow.is-light::before { background: #C9C3F2; }
.v3-h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; font-weight: 500; }
.v3-sub { margin: 16px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.85; max-width: 700px; }
.v3-note { color: var(--muted); font-size: 13px; }

/* ---------- Hero ---------- */
.v3-hero { position: relative; overflow: hidden; padding: 76px 0 56px; background: var(--paper-soft); }
.v3-hero::before { content: ""; position: absolute; top: -220px; right: -180px; width: 620px; height: 620px; border-radius: 50%; background: var(--brand-pale); opacity: .55; pointer-events: none; }
.v3-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.v3-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 500; }
.v3-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--web); }
.v3-h1 { margin: 22px 0 0; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.28; font-weight: 500; letter-spacing: -.02em; }
.v3-lede { margin: 20px 0 0; max-width: 540px; color: var(--ink-soft); font-size: 16px; line-height: 1.85; }
.v3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.v3-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 20px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-brand); transition: background .2s, transform .2s; }
.v3-btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.v3-btn.v3-btn-ghost { background: transparent; color: var(--brand); box-shadow: none; border: 1px solid var(--line-strong); }
.v3-btn.v3-btn-ghost:hover { background: #fff; }
.v3-btn.v3-btn-light { background: #fff; color: var(--brand); box-shadow: none; }
.v3-proof { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.v3-proof > div { display: flex; align-items: baseline; gap: 8px; }
.v3-proof strong { color: var(--ink); font-size: 22px; font-weight: 500; }
.v3-proof span { color: var(--muted); font-size: 12.5px; }
.v3-roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; color: var(--muted); font-size: 12.5px; }
.v3-roles b { font-weight: 400; }
.v3-roles em { font-style: normal; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }

/* 双端并置视觉 */
.v3-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 470px; }
.v3-phone { position: relative; z-index: 2; width: 232px; padding: 7px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 56px rgba(38, 33, 92, .16); transform: translateX(-26px); }
.v3-phone img { width: 100%; border-radius: 24px; display: block; }
.v3-webcard { position: absolute; z-index: 3; right: -8px; bottom: 14px; width: 244px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(38, 33, 92, .14); }
.v3-webcard-top { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.v3-webcard-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--web); }
.v3-webcard-top b { font-size: 12.5px; font-weight: 500; }
.v3-webcard-top span { margin-left: auto; color: var(--web); font-size: 10.5px; }
.v3-webcard-item { display: flex; align-items: center; gap: 9px; padding: 9px 2px; color: var(--ink-soft); font-size: 12px; border-bottom: 1px solid var(--line); }
.v3-webcard-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.v3-webcard-item i { width: 18px; height: 18px; border-radius: 5px; background: var(--web-pale); color: var(--web); font-style: normal; font-size: 10px; display: grid; place-items: center; }
.v3-webcard-item.on { color: var(--brand); font-weight: 500; }
.v3-webcard-item.on i { background: var(--brand-pale); color: var(--brand); }
.v3-tag-float { position: absolute; z-index: 4; left: -14px; top: 46px; padding: 9px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-size: 11.5px; color: var(--ink-soft); }
.v3-tag-float b { display: block; color: var(--brand); font-size: 12.5px; font-weight: 500; }

/* ---------- 双端对照 ---------- */
.v3-dual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.v3-dual-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.v3-dual-card.is-app { background: var(--brand-pale); border-color: transparent; }
.v3-dual-label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--web-pale); color: #0a7d42; }
.v3-dual-card.is-app .v3-dual-label { background: #fff; color: var(--brand); }
.v3-dual-label i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.v3-dual-card h3 { margin: 16px 0 6px; font-size: 20px; font-weight: 500; }
.v3-dual-card > p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.8; }
.v3-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.v3-chips span { padding: 5px 11px; border-radius: 8px; background: var(--paper-soft); border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.v3-dual-card.is-app .v3-chips span { background: #fff; border-color: transparent; }
.v3-dual-foot { display: flex; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.v3-dual-card.is-app .v3-dual-foot { border-top-color: rgba(83, 74, 183, .14); }

/* ---------- 图文特性 ---------- */
.v3-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 60px; align-items: center; }
.v3-feature.is-flipped .v3-feature-visual { order: -1; }
.v3-quote { margin: 26px 0 0; padding: 14px 18px; border-left: 2px solid var(--brand); background: var(--brand-pale); border-radius: 0 10px 10px 0; color: var(--ink); font-size: 15px; line-height: 1.8; }
.v3-quote small { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; }
.v3-list { list-style: none; margin: 24px 0 0; padding: 0; }
.v3-list li { position: relative; padding: 9px 0 9px 24px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.v3-list li:last-child { border-bottom: 0; }
.v3-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.v3-list li b { color: var(--ink); font-weight: 500; }
.v3-feature-visual { position: relative; display: flex; justify-content: center; }
.v3-phone-inline { width: 236px; padding: 7px; border-radius: 30px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.v3-phone-inline img { width: 100%; border-radius: 24px; display: block; }
/* 服务板块宣传成品图：自带淡紫场景底 + 手机壳 + 柔光，不再叠外层白壳 */
.v3-showcase { width: 288px; max-width: 100%; margin: 0 auto; }
.v3-showcase img { width: 100%; height: auto; display: block; border-radius: 20px; }
.v3-phone-pair { display: flex; gap: 14px; justify-content: center; }
.v3-phone-pair .v3-phone-inline { width: 200px; }
.v3-phone-pair .v3-phone-inline:last-child { margin-top: 32px; }

/* ---------- 通用卡片网格 ---------- */
.v3-grid { display: grid; gap: 16px; }
.v3-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v3-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v3-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.v3-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.v3-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.v3-card p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.8; }
.v3-card .v3-num { display: block; margin-bottom: 14px; color: var(--brand); font-size: 12px; font-weight: 500; letter-spacing: .1em; }

/* 记忆状态三数 */
.v3-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.v3-stat { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; }
.v3-stat b { display: block; color: var(--brand); font-size: 28px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.v3-stat span { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; font-weight: 500; }
.v3-stat small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.v3-tabs { display: flex; gap: 6px; margin-top: 18px; padding: 5px; border-radius: 10px; background: var(--paper-soft); border: 1px solid var(--line); }
.v3-tabs span { flex: 1; padding: 8px; border-radius: 7px; text-align: center; color: var(--ink-soft); font-size: 12.5px; }
.v3-tabs span.on { background: #fff; color: var(--brand); font-weight: 500; box-shadow: var(--shadow-soft); }

/* 场景列表：不堆 8 张卡，一行一条 */
.v3-scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.v3-scene { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.v3-scene i { color: var(--brand); font-style: normal; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.v3-scene b { flex: none; width: 130px; color: var(--ink); font-size: 14px; font-weight: 500; }
.v3-scene span { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }

/* 合规清单 */
.v3-compliance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.v3-compliance div { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #E4E0F7; font-size: 13px; }
.v3-compliance i { flex: none; color: #A9E6C6; font-style: normal; }

/* 流程 */
.v3-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
.v3-flow > div { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.v3-flow > div:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); z-index: 2; color: var(--brand); font-size: 14px; }
.v3-flow b { display: block; margin-bottom: 8px; color: var(--brand); font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.v3-flow h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.v3-flow p { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.75; }

/* FAQ：覆盖 v2 的卡片式与硬编码绿色 open 边框，收敛为分隔线式 */
.v3-faq.faq-list { display: block; max-width: 820px; gap: 0; }
.v3-faq.faq-list details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 4px 0; box-shadow: none; }
.v3-faq.faq-list details[open] { border-color: var(--line); }
.v3-faq.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; color: var(--ink); font-size: 15px; font-weight: 500; }
.v3-faq.faq-list summary::-webkit-details-marker { display: none; }
.v3-faq.faq-list summary b { flex: none; color: var(--brand); font-size: 18px; font-weight: 400; }
.v3-faq.faq-list details p { margin: 0 0 18px; padding: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.85; }

/* CTA（深色区） */
.v3-cta { padding: 84px 0; background: var(--dark); color: #fff; }
.v3-cta .v3-h2 { color: #fff; }
.v3-cta .v3-sub { color: #C6C0EC; }
.v3-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.v3-cta-actions { display: flex; align-items: center; gap: 22px; }
.v3-cta-actions a.v3-alt { color: #C6C0EC; font-size: 13.5px; }
.v3-cta-actions button.v3-btn { border: 0; font-family: inherit; cursor: pointer; line-height: 1.4; }

/* ---------- 预约演示 · 内嵌表单容器（方案 A：内嵌 + 兜底） ---------- */

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .v3-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .v3-stage { min-height: 420px; }
  .v3-feature { grid-template-columns: 1fr; gap: 40px; }
  .v3-feature.is-flipped .v3-feature-visual { order: 0; }
  .v3-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-flow { grid-template-columns: repeat(2, 1fr); }
  .v3-flow > div:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .v3-container { width: min(100% - 32px, 1160px); }
  .v3-section, .v3-hero { padding: 64px 0; }
  .v3-h1 { font-size: 30px; }
  .v3-dual, .v3-grid.cols-2, .v3-grid.cols-3, .v3-grid.cols-4, .v3-scenes, .v3-compliance, .v3-flow { grid-template-columns: 1fr; }
  .v3-flow > div::after { display: none; }
  .v3-webcard { right: 0; bottom: -8px; width: 196px; padding: 12px; }
  .v3-tag-float { display: none; }
  .v3-phone { width: 210px; transform: none; }
  .v3-stage { min-height: 400px; }
  .v3-phone-pair { flex-direction: column; align-items: center; }
  .v3-phone-pair .v3-phone-inline:last-child { margin-top: 0; }
  .v3-scene { flex-wrap: wrap; gap: 6px 12px; }
  .v3-scene b { width: auto; }
  .v3-stats { grid-template-columns: repeat(3, 1fr); }
  .v3-stat { padding: 12px 8px; }
  .v3-stat b { font-size: 22px; }
  .v3-stat small { display: none; }
  .v3-cta-inner { flex-direction: column; align-items: flex-start; }
  /* 窄屏数字条：三格等宽，数字在上、说明在下，避免 2+1 散排 */
  .v3-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .v3-proof > div { flex-direction: column; align-items: flex-start; gap: 3px; }
  .v3-proof span { font-size: 11.5px; line-height: 1.5; }
  /* 窄屏导航只保留品牌与菜单，避免按钮换行挤压 */
  .nav-actions .nav-source, .nav-actions .button-primary { display: none; }
  /* 子页面首屏收紧 */
  .page-hero { padding: 56px 0 40px; }
  /* 预约演示内嵌容器：窄屏留白收紧、骨架单列、工具条换行 */
}
